Files: 86a49874288e82f64d807b5c7c48c43955d3aec3 / 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