git ssb

16+

Dominic / patchbay



Commit 7cc639e681c95348f2c8d6c526f1ee2aa40a5c4e

update patchcore, fix cryptixs like bug

mix irving committed on 4/5/2017, 10:15:05 PM
Parent: fa10ca34011578ba930c05f7c0cfb3fd1c465999

Files changed

message/html/confirm.jschanged
message/html/confirm.mcsschanged
message/html/layout/default.jschanged
package.jsonchanged
message/html/confirm.jsView
@@ -50,9 +50,9 @@
5050 }},
5151 'cancel'
5252 )
5353
54- okay.addEventListener('keydown', function (ev) {
54+ okay.addEventListener('keydown', (ev) => {
5555 if (ev.keyCode === 27) cancel.click() // escape
5656 })
5757
5858 lb.show(h('MessageConfirm', [
message/html/confirm.mcssView
@@ -13,16 +13,14 @@
1313 header.author {
1414 div {
1515 section {
1616 -timestamp {
17- display: none
1817 }
1918 }
2019 }
2120 }
2221
2322 section.actions {
24- visibility: hidden
2523 }
2624 }
2725 }
2826
message/html/layout/default.jsView
@@ -1,6 +1,7 @@
1-var nest = require('depnest')
1+const nest = require('depnest')
22 const { h, Value } = require('mutant')
3+const { isMsg } = require('ssb-ref')
34
45 exports.needs = nest({
56 'message.html': {
67 backlinks: 'first',
@@ -19,24 +20,27 @@
1920
2021 function messageLayout (msg, opts) {
2122 if (!(opts.layout === undefined || opts.layout === 'default')) return
2223
24+ var { author, timestamp, meta, action, backlinks } = api.message.html
25+ if (!isMsg(msg)) action = () => {}
26+
2327 var rawMessage = Value(null)
2428
2529 return h('Message', {
2630 attributes: {
2731 tabindex: '0' // needed to be able to navigate and show focus()
2832 }
2933 }, [
3034 h('section.avatar', {}, api.about.html.image(msg.value.author)),
31- h('section.timestamp', {}, api.message.html.timestamp(msg)),
32- h('header.author', {}, api.message.html.author(msg)),
33- h('section.meta', {}, api.message.html.meta(msg, { rawMessage })),
35+ h('section.timestamp', {}, timestamp(msg)),
36+ h('header.author', {}, author(msg)),
37+ h('section.meta', {}, meta(msg, { rawMessage })),
3438 h('section.title', {}, opts.title),
3539 h('section.content', {}, opts.content),
3640 h('section.raw-content', rawMessage),
37- h('section.actions', {}, api.message.html.action(msg)),
38- h('footer.backlinks', {}, api.message.html.backlinks(msg))
41+ h('section.actions', {}, action(msg)),
42+ h('footer.backlinks', {}, backlinks(msg))
3943 ])
4044 }
4145 }
4246
package.jsonView
@@ -34,9 +34,9 @@
3434 "micro-css": "^1.0.0",
3535 "mutant": "^3.16.0",
3636 "mutant-pull-reduce": "^1.0.1",
3737 "open-external": "^0.1.1",
38- "patchcore": "^0.4.5",
38+ "patchcore": "^0.4.8",
3939 "pull-cat": "^1.1.11",
4040 "pull-next": "0.0.2",
4141 "pull-scroll": "^1.0.3",
4242 "pull-stream": "^3.5.0",

Built with git-ssb-web