From f1711733915a31c715fbb89a1d70aea8f7a75f46 Mon Sep 17 00:00:00 2001 From: Dominik Guzei Date: Wed, 5 Jun 2019 16:41:22 +0200 Subject: Add check for updates menu item --- src/dev-app-update.yml | 3 ++ src/i18n/locales/defaultMessages.json | 69 +++++++++++++++++++++-------------- src/i18n/locales/en-US.json | 3 +- src/i18n/messages/src/lib/Menu.json | 69 +++++++++++++++++++++-------------- src/lib/Menu.js | 10 +++++ 5 files changed, 97 insertions(+), 57 deletions(-) create mode 100644 src/dev-app-update.yml (limited to 'src') diff --git a/src/dev-app-update.yml b/src/dev-app-update.yml new file mode 100644 index 000000000..8ddca71e3 --- /dev/null +++ b/src/dev-app-update.yml @@ -0,0 +1,3 @@ +owner: meetfranz +repo: franz +provider: github diff --git a/src/i18n/locales/defaultMessages.json b/src/i18n/locales/defaultMessages.json index 9524238f0..63e74628c 100644 --- a/src/i18n/locales/defaultMessages.json +++ b/src/i18n/locales/defaultMessages.json @@ -4416,185 +4416,198 @@ } }, { - "defaultMessage": "!!!Hide", + "defaultMessage": "!!!Check for Updates", "end": { "column": 3, "line": 174 }, "file": "src/lib/Menu.js", + "id": "menu.app.checkForUpdates", + "start": { + "column": 19, + "line": 171 + } + }, + { + "defaultMessage": "!!!Hide", + "end": { + "column": 3, + "line": 178 + }, + "file": "src/lib/Menu.js", "id": "menu.app.hide", "start": { "column": 8, - "line": 171 + "line": 175 } }, { "defaultMessage": "!!!Hide Others", "end": { "column": 3, - "line": 178 + "line": 182 }, "file": "src/lib/Menu.js", "id": "menu.app.hideOthers", "start": { "column": 14, - "line": 175 + "line": 179 } }, { "defaultMessage": "!!!Unhide", "end": { "column": 3, - "line": 182 + "line": 186 }, "file": "src/lib/Menu.js", "id": "menu.app.unhide", "start": { "column": 10, - "line": 179 + "line": 183 } }, { "defaultMessage": "!!!Quit", "end": { "column": 3, - "line": 186 + "line": 190 }, "file": "src/lib/Menu.js", "id": "menu.app.quit", "start": { "column": 8, - "line": 183 + "line": 187 } }, { "defaultMessage": "!!!Add New Service...", "end": { "column": 3, - "line": 190 + "line": 194 }, "file": "src/lib/Menu.js", "id": "menu.services.addNewService", "start": { "column": 17, - "line": 187 + "line": 191 } }, { "defaultMessage": "!!!Add New Workspace...", "end": { "column": 3, - "line": 194 + "line": 198 }, "file": "src/lib/Menu.js", "id": "menu.workspaces.addNewWorkspace", "start": { "column": 19, - "line": 191 + "line": 195 } }, { "defaultMessage": "!!!Open workspace drawer", "end": { "column": 3, - "line": 198 + "line": 202 }, "file": "src/lib/Menu.js", "id": "menu.workspaces.openWorkspaceDrawer", "start": { "column": 23, - "line": 195 + "line": 199 } }, { "defaultMessage": "!!!Close workspace drawer", "end": { "column": 3, - "line": 202 + "line": 206 }, "file": "src/lib/Menu.js", "id": "menu.workspaces.closeWorkspaceDrawer", "start": { "column": 24, - "line": 199 + "line": 203 } }, { "defaultMessage": "!!!Activate next service...", "end": { "column": 3, - "line": 206 + "line": 210 }, "file": "src/lib/Menu.js", "id": "menu.services.setNextServiceActive", "start": { "column": 23, - "line": 203 + "line": 207 } }, { "defaultMessage": "!!!Activate previous service...", "end": { "column": 3, - "line": 210 + "line": 214 }, "file": "src/lib/Menu.js", "id": "menu.services.activatePreviousService", "start": { "column": 27, - "line": 207 + "line": 211 } }, { "defaultMessage": "!!!Disable notifications & audio", "end": { "column": 3, - "line": 214 + "line": 218 }, "file": "src/lib/Menu.js", "id": "sidebar.muteApp", "start": { "column": 11, - "line": 211 + "line": 215 } }, { "defaultMessage": "!!!Enable notifications & audio", "end": { "column": 3, - "line": 218 + "line": 222 }, "file": "src/lib/Menu.js", "id": "sidebar.unmuteApp", "start": { "column": 13, - "line": 215 + "line": 219 } }, { "defaultMessage": "!!!Workspaces", "end": { "column": 3, - "line": 222 + "line": 226 }, "file": "src/lib/Menu.js", "id": "menu.workspaces", "start": { "column": 14, - "line": 219 + "line": 223 } }, { "defaultMessage": "!!!Default", "end": { "column": 3, - "line": 226 + "line": 230 }, "file": "src/lib/Menu.js", "id": "menu.workspaces.defaultWorkspace", "start": { "column": 20, - "line": 223 + "line": 227 } } ], diff --git a/src/i18n/locales/en-US.json b/src/i18n/locales/en-US.json index 6c2759dcc..927ac8415 100644 --- a/src/i18n/locales/en-US.json +++ b/src/i18n/locales/en-US.json @@ -45,6 +45,7 @@ "login.tokenExpired": "Your session expired, please login again.", "menu.app.about": "About Franz", "menu.app.announcement": "What's new?", + "menu.app.checkForUpdates": "Check for Updates", "menu.app.hide": "Hide", "menu.app.hideOthers": "Hide Others", "menu.app.quit": "Quit", @@ -328,4 +329,4 @@ "workspaceDrawer.workspaceFeatureInfo": "

