git ssb

16+

Dominic / patchbay



Commit c0a883625eb62b7bdc71dd9ef7b1fdac62f4278b

Fix ordering of quote

Anders Rune Jensen committed on 4/15/2018, 7:44:30 PM
Parent: a9cc9aea4520bfc78aaef9eb1a019aaedaebdebe

Files changed

main.jschanged
message/html/action/quote.jsdeleted
post-patchcore/message/html/action/quote.jsadded
main.jsView
@@ -26,8 +26,14 @@
2626 history: require('patch-history')
2727 }
2828 }
2929
30 +const post = {
31 + patchbay: {
32 + message: bulk(__dirname, [ 'post-patchcore/message/**/*.js' ])
33 + }
34 +}
35 +
3036 // from more specialized to more general
3137 const sockets = combine(
3238 // require('ssb-horcrux'),
3339 // require('patch-hub'),
@@ -36,9 +42,10 @@
3642 require('patchbay-gatherings'),
3743 require('patchbay-book'),
3844 // require('patch-network),
3945 patchbay,
40- require('patchcore')
46 + require('patchcore'),
47 + post
4148 )
4249
4350 const api = entry(sockets, nest('app.html.app', 'first'))
4451 const app = api.app.html.app
message/html/action/quote.jsView
@@ -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.jsView
@@ -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