git ssb

16+

Dominic / patchbay



Tree: 473ab796d9ba662aa1f1665d60c10838dc0c35d9

Files: 473ab796d9ba662aa1f1665d60c10838dc0c35d9 / index.js

823 bytesRaw
1var h = require('hyperscript')
2
3window.addEventListener('error', function onError(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
10var u = require('./util')
11var pull = require('pull-stream')
12var combine = require('depject')
13var fs = require('fs')
14var path = require('path')
15var SbotApi = require('./sbot-api')
16
17var modules = require('./modules')
18
19var u = require('./util')
20
21modules['sbot-api.js'] = SbotApi()
22combine(modules)
23
24if(process.title === 'node') {
25 console.log(require('depject/graph')(modules))
26 process.exit(0)
27}
28
29document.head.appendChild(
30 h('style', fs.readFileSync('./style.css', 'utf8')
31))
32
33document.body.appendChild(modules['app.js'].app())
34
35

Built with git-ssb-web