Commit 99e3e200407b1301e0075446b91def9b0ff643eb
small notes + tweaks for /qeury
mix irving committed on 7/14/2018, 1:11:40 AMParent: 1fb2fbc9c4f06e97c286691522a8fda0f0a3d632
Files changed
app/html/search-bar.js | changed |
app/page/query.js | changed |
app/html/search-bar.js | ||
---|---|---|
@@ -73,9 +73,9 @@ | ||
73 | 73 … | // TODO extract |
74 | 74 … | function getPagesSuggestions (word) { |
75 | 75 … | const pages = [ |
76 | 76 … | 'posts', 'public', 'private', 'inbox', 'profile', 'notifications', 'settings', |
77 | - 'gatherings', 'chess', 'books', 'imageSearch', 'polls' | |
77 … | + 'gatherings', 'chess', 'books', 'imageSearch', 'polls', 'query' | |
78 | 78 … | ] |
79 | 79 … | |
80 | 80 … | return pages |
81 | 81 … | .filter(page => ~page.indexOf(word)) |
app/page/query.js | ||
---|---|---|
@@ -1,7 +1,6 @@ | ||
1 | 1 … | 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') | |
4 | 3 … | const Scroller = require('mutant-scroll') |
5 | 4 … | const next = require('pull-next-query') |
6 | 5 … | const json5 = require('json5') |
7 | 6 … | |
@@ -14,8 +13,9 @@ | ||
14 | 13 … | 'message.html.render': 'first', |
15 | 14 … | 'sbot.pull.stream': 'first' |
16 | 15 … | }) |
17 | 16 … | |
17 … | +// TODO ?? extract a module patchbay-devtools ? | |
18 | 18 … | exports.create = function (api) { |
19 | 19 … | return nest({ |
20 | 20 … | 'app.html.menuItem': menuItem, |
21 | 21 … | 'app.page.query': queryPage |
Built with git-ssb-web