git ssb

0+

ev / microbay



forked from Dominic / patchbay

Tree: bcb4c97c7ca561b330d38ba98307acbeb0131341

Files: bcb4c97c7ca561b330d38ba98307acbeb0131341 / index.js

1209 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
9var modules = require('./modules')
10
11var renderers = []
12var app = []
13//var App = require('./plugs').first(app)
14
15var u = require('./util')
16
17//modules.unshift(SbotApi())
18//modules.unshift({app: app})
19
20//var indexes = fs.readdirSync(path.join(__dirname, 'modules'))
21//var i = indexes.indexOf('index.js')
22//indexes.splice(i, 1)
23
24//var sv = [], screen_view = require('./plugs').first(sv)
25//modules['main.js' ] = {
26// screen_view: sv,
27// app: function () {
28// return h('div.row',
29// screen_view('/public'),
30// screen_view('/private')
31// )
32// }
33//}
34
35modules['app.js'] = {app: []}
36
37modules['sbot-api.js'] = SbotApi()
38
39modules['tabs.js']
40
41combine(modules) //, ['app', 'sbot'].concat(indexes) )
42
43if(process.title === 'node') {
44 console.log(require('depject/graph')(modules))
45 process.exit(0)
46}
47
48document.head.appendChild(
49 h('style', fs.readFileSync('./style.css', 'utf8')
50))
51
52console.log(modules['app.js'])
53document.body.appendChild(h('div.screen.column', modules['app.js'].app[0]()))
54
55

Built with git-ssb-web