Updated hoon files to be up to date with versions in pkg/arvo

This commit is contained in:
Logan Allen 2019-07-19 15:01:44 -07:00
parent e1c0acc104
commit c85fcedad6
10 changed files with 11 additions and 6997 deletions

View File

@ -44,9 +44,9 @@ export default class ChatTile extends Component {
}
let invSuffix = (inviteNum === 1) ? (
<span>invite</span>
<span>Invite</span>
) : (
<span>invites</span>
<span>Invites</span>
);
let numInvElem = (inviteNum > 0) ? (
<p className="absolute white"
@ -66,9 +66,9 @@ export default class ChatTile extends Component {
);
let msgSuffix = (msgNum === 1) ? (
<span>new message</span>
<span>New Message</span>
) : (
<span>new messages</span>
<span>New Messages</span>
);
let numMsgElem = (msgNum > 0) ? (
<p className="absolute white"

View File

@ -6,6 +6,7 @@
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<link rel="stylesheet" href="/~chat/css/index.css" />
<link rel="icon" type="image/png" href="/~launch/img/Favicon.png">
</head>
<body>
<div id="root" />

View File

@ -17,10 +17,6 @@
return module = { exports: {} }, fn(module, module.exports), module.exports;
}
function getCjsExportFromNamespace (n) {
return n && n['default'] || n;
}
/*
object-assign
(c) Sindre Sorhus
@ -46774,8 +46770,6 @@
isBuffer: isBuffer
});
var require$$0 = getCjsExportFromNamespace(bufferEs6);
var bn = createCommonjsModule(function (module) {
(function (module, exports) {
@ -46828,7 +46822,7 @@
var Buffer;
try {
Buffer = require$$0.Buffer;
Buffer = bufferEs6.Buffer;
} catch (e) {
}

View File

@ -19261,9 +19261,9 @@
}
let invSuffix = (inviteNum === 1) ? (
react.createElement('span', {__self: this, __source: {fileName: _jsxFileName, lineNumber: 47}}, "invite")
react.createElement('span', {__self: this, __source: {fileName: _jsxFileName, lineNumber: 47}}, "Invite")
) : (
react.createElement('span', {__self: this, __source: {fileName: _jsxFileName, lineNumber: 49}}, "invites")
react.createElement('span', {__self: this, __source: {fileName: _jsxFileName, lineNumber: 49}}, "Invites")
);
let numInvElem = (inviteNum > 0) ? (
react.createElement('p', { className: "absolute white" ,
@ -19283,9 +19283,9 @@
);
let msgSuffix = (msgNum === 1) ? (
react.createElement('span', {__self: this, __source: {fileName: _jsxFileName, lineNumber: 69}}, "new message" )
react.createElement('span', {__self: this, __source: {fileName: _jsxFileName, lineNumber: 69}}, "New Message" )
) : (
react.createElement('span', {__self: this, __source: {fileName: _jsxFileName, lineNumber: 71}}, "new messages" )
react.createElement('span', {__self: this, __source: {fileName: _jsxFileName, lineNumber: 71}}, "New Messages" )
);
let numMsgElem = (msgNum > 0) ? (
react.createElement('p', { className: "absolute white" ,

View File

@ -22,7 +22,6 @@
::
=, launch
::
::
|_ [bol=bowl:gall sta=state]
::
++ this .

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -1,122 +0,0 @@
var gulp = require('gulp');
var cssimport = require('gulp-cssimport');
var rollup = require('gulp-better-rollup');
var cssnano = require('cssnano');
var autoprefixer = require('autoprefixer');
var postcss = require('gulp-postcss')
var sucrase = require('@sucrase/gulp-plugin');
var minify = require('gulp-minify');
var resolve = require('rollup-plugin-node-resolve');
var commonjs = require('rollup-plugin-commonjs');
var replace = require('rollup-plugin-replace');
var json = require('rollup-plugin-json');
var builtins = require('@joseph184/rollup-plugin-node-builtins');
var rootImport = require('rollup-plugin-root-import');
var globals = require('rollup-plugin-node-globals');
/***
Main config options
***/
var urbitrc = require('./.urbitrc');
/***
End main config options
***/
gulp.task('css-bundle', function() {
let plugins = [
autoprefixer({ browsers: ['last 1 version'] }),
cssnano()
];
return gulp
.src('src/index-css.css')
.pipe(cssimport())
.pipe(postcss(plugins))
.pipe(gulp.dest('./urbit/app/modulo'));
});
gulp.task('jsx-transform', function(cb) {
return gulp.src('src/**/*.js')
.pipe(sucrase({
transforms: ['jsx']
}))
.pipe(gulp.dest('dist'));
});
gulp.task('js-imports', function(cb) {
return gulp.src('dist/index-js.js')
.pipe(rollup({
plugins: [
commonjs({
namedExports: {
'node_modules/react/index.js': [ 'Component' ],
'node_modules/react-is/index.js': [ 'isValidElementType' ],
}
}),
rootImport({
root: `${__dirname}/dist/js`,
useEntry: 'prepend',
extensions: '.js'
}),
json(),
globals(),
builtins(),
resolve()
]
}, 'umd'))
.on('error', function(e){
console.log(e);
cb();
})
.pipe(gulp.dest('./urbit/app/modulo/'))
.on('end', cb);
});
gulp.task('js-minify', function () {
return gulp.src('./urbit/app/modulo/index-js.js')
.pipe(minify())
.pipe(gulp.dest('./urbit/app/modulo/'));
});
gulp.task('urbit-copy', function () {
let ret = gulp.src('urbit/**/*');
urbitrc.URBIT_PIERS.forEach(function(pier) {
ret = ret.pipe(gulp.dest(pier));
});
return ret;
});
gulp.task('js-bundle-dev', gulp.series('jsx-transform', 'js-imports'));
gulp.task('js-bundle-prod', gulp.series('jsx-transform', 'js-imports', 'js-minify'))
gulp.task('bundle-dev',
gulp.series(
gulp.parallel(
'css-bundle',
'js-bundle-dev'
),
'urbit-copy'
)
);
gulp.task('bundle-prod',
gulp.series(
gulp.parallel(
'css-bundle',
'js-bundle-prod'
),
'urbit-copy'
)
);
gulp.task('default', gulp.series('bundle-dev'));
gulp.task('watch', gulp.series('default', function() {
gulp.watch('src/**/*.js', gulp.parallel('js-bundle-dev'));
gulp.watch('src/**/*.css', gulp.parallel('css-bundle'));
gulp.watch('urbit/**/*', gulp.parallel('urbit-copy'));
}));

File diff suppressed because it is too large Load Diff

View File

@ -1,44 +0,0 @@
{
"name": "urbit-apps",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@joseph184/rollup-plugin-node-builtins": "^2.1.4",
"@sucrase/gulp-plugin": "^2.0.0",
"autoprefixer": "^9.6.1",
"cssnano": "^4.1.10",
"gulp": "^4.0.0",
"gulp-better-rollup": "^4.0.1",
"gulp-cssimport": "^7.0.0",
"gulp-minify": "^3.1.0",
"gulp-postcss": "^8.0.0",
"rollup": "^1.6.0",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-json": "^2.3.0",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-root-import": "^0.2.3",
"sucrase": "^3.8.0"
},
"dependencies": {
"classnames": "^2.2.6",
"lodash": "^4.17.11",
"moment": "^2.20.1",
"mousetrap": "^1.6.1",
"react": "^16.5.2",
"react-custom-scrollbars": "^4.2.1",
"react-dom": "^16.8.6",
"react-router-dom": "^5.0.0",
"urbit-ob": "^3.1.1"
},
"resolutions": {
"natives": "1.1.3"
}
}

View File

@ -1,51 +0,0 @@
/+ *server
|%
:: +move: output effect
::
+$ move [bone card]
:: +card: output effect payload
::
+$ card
$% [%connect wire binding:eyre term]
[%disconnect wire binding:eyre]
[%http-response =http-event:http]
==
::
--
::
|_ [bow=bowl:gall sta=state]
::
++ this .
::
++ prep
|= old=(unit *)
^- (quip move _this)
?~ old
:_ this
[ost.bow %connect / [~ /'~modulo'] %modulo]~
[~ this]
::
:: alerts us that we were bound. we need this because the vane calls back.
::
++ bound
|= [wir=wire success=? binding=binding:eyre]
^- (quip move _this)
[~ this]
::
++ session-js
^- octs
%- as-octt:mimes:html
;: weld
"window.ship = '{+:(scow %p our.bow)}';"
"window.urb = new Channel();"
==
::
:: +poke-handle-http-request: received on a new connection established
::
++ poke-handle-http-request
%- (require-authorization:app ost.bow move this)
|= =inbound-request:eyre
^- (quip move _this)
[[ost.bow %http-response (js-response:app session-js)]~ this]
::
--