diff options
author | Aditya Mangalampalli <aditya.mangalampalli@gmail.com> | 2022-04-15 02:00:25 -0700 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-16 21:57:57 +0530 |
commit | 210131ca184c3aa043371857c022aa1aa149efbf (patch) | |
tree | 6bc4e10a1540e55a66146c099bc468a12287425e /src/lib | |
parent | Update submodule url to ferdium-recipes (#1) (diff) | |
download | ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.tar.gz ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.tar.zst ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.zip |
Matched casing for almost all replacements
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 80 | ||||
-rw-r--r-- | src/lib/Tray.js | 10 |
2 files changed, 45 insertions, 45 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 38302b40b..de6c74ecd 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -10,8 +10,8 @@ import { autorun, observable } from 'mobx'; | |||
10 | import { defineMessages } from 'react-intl'; | 10 | import { defineMessages } from 'react-intl'; |
11 | import { | 11 | import { |
12 | CUSTOM_WEBSITE_RECIPE_ID, | 12 | CUSTOM_WEBSITE_RECIPE_ID, |
13 | GITHUB_FERDI_URL, | 13 | GITHUB_FERDIUM_URL, |
14 | LIVE_API_FERDI_WEBSITE, | 14 | LIVE_API_FERDIUM_WEBSITE, |
15 | } from '../config'; | 15 | } from '../config'; |
16 | import { | 16 | import { |
17 | cmdOrCtrlShortcutKey, | 17 | cmdOrCtrlShortcutKey, |
@@ -20,13 +20,13 @@ import { | |||
20 | settingsShortcutKey, | 20 | settingsShortcutKey, |
21 | isLinux, | 21 | isLinux, |
22 | isMac, | 22 | isMac, |
23 | lockFerdiShortcutKey, | 23 | lockFerdiumShortcutKey, |
24 | todosToggleShortcutKey, | 24 | todosToggleShortcutKey, |
25 | workspaceToggleShortcutKey, | 25 | workspaceToggleShortcutKey, |
26 | addNewServiceShortcutKey, | 26 | addNewServiceShortcutKey, |
27 | muteFerdiShortcutKey, | 27 | muteFerdiumShortcutKey, |
28 | } from '../environment'; | 28 | } from '../environment'; |
29 | import { aboutAppDetails, ferdiVersion } from '../environment-remote'; | 29 | import { aboutAppDetails, ferdiumVersion } from '../environment-remote'; |
30 | import { todoActions } from '../features/todos/actions'; | 30 | import { todoActions } from '../features/todos/actions'; |
31 | import { workspaceActions } from '../features/workspaces/actions'; | 31 | import { workspaceActions } from '../features/workspaces/actions'; |
32 | import { workspaceStore } from '../features/workspaces/index'; | 32 | import { workspaceStore } from '../features/workspaces/index'; |
@@ -143,13 +143,13 @@ const menuItems = defineMessages({ | |||
143 | id: 'menu.view.reloadService', | 143 | id: 'menu.view.reloadService', |
144 | defaultMessage: 'Reload Service', | 144 | defaultMessage: 'Reload Service', |
145 | }, | 145 | }, |
146 | reloadFerdi: { | 146 | reloadFerdium: { |
147 | id: 'menu.view.reloadFerdi', | 147 | id: 'menu.view.reloadFerdium', |
148 | defaultMessage: 'Reload Ferdi', | 148 | defaultMessage: 'Reload Ferdium', |
149 | }, | 149 | }, |
150 | lockFerdi: { | 150 | lockFerdium: { |
151 | id: 'menu.view.lockFerdi', | 151 | id: 'menu.view.lockFerdium', |
152 | defaultMessage: 'Lock Ferdi', | 152 | defaultMessage: 'Lock Ferdium', |
153 | }, | 153 | }, |
154 | reloadTodos: { | 154 | reloadTodos: { |
155 | id: 'menu.view.reloadTodos', | 155 | id: 'menu.view.reloadTodos', |
@@ -189,7 +189,7 @@ const menuItems = defineMessages({ | |||
189 | }, | 189 | }, |
190 | debugInfoCopiedHeadline: { | 190 | debugInfoCopiedHeadline: { |
191 | id: 'menu.help.debugInfoCopiedHeadline', | 191 | id: 'menu.help.debugInfoCopiedHeadline', |
192 | defaultMessage: 'Ferdi Debug Information', | 192 | defaultMessage: 'Ferdium Debug Information', |
193 | }, | 193 | }, |
194 | debugInfoCopiedBody: { | 194 | debugInfoCopiedBody: { |
195 | id: 'menu.help.debugInfoCopiedBody', | 195 | id: 'menu.help.debugInfoCopiedBody', |
@@ -233,7 +233,7 @@ const menuItems = defineMessages({ | |||
233 | }, | 233 | }, |
234 | about: { | 234 | about: { |
235 | id: 'menu.app.about', | 235 | id: 'menu.app.about', |
236 | defaultMessage: 'About Ferdi', | 236 | defaultMessage: 'About Ferdium', |
237 | }, | 237 | }, |
238 | checkForUpdates: { | 238 | checkForUpdates: { |
239 | id: 'menu.app.checkForUpdates', | 239 | id: 'menu.app.checkForUpdates', |
@@ -318,7 +318,7 @@ const menuItems = defineMessages({ | |||
318 | }); | 318 | }); |
319 | 319 | ||
320 | function getActiveService() { | 320 | function getActiveService() { |
321 | return window['ferdi'].stores.services.active; | 321 | return window['ferdium'].stores.services.active; |
322 | } | 322 | } |
323 | 323 | ||
324 | const _titleBarTemplateFactory = (intl, locked) => [ | 324 | const _titleBarTemplateFactory = (intl, locked) => [ |
@@ -380,7 +380,7 @@ const _titleBarTemplateFactory = (intl, locked) => [ | |||
380 | label: intl.formatMessage(menuItems.openQuickSwitch), | 380 | label: intl.formatMessage(menuItems.openQuickSwitch), |
381 | accelerator: `${cmdOrCtrlShortcutKey()}+S`, | 381 | accelerator: `${cmdOrCtrlShortcutKey()}+S`, |
382 | click() { | 382 | click() { |
383 | window['ferdi'].features.quickSwitch.state.isModalVisible = true; | 383 | window['ferdium'].features.quickSwitch.state.isModalVisible = true; |
384 | }, | 384 | }, |
385 | }, | 385 | }, |
386 | { | 386 | { |
@@ -396,7 +396,7 @@ const _titleBarTemplateFactory = (intl, locked) => [ | |||
396 | // Focus webview so find in page popup gets focused | 396 | // Focus webview so find in page popup gets focused |
397 | service.webview.focus(); | 397 | service.webview.focus(); |
398 | 398 | ||
399 | window['ferdi'].actions.service.sendIPCMessage({ | 399 | window['ferdium'].actions.service.sendIPCMessage({ |
400 | serviceId: service.id, | 400 | serviceId: service.id, |
401 | channel: 'find-in-page', | 401 | channel: 'find-in-page', |
402 | args: {}, | 402 | args: {}, |
@@ -462,12 +462,12 @@ const _titleBarTemplateFactory = (intl, locked) => [ | |||
462 | label: intl.formatMessage(menuItems.toggleDarkMode), | 462 | label: intl.formatMessage(menuItems.toggleDarkMode), |
463 | type: 'checkbox', | 463 | type: 'checkbox', |
464 | accelerator: `${cmdOrCtrlShortcutKey()}+${shiftKey()}+D`, | 464 | accelerator: `${cmdOrCtrlShortcutKey()}+${shiftKey()}+D`, |
465 | checked: window['ferdi'].stores.settings.app.darkMode, | 465 | checked: window['ferdium'].stores.settings.app.darkMode, |
466 | click: () => { | 466 | click: () => { |
467 | window['ferdi'].actions.settings.update({ | 467 | window['ferdium'].actions.settings.update({ |
468 | type: 'app', | 468 | type: 'app', |
469 | data: { | 469 | data: { |
470 | darkMode: !window['ferdi'].stores.settings.app.darkMode, | 470 | darkMode: !window['ferdium'].stores.settings.app.darkMode, |
471 | }, | 471 | }, |
472 | }); | 472 | }); |
473 | }, | 473 | }, |
@@ -513,14 +513,14 @@ const _titleBarTemplateFactory = (intl, locked) => [ | |||
513 | { | 513 | { |
514 | label: intl.formatMessage(menuItems.learnMore), | 514 | label: intl.formatMessage(menuItems.learnMore), |
515 | click() { | 515 | click() { |
516 | openExternalUrl(LIVE_API_FERDI_WEBSITE, true); | 516 | openExternalUrl(LIVE_API_FERDIUM_WEBSITE, true); |
517 | }, | 517 | }, |
518 | }, | 518 | }, |
519 | { | 519 | { |
520 | label: intl.formatMessage(menuItems.changelog), | 520 | label: intl.formatMessage(menuItems.changelog), |
521 | click() { | 521 | click() { |
522 | openExternalUrl( | 522 | openExternalUrl( |
523 | `${GITHUB_FERDI_URL}/ferdi/releases/tag/v${ferdiVersion}`, | 523 | `${GITHUB_FERDIUM_URL}/ferdium/releases/tag/v${ferdiumVersion}`, |
524 | true, | 524 | true, |
525 | ); | 525 | ); |
526 | }, | 526 | }, |
@@ -538,7 +538,7 @@ const _titleBarTemplateFactory = (intl, locked) => [ | |||
538 | { | 538 | { |
539 | label: intl.formatMessage(menuItems.support), | 539 | label: intl.formatMessage(menuItems.support), |
540 | click() { | 540 | click() { |
541 | openExternalUrl(`${LIVE_API_FERDI_WEBSITE}/contact`, true); | 541 | openExternalUrl(`${LIVE_API_FERDIUM_WEBSITE}/contact`, true); |
542 | }, | 542 | }, |
543 | }, | 543 | }, |
544 | { | 544 | { |
@@ -584,13 +584,13 @@ class FranzMenu { | |||
584 | // need to clone object so we don't modify computed (cached) object | 584 | // need to clone object so we don't modify computed (cached) object |
585 | const serviceTpl = Object.assign([], this.serviceTpl()); | 585 | const serviceTpl = Object.assign([], this.serviceTpl()); |
586 | 586 | ||
587 | // Don't initialize when window['ferdi'] is undefined | 587 | // Don't initialize when window['ferdium'] is undefined |
588 | if (window['ferdi'] === undefined) { | 588 | if (window['ferdium'] === undefined) { |
589 | console.log('skipping menu init'); | 589 | console.log('skipping menu init'); |
590 | return; | 590 | return; |
591 | } | 591 | } |
592 | 592 | ||
593 | const { intl } = window['ferdi']; | 593 | const { intl } = window['ferdium']; |
594 | const locked = this.stores.settings.app.locked | 594 | const locked = this.stores.settings.app.locked |
595 | && this.stores.settings.app.lockingFeatureEnabled | 595 | && this.stores.settings.app.lockingFeatureEnabled |
596 | && this.stores.user.isLoggedIn; | 596 | && this.stores.user.isLoggedIn; |
@@ -601,13 +601,13 @@ class FranzMenu { | |||
601 | tpl[1].submenu.push({ | 601 | tpl[1].submenu.push({ |
602 | label: intl.formatMessage(menuItems.autohideMenuBar), | 602 | label: intl.formatMessage(menuItems.autohideMenuBar), |
603 | type: 'checkbox', | 603 | type: 'checkbox', |
604 | checked: window['ferdi'].stores.settings.app.autohideMenuBar, | 604 | checked: window['ferdium'].stores.settings.app.autohideMenuBar, |
605 | click: () => { | 605 | click: () => { |
606 | window['ferdi'].actions.settings.update({ | 606 | window['ferdium'].actions.settings.update({ |
607 | type: 'app', | 607 | type: 'app', |
608 | data: { | 608 | data: { |
609 | autohideMenuBar: | 609 | autohideMenuBar: |
610 | !window['ferdi'].stores.settings.app.autohideMenuBar, | 610 | !window['ferdium'].stores.settings.app.autohideMenuBar, |
611 | }, | 611 | }, |
612 | }); | 612 | }); |
613 | }, | 613 | }, |
@@ -669,7 +669,7 @@ class FranzMenu { | |||
669 | }, | 669 | }, |
670 | }, | 670 | }, |
671 | { | 671 | { |
672 | label: intl.formatMessage(menuItems.reloadFerdi), | 672 | label: intl.formatMessage(menuItems.reloadFerdium), |
673 | accelerator: `${cmdOrCtrlShortcutKey()}+${shiftKey()}+R`, | 673 | accelerator: `${cmdOrCtrlShortcutKey()}+${shiftKey()}+R`, |
674 | click: () => { | 674 | click: () => { |
675 | window.location.reload(); | 675 | window.location.reload(); |
@@ -686,8 +686,8 @@ class FranzMenu { | |||
686 | type: 'separator', | 686 | type: 'separator', |
687 | }, | 687 | }, |
688 | { | 688 | { |
689 | label: intl.formatMessage(menuItems.lockFerdi), | 689 | label: intl.formatMessage(menuItems.lockFerdium), |
690 | accelerator: `${lockFerdiShortcutKey()}`, | 690 | accelerator: `${lockFerdiumShortcutKey()}`, |
691 | enabled: | 691 | enabled: |
692 | this.stores.user.isLoggedIn && | 692 | this.stores.user.isLoggedIn && |
693 | this.stores.settings.app.lockingFeatureEnabled, | 693 | this.stores.settings.app.lockingFeatureEnabled, |
@@ -718,7 +718,7 @@ class FranzMenu { | |||
718 | tpl[0].submenu.unshift( | 718 | tpl[0].submenu.unshift( |
719 | { | 719 | { |
720 | label: intl.formatMessage(menuItems.touchId), | 720 | label: intl.formatMessage(menuItems.touchId), |
721 | accelerator: `${lockFerdiShortcutKey()}`, | 721 | accelerator: `${lockFerdiumShortcutKey()}`, |
722 | visible: touchIdEnabled, | 722 | visible: touchIdEnabled, |
723 | click() { | 723 | click() { |
724 | systemPreferences | 724 | systemPreferences |
@@ -809,8 +809,8 @@ class FranzMenu { | |||
809 | click: () => { | 809 | click: () => { |
810 | dialog.showMessageBox({ | 810 | dialog.showMessageBox({ |
811 | type: 'info', | 811 | type: 'info', |
812 | title: 'Franz Ferdinand', | 812 | title: 'Franz Ferdiumnand', |
813 | message: 'Ferdi', | 813 | message: 'Ferdium', |
814 | detail: aboutAppDetails(), | 814 | detail: aboutAppDetails(), |
815 | }); | 815 | }); |
816 | }, | 816 | }, |
@@ -893,7 +893,7 @@ class FranzMenu { | |||
893 | } | 893 | } |
894 | 894 | ||
895 | serviceTpl() { | 895 | serviceTpl() { |
896 | const { intl } = window['ferdi']; | 896 | const { intl } = window['ferdium']; |
897 | const { user, services, settings } = this.stores; | 897 | const { user, services, settings } = this.stores; |
898 | if (!user.isLoggedIn) return []; | 898 | if (!user.isLoggedIn) return []; |
899 | const menu = []; | 899 | const menu = []; |
@@ -942,7 +942,7 @@ class FranzMenu { | |||
942 | : menuItems.muteApp, | 942 | : menuItems.muteApp, |
943 | ) | 943 | ) |
944 | .replace('&', '&&'), | 944 | .replace('&', '&&'), |
945 | accelerator: `${muteFerdiShortcutKey()}`, | 945 | accelerator: `${muteFerdiumShortcutKey()}`, |
946 | click: () => this.actions.app.toggleMuteApp(), | 946 | click: () => this.actions.app.toggleMuteApp(), |
947 | }, | 947 | }, |
948 | { | 948 | { |
@@ -989,7 +989,7 @@ class FranzMenu { | |||
989 | workspacesMenu() { | 989 | workspacesMenu() { |
990 | const { workspaces, activeWorkspace, isWorkspaceDrawerOpen } = | 990 | const { workspaces, activeWorkspace, isWorkspaceDrawerOpen } = |
991 | workspaceStore; | 991 | workspaceStore; |
992 | const { intl } = window['ferdi']; | 992 | const { intl } = window['ferdium']; |
993 | const menu = []; | 993 | const menu = []; |
994 | 994 | ||
995 | // Add new workspace item: | 995 | // Add new workspace item: |
@@ -1051,7 +1051,7 @@ class FranzMenu { | |||
1051 | 1051 | ||
1052 | todosMenu() { | 1052 | todosMenu() { |
1053 | const { isTodosPanelVisible, isFeatureEnabledByUser } = this.stores.todos; | 1053 | const { isTodosPanelVisible, isFeatureEnabledByUser } = this.stores.todos; |
1054 | const { intl } = window['ferdi']; | 1054 | const { intl } = window['ferdium']; |
1055 | const menu = []; | 1055 | const menu = []; |
1056 | 1056 | ||
1057 | const drawerLabel = isTodosPanelVisible | 1057 | const drawerLabel = isTodosPanelVisible |
@@ -1085,7 +1085,7 @@ class FranzMenu { | |||
1085 | } | 1085 | } |
1086 | 1086 | ||
1087 | debugMenu() { | 1087 | debugMenu() { |
1088 | const { intl } = window['ferdi']; | 1088 | const { intl } = window['ferdium']; |
1089 | 1089 | ||
1090 | return [ | 1090 | return [ |
1091 | { | 1091 | { |
@@ -1108,7 +1108,7 @@ class FranzMenu { | |||
1108 | { | 1108 | { |
1109 | label: intl.formatMessage(menuItems.publishDebugInfo), | 1109 | label: intl.formatMessage(menuItems.publishDebugInfo), |
1110 | click: () => { | 1110 | click: () => { |
1111 | window['ferdi'].features.publishDebugInfo.state.isModalVisible = true; | 1111 | window['ferdium'].features.publishDebugInfo.state.isModalVisible = true; |
1112 | }, | 1112 | }, |
1113 | }, | 1113 | }, |
1114 | ]; | 1114 | ]; |
diff --git a/src/lib/Tray.js b/src/lib/Tray.js index 549034e8d..878841213 100644 --- a/src/lib/Tray.js +++ b/src/lib/Tray.js | |||
@@ -37,8 +37,8 @@ export default class TrayIcon { | |||
37 | { | 37 | { |
38 | label: | 38 | label: |
39 | tray.mainWindow.isVisible() && tray.mainWindow.isFocused() | 39 | tray.mainWindow.isVisible() && tray.mainWindow.isFocused() |
40 | ? 'Hide Ferdi' | 40 | ? 'Hide Ferdium' |
41 | : 'Show Ferdi', | 41 | : 'Show Ferdium', |
42 | click() { | 42 | click() { |
43 | tray._toggleWindow(); | 43 | tray._toggleWindow(); |
44 | }, | 44 | }, |
@@ -53,7 +53,7 @@ export default class TrayIcon { | |||
53 | }, | 53 | }, |
54 | }, | 54 | }, |
55 | { | 55 | { |
56 | label: 'Quit Ferdi', | 56 | label: 'Quit Ferdium', |
57 | click() { | 57 | click() { |
58 | app.quit(); | 58 | app.quit(); |
59 | }, | 59 | }, |
@@ -71,7 +71,7 @@ export default class TrayIcon { | |||
71 | this.mainWindow = BrowserWindow.getAllWindows()[0]; | 71 | this.mainWindow = BrowserWindow.getAllWindows()[0]; |
72 | 72 | ||
73 | // listen to window events to be able to set correct string | 73 | // listen to window events to be able to set correct string |
74 | // to tray menu ('Hide Ferdi' / 'Show Ferdi') | 74 | // to tray menu ('Hide Ferdium' / 'Show Ferdium') |
75 | this.mainWindow.on('hide', () => { | 75 | this.mainWindow.on('hide', () => { |
76 | this._updateTrayMenu(null); | 76 | this._updateTrayMenu(null); |
77 | }); | 77 | }); |
@@ -114,7 +114,7 @@ export default class TrayIcon { | |||
114 | if (this.trayIcon) return; | 114 | if (this.trayIcon) return; |
115 | 115 | ||
116 | this.trayIcon = new Tray(this._getAsset('tray', INDICATOR_TRAY_PLAIN)); | 116 | this.trayIcon = new Tray(this._getAsset('tray', INDICATOR_TRAY_PLAIN)); |
117 | this.trayIcon.setToolTip('Ferdi'); | 117 | this.trayIcon.setToolTip('Ferdium'); |
118 | 118 | ||
119 | this.trayMenu = Menu.buildFromTemplate(this.trayMenuTemplate(this)); | 119 | this.trayMenu = Menu.buildFromTemplate(this.trayMenuTemplate(this)); |
120 | if (isLinux) { | 120 | if (isLinux) { |