Files: af259461a794b832781b7a8e8f03c39087dc5237 / index.js
521 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 | |
8 | var modules = fs.readdirSync(path.join(__dirname, 'modules')) |
9 | .map(function (e) { return require('./modules/'+e) }) |
10 | |
11 | var renderers = [] |
12 | var app = [] |
13 | modules.unshift({app: app}) |
14 | |
15 | combine(modules) |
16 | |
17 | var u = require('./util') |
18 | |
19 | require('ssb-client')(function (err, sbot) { |
20 | if(err) throw err |
21 | document.body.appendChild(u.decorate(app, sbot)) |
22 | }) |
23 | |
24 | |
25 |
Built with git-ssb-web