git ssb

16+

Dominic / patchbay



Commit abc121a76b7427cb820cb00ba8b51b52942893c1

Run `npm run lint -- --fix`

Christian Bundy committed on 8/10/2018, 9:15:43 PM
Parent: 90c073d5e2077bab04f08e719f6cf7b9f4256cd8

Files changed

app/html/app.jschanged
app/html/external-confirm.jschanged
app/html/scroller.jschanged
app/html/search-bar.jschanged
app/html/settings/custom-styles.jschanged
app/html/settings/default-tabs.jschanged
app/html/settings/remove-exif.jschanged
app/page/blogs.jschanged
app/page/calendar.jschanged
app/page/posts.jschanged
app/page/private.jschanged
app/page/search.jschanged
app/sync/catch-keyboard-shortcut.jschanged
app/sync/initialise/electronState.jschanged
app/sync/initialise/errorCatcher.jschanged
app/sync/initialise/styles.jschanged
app/sync/initialise/userActionListeners.jschanged
contact/html/relationships.jschanged
index.jschanged
message/html/compose.jschanged
message/html/confirm.jschanged
message/html/render/blog.jschanged
post-patchcore/message/html/action/quote.jschanged
app/html/app.jsView
@@ -32,5 +32,4 @@
3232
3333 return App
3434 }
3535 }
36-
app/html/external-confirm.jsView
@@ -16,16 +16,16 @@
1616 'ev-click': () => {
1717 lb.remove()
1818 open(href)
1919 }},
20- 'open'
20 + 'open'
2121 )
2222
2323 var cancel = h('button.cancel.-subtle', {
2424 'ev-click': () => {
2525 lb.remove()
2626 }},
27- 'cancel'
27 + 'cancel'
2828 )
2929
3030 okay.addEventListener('keydown', function (ev) {
3131 if (ev.keyCode === 27) cancel.click() // escape
app/html/scroller.jsView
@@ -48,10 +48,10 @@
4848
4949 return function scroll (d) {
5050 selectChild((!curMsgEl || d === 'first') ? content.firstChild
5151 : d < 0 ? curMsgEl.previousElementSibling || content.firstChild
52- : d > 0 ? curMsgEl.nextElementSibling || content.lastChild
53- : curMsgEl)
52 + : d > 0 ? curMsgEl.nextElementSibling || content.lastChild
53 + : curMsgEl)
5454
5555 return curMsgEl
5656 }
5757
app/html/search-bar.jsView
@@ -43,9 +43,9 @@
4343 }
4444 })
4545
4646 input.addEventListener('suggestselect', ev => {
47- input.value = ev.detail.id // HACK : this over-rides the markdown value
47 + input.value = ev.detail.id // HACK : this over-rides the markdown value
4848 goToLocation(input.value.trim(), ev)
4949 })
5050
5151 _search = h('SearchBar', input)
app/html/settings/custom-styles.jsView
@@ -37,5 +37,4 @@
3737 })
3838 }
3939 }
4040 }
41-
app/html/settings/default-tabs.jsView
@@ -37,5 +37,4 @@
3737 ])
3838 }
3939 }
4040 }
41-
app/html/settings/remove-exif.jsView
@@ -31,10 +31,9 @@
3131 type: 'checkbox',
3232 checked: removeExif,
3333 'ev-change': toggleRemoveExif
3434 })
35- ])
35 + ])
3636 ])
3737 }
3838 }
3939 }
40-
app/page/blogs.jsView
@@ -75,10 +75,10 @@
7575
7676 return function scroll (d) {
7777 selectChild((!curMsgEl || d === 'first') ? content.firstChild
7878 : d < 0 ? curMsgEl.previousElementSibling || content.firstChild
79- : d > 0 ? curMsgEl.nextElementSibling || content.lastChild
80- : curMsgEl)
79 + : d > 0 ? curMsgEl.nextElementSibling || content.lastChild
80 + : curMsgEl)
8181
8282 return curMsgEl
8383 }
8484
app/page/calendar.jsView
@@ -72,22 +72,22 @@
7272 range.gte.set(new Date(gte.getFullYear(), gte.getMonth(), gte.getDate() + i))
7373 range.lt.set(new Date(lt.getFullYear(), lt.getMonth(), lt.getDate() + i))
7474
7575 function isMonthInterval (gte, lt) {
76- return gte.getDate() === 1 && // 1st of month
77- lt.getDate() === 1 && // to the 1st of the month
76 + return gte.getDate() === 1 && // 1st of month
77 + lt.getDate() === 1 && // to the 1st of the month
7878 gte.getMonth() + 1 === lt.getMonth() && // one month gap
7979 gte.getFullYear() === lt.getFullYear()
8080 }
8181
8282 function isWeekInterval (gte, lt) {
8383 console.log(
8484 new Date(gte.getFullYear(), gte.getMonth(), gte.getDate() + 7).toISOString() === lt.toISOString(),
8585 new Date(gte.getFullYear(), gte.getMonth(), gte.getDate() + 7).toISOString(),
86- lt.toISOString(),
86 + lt.toISOString()
8787 )
8888 return gte.getDay() === 1 && // from monday
89- lt.getDay() === 1 && // to just inside monday
89 + lt.getDay() === 1 && // to just inside monday
9090 new Date(gte.getFullYear(), gte.getMonth(), gte.getDate() + 7).toISOString() === lt.toISOString()
9191 }
9292 }
9393
app/page/posts.jsView
@@ -407,10 +407,10 @@
407407
408408 return function scroll (d) {
409409 selectChild((!curMsgEl || d === 'first') ? content.firstChild
410410 : d < 0 ? curMsgEl.previousElementSibling || content.firstChild
411- : d > 0 ? curMsgEl.nextElementSibling || content.lastChild
412- : curMsgEl)
411 + : d > 0 ? curMsgEl.nextElementSibling || content.lastChild
412 + : curMsgEl)
413413
414414 return curMsgEl
415415 }
416416
app/page/private.jsView
@@ -90,5 +90,4 @@
9090
9191 return next(api.feed.pull.private, _opts, ['timestamp'])
9292 }
9393 }
94-
app/page/search.jsView
@@ -75,5 +75,4 @@
7575 searcher.query = query
7676 searcher.highlight()
7777 return el
7878 }
79-
app/sync/catch-keyboard-shortcut.jsView
@@ -4,9 +4,9 @@
44
55 exports.needs = nest({
66 'app.html.searchBar': 'first',
77 'app.html.tabs': 'first',
8- 'app.sync.goTo': 'first',
8 + 'app.sync.goTo': 'first'
99 })
1010
1111 var gPressed = false
1212
@@ -34,9 +34,9 @@
3434 function textFieldShortcuts (ev) {
3535 switch (ev.keyCode) {
3636 case 13: // ctrl+enter
3737 if (ev.ctrlKey) {
38- ev.target.publish() // expects the textField to have a publish method
38 + ev.target.publish() // expects the textField to have a publish method
3939 }
4040 return
4141 case 27: // esc
4242 return ev.target.blur()
app/sync/initialise/electronState.jsView
@@ -4,9 +4,9 @@
44 exports.gives = nest('app.sync.initialise')
55
66 exports.needs = nest({
77 'settings.sync.get': 'first',
8- 'settings.sync.set': 'first',
8 + 'settings.sync.set': 'first'
99 })
1010
1111 exports.create = function (api) {
1212 return nest('app.sync.initialise', errorCatcher)
@@ -33,6 +33,4 @@
3333 if (bounds) { getCurrentWindow().setBounds(bounds) }
3434 /// ///
3535 }
3636 }
37-
38-
app/sync/initialise/errorCatcher.jsView
@@ -20,5 +20,4 @@
2020 addError(ev.error || ev)
2121 })
2222 }
2323 }
24-
app/sync/initialise/styles.jsView
@@ -31,5 +31,4 @@
3131 function values (object) {
3232 const keys = Object.keys(object)
3333 return keys.map(k => object[k])
3434 }
35-
app/sync/initialise/userActionListeners.jsView
@@ -30,5 +30,4 @@
3030 tabs.closeCurrentTab()
3131 })
3232 }
3333 }
34-
contact/html/relationships.jsView
@@ -43,10 +43,10 @@
4343
4444 var relationshipStatus = computed([IFollowThem, theyFollowMe], (IFollowThem, theyFollowMe) => {
4545 return IFollowThem && theyFollowMe ? '- you are friends'
4646 : IFollowThem ? '- you follow them'
47- : theyFollowMe ? '- they follow you'
48- : ''
47 + : theyFollowMe ? '- they follow you'
48 + : ''
4949 })
5050
5151 function imageLink (id) {
5252 return h('a',
index.jsView
@@ -30,23 +30,23 @@
3030 { type: 'separator' },
3131 {
3232 label: 'Close Tab',
3333 accelerator: 'CmdOrCtrl+W',
34- click() {
34 + click () {
3535 windows.main.webContents.send('closeTab')
3636 }
3737 },
3838 {
3939 label: 'Select Next Tab',
4040 accelerator: 'CmdOrCtrl+Shift+]',
41- click() {
41 + click () {
4242 windows.main.webContents.send('nextTab')
4343 }
4444 },
4545 {
4646 label: 'Select Previous Tab',
4747 accelerator: 'CmdOrCtrl+Shift+[',
48- click() {
48 + click () {
4949 windows.main.webContents.send('previousTab')
5050 }
5151 },
5252 { type: 'separator' },
message/html/compose.jsView
@@ -168,9 +168,9 @@
168168 api.channel.async.suggest(inputText.slice(1), cb)
169169 }
170170 }, {cls: 'PatchSuggest'})
171171 channelInput.addEventListener('suggestselect', ev => {
172- channelInput.value = ev.detail.id // HACK : this over-rides the markdown value
172 + channelInput.value = ev.detail.id // HACK : this over-rides the markdown value
173173 })
174174
175175 addSuggest(textArea, (inputText, cb) => {
176176 const char = inputText[0]
message/html/confirm.jsView
@@ -39,17 +39,17 @@
3939 'ev-click': () => {
4040 lb.remove()
4141 api.message.async.publish(content, cb)
4242 }},
43- 'okay'
43 + 'okay'
4444 )
4545
4646 var cancel = h('button.cancel.-subtle', {
4747 'ev-click': () => {
4848 lb.remove()
4949 cb(null)
5050 }},
51- 'cancel'
51 + 'cancel'
5252 )
5353
5454 okay.addEventListener('keydown', (ev) => {
5555 if (ev.keyCode === 27) cancel.click() // escape
message/html/render/blog.jsView
@@ -11,9 +11,9 @@
1111 'blob.sync.url': 'first',
1212 'message.html.decorate': 'reduce',
1313 'message.html.layout': 'first',
1414 'message.html.markdown': 'first',
15- 'sbot.obs.connection': 'first',
15 + 'sbot.obs.connection': 'first'
1616 // 'history.sync.push': 'first',
1717 })
1818
1919 exports.create = function (api) {
@@ -39,15 +39,14 @@
3939 layout: 'default'
4040 }, opts))
4141
4242 return api.message.html.decorate(element, { msg })
43-
4443 }
4544 }
4645
4746 function BlogFull (blog, renderMd) {
4847 return computed(blog.body, body => {
49- if (!isEmpty(body)) {
48 + if (!isEmpty(body)) {
5049 return h('BlogFull.Markdown', [
5150 h('h1', blog.title),
5251 renderMd(body)
5352 ])
@@ -69,9 +68,9 @@
6968 'background-position': 'center',
7069 'background-size': 'cover'
7170 }
7271 }),
73- h('Thumbnail -empty', {
72 + h('Thumbnail -empty', {
7473 style: { 'background-color': color(blog.title) }
7574 }, [
7675 h('i.fa.fa-file-text-o')
7776 ])
@@ -95,5 +94,4 @@
9594 ])
9695
9796 return b
9897 }
99-
post-patchcore/message/html/action/quote.jsView
@@ -9,9 +9,9 @@
99
1010 exports.create = (api) => {
1111 return nest('message.html.action', function quote (msg) {
1212 return h('a', {
13- href: '#',
13 + href: '#',
1414 'ev-click': () => api.app.sync.goTo({ action: 'quote', key: msg.key, value: msg.value })
15- }, 'Quote')
15 + }, 'Quote')
1616 })
1717 }

Built with git-ssb-web