git ssb

0+

dangerousbeans / patchbay-bootstrap



Tree: 08e1fc42a3722f8f133fdcb3a7460462d599f889

Files: 08e1fc42a3722f8f133fdcb3a7460462d599f889 / index.js

600 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
8document.head.appendChild(h('style', fs.readFileSync('./style.css', 'utf8')))
9
10var modules = fs.readdirSync(path.join(__dirname, 'modules'))
11 .map(function (e) { return require('./modules/'+e) })
12
13var renderers = []
14var app = []
15modules.unshift({app: app})
16
17combine(modules)
18
19var u = require('./util')
20
21require('ssb-client')(function (err, sbot) {
22 if(err) throw err
23 document.body.appendChild(u.decorate(app, sbot))
24})
25
26
27

Built with git-ssb-web