git ssb

16+

Dominic / patchbay



Tree: ae7c2d638a47d2b374cec6c88e45d20c4290fe33

Files: ae7c2d638a47d2b374cec6c88e45d20c4290fe33 / modules / main.js

728 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 var content = h('div.column')
10 var div = h('div.column', {style: {'overflow':'auto'}},
11 u.decorate(exports.message_compose, {}, function (d, e, v) {
12 return d(e, v, sbot)
13 }),
14 content
15 )
16 var render = ui.createRenderers(exports.message_render, sbot)
17
18 pull(
19 u.next(sbot.createLogStream, {reverse: true, limit: 100}),
20 Scroller(div, content, render, false, false)
21 )
22
23 return div
24 }
25}
26
27exports.message_render = []
28exports.message_compose = []
29
30
31
32
33
34

Built with git-ssb-web