From a6e01fd982bbd7ce39b65c4c1b260c02ec830e00 Mon Sep 17 00:00:00 2001 From: Mo Date: Fri, 4 Mar 2022 09:20:40 -0600 Subject: [PATCH 1/3] chore: upgrade web --- web | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web b/web index 6c71864b..42d97df1 160000 --- a/web +++ b/web @@ -1 +1 @@ -Subproject commit 6c71864b7eaa8cf956522258c4f798386e712ca1 +Subproject commit 42d97df1fe508cc8f1155727dabaed8f80fc52ac From 9dedd7db7b60de4d83c365642d7cd583223f0e19 Mon Sep 17 00:00:00 2001 From: Mo Date: Sat, 5 Mar 2022 09:45:56 -0600 Subject: [PATCH 2/3] fix: env var case; web dep --- app/javascripts/renderer/renderer.ts | 47 ++++++++++------------------ web | 2 +- 2 files changed, 18 insertions(+), 31 deletions(-) diff --git a/app/javascripts/renderer/renderer.ts b/app/javascripts/renderer/renderer.ts index 67881cce..70caff52 100644 --- a/app/javascripts/renderer/renderer.ts +++ b/app/javascripts/renderer/renderer.ts @@ -13,18 +13,17 @@ declare const DASHBOARD_URL: string; declare global { interface Window { - ElectronValence: any; - /* eslint-disable camelcase */ - _bugsnag_api_key: string; - _enable_unfinished_features: boolean; - _purchase_url: string; - _plans_url: string; - _dashboard_url: string; + bridge: Bridge; + bugsnagApiKey: string; + dashboardUrl: string; desktopManager: ElectronDesktopCallbacks; electronAppVersion: string; - zip: any; + ElectronValence: any; + enableUnfinishedFeatures: boolean; + plansUrl: string; + purchaseUrl: string; startApplication: StartApplication; - bridge: Bridge; + zip: any; } } @@ -32,13 +31,11 @@ const messageBus = new window.ElectronValence.FrameMessageBus(); const receiver = new window.ElectronValence.Receiver(messageBus); /** Accessed by web app */ -/* eslint-disable camelcase */ -window._bugsnag_api_key = BUGSNAG_API_KEY; -window._enable_unfinished_features = ENABLE_UNFINISHED_FEATURES === 'true'; -window._purchase_url = PURCHASE_URL; -window._plans_url = PLANS_URL; -window._dashboard_url = DASHBOARD_URL; -/* eslint-enable camelcase */ +window.bugsnagApiKey = BUGSNAG_API_KEY; +window.dashboardUrl = DASHBOARD_URL; +window.enableUnfinishedFeatures = ENABLE_UNFINISHED_FEATURES === 'true'; +window.plansUrl = PLANS_URL; +window.purchaseUrl = PURCHASE_URL; (async () => { await receiver.ready; @@ -48,11 +45,10 @@ window._dashboard_url = DASHBOARD_URL; window.bridge = await createWebBridge(mainThread); window.startApplication( - // eslint-disable-next-line no-undef DEFAULT_SYNC_SERVER, DEFAULT_FILES_SERVER, window.bridge, - window._enable_unfinished_features, + window.enableUnfinishedFeatures, WEBSOCKET_URL ); @@ -205,18 +201,12 @@ async function configureWindow(mainThread: any) { // For Mac inset window const sheet = window.document.styleSheets[0]; if (isMacOS) { - sheet.insertRule( - '#navigation { padding-top: 25px !important; }', - sheet.cssRules.length - ); + sheet.insertRule('#navigation { padding-top: 25px !important; }', sheet.cssRules.length); } if (isMacOS || useSystemMenuBar) { // !important is important here because #desktop-title-bar has display: flex. - sheet.insertRule( - '#desktop-title-bar { display: none !important; }', - sheet.cssRules.length - ); + sheet.insertRule('#desktop-title-bar { display: none !important; }', sheet.cssRules.length); } else { /* Use custom title bar. Take the sn-titlebar-height off of the app content height so its not overflowing */ @@ -257,10 +247,7 @@ function registerIpcMessageListener(webBridge: any) { desktopManager.desktop_windowGainedFocus(); } else if (message === IpcMessages.InstallComponentComplete) { // Responses from packageManager - desktopManager.desktop_onComponentInstallationComplete( - data.component, - data.error - ); + desktopManager.desktop_onComponentInstallationComplete(data.component, data.error); } else if (message === IpcMessages.UpdateAvailable) { desktopManager.desktop_updateAvailable(); } else if (message === IpcMessages.DownloadBackup) { diff --git a/web b/web index b2a692ca..f0867ee4 160000 --- a/web +++ b/web @@ -1 +1 @@ -Subproject commit b2a692caf44e87aa2607c06e6c38b190caac92e5 +Subproject commit f0867ee4d06b6de95da2d3c7c2fe789ff95fdef3 From 23b3f9949bd3f1a07e10a7904117a4d4c64fc140 Mon Sep 17 00:00:00 2001 From: Mo Date: Sat, 5 Mar 2022 09:46:17 -0600 Subject: [PATCH 3/3] chore: bump version --- app/package.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/package.json b/app/package.json index 5e8b6075..912f00f3 100644 --- a/app/package.json +++ b/app/package.json @@ -3,7 +3,7 @@ "productName": "Standard Notes", "description": "An end-to-end encrypted notes app for digitalists and professionals.", "author": "Standard Notes ", - "version": "3.12.0", + "version": "3.12.1", "main": "./dist/index.js", "dependencies": { "keytar": "^7.7.0", diff --git a/package.json b/package.json index 73570178..9642f76b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "standard-notes", "main": "./app/dist/index.js", - "version": "3.12.0", + "version": "3.12.1", "repository": { "type": "git", "url": "git://github.com/standardnotes/desktop"