Franz Workspaces let you focus on what’s important right now. Set up different sets of services and easily switch between them at any time.

You decide which services you need when and where, so we can help you stay on top of your game - or easily switch off from work whenever you want.

", "workspaceDrawer.workspacesSettingsTooltip": "Edit workspaces settings", "workspaces.switchingIndicator.switchingTo": "Switching to" -} \ No newline at end of file +} diff --git a/src/i18n/messages/src/lib/Menu.json b/src/i18n/messages/src/lib/Menu.json index 2adf5b787..50633a1de 100644 --- a/src/i18n/messages/src/lib/Menu.json +++ b/src/i18n/messages/src/lib/Menu.json @@ -506,16 +506,29 @@ "column": 3 } }, + { + "id": "menu.app.checkForUpdates", + "defaultMessage": "!!!Check for Updates", + "file": "src/lib/Menu.js", + "start": { + "line": 171, + "column": 19 + }, + "end": { + "line": 174, + "column": 3 + } + }, { "id": "menu.app.hide", "defaultMessage": "!!!Hide", "file": "src/lib/Menu.js", "start": { - "line": 171, + "line": 175, "column": 8 }, "end": { - "line": 174, + "line": 178, "column": 3 } }, @@ -524,11 +537,11 @@ "defaultMessage": "!!!Hide Others", "file": "src/lib/Menu.js", "start": { - "line": 175, + "line": 179, "column": 14 }, "end": { - "line": 178, + "line": 182, "column": 3 } }, @@ -537,11 +550,11 @@ "defaultMessage": "!!!Unhide", "file": "src/lib/Menu.js", "start": { - "line": 179, + "line": 183, "column": 10 }, "end": { - "line": 182, + "line": 186, "column": 3 } }, @@ -550,11 +563,11 @@ "defaultMessage": "!!!Quit", "file": "src/lib/Menu.js", "start": { - "line": 183, + "line": 187, "column": 8 }, "end": { - "line": 186, + "line": 190, "column": 3 } }, @@ -563,11 +576,11 @@ "defaultMessage": "!!!Add New Service...", "file": "src/lib/Menu.js", "start": { - "line": 187, + "line": 191, "column": 17 }, "end": { - "line": 190, + "line": 194, "column": 3 } }, @@ -576,11 +589,11 @@ "defaultMessage": "!!!Add New Workspace...", "file": "src/lib/Menu.js", "start": { - "line": 191, + "line": 195, "column": 19 }, "end": { - "line": 194, + "line": 198, "column": 3 } }, @@ -589,11 +602,11 @@ "defaultMessage": "!!!Open workspace drawer", "file": "src/lib/Menu.js", "start": { - "line": 195, + "line": 199, "column": 23 }, "end": { - "line": 198, + "line": 202, "column": 3 } }, @@ -602,11 +615,11 @@ "defaultMessage": "!!!Close workspace drawer", "file": "src/lib/Menu.js", "start": { - "line": 199, + "line": 203, "column": 24 }, "end": { - "line": 202, + "line": 206, "column": 3 } }, @@ -615,11 +628,11 @@ "defaultMessage": "!!!Activate next service...", "file": "src/lib/Menu.js", "start": { - "line": 203, + "line": 207, "column": 23 }, "end": { - "line": 206, + "line": 210, "column": 3 } }, @@ -628,11 +641,11 @@ "defaultMessage": "!!!Activate previous service...", "file": "src/lib/Menu.js", "start": { - "line": 207, + "line": 211, "column": 27 }, "end": { - "line": 210, + "line": 214, "column": 3 } }, @@ -641,11 +654,11 @@ "defaultMessage": "!!!Disable notifications & audio", "file": "src/lib/Menu.js", "start": { - "line": 211, + "line": 215, "column": 11 }, "end": { - "line": 214, + "line": 218, "column": 3 } }, @@ -654,11 +667,11 @@ "defaultMessage": "!!!Enable notifications & audio", "file": "src/lib/Menu.js", "start": { - "line": 215, + "line": 219, "column": 13 }, "end": { - "line": 218, + "line": 222, "column": 3 } }, @@ -667,11 +680,11 @@ "defaultMessage": "!!!Workspaces", "file": "src/lib/Menu.js", "start": { - "line": 219, + "line": 223, "column": 14 }, "end": { - "line": 222, + "line": 226, "column": 3 } }, @@ -680,11 +693,11 @@ "defaultMessage": "!!!Default", "file": "src/lib/Menu.js", "start": { - "line": 223, + "line": 227, "column": 20 }, "end": { - "line": 226, + "line": 230, "column": 3 } } diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 061c83160..65eb83252 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js @@ -168,6 +168,10 @@ const menuItems = defineMessages({ id: 'menu.app.settings', defaultMessage: '!!!Settings', }, + checkForUpdates: { + id: 'menu.app.checkForUpdates', + defaultMessage: '!!!Check for Updates', + }, hide: { id: 'menu.app.hide', defaultMessage: '!!!Hide', @@ -642,6 +646,12 @@ export default class FranzMenu { }, enabled: this.stores.user.isLoggedIn, }, + { + label: intl.formatMessage(menuItems.checkForUpdates), + click: () => { + this.actions.app.checkForUpdates(); + }, + }, { type: 'separator', }, -- cgit v1.2.3-54-g00ecf