From 210131ca184c3aa043371857c022aa1aa149efbf Mon Sep 17 00:00:00 2001 From: Aditya Mangalampalli Date: Fri, 15 Apr 2022 02:00:25 -0700 Subject: Matched casing for almost all replacements --- src/lib/Menu.js | 80 ++++++++++++++++++++++++++++----------------------------- src/lib/Tray.js | 10 ++++---- 2 files changed, 45 insertions(+), 45 deletions(-) (limited to 'src/lib') 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'; import { defineMessages } from 'react-intl'; import { CUSTOM_WEBSITE_RECIPE_ID, - GITHUB_FERDI_URL, - LIVE_API_FERDI_WEBSITE, + GITHUB_FERDIUM_URL, + LIVE_API_FERDIUM_WEBSITE, } from '../config'; import { cmdOrCtrlShortcutKey, @@ -20,13 +20,13 @@ import { settingsShortcutKey, isLinux, isMac, - lockFerdiShortcutKey, + lockFerdiumShortcutKey, todosToggleShortcutKey, workspaceToggleShortcutKey, addNewServiceShortcutKey, - muteFerdiShortcutKey, + muteFerdiumShortcutKey, } from '../environment'; -import { aboutAppDetails, ferdiVersion } from '../environment-remote'; +import { aboutAppDetails, ferdiumVersion } from '../environment-remote'; import { todoActions } from '../features/todos/actions'; import { workspaceActions } from '../features/workspaces/actions'; import { workspaceStore } from '../features/workspaces/index'; @@ -143,13 +143,13 @@ const menuItems = defineMessages({ id: 'menu.view.reloadService', defaultMessage: 'Reload Service', }, - reloadFerdi: { - id: 'menu.view.reloadFerdi', - defaultMessage: 'Reload Ferdi', + reloadFerdium: { + id: 'menu.view.reloadFerdium', + defaultMessage: 'Reload Ferdium', }, - lockFerdi: { - id: 'menu.view.lockFerdi', - defaultMessage: 'Lock Ferdi', + lockFerdium: { + id: 'menu.view.lockFerdium', + defaultMessage: 'Lock Ferdium', }, reloadTodos: { id: 'menu.view.reloadTodos', @@ -189,7 +189,7 @@ const menuItems = defineMessages({ }, debugInfoCopiedHeadline: { id: 'menu.help.debugInfoCopiedHeadline', - defaultMessage: 'Ferdi Debug Information', + defaultMessage: 'Ferdium Debug Information', }, debugInfoCopiedBody: { id: 'menu.help.debugInfoCopiedBody', @@ -233,7 +233,7 @@ const menuItems = defineMessages({ }, about: { id: 'menu.app.about', - defaultMessage: 'About Ferdi', + defaultMessage: 'About Ferdium', }, checkForUpdates: { id: 'menu.app.checkForUpdates', @@ -318,7 +318,7 @@ const menuItems = defineMessages({ }); function getActiveService() { - return window['ferdi'].stores.services.active; + return window['ferdium'].stores.services.active; } const _titleBarTemplateFactory = (intl, locked) => [ @@ -380,7 +380,7 @@ const _titleBarTemplateFactory = (intl, locked) => [ label: intl.formatMessage(menuItems.openQuickSwitch), accelerator: `${cmdOrCtrlShortcutKey()}+S`, click() { - window['ferdi'].features.quickSwitch.state.isModalVisible = true; + window['ferdium'].features.quickSwitch.state.isModalVisible = true; }, }, { @@ -396,7 +396,7 @@ const _titleBarTemplateFactory = (intl, locked) => [ // Focus webview so find in page popup gets focused service.webview.focus(); - window['ferdi'].actions.service.sendIPCMessage({ + window['ferdium'].actions.service.sendIPCMessage({ serviceId: service.id, channel: 'find-in-page', args: {}, @@ -462,12 +462,12 @@ const _titleBarTemplateFactory = (intl, locked) => [ label: intl.formatMessage(menuItems.toggleDarkMode), type: 'checkbox', accelerator: `${cmdOrCtrlShortcutKey()}+${shiftKey()}+D`, - checked: window['ferdi'].stores.settings.app.darkMode, + checked: window['ferdium'].stores.settings.app.darkMode, click: () => { - window['ferdi'].actions.settings.update({ + window['ferdium'].actions.settings.update({ type: 'app', data: { - darkMode: !window['ferdi'].stores.settings.app.darkMode, + darkMode: !window['ferdium'].stores.settings.app.darkMode, }, }); }, @@ -513,14 +513,14 @@ const _titleBarTemplateFactory = (intl, locked) => [ { label: intl.formatMessage(menuItems.learnMore), click() { - openExternalUrl(LIVE_API_FERDI_WEBSITE, true); + openExternalUrl(LIVE_API_FERDIUM_WEBSITE, true); }, }, { label: intl.formatMessage(menuItems.changelog), click() { openExternalUrl( - `${GITHUB_FERDI_URL}/ferdi/releases/tag/v${ferdiVersion}`, + `${GITHUB_FERDIUM_URL}/ferdium/releases/tag/v${ferdiumVersion}`, true, ); }, @@ -538,7 +538,7 @@ const _titleBarTemplateFactory = (intl, locked) => [ { label: intl.formatMessage(menuItems.support), click() { - openExternalUrl(`${LIVE_API_FERDI_WEBSITE}/contact`, true); + openExternalUrl(`${LIVE_API_FERDIUM_WEBSITE}/contact`, true); }, }, { @@ -584,13 +584,13 @@ class FranzMenu { // need to clone object so we don't modify computed (cached) object const serviceTpl = Object.assign([], this.serviceTpl()); - // Don't initialize when window['ferdi'] is undefined - if (window['ferdi'] === undefined) { + // Don't initialize when window['ferdium'] is undefined + if (window['ferdium'] === undefined) { console.log('skipping menu init'); return; } - const { intl } = window['ferdi']; + const { intl } = window['ferdium']; const locked = this.stores.settings.app.locked && this.stores.settings.app.lockingFeatureEnabled && this.stores.user.isLoggedIn; @@ -601,13 +601,13 @@ class FranzMenu { tpl[1].submenu.push({ label: intl.formatMessage(menuItems.autohideMenuBar), type: 'checkbox', - checked: window['ferdi'].stores.settings.app.autohideMenuBar, + checked: window['ferdium'].stores.settings.app.autohideMenuBar, click: () => { - window['ferdi'].actions.settings.update({ + window['ferdium'].actions.settings.update({ type: 'app', data: { autohideMenuBar: - !window['ferdi'].stores.settings.app.autohideMenuBar, + !window['ferdium'].stores.settings.app.autohideMenuBar, }, }); }, @@ -669,7 +669,7 @@ class FranzMenu { }, }, { - label: intl.formatMessage(menuItems.reloadFerdi), + label: intl.formatMessage(menuItems.reloadFerdium), accelerator: `${cmdOrCtrlShortcutKey()}+${shiftKey()}+R`, click: () => { window.location.reload(); @@ -686,8 +686,8 @@ class FranzMenu { type: 'separator', }, { - label: intl.formatMessage(menuItems.lockFerdi), - accelerator: `${lockFerdiShortcutKey()}`, + label: intl.formatMessage(menuItems.lockFerdium), + accelerator: `${lockFerdiumShortcutKey()}`, enabled: this.stores.user.isLoggedIn && this.stores.settings.app.lockingFeatureEnabled, @@ -718,7 +718,7 @@ class FranzMenu { tpl[0].submenu.unshift( { label: intl.formatMessage(menuItems.touchId), - accelerator: `${lockFerdiShortcutKey()}`, + accelerator: `${lockFerdiumShortcutKey()}`, visible: touchIdEnabled, click() { systemPreferences @@ -809,8 +809,8 @@ class FranzMenu { click: () => { dialog.showMessageBox({ type: 'info', - title: 'Franz Ferdinand', - message: 'Ferdi', + title: 'Franz Ferdiumnand', + message: 'Ferdium', detail: aboutAppDetails(), }); }, @@ -893,7 +893,7 @@ class FranzMenu { } serviceTpl() { - const { intl } = window['ferdi']; + const { intl } = window['ferdium']; const { user, services, settings } = this.stores; if (!user.isLoggedIn) return []; const menu = []; @@ -942,7 +942,7 @@ class FranzMenu { : menuItems.muteApp, ) .replace('&', '&&'), - accelerator: `${muteFerdiShortcutKey()}`, + accelerator: `${muteFerdiumShortcutKey()}`, click: () => this.actions.app.toggleMuteApp(), }, { @@ -989,7 +989,7 @@ class FranzMenu { workspacesMenu() { const { workspaces, activeWorkspace, isWorkspaceDrawerOpen } = workspaceStore; - const { intl } = window['ferdi']; + const { intl } = window['ferdium']; const menu = []; // Add new workspace item: @@ -1051,7 +1051,7 @@ class FranzMenu { todosMenu() { const { isTodosPanelVisible, isFeatureEnabledByUser } = this.stores.todos; - const { intl } = window['ferdi']; + const { intl } = window['ferdium']; const menu = []; const drawerLabel = isTodosPanelVisible @@ -1085,7 +1085,7 @@ class FranzMenu { } debugMenu() { - const { intl } = window['ferdi']; + const { intl } = window['ferdium']; return [ { @@ -1108,7 +1108,7 @@ class FranzMenu { { label: intl.formatMessage(menuItems.publishDebugInfo), click: () => { - window['ferdi'].features.publishDebugInfo.state.isModalVisible = true; + window['ferdium'].features.publishDebugInfo.state.isModalVisible = true; }, }, ]; 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 { { label: tray.mainWindow.isVisible() && tray.mainWindow.isFocused() - ? 'Hide Ferdi' - : 'Show Ferdi', + ? 'Hide Ferdium' + : 'Show Ferdium', click() { tray._toggleWindow(); }, @@ -53,7 +53,7 @@ export default class TrayIcon { }, }, { - label: 'Quit Ferdi', + label: 'Quit Ferdium', click() { app.quit(); }, @@ -71,7 +71,7 @@ export default class TrayIcon { this.mainWindow = BrowserWindow.getAllWindows()[0]; // listen to window events to be able to set correct string - // to tray menu ('Hide Ferdi' / 'Show Ferdi') + // to tray menu ('Hide Ferdium' / 'Show Ferdium') this.mainWindow.on('hide', () => { this._updateTrayMenu(null); }); @@ -114,7 +114,7 @@ export default class TrayIcon { if (this.trayIcon) return; this.trayIcon = new Tray(this._getAsset('tray', INDICATOR_TRAY_PLAIN)); - this.trayIcon.setToolTip('Ferdi'); + this.trayIcon.setToolTip('Ferdium'); this.trayMenu = Menu.buildFromTemplate(this.trayMenuTemplate(this)); if (isLinux) { -- cgit v1.2.3-70-g09d2