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