git ssb

16+

Dominic / patchbay



Commit 99e3e200407b1301e0075446b91def9b0ff643eb

small notes + tweaks for /qeury

mix irving committed on 7/14/2018, 1:11:40 AM
Parent: 1fb2fbc9c4f06e97c286691522a8fda0f0a3d632

Files changed

app/html/search-bar.jschanged
app/page/query.jschanged
app/html/search-bar.jsView
@@ -73,9 +73,9 @@
7373 // TODO extract
7474 function getPagesSuggestions (word) {
7575 const pages = [
7676 'posts', 'public', 'private', 'inbox', 'profile', 'notifications', 'settings',
77- 'gatherings', 'chess', 'books', 'imageSearch', 'polls'
77 + 'gatherings', 'chess', 'books', 'imageSearch', 'polls', 'query'
7878 ]
7979
8080 return pages
8181 .filter(page => ~page.indexOf(word))
app/page/query.jsView
@@ -1,7 +1,6 @@
11 const nest = require('depnest')
2-const { h, Value, Array: MutantArray, Struct, computed, when, map } = require('mutant')
3-const pull = require('pull-stream')
2 +const { h, Value, computed, when } = require('mutant')
43 const Scroller = require('mutant-scroll')
54 const next = require('pull-next-query')
65 const json5 = require('json5')
76
@@ -14,8 +13,9 @@
1413 'message.html.render': 'first',
1514 'sbot.pull.stream': 'first'
1615 })
1716
17 +// TODO ?? extract a module patchbay-devtools ?
1818 exports.create = function (api) {
1919 return nest({
2020 'app.html.menuItem': menuItem,
2121 'app.page.query': queryPage

Built with git-ssb-web