Files: 1e399015dfde5516551cee94619965e25c5fc446 / index.js
819 bytesRaw
1 | var h = require('hyperscript') |
2 | |
3 | window.addEventListener('error', window.onError = function (e) { |
4 | document.body.appendChild(h('div.error', |
5 | h('h1', e.message), |
6 | h('big', h('code', e.filename + ':' + e.lineno)), |
7 | h('pre', e.error ? (e.error.stack || e.error.toString()) : e.toString()))) |
8 | }) |
9 | |
10 | var u = require('./util') |
11 | var pull = require('pull-stream') |
12 | var combine = require('depject') |
13 | var fs = require('fs') |
14 | var path = require('path') |
15 | var SbotApi = require('./sbot-api') |
16 | |
17 | document.head.appendChild(h('style', require('./style.css.json'))) |
18 | |
19 | var modules = require('./modules') |
20 | |
21 | var u = require('./util') |
22 | |
23 | modules['sbot-api.js'] = SbotApi() |
24 | combine(modules) |
25 | |
26 | if(process.title === 'node') { |
27 | console.log(require('depject/graph')(modules)) |
28 | process.exit(0) |
29 | } |
30 | |
31 | document.body.appendChild(modules['app.js'].app()) |
32 | |
33 | |
34 |
Built with git-ssb-web