git ssb

16+

Dominic / patchbay



Tree: 9b4392d8b0d1d6a14f5ba5b1d6b4897c62e9d864

Files: 9b4392d8b0d1d6a14f5ba5b1d6b4897c62e9d864 / 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