git ssb

0+

ev / microbay



forked from Dominic / patchbay

Commit 40f1f8902cd7e4caa2b1b3e52113ba0c68122007

Merge branch 'master' of https://github.com/evbogue/patchbay

Dominic Tarr committed on 7/20/2016, 7:51:15 AM
Parent: a919f2bd7e418328cfafb3bfa17695b53decb589
Parent: 890435b264f902c0b56c9dd63ab300d7b56a8644

Files changed

modules/like.jschanged
modules/message.jschanged
style.csschanged
modules/like.jsView
@@ -12,46 +12,46 @@
1212 exports.message_content = function (msg, sbot) {
1313 if(msg.value.content.type !== 'vote') return
1414 var link = msg.value.content.vote.link
1515 return h('div',
16- msg.value.content.vote.value > 0 ? 'yup' : 'nah',
16+ msg.value.content.vote.value > 0 ? 'Dug' : 'Undug',
1717 ' ', message_link(link)
1818 )
1919 }
2020
2121 exports.message_meta = function (msg, sbot) {
2222
23- var yupps = h('a')
23+ var digs = h('a')
2424
2525 pull(
2626 sbot_links({dest: msg.key, rel: 'vote'}),
2727 pull.collect(function (err, votes) {
2828 if(votes.length === 1)
29- yupps.textContent = ' 1 yup'
30- if(votes.length)
31- yupps.textContent = ' ' + votes.length + ' yupps'
29+ digs.textContent = ' 1 Dig'
30+ if(votes.length > 1)
31+ digs.textContent = ' ' + votes.length + ' Digs'
3232 })
3333 )
3434
35- return yupps
35+ return digs
3636 }
3737
3838 exports.message_action = function (msg, sbot) {
3939 if(msg.value.content.type !== 'vote')
4040 return h('a', {href: '#', onclick: function () {
41- var yup = {
41+ var dig = {
4242 type: 'vote',
43- vote: { link: msg.key, value: 1, expression: 'yup' }
43+ vote: { link: msg.key, value: 1, expression: 'Dig' }
4444 }
4545 if(msg.value.content.recps) {
46- yup.recps = msg.value.content.recps.map(function (e) {
46+ dig.recps = msg.value.content.recps.map(function (e) {
4747 return e && typeof e !== 'string' ? e.link : e
4848 })
49- yup.private = true
49+ dig.private = true
5050 }
5151 //TODO: actually publish...
5252
53- message_confirm(yup)
54- }}, 'yup')
53+ message_confirm(dig)
54+ }}, 'Dig')
5555
5656 }
5757
modules/message.jsView
@@ -37,9 +37,11 @@
3737 h('div.message_meta.row', message_meta(msg))
3838 ),
3939 h('div.message_content', el),
4040 h('div.message_actions.row',
41- h('div.actions', message_action(msg))
41+ h('div.actions', message_action(msg), ' ',
42+ h('a', {href: '#' + msg.key}, 'Reply')
43+ )
4244 ),
4345 backlinks,
4446 {onkeydown: function (ev) {
4547 //on enter, hit first meta.
style.cssView
@@ -108,13 +108,13 @@
108108
109109 input {
110110 margin-left: 3px;
111111 margin-right: 3px;
112- border: 1px solid #ccc;
112+ border: 1px solid #eee;
113113 }
114114
115115 textarea {
116- border: 1px solid #ccc;
116+ border: 1px solid #eee;
117117 }
118118
119119 /* compose */
120120
@@ -124,11 +124,11 @@
124124
125125 /* messages */
126126
127127 .message {
128- border: 1px solid #ccc;
128+ border: 1px solid #eee;
129129 padding: 5px;
130- margin-top: 1em;
130+ margin-top: .5em;
131131 background: white;
132132 display: block;
133133 flex-basis: 0;
134134 max-width: 100%;
@@ -149,15 +149,19 @@
149149 }
150150 .message_meta > * {
151151 margin-left: 5px;
152152 }
153+.message_actions {
154+ float: right;
155+}
156+
153157 .message > .title > .avatar {
154158 margin-left: 0;
155159 }
156160
157161 .message_content {
158162 margin-top: 5px;
159- border-top: 1px solid #ccc;
163+ border-top: 1px solid #eee;
160164 padding-top: 3px;
161165 }
162166
163167 /* -- suggest box */
@@ -202,9 +206,9 @@
202206 }
203207
204208 .profile {
205209 background: #fff;
206- border: 1px solid #ccc;
210+ border: 1px solid #eee;
207211 }
208212
209213 .profile img {
210214 width: 150px;
@@ -217,12 +221,22 @@
217221 /* lightbox - used in message-confirm */
218222
219223 .lightbox {
220224 overflow: auto;
221- width: 80%;
222- border: 1px solid #ccc; // this is being overwritten in hyperlightbox module
225+ background: #fff;
226+ width: 600px;
227+ border: 1px solid #eee;
228+ top: 2em;
229+ bottom: 2em;
230+ left: 2em;
231+ right: 2em;
232+ padding: 1em;
223233 }
224234
235+.message-confirm {
236+ background: #fff;
237+}
238+
225239 /* searchprompt */
226240
227241 .searchprompt {
228242 width: 250px;

Built with git-ssb-web