git ssb

0+

dangerousbeans / patchbay-bootstrap



Tree: 96d0a60a7b7c41087f0c52c4ed0292f86ba7d4b1

Files: 96d0a60a7b7c41087f0c52c4ed0292f86ba7d4b1 / index.js

521 bytesRaw
1var h = require('hyperscript')
2var u = require('./util')
3var pull = require('pull-stream')
4var combine = require('depject')
5var fs = require('fs')
6var path = require('path')
7
8var modules = fs.readdirSync(path.join(__dirname, 'modules'))
9 .map(function (e) { return require('./modules/'+e) })
10
11var renderers = []
12var app = []
13modules.unshift({app: app})
14
15combine(modules)
16
17var u = require('./util')
18
19require('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