Commit 6156b3ef7ebddd045ec3648a267175653bd64c01
wip add backlinks and ssb-fulltext
Ev Bogue committed on 5/24/2018, 10:47:48 PMParent: 8778967887283b1aa5eb60fde4c5aad8431fd2e9
Files changed
package-lock.json | changed |
package.json | changed |
render.js | changed |
package-lock.json | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 204637 bytes New file size: 225774 bytes |
package.json | ||
---|---|---|
@@ -35,13 +35,15 @@ | ||
35 | 35 | "rc": "^1.2.7", |
36 | 36 | "scuttlebot": "^11.3.0", |
37 | 37 | "simple-mime": "^0.1.0", |
38 | 38 | "split-buffer": "^1.0.0", |
39 | + "ssb-backlinks": "^0.7.1", | |
39 | 40 | "ssb-blobs": "^1.1.5", |
40 | 41 | "ssb-client": "^4.5.7", |
41 | 42 | "ssb-ebt": "^5.1.5", |
42 | 43 | "ssb-feed": "^2.3.0", |
43 | 44 | "ssb-friends": "^2.4.0", |
45 | + "ssb-fulltext": "^1.0.1", | |
44 | 46 | "ssb-keys": "^7.0.16", |
45 | 47 | "ssb-links": "^3.0.3", |
46 | 48 | "ssb-markdown": "^3.6.0", |
47 | 49 | "ssb-ooo": "^1.0.9", |
render.js | ||
---|---|---|
@@ -15,9 +15,8 @@ | ||
15 | 15 | |
16 | 16 | var message = h('div.message') |
17 | 17 | |
18 | 18 | if (msg.value.content.type == 'post') { |
19 | - | |
20 | 19 | reply.type = 'post' |
21 | 20 | reply.branch = msg.key |
22 | 21 | |
23 | 22 | if (msg.value.content.root) |
@@ -56,11 +55,12 @@ | ||
56 | 55 | edit.original = msg.value.content.original |
57 | 56 | }) |
58 | 57 | ) |
59 | 58 | var buttons = h('div.buttons') |
60 | - | |
61 | 59 | buttons.appendChild(h('button.btn', 'Reply', { |
62 | 60 | onclick: function () { |
61 | + //fallback = message.lastElementChild | |
62 | + //console.log(fallback) | |
63 | 63 | var compose = composer(reply) |
64 | 64 | message.replaceChild(compose, message.lastElementChild) |
65 | 65 | } |
66 | 66 | })) |
Built with git-ssb-web