git ssb

16+

Dominic / patchbay



Commit d07e0d2417f507c7cffdae3ae46476122eaba98b

style fixups for gatherings

mix irving committed on 6/23/2018, 12:06:06 AM
Parent: b225d0b1ab0b783efe601a6f555fca63197f5c7e

Files changed

app/page/public.jschanged
message/html/layout/default.jschanged
message/html/layout/default.mcsschanged
package-lock.jsonchanged
package.jsonchanged
app/page/public.jsView
@@ -1,11 +1,11 @@
11 const nest = require('depnest')
22 const { h } = require('mutant')
33 const pull = require('pull-stream')
44 const Scroller = require('pull-scroll')
5 +const next = require('pull-next-query')
6 +const merge = require('lodash/merge')
57
6-const next = require('../../junk/next-stepper')
7-
88 exports.gives = nest({
99 'app.html.menuItem': true,
1010 'app.page.public': true
1111 })
@@ -13,9 +13,10 @@
1313 exports.needs = nest({
1414 'app.html.filter': 'first',
1515 'app.html.scroller': 'first',
1616 'app.sync.goTo': 'first',
17- 'feed.pull.public': 'first',
17 + // 'feed.pull.public': 'first',
18 + 'sbot.pull.stream': 'first',
1819 'message.html.compose': 'first',
1920 'message.html.render': 'first'
2021 })
2122
@@ -40,8 +41,16 @@
4041 })
4142 const { filterMenu, filterDownThrough, filterUpThrough, resetFeed } = api.app.html.filter(draw)
4243 const { container, content } = api.app.html.scroller({ prepend: [composer, filterMenu] })
4344
45 + const createStream = (opts) => api.sbot.pull.stream(server => {
46 + const _opts = merge({}, opts, {
47 + query: [{$filter: { timestamp: {$gt: 0} }}]
48 + })
49 +
50 + return next(server.query.read, _opts, ['timestamp'])
51 + })
52 +
4453 // TODO : build a pull-stream which has seperate state + rendering
4554 function draw () {
4655 resetFeed({ container, content })
4756
@@ -51,15 +60,15 @@
5160 }
5261
5362 // TODO - change to use ssb-query, streamed by publish time
5463 pull(
55- next(api.feed.pull.public, {old: false, limit: 100, live: true}, ['timestamp']),
64 + createStream({old: false, limit: 100, live: true}),
5665 filterUpThrough(),
5766 Scroller(container, content, render, true, false)
5867 )
5968
6069 pull(
61- next(api.feed.pull.public, {reverse: true, limit: 100, live: false}, ['timestamp']),
70 + createStream({reverse: true, limit: 100, live: false}),
6271 filterDownThrough(),
6372 Scroller(container, content, render, false, false)
6473 )
6574 }
message/html/layout/default.jsView
@@ -26,11 +26,9 @@
2626
2727 var rawMessage = Value(null)
2828
2929 return h('Message -default', {
30- attributes: {
31- tabindex: '0' // needed to be able to navigate and show focus()
32- }
30 + attributes: { tabindex: '0' } // needed to be able to navigate and show focus()
3331 }, [
3432 h('section.avatar', {}, api.about.html.avatar(msg.value.author)),
3533 h('section.top', [
3634 h('div.author', {}, author(msg)),
message/html/layout/default.mcssView
@@ -39,15 +39,8 @@
3939 a {
4040 $textSubtle
4141 margin-left: .5rem
4242 }
43-
44- /* this is for private message_meta, TODO find a better home */
45- (img) {
46- height: 1.8rem
47- width: 1.8rem
48- margin: 0 .2rem -.2rem
49- }
5043 }
5144 }
5245
5346 section.content {
@@ -116,9 +109,8 @@
116109 }
117110 }
118111 }
119112
120-
121113 footer.backlinks {
122114 grid-row: 5 / span 1
123115
124116 grid-column: 2 / 3
package-lock.jsonView
The diff is too large to show. Use a local git client to view these changes.
Old file size: 360559 bytes
New file size: 359889 bytes
package.jsonView
@@ -62,9 +62,9 @@
6262 "patch-inbox": "^1.1.3",
6363 "patch-settings": "^1.1.1",
6464 "patch-suggest": "^2.0.2",
6565 "patchbay-book": "^1.0.6",
66- "patchbay-gatherings": "^2.0.0",
66 + "patchbay-gatherings": "^2.0.1",
6767 "patchbay-poll": "^1.0.5",
6868 "patchcore": "^1.27.1",
6969 "pull-abortable": "^4.1.1",
7070 "pull-cat": "^1.1.11",

Built with git-ssb-web