git ssb

16+

Dominic / patchbay



Tree: 8962d847a1ccdc99a10a5d9b54d5f6c4abf9ce8d

Files: 8962d847a1ccdc99a10a5d9b54d5f6c4abf9ce8d / index.js

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

Built with git-ssb-web