git ssb

2+

mixmix / ticktack



Commit 8d0dede6d93986e51f675d18df1b6af169751d34

style fixes

andre alves garzia committed on 5/1/2018, 12:25:44 AM
Parent: 932b0cb6e9a66f9391fcabd909a1b0becb5809f9

Files changed

message/html/likes.jschanged
message/html/webshares.jschanged
message/html/webshares.mcsschanged
message/html/likes.jsView
@@ -9,9 +9,9 @@
99
1010 exports.gives = nest('message.html.likes')
1111
1212 exports.create = (api) => {
13- return nest('message.html.likes', function likes (msg) {
13+ return nest('message.html.likes', function likes(msg) {
1414 var id = api.keys.sync.id()
1515 var likes = api.message.obs.likes(msg.key)
1616
1717 var iLike = computed(likes, likes => likes.includes(id))
@@ -22,18 +22,18 @@
2222 h('div.count', count)
2323 ])
2424 })
2525
26- function publishLike (msg, status = true) {
26+ function publishLike(msg, status = true) {
2727 var like = status ? {
2828 type: 'vote',
2929 channel: msg.value.content.channel,
3030 vote: { link: msg.key, value: 1, expression: 'Like' }
3131 } : {
32- type: 'vote',
33- channel: msg.value.content.channel,
34- vote: { link: msg.key, value: 0, expression: 'Unlike' }
35- }
32+ type: 'vote',
33+ channel: msg.value.content.channel,
34+ vote: { link: msg.key, value: 0, expression: 'Unlike' }
35+ }
3636 if (msg.value.content.recps) {
3737 like.recps = msg.value.content.recps.map(function (e) {
3838 return e && typeof e !== 'string' ? e.link : e
3939 })
message/html/webshares.jsView
@@ -40,9 +40,9 @@
4040 var lb = api.app.html.lightbox(confirmationDialog, isOpen)
4141
4242
4343 return h('WebShares', { 'ev-click': () => isOpen.set(true) }, [
44- h('i.fa', { className: when(iShared, 'fa-globe', 'fa-globe faint') }),
44+ h('i.fa.fa-share-alt', { className: when(iShared, '', 'faint') }),
4545 h('div.count', count),
4646 lb
4747 ])
4848 })
message/html/webshares.mcssView
@@ -7,9 +7,9 @@
77
88 i {
99 margin-right: .4rem
1010 }
11- i.fa-globe {
11+ i.fa-share-alt {
1212 $colorFontPrimary
1313 }
1414
1515 i.faint {

Built with git-ssb-web