Files: 03187b9dad071577947968b89b9c6aef6d6c4d41 / index.js
571 bytesRaw
1 | var h = require('hyperscript') |
2 | var u = require('./util') |
3 | var pull = require('pull-stream') |
4 | var combine = require('depject') |
5 | var fs = require('fs') |
6 | var path = require('path') |
7 | var SbotApi = require('./sbot-api') |
8 | |
9 | var modules = require('./modules') |
10 | |
11 | var u = require('./util') |
12 | |
13 | modules['sbot-api.js'] = SbotApi() |
14 | combine(modules) |
15 | |
16 | if(process.title === 'node') { |
17 | console.log(require('depject/graph')(modules)) |
18 | process.exit(0) |
19 | } |
20 | |
21 | document.head.appendChild( |
22 | h('style', fs.readFileSync('./style.css', 'utf8') |
23 | )) |
24 | |
25 | document.body.appendChild(modules['app.js'].app()) |
26 | |
27 | |
28 | |
29 | |
30 | |
31 | |
32 | |
33 | |
34 | |
35 |
Built with git-ssb-web