git ssb

10+

Matt McKegg / patchwork



Commit b6ad2e7692f72c980a5ef0564f60b049333a9e1e

Run code through standard --fix for style

Chris Adams committed on 5/12/2018, 9:44:52 AM
Parent: 05d26ec79bdbb7f7583ee169d8ed48689f4f6bad

Files changed

index.jschanged
main-window.jschanged
modules/page/html/render/gatherings.jschanged
modules/page/html/render/public.jschanged
index.jsView
@@ -44,32 +44,30 @@
4444 electron.app.on('ready', () => {
4545 setupContext('ssb', {
4646 server: !(process.argv.includes('-g') || process.argv.includes('--use-global-ssb'))
4747 }, () => {
48-
49- var browserWindow = openMainWindow();
48 + var browserWindow = openMainWindow()
5049 var menu = defaultMenu(electron.app, electron.shell)
5150
5251 menu.splice(4, 0, {
53- label: "History",
52 + label: 'History',
5453 submenu: [
5554 {
56- label: "Forward",
57- accelerator: "CmdOrCtrl+]",
55 + label: 'Forward',
56 + accelerator: 'CmdOrCtrl+]',
5857 click: () => {
5958 browserWindow.webContents.send('goForward')
6059 }
6160 },
6261 {
63- label: "Back",
64- accelerator: "CmdOrCtrl+[",
62 + label: 'Back',
63 + accelerator: 'CmdOrCtrl+[',
6564 click: () => {
66- browserWindow.webContents.send("goBack")
65 + browserWindow.webContents.send('goBack')
6766 }
6867 }
6968 ]
70- });
71-
69 + })
7270
7371 var view = menu.find(x => x.label === 'View')
7472 view.submenu = [
7573 { role: 'reload' },
@@ -97,9 +95,9 @@
9795 { type: 'separator' },
9896 { role: 'front' }
9997 ]
10098 }
101-
99 +
102100 Menu.setApplicationMenu(Menu.buildFromTemplate(menu))
103101 })
104102
105103 electron.app.on('activate', function (e) {
main-window.jsView
@@ -65,17 +65,17 @@
6565
6666 var views = api.app.views(api.page.html.render, [
6767 '/public', '/private', id, '/mentions'
6868 ])
69-
69 +
7070 var pendingCount = views.get('/mentions').pendingUpdates
7171
7272 watch(pendingCount, count => {
7373 electron.remote.app.setBadgeCount(count)
7474 })
7575
76- electron.ipcRenderer.on("goForward", views.goForward)
77- electron.ipcRenderer.on("goBack", views.goBack)
76 + electron.ipcRenderer.on('goForward', views.goForward)
77 + electron.ipcRenderer.on('goBack', views.goBack)
7878
7979 document.head.appendChild(
8080 h('style', {
8181 innerHTML: computed(api.settings.obs.get('patchwork.theme', 'light'), themeName => {
modules/page/html/render/gatherings.jsView
@@ -70,5 +70,5 @@
7070 }
7171
7272 function isGathering (msg) {
7373 return (msg.value && msg.value.content && msg.value.content.type === 'gathering')
74-}
74 +}
modules/page/html/render/public.jsView
@@ -337,5 +337,5 @@
337337
338338 function isAttendee (msg) {
339339 var content = msg.value && msg.value.content
340340 return (content && content.type === 'about' && content.attendee && !content.attendee.remove)
341-}
341 +}

Built with git-ssb-web