git ssb

2+

mixmix / ticktack



Commit a94826de6c680aa8ff2457cabe1f34e2a87ba877

rm leftover comments, unwanted deps

mix irving committed on 8/18/2017, 3:39:55 AM
Parent: 42fa0f194f3553b218e802644d606bec96a8f164

Files changed

app/html/thread.jschanged
app/page/home.jschanged
main.jschanged
package-lock.jsonchanged
package.jsonchanged
unread.jschanged
packageadded
app/html/thread.jsView
@@ -37,11 +37,8 @@
3737 ])
3838 : h('div.other-chunk', [
3939 h('div.avatar', when(author, api.about.html.image(author()))),
4040 h('div.msgs', map(chunk, msg => {
41- console.log('markRead', msg.key)
42-// if(root.replies)
43-// thread.replies.forEach(api.unread.sync.markRead)
4441 return h('div.msg-row', [
4542 message(msg),
4643 h('div.spacer')
4744 ])
app/page/home.jsView
@@ -105,22 +105,16 @@
105105 ;(thread.replies || []).forEach(function (msg) {
106106 if(api.unread.sync.isUnread(msg)) unread ++
107107 })
108108 thread.unread = unread
109-// console.log('unread', thread.unread, +!!thread.unread)
110109 return thread
111110 })
112111 .sort(function (a, b) {
113112 return (
114- //((!!b.unread) - (!!a.unread)) ||
115113 (latestUpdate(b) - latestUpdate(a))
116114 )
117115 })
118116
119-// console.log(groupedThreads.map(function (thread) {
120-// return {ch: thread.value.content.channel, unread: thread.unread, thread: thread}
121-// }))
122-//
123117 morphdom(container,
124118 // LEGACY: some of these containers could be removed
125119 // but they are here to be compatible with the old MCSS.
126120 h('div.container', [
main.jsView
@@ -23,9 +23,8 @@
2323 router: require('./router'),
2424 styles: require('./styles'),
2525 state: require('./state/obs'),
2626 },
27-// require('patch-history'),
2827 require('patchcore')
2928 )
3029
3130 const api = entry(sockets, nest('app.html.app', 'first'))
package-lock.jsonView
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.jsonView
@@ -24,17 +24,15 @@
2424 "electron-window-state": "^4.1.1",
2525 "hyper-nav": "^2.0.0",
2626 "hypermore": "^2.0.0",
2727 "insert-css": "^2.0.0",
28- "jsbloom": "^1.0.3",
2928 "libnested": "^1.2.1",
3029 "lodash": "^4.17.4",
3130 "micro-css": "^2.0.1",
3231 "morphdom": "^2.3.3",
3332 "mutant": "^3.21.2",
3433 "obv-debounce": "^1.0.2",
3534 "open-external": "^0.1.1",
36- "patch-history": "^1.0.0",
3735 "patchcore": "^1.9.1",
3836 "pull-next": "^1.0.1",
3937 "pull-obv": "^1.3.0",
4038 "pull-stream": "^3.6.0",
unread.jsView
@@ -1,6 +1,5 @@
11 var nest = require('depnest')
2-//var BloomFilter = require('jsbloom').filter
32
43 exports.gives = nest({
54 'unread.sync.isUnread': true,
65 'unread.sync.markRead': true,
packageView

Built with git-ssb-web