git ssb

0+

ev / microbay



forked from Dominic / patchbay

Commit 5ed0ef75a42972670b29aada99be810a8bde7b80

Merge branch 'master' of ssb://%s9mSFATE4RGyJx9wgH22lBrvD4CgUQW4yeguSWWjtqc=.sha256 into styles

Ev Bogue committed on 9/12/2016, 4:11:49 PM
Parent: 35987c36856c834b19bef0d4375537ef0aa487f3
Parent: 18587bcb2aa7e5dd708e8a2dfef6e56ef56ca83e

Files changed

index.jschanged
modules/search-box.jschanged
modules/tabs.jschanged
package.jsonchanged
index.jsView
@@ -1,7 +1,7 @@
11 var h = require('hyperscript')
22
3-window.addEventListener('error', function onError(e) {
3 +window.addEventListener('error', window.onError = function (e) {
44 document.body.appendChild(h('div.error',
55 h('h1', e.message),
66 h('big', h('code', e.filename + ':' + e.lineno)),
77 h('pre', e.error ? (e.error.stack || e.error.toString()) : e.toString())))
modules/search-box.jsView
@@ -8,8 +8,17 @@
88 var channels = []
99
1010 var signified = require('../plugs').first(exports.signified = [])
1111
12 +var builtinTabs = [
13 + '/public', '/private', '/notifications',
14 + '/network', '/query', '/theme', '/versions'
15 +].map(function (name) {
16 + return {
17 + title: name,
18 + value: name,
19 + }
20 +})
1221
1322 exports.search_box = function (go) {
1423
1524 var suggestBox
@@ -71,8 +80,12 @@
7180 subtitle: e.rank
7281 }
7382 }))
7483 })
84 + } else if(/^\//.test(word)) {
85 + cb(null, builtinTabs.filter(function (name) {
86 + return name.value.substr(0, word.length) === word
87 + }))
7588 }
7689 }, {})
7790 }, 10)
7891
modules/tabs.jsView
@@ -160,8 +160,15 @@
160160 errorsContent
161161 )
162162 )
163163
164 + // remove loader error handler
165 + if (window.onError) {
166 + window.removeEventListener('error', window.onError)
167 + delete window.onError
168 + }
169 +
170 + // put errors in a tab
164171 window.addEventListener('error', function (ev) {
165172 var err = ev.error || ev
166173 if(!tabs.has('errors'))
167174 tabs.add('errors', errors, false)
package.jsonView
@@ -1,8 +1,8 @@
11 {
22 "name": "patchbay",
33 "description": "a pluggable patchwork",
4- "version": "3.0.1",
4 + "version": "3.1.0",
55 "homepage": "https://github.com/dominictarr/patchbay",
66 "repository": {
77 "type": "git",
88 "url": "git://github.com/dominictarr/patchbay.git"

Built with git-ssb-web