git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit e53edca084bc70ef3f036ee0684009ae71da41df

disable message.html.render fallback

Matt McKegg committed on 2/17/2017, 1:14:26 PM
Parent: 004f2ddc8ef2642ade2793f2479573826aaae30b

Files changed

main-window.jschanged
overrides/index.jsadded
overrides/patchcore/message/html/render/zzz-fallback.jsadded
main-window.jsView
@@ -16,10 +16,12 @@
1616 var sockets = combine(
1717 overrideConfig(config),
1818 require('./modules'),
1919 require('./plugs'),
20- require('patchcore')
20+ require('patchcore'),
21+ require('./overrides')
2122 )
23+
2224 var api = entry(sockets, nest({
2325 'page.html.render': 'first',
2426 'keys.sync.id': 'first'
2527 }))
overrides/index.jsView
@@ -1,0 +1,1 @@
1+module.exports = require('bulk-require')(__dirname, ['**/!(index).js'])
overrides/patchcore/message/html/render/zzz-fallback.jsView
@@ -1,0 +1,17 @@
1+var h = require('mutant/h')
2+var nest = require('depnest')
3+var extend = require('xtend')
4+
5+exports.needs = nest({
6+ 'message.html': {
7+ decorate: 'reduce',
8+ layout: 'first'
9+ }
10+})
11+
12+exports.gives = nest('message.html.render')
13+
14+exports.create = function (api) {
15+ // no fallback
16+ return nest('message.html.render', () => null)
17+}

Built with git-ssb-web