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 | |
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')
-rw-r--r-- | src/stores/AppStore.js | 20 | ||||
-rw-r--r-- | src/stores/GlobalErrorStore.js | 6 | ||||
-rw-r--r-- | src/stores/RecipesStore.js | 2 | ||||
-rw-r--r-- | src/stores/RequestStore.js | 2 | ||||
-rw-r--r-- | src/stores/ServicesStore.js | 12 | ||||
-rw-r--r-- | src/stores/SettingsStore.js | 2 | ||||
-rw-r--r-- | src/stores/UserStore.js | 2 |
7 files changed, 23 insertions, 23 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 | }); |
diff --git a/src/stores/GlobalErrorStore.js b/src/stores/GlobalErrorStore.js index 9c851d6f2..356a6f298 100644 --- a/src/stores/GlobalErrorStore.js +++ b/src/stores/GlobalErrorStore.js | |||
@@ -64,7 +64,7 @@ export default class GlobalErrorStore extends Store { | |||
64 | this.response = {}; | 64 | this.response = {}; |
65 | } | 65 | } |
66 | if (this.error.status === 401) { | 66 | if (this.error.status === 401) { |
67 | window['ferdi'].stores.app.authRequestFailed = true; | 67 | window['ferdium'].stores.app.authRequestFailed = true; |
68 | // this.actions.user.logout({ serverLogout: true }); | 68 | // this.actions.user.logout({ serverLogout: true }); |
69 | } | 69 | } |
70 | } | 70 | } |
@@ -78,10 +78,10 @@ export default class GlobalErrorStore extends Store { | |||
78 | }, | 78 | }, |
79 | error: this.error, | 79 | error: this.error, |
80 | response: this.response, | 80 | response: this.response, |
81 | server: window['ferdi'].stores.settings.app.server, | 81 | server: window['ferdium'].stores.settings.app.server, |
82 | }); | 82 | }); |
83 | } else { | 83 | } else { |
84 | window['ferdi'].stores.app.authRequestFailed = false; | 84 | window['ferdium'].stores.app.authRequestFailed = false; |
85 | } | 85 | } |
86 | }); | 86 | }); |
87 | } | 87 | } |
diff --git a/src/stores/RecipesStore.js b/src/stores/RecipesStore.js index 95d662e79..0a3db2488 100644 --- a/src/stores/RecipesStore.js +++ b/src/stores/RecipesStore.js | |||
@@ -8,7 +8,7 @@ import Request from './lib/Request'; | |||
8 | import { matchRoute } from '../helpers/routing-helpers'; | 8 | import { matchRoute } from '../helpers/routing-helpers'; |
9 | import { asarRecipesPath } from '../helpers/asar-helpers'; | 9 | import { asarRecipesPath } from '../helpers/asar-helpers'; |
10 | 10 | ||
11 | const debug = require('debug')('Ferdi:RecipeStore'); | 11 | const debug = require('debug')('Ferdium:RecipeStore'); |
12 | 12 | ||
13 | export default class RecipesStore extends Store { | 13 | export default class RecipesStore extends Store { |
14 | @observable allRecipesRequest = new CachedRequest(this.api.recipes, 'all'); | 14 | @observable allRecipesRequest = new CachedRequest(this.api.recipes, 'all'); |
diff --git a/src/stores/RequestStore.js b/src/stores/RequestStore.js index 6d2f2ef91..2e76a7023 100644 --- a/src/stores/RequestStore.js +++ b/src/stores/RequestStore.js | |||
@@ -4,7 +4,7 @@ import ms from 'ms'; | |||
4 | 4 | ||
5 | import Store from './lib/Store'; | 5 | import Store from './lib/Store'; |
6 | 6 | ||
7 | const debug = require('debug')('Ferdi:RequestsStore'); | 7 | const debug = require('debug')('Ferdium:RequestsStore'); |
8 | 8 | ||
9 | export default class RequestStore extends Store { | 9 | export default class RequestStore extends Store { |
10 | @observable userInfoRequest; | 10 | @observable userInfoRequest; |
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index e2bfd22f3..1c800df59 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -17,9 +17,9 @@ import { | |||
17 | import { workspaceStore } from '../features/workspaces'; | 17 | import { workspaceStore } from '../features/workspaces'; |
18 | import { DEFAULT_SERVICE_SETTINGS, KEEP_WS_LOADED_USID } from '../config'; | 18 | import { DEFAULT_SERVICE_SETTINGS, KEEP_WS_LOADED_USID } from '../config'; |
19 | import { SPELLCHECKER_LOCALES } from '../i18n/languages'; | 19 | import { SPELLCHECKER_LOCALES } from '../i18n/languages'; |
20 | import { ferdiVersion } from '../environment-remote'; | 20 | import { ferdiumVersion } from '../environment-remote'; |
21 | 21 | ||
22 | const debug = require('debug')('Ferdi:ServiceStore'); | 22 | const debug = require('debug')('Ferdium:ServiceStore'); |
23 | 23 | ||
24 | export default class ServicesStore extends Store { | 24 | export default class ServicesStore extends Store { |
25 | @observable allServicesRequest = new CachedRequest(this.api.services, 'all'); | 25 | @observable allServicesRequest = new CachedRequest(this.api.services, 'all'); |
@@ -563,7 +563,7 @@ export default class ServicesStore extends Store { | |||
563 | if (!pathExistsSync(filePath)) { | 563 | if (!pathExistsSync(filePath)) { |
564 | writeFileSync( | 564 | writeFileSync( |
565 | filePath, | 565 | filePath, |
566 | `module.exports = (config, Ferdi) => { | 566 | `module.exports = (config, Ferdium) => { |
567 | // Write your scripts here | 567 | // Write your scripts here |
568 | console.log("Hello, World!", config); | 568 | console.log("Hello, World!", config); |
569 | }; | 569 | }; |
@@ -691,7 +691,7 @@ export default class ServicesStore extends Store { | |||
691 | const service = this.active; | 691 | const service = this.active; |
692 | if (service) { | 692 | if (service) { |
693 | if (service._webview) { | 693 | if (service._webview) { |
694 | document.title = `Ferdi - ${service.name} ${ | 694 | document.title = `Ferdium - ${service.name} ${ |
695 | service.dialogTitle ? ` - ${service.dialogTitle}` : '' | 695 | service.dialogTitle ? ` - ${service.dialogTitle}` : '' |
696 | } ${service._webview ? `- ${service._webview.getTitle()}` : ''}`; | 696 | } ${service._webview ? `- ${service._webview.getTitle()}` : ''}`; |
697 | this._focusService({ serviceId: service.id }); | 697 | this._focusService({ serviceId: service.id }); |
@@ -1127,7 +1127,7 @@ export default class ServicesStore extends Store { | |||
1127 | const service = this.active; | 1127 | const service = this.active; |
1128 | if (service) { | 1128 | if (service) { |
1129 | this.actions.service.focusService({ serviceId: service.id }); | 1129 | this.actions.service.focusService({ serviceId: service.id }); |
1130 | document.title = `Ferdi - ${service.name} ${ | 1130 | document.title = `Ferdium - ${service.name} ${ |
1131 | service.dialogTitle ? ` - ${service.dialogTitle}` : '' | 1131 | service.dialogTitle ? ` - ${service.dialogTitle}` : '' |
1132 | } ${service._webview ? `- ${service._webview.getTitle()}` : ''}`; | 1132 | } ${service._webview ? `- ${service._webview.getTitle()}` : ''}`; |
1133 | } else { | 1133 | } else { |
@@ -1282,7 +1282,7 @@ export default class ServicesStore extends Store { | |||
1282 | 'initialize-recipe', | 1282 | 'initialize-recipe', |
1283 | { | 1283 | { |
1284 | ...shareWithWebview, | 1284 | ...shareWithWebview, |
1285 | franzVersion: ferdiVersion, | 1285 | franzVersion: ferdiumVersion, |
1286 | }, | 1286 | }, |
1287 | service.recipe, | 1287 | service.recipe, |
1288 | ); | 1288 | ); |
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index e638d84b8..cfd73c705 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js | |||
@@ -11,7 +11,7 @@ import { hash } from '../helpers/password-helpers'; | |||
11 | import Request from './lib/Request'; | 11 | import Request from './lib/Request'; |
12 | import Store from './lib/Store'; | 12 | import Store from './lib/Store'; |
13 | 13 | ||
14 | const debug = require('debug')('Ferdi:SettingsStore'); | 14 | const debug = require('debug')('Ferdium:SettingsStore'); |
15 | 15 | ||
16 | export default class SettingsStore extends Store { | 16 | export default class SettingsStore extends Store { |
17 | @observable updateAppSettingsRequest = new Request( | 17 | @observable updateAppSettingsRequest = new Request( |
diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js index 9a5d8cb30..787ffbb56 100644 --- a/src/stores/UserStore.js +++ b/src/stores/UserStore.js | |||
@@ -10,7 +10,7 @@ import Store from './lib/Store'; | |||
10 | import Request from './lib/Request'; | 10 | import Request from './lib/Request'; |
11 | import CachedRequest from './lib/CachedRequest'; | 11 | import CachedRequest from './lib/CachedRequest'; |
12 | 12 | ||
13 | const debug = require('debug')('Ferdi:UserStore'); | 13 | const debug = require('debug')('Ferdium:UserStore'); |
14 | 14 | ||
15 | // TODO: split stores into UserStore and AuthStore | 15 | // TODO: split stores into UserStore and AuthStore |
16 | export default class UserStore extends Store { | 16 | export default class UserStore extends Store { |