Files: 937c17f654fecfdf321c68504c55d724b112fb94 / index.js
545 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 | document.head.appendChild( |
10 | h('style', fs.readFileSync('./style.css', 'utf8') |
11 | )) |
12 | |
13 | var modules = require('./modules') |
14 | |
15 | var renderers = [] |
16 | var app = [] |
17 | var App = require('./plugs').first(app) |
18 | |
19 | var u = require('./util') |
20 | |
21 | modules.unshift(SbotApi()) |
22 | modules.unshift({app: app}) |
23 | combine(modules) |
24 | |
25 | document.body.appendChild(App()) |
26 | |
27 | |
28 | |
29 | |
30 | |
31 | |
32 | |
33 | |
34 | |
35 |
Built with git-ssb-web