git ssb

16+

Dominic / patchbay



Tree: af259461a794b832781b7a8e8f03c39087dc5237

Files: af259461a794b832781b7a8e8f03c39087dc5237 / 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