git ssb

16+

Dominic / patchbay



Commit 28a3d608c0985435c995a7262ed21dfc3d965caf

add scry to menu and auto-complete

mixmix committed on 9/26/2018, 2:05:18 AM
Parent: 5149067cc270bfcbf301fd7c1db66cd15659a53f

Files changed

app/html/scroller.jschanged
app/html/search-bar.jschanged
package-lock.jsonchanged
package.jsonchanged
app/html/scroller.jsView
@@ -46,13 +46,14 @@
4646 }
4747 }
4848
4949 return function scroll (d) {
50- selectChild((!curMsgEl || d === 'first') ? content.firstChild
50 + const child = (!curMsgEl || d === 'first') ? content.firstChild
5151 : (!curMsgEl || d === 'last') ? content.lastChild
5252 : d < 0 ? curMsgEl.previousElementSibling || content.firstChild
5353 : d > 0 ? curMsgEl.nextElementSibling || content.lastChild
54- : curMsgEl)
54 + : curMsgEl
55 + selectChild(child)
5556
5657 return curMsgEl
5758 }
5859
app/html/search-bar.jsView
@@ -67,15 +67,15 @@
6767
6868 if (char === '@') api.about.async.suggest(word, cb)
6969 if (char === '#') api.channel.async.suggest(word, cb)
7070 if (char === '/') cb(null, getPagesSuggestions(word))
71- }, {cls: 'PatchSuggest'})
71 + }, { cls: 'PatchSuggest' })
7272
7373 // TODO extract
7474 function getPagesSuggestions (word) {
7575 const pages = [
7676 'blogs', 'calendar', 'posts', 'public', 'private', 'inbox', 'profile', 'notifications', 'settings',
77- 'gatherings', 'chess', 'books', 'imageSearch', 'polls', 'query', 'dark-crystal', 'postRank'
77 + 'gatherings', 'chess', 'books', 'imageSearch', 'polls', 'query', 'dark-crystal', 'postRank', 'scry/new'
7878 ]
7979
8080 return pages
8181 .filter(page => ~page.indexOf(word))
package-lock.jsonView
The diff is too large to show. Use a local git client to view these changes.
Old file size: 315116 bytes
New file size: 315117 bytes
package.jsonView
@@ -72,9 +72,9 @@
7272 "patchbay-book": "^1.0.8",
7373 "patchbay-dark-crystal": "^1.0.3",
7474 "patchbay-gatherings": "^2.0.2",
7575 "patchbay-poll": "^1.0.9",
76- "patchbay-scry": "^1.1.1",
76 + "patchbay-scry": "^1.1.2",
7777 "patchcore": "^1.28.1",
7878 "pull-abortable": "^4.1.1",
7979 "pull-next-query": "^1.0.0",
8080 "pull-scroll": "^1.0.9",

Built with git-ssb-web