Commit a94826de6c680aa8ff2457cabe1f34e2a87ba877
rm leftover comments, unwanted deps
mix irving committed on 8/18/2017, 3:39:55 AMParent: 42fa0f194f3553b218e802644d606bec96a8f164
Files changed
app/html/thread.js | changed |
app/page/home.js | changed |
main.js | changed |
package-lock.json | changed |
package.json | changed |
unread.js | changed |
package | added |
app/html/thread.js | ||
---|---|---|
@@ -37,11 +37,8 @@ | ||
37 | 37 | ]) |
38 | 38 | : h('div.other-chunk', [ |
39 | 39 | h('div.avatar', when(author, api.about.html.image(author()))), |
40 | 40 | h('div.msgs', map(chunk, msg => { |
41 | - console.log('markRead', msg.key) | |
42 | -// if(root.replies) | |
43 | -// thread.replies.forEach(api.unread.sync.markRead) | |
44 | 41 | return h('div.msg-row', [ |
45 | 42 | message(msg), |
46 | 43 | h('div.spacer') |
47 | 44 | ]) |
app/page/home.js | ||
---|---|---|
@@ -105,22 +105,16 @@ | ||
105 | 105 | ;(thread.replies || []).forEach(function (msg) { |
106 | 106 | if(api.unread.sync.isUnread(msg)) unread ++ |
107 | 107 | }) |
108 | 108 | thread.unread = unread |
109 | -// console.log('unread', thread.unread, +!!thread.unread) | |
110 | 109 | return thread |
111 | 110 | }) |
112 | 111 | .sort(function (a, b) { |
113 | 112 | return ( |
114 | - //((!!b.unread) - (!!a.unread)) || | |
115 | 113 | (latestUpdate(b) - latestUpdate(a)) |
116 | 114 | ) |
117 | 115 | }) |
118 | 116 | |
119 | -// console.log(groupedThreads.map(function (thread) { | |
120 | -// return {ch: thread.value.content.channel, unread: thread.unread, thread: thread} | |
121 | -// })) | |
122 | -// | |
123 | 117 | morphdom(container, |
124 | 118 | // LEGACY: some of these containers could be removed |
125 | 119 | // but they are here to be compatible with the old MCSS. |
126 | 120 | h('div.container', [ |
main.js | ||
---|---|---|
@@ -23,9 +23,8 @@ | ||
23 | 23 | router: require('./router'), |
24 | 24 | styles: require('./styles'), |
25 | 25 | state: require('./state/obs'), |
26 | 26 | }, |
27 | -// require('patch-history'), | |
28 | 27 | require('patchcore') |
29 | 28 | ) |
30 | 29 | |
31 | 30 | const api = entry(sockets, nest('app.html.app', 'first')) |
package-lock.json | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 192040 bytes New file size: 191639 bytes |
package.json | ||
---|---|---|
@@ -24,17 +24,15 @@ | ||
24 | 24 | "electron-window-state": "^4.1.1", |
25 | 25 | "hyper-nav": "^2.0.0", |
26 | 26 | "hypermore": "^2.0.0", |
27 | 27 | "insert-css": "^2.0.0", |
28 | - "jsbloom": "^1.0.3", | |
29 | 28 | "libnested": "^1.2.1", |
30 | 29 | "lodash": "^4.17.4", |
31 | 30 | "micro-css": "^2.0.1", |
32 | 31 | "morphdom": "^2.3.3", |
33 | 32 | "mutant": "^3.21.2", |
34 | 33 | "obv-debounce": "^1.0.2", |
35 | 34 | "open-external": "^0.1.1", |
36 | - "patch-history": "^1.0.0", | |
37 | 35 | "patchcore": "^1.9.1", |
38 | 36 | "pull-next": "^1.0.1", |
39 | 37 | "pull-obv": "^1.3.0", |
40 | 38 | "pull-stream": "^3.6.0", |
unread.js | ||
---|---|---|
@@ -1,6 +1,5 @@ | ||
1 | 1 | var nest = require('depnest') |
2 | -//var BloomFilter = require('jsbloom').filter | |
3 | 2 | |
4 | 3 | exports.gives = nest({ |
5 | 4 | 'unread.sync.isUnread': true, |
6 | 5 | 'unread.sync.markRead': true, |
package |
---|
Built with git-ssb-web