git ssb

16+

Dominic / patchbay



Commit d7acb5062b990c4d876df857fbd8a3b29bf7d2cb

Merge branch 'git-ssb-tab' of ssb://%s9mSFATE4RGyJx9wgH22lBrvD4CgUQW4yeguSWWjtqc=.sha256

Dominic Tarr committed on 12/1/2016, 7:43:48 AM
Parent: a5c360ec49fdfeaa04146731f7718997c16554f8
Parent: 404521bab0335a3e3ff21ab912f25e8d7edd8168

Files changed

modules_basic/public.jschanged
modules_extra/index.jschanged
modules_extra/git-ssb.jsadded
modules_basic/public.jsView
@@ -37,25 +37,4 @@
3737 return div
3838 }
3939 }
4040
41-
42-
43-
44-
45-
46-
47-
48-
49-
50-
51-
52-
53-
54-
55-
56-
57-
58-
59-
60-
61-
modules_extra/index.jsView
@@ -4,8 +4,9 @@
44 "emoji.js": require('./emoji.js'),
55 "suggest-emoji.js": require('./suggest-emoji.js'),
66 "dns.js": require('./dns.js'),
77 "git.js": require('./git.js'),
8 + "git-ssb.js": require('./git-ssb.js'),
89 "notifications.js": require('./notifications.js'),
910 "meta-image.js": require('./meta-image.js'),
1011 "music-release-cc.js": require('./music-release-cc.js'),
1112 "music-release.js": require('./music-release.js'),
modules_extra/git-ssb.jsView
@@ -1,0 +1,41 @@
1 +var h = require('hyperscript')
2 +var u = require('../util')
3 +var pull = require('pull-stream')
4 +var Scroller = require('pull-scroll')
5 +
6 +var plugs = require('../plugs')
7 +var message_render = plugs.first(exports.message_render = [])
8 +var message_compose = plugs.first(exports.message_compose = [])
9 +var sbot_log = plugs.first(exports.sbot_log = [])
10 +
11 +exports.menu_items = function () {
12 + return h('a', {href: '#/git-ssb'}, '/git-ssb')
13 +}
14 +
15 +exports.screen_view = function (path, sbot) {
16 + if(path === '/git-ssb') {
17 +
18 + var content = h('div.column.scroller__content')
19 + var div = h('div.column.scroller',
20 + {style: {'overflow':'auto'}},
21 + h('div.scroller__wrapper', content)
22 + )
23 +
24 + pull(
25 + u.next(sbot_log, {old: false, limit: 100}),
26 + Scroller(div, content, message_render, true, false)
27 + )
28 +
29 + pull(
30 + u.next(sbot_log, {reverse: true, limit: 100, live: false}),
31 + pull.filter(function(msg) { return msg.value.content.type }),
32 + pull.filter(function(msg) {
33 + return msg.value.content.type.match(/^git/)
34 + }),
35 + Scroller(div, content, message_render, false, false)
36 + )
37 +
38 + return div
39 + }
40 +}
41 +

Built with git-ssb-web