git ssb

2+

mixmix / ticktack



Commit b9268a67c8b095ed9b76e5d1192a6a88bddb1573

pairing mcss

mix irving committed on 8/9/2017, 11:30:35 PM
Parent: 40eefe3bbbd719d70bc2639977f71a4c5c6b1a63

Files changed

app/page/home.jschanged
app/page/home.mcsschanged
app/page/home.jsView
@@ -33,9 +33,9 @@
3333
3434 function home (location) {
3535 // location here can expected to be: { page: 'home' }
3636
37- var div = h('Home', [])
37+ var container = h('div.container', [])
3838
3939 function subject (msg) {
4040 return firstLine(msg.content.subject || msg.content.text)
4141 }
@@ -49,18 +49,18 @@
4949 if(!thread.value) {
5050
5151 }
5252 if(!thread.value) return
53- return h('ThreadLink', link(thread), [
53+ return h('div.threadLink', link(thread), [
5454 name,
55- h('Subject', [subject(thread.value)]),
56- reply ? h('Reply', [subject(reply.value)]) : null
55+ h('div.subject', [subject(thread.value)]),
56+ reply ? h('div.reply', [subject(reply.value)]) : null
5757 ]
5858 )
5959 }
6060
6161 function threadGroup (threads, obj, toName) {
62- var div = h('Group')
62+ var div = h('div.group')
6363 for(var k in obj) {
6464 var id = obj[k]
6565 var thread = threads.roots[id]
6666 if(threads.roots[id] && threads.roots[id].value) {
@@ -81,34 +81,34 @@
8181 if(isObject(data.value.content)) return data
8282 return api.message.sync.unbox(data)
8383 }).filter(Boolean).reduce(threadReduce, null)
8484
85- div.appendChild(threadGroup(
85+ container.appendChild(threadGroup(
8686 threads,
8787 threads.private,
8888 function (_, msg) {
8989 console.log(msg)
9090 if(!msg.value) debugger
91- return h('Recps',
91+ return h('div.recps',
9292 msg.value.content.recps.map(function (link) {
9393 return api.about.html.image(isString(link) ? link : link.link)
9494 })
9595 )
9696 }
9797 ))
9898
99- div.appendChild(threadGroup(
99+ container.appendChild(threadGroup(
100100 threads,
101101 threads.channels,
102- ch => h('h2.Title', '#'+ch)
102+ ch => h('h2.title', '#'+ch)
103103 ))
104104 })
105105 )
106106
107107 return h('Page -home', [
108108 h('h1', 'Home'),
109109 api.app.html.nav(),
110- div
110+ container
111111 ])
112112 }
113113 }
114114
app/page/home.mcssView
@@ -1,18 +1,17 @@
1-div.Recps {
2- img {
3- $smallAvatar
4- }
5-}
1+Page -home {
2+ h1 {}
63
7-Home {
8- div.Group {
9- div.ThreadLink {
4+ div.container {
5+ div.group {
6+ div.threadLink {
7+ div.recps {
8+ img {
9+ $smallAvatar
10+ }
11+ }
12+ }
1013 }
1114 }
1215 }
1316
1417
15-
16-
17-
18-

Built with git-ssb-web