Commit c0a883625eb62b7bdc71dd9ef7b1fdac62f4278b
Fix ordering of quote
Anders Rune Jensen committed on 4/15/2018, 7:44:30 PMParent: a9cc9aea4520bfc78aaef9eb1a019aaedaebdebe
Files changed
main.js | changed |
message/html/action/quote.js | deleted |
post-patchcore/message/html/action/quote.js | added |
main.js | |||
---|---|---|---|
@@ -26,8 +26,14 @@ | |||
26 | 26 … | history: require('patch-history') | |
27 | 27 … | } | |
28 | 28 … | } | |
29 | 29 … | ||
30 … | +const post = { | ||
31 … | + patchbay: { | ||
32 … | + message: bulk(__dirname, [ 'post-patchcore/message/**/*.js' ]) | ||
33 … | + } | ||
34 … | +} | ||
35 … | + | ||
30 | 36 … | // from more specialized to more general | |
31 | 37 … | const sockets = combine( | |
32 | 38 … | // require('ssb-horcrux'), | |
33 | 39 … | // require('patch-hub'), | |
@@ -36,9 +42,10 @@ | |||
36 | 42 … | require('patchbay-gatherings'), | |
37 | 43 … | require('patchbay-book'), | |
38 | 44 … | // require('patch-network), | |
39 | 45 … | patchbay, | |
40 | - require('patchcore') | ||
46 … | + require('patchcore'), | ||
47 … | + post | ||
41 | 48 … | ) | |
42 | 49 … | ||
43 | 50 … | const api = entry(sockets, nest('app.html.app', 'first')) | |
44 | 51 … | const app = api.app.html.app |
message/html/action/quote.js | ||
---|---|---|
@@ -1,17 +1,0 @@ | ||
1 | -var h = require('mutant/h') | |
2 | -var nest = require('depnest') | |
3 | - | |
4 | -exports.needs = nest({ | |
5 | - 'app.sync.goTo': 'first' | |
6 | -}) | |
7 | - | |
8 | -exports.gives = nest('message.html.action') | |
9 | - | |
10 | -exports.create = (api) => { | |
11 | - return nest('message.html.action', function reply (msg) { | |
12 | - return h('a', { | |
13 | - href: '#', | |
14 | - 'ev-click': () => api.app.sync.goTo({ action: 'quote', key: msg.key, value: msg.value }) | |
15 | - }, 'Quote') | |
16 | - }) | |
17 | -} |
post-patchcore/message/html/action/quote.js | ||
---|---|---|
@@ -1,0 +1,17 @@ | ||
1 … | +var h = require('mutant/h') | |
2 … | +var nest = require('depnest') | |
3 … | + | |
4 … | +exports.needs = nest({ | |
5 … | + 'app.sync.goTo': 'first' | |
6 … | +}) | |
7 … | + | |
8 … | +exports.gives = nest('message.html.action') | |
9 … | + | |
10 … | +exports.create = (api) => { | |
11 … | + return nest('message.html.action', function quote (msg) { | |
12 … | + return h('a', { | |
13 … | + href: '#', | |
14 … | + 'ev-click': () => api.app.sync.goTo({ action: 'quote', key: msg.key, value: msg.value }) | |
15 … | + }, 'Quote') | |
16 … | + }) | |
17 … | +} |
Built with git-ssb-web