git ssb

16+

Dominic / patchbay



Commit 4578a96e041f3221e1c76fb18c2a8ea3e4da8060

Merge remote-tracking branch 'origin/updates'

Dominic Tarr committed on 11/28/2016, 11:12:13 PM
Parent: cc06e263225583cc9a1c6958063f600fb97d8968
Parent: 4d24a50832bd54a07cf73adc9707b4adbd33105e

Files changed

modules_basic/message-name.jschanged
modules_basic/thread.jschanged
style.csschanged
modules_basic/message-name.jsView
@@ -1,10 +1,10 @@
11
22 var sbot_get = require('../plugs').first(exports.sbot_get = [])
33
44 function title (s) {
5- var m = /^[^\n]{0,40}/.exec(s)
6- return m && (m[0].length == 40 ? m[0]+'...' : m[0])
5 + var m = /^\n*([^\n]{0,40})/.exec(s)
6 + return m && (m[1].length == 40 ? m[1]+'...' : m[1])
77 }
88
99 exports.message_name = function (id, cb) {
1010 sbot_get(id, function (err, value) {
modules_basic/thread.jsView
@@ -35,8 +35,9 @@
3535 //in this case, it's inconvienent that panel only takes
3636 //a stream. maybe it would be better to accept an array?
3737
3838 sbot_get(root, function (err, value) {
39 + if (err) return cb(err)
3940 var msg = {key: root, value: value}
4041 // if(value.content.root) return getThread(value.content.root, cb)
4142
4243 pull(
@@ -87,8 +88,10 @@
8788 //would probably be better keep an id for each message element
8889 //(i.e. message key) and then update it if necessary.
8990 //also, it may have moved (say, if you received a missing message)
9091 content.innerHTML = ''
92 + if(err) return content.appendChild(h('pre', err.stack))
93 +
9194 //decrypt
9295 thread = thread.map(function (msg) {
9396 return 'string' === typeof msg.value.content ? message_unbox(msg) : msg
9497 })
style.cssView
@@ -1,6 +1,6 @@
11 body {
2- font-family: 'Source Sans Pro', sans-serif;
2 + font-family: sans-serif;
33 }
44
55 h1, h2, h3, h4, h5, h6, p, ul, ol {
66 margin-top: .35em;

Built with git-ssb-web