git ssb

16+

Dominic / patchbay



Tree: 9d629c55b19f5dc728643731fffb36dac23c0eca

Files: 9d629c55b19f5dc728643731fffb36dac23c0eca / modules / main.js

708 bytesRaw
1var h = require('hyperscript')
2var ui = require('../ui')
3var u = require('../util')
4var pull = require('pull-stream')
5var Scroller = require('pull-scroll')
6
7exports.screen_view = function (path, sbot) {
8 if(path === '/') {
9
10 var content = h('div.column')
11 var div = h('div.column', {style: {'overflow':'auto'}},
12 u.decorate(exports.message_compose, {}, function (d, e, v) {
13 return d(e, v, sbot)
14 }),
15 content
16 )
17 var render = ui.createRenderers(exports.message_render, sbot)
18
19 pull(
20 sbot.createLogStream({reverse: true}),
21 Scroller(div, content, render, false, false)
22 )
23
24 return div
25 }
26}
27
28exports.message_render = []
29exports.message_compose = []
30
31
32
33
34

Built with git-ssb-web