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/stores/AppStore.js | |
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/stores/AppStore.js')
-rw-r--r-- | src/stores/AppStore.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 93a7deea9..68796b692 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -18,7 +18,7 @@ import Store from './lib/Store'; | |||
18 | import Request from './lib/Request'; | 18 | import Request from './lib/Request'; |
19 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; | 19 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; |
20 | import { isMac, isWindows, electronVersion, osRelease } from '../environment'; | 20 | import { isMac, isWindows, electronVersion, osRelease } from '../environment'; |
21 | import { ferdiVersion, userDataPath, ferdiLocale } from '../environment-remote'; | 21 | import { ferdiumVersion, userDataPath, ferdiumLocale } from '../environment-remote'; |
22 | import { generatedTranslations } from '../i18n/translations'; | 22 | import { generatedTranslations } from '../i18n/translations'; |
23 | import { getLocale } from '../helpers/i18n-helpers'; | 23 | import { getLocale } from '../helpers/i18n-helpers'; |
24 | 24 | ||
@@ -29,13 +29,13 @@ import { | |||
29 | import { openExternalUrl } from '../helpers/url-helpers'; | 29 | import { openExternalUrl } from '../helpers/url-helpers'; |
30 | import { sleep } from '../helpers/async-helpers'; | 30 | import { sleep } from '../helpers/async-helpers'; |
31 | 31 | ||
32 | const debug = require('debug')('Ferdi:AppStore'); | 32 | const debug = require('debug')('Ferdium:AppStore'); |
33 | 33 | ||
34 | const mainWindow = getCurrentWindow(); | 34 | const mainWindow = getCurrentWindow(); |
35 | 35 | ||
36 | const executablePath = isMac ? remoteProcess.execPath : process.execPath; | 36 | const executablePath = isMac ? remoteProcess.execPath : process.execPath; |
37 | const autoLauncher = new AutoLaunch({ | 37 | const autoLauncher = new AutoLaunch({ |
38 | name: 'Ferdi', | 38 | name: 'Ferdium', |
39 | path: executablePath, | 39 | path: executablePath, |
40 | }); | 40 | }); |
41 | 41 | ||
@@ -74,7 +74,7 @@ export default class AppStore extends Store { | |||
74 | 74 | ||
75 | @observable updateStatus = ''; | 75 | @observable updateStatus = ''; |
76 | 76 | ||
77 | @observable locale = ferdiLocale; | 77 | @observable locale = ferdiumLocale; |
78 | 78 | ||
79 | @observable isSystemMuteOverridden = false; | 79 | @observable isSystemMuteOverridden = false; |
80 | 80 | ||
@@ -139,7 +139,7 @@ export default class AppStore extends Store { | |||
139 | 139 | ||
140 | this.isOnline = navigator.onLine; | 140 | this.isOnline = navigator.onLine; |
141 | 141 | ||
142 | // Check if Ferdi should launch on start | 142 | // Check if Ferdium should launch on start |
143 | // Needs to be delayed a bit | 143 | // Needs to be delayed a bit |
144 | this._autoStart(); | 144 | this._autoStart(); |
145 | 145 | ||
@@ -193,7 +193,7 @@ export default class AppStore extends Store { | |||
193 | } | 193 | } |
194 | }); | 194 | }); |
195 | 195 | ||
196 | // Handle deep linking (ferdi://) | 196 | // Handle deep linking (ferdium://) |
197 | ipcRenderer.on('navigateFromDeepLink', (event, data) => { | 197 | ipcRenderer.on('navigateFromDeepLink', (event, data) => { |
198 | debug('Navigate from deep link', data); | 198 | debug('Navigate from deep link', data); |
199 | let { url } = data; | 199 | let { url } = data; |
@@ -252,7 +252,7 @@ export default class AppStore extends Store { | |||
252 | if (isMac && !localStorage.getItem(CATALINA_NOTIFICATION_HACK_KEY)) { | 252 | if (isMac && !localStorage.getItem(CATALINA_NOTIFICATION_HACK_KEY)) { |
253 | debug('Triggering macOS Catalina notification permission trigger'); | 253 | debug('Triggering macOS Catalina notification permission trigger'); |
254 | // eslint-disable-next-line no-new | 254 | // eslint-disable-next-line no-new |
255 | new window.Notification('Welcome to Ferdi 5', { | 255 | new window.Notification('Welcome to Ferdium 5', { |
256 | body: 'Have a wonderful day & happy messaging.', | 256 | body: 'Have a wonderful day & happy messaging.', |
257 | }); | 257 | }); |
258 | 258 | ||
@@ -274,8 +274,8 @@ export default class AppStore extends Store { | |||
274 | release: osRelease, | 274 | release: osRelease, |
275 | screens: screen.getAllDisplays(), | 275 | screens: screen.getAllDisplays(), |
276 | }, | 276 | }, |
277 | ferdi: { | 277 | ferdium: { |
278 | version: ferdiVersion, | 278 | version: ferdiumVersion, |
279 | electron: electronVersion, | 279 | electron: electronVersion, |
280 | installedRecipes: this.stores.recipes.all.map(recipe => ({ | 280 | installedRecipes: this.stores.recipes.all.map(recipe => ({ |
281 | id: recipe.id, | 281 | id: recipe.id, |
@@ -492,7 +492,7 @@ export default class AppStore extends Store { | |||
492 | 492 | ||
493 | _getDefaultLocale() { | 493 | _getDefaultLocale() { |
494 | return getLocale({ | 494 | return getLocale({ |
495 | locale: ferdiLocale, | 495 | locale: ferdiumLocale, |
496 | locales, | 496 | locales, |
497 | fallbackLocale: DEFAULT_APP_SETTINGS.fallbackLocale, | 497 | fallbackLocale: DEFAULT_APP_SETTINGS.fallbackLocale, |
498 | }); | 498 | }); |