aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores')
-rw-r--r--src/stores/AppStore.js20
-rw-r--r--src/stores/GlobalErrorStore.js6
-rw-r--r--src/stores/RecipesStore.js2
-rw-r--r--src/stores/RequestStore.js2
-rw-r--r--src/stores/ServicesStore.js12
-rw-r--r--src/stores/SettingsStore.js2
-rw-r--r--src/stores/UserStore.js2
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';
18import Request from './lib/Request'; 18import Request from './lib/Request';
19import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; 19import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config';
20import { isMac, isWindows, electronVersion, osRelease } from '../environment'; 20import { isMac, isWindows, electronVersion, osRelease } from '../environment';
21import { ferdiVersion, userDataPath, ferdiLocale } from '../environment-remote'; 21import { ferdiumVersion, userDataPath, ferdiumLocale } from '../environment-remote';
22import { generatedTranslations } from '../i18n/translations'; 22import { generatedTranslations } from '../i18n/translations';
23import { getLocale } from '../helpers/i18n-helpers'; 23import { getLocale } from '../helpers/i18n-helpers';
24 24
@@ -29,13 +29,13 @@ import {
29import { openExternalUrl } from '../helpers/url-helpers'; 29import { openExternalUrl } from '../helpers/url-helpers';
30import { sleep } from '../helpers/async-helpers'; 30import { sleep } from '../helpers/async-helpers';
31 31
32const debug = require('debug')('Ferdi:AppStore'); 32const debug = require('debug')('Ferdium:AppStore');
33 33
34const mainWindow = getCurrentWindow(); 34const mainWindow = getCurrentWindow();
35 35
36const executablePath = isMac ? remoteProcess.execPath : process.execPath; 36const executablePath = isMac ? remoteProcess.execPath : process.execPath;
37const autoLauncher = new AutoLaunch({ 37const 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';
8import { matchRoute } from '../helpers/routing-helpers'; 8import { matchRoute } from '../helpers/routing-helpers';
9import { asarRecipesPath } from '../helpers/asar-helpers'; 9import { asarRecipesPath } from '../helpers/asar-helpers';
10 10
11const debug = require('debug')('Ferdi:RecipeStore'); 11const debug = require('debug')('Ferdium:RecipeStore');
12 12
13export default class RecipesStore extends Store { 13export 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
5import Store from './lib/Store'; 5import Store from './lib/Store';
6 6
7const debug = require('debug')('Ferdi:RequestsStore'); 7const debug = require('debug')('Ferdium:RequestsStore');
8 8
9export default class RequestStore extends Store { 9export 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 {
17import { workspaceStore } from '../features/workspaces'; 17import { workspaceStore } from '../features/workspaces';
18import { DEFAULT_SERVICE_SETTINGS, KEEP_WS_LOADED_USID } from '../config'; 18import { DEFAULT_SERVICE_SETTINGS, KEEP_WS_LOADED_USID } from '../config';
19import { SPELLCHECKER_LOCALES } from '../i18n/languages'; 19import { SPELLCHECKER_LOCALES } from '../i18n/languages';
20import { ferdiVersion } from '../environment-remote'; 20import { ferdiumVersion } from '../environment-remote';
21 21
22const debug = require('debug')('Ferdi:ServiceStore'); 22const debug = require('debug')('Ferdium:ServiceStore');
23 23
24export default class ServicesStore extends Store { 24export 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';
11import Request from './lib/Request'; 11import Request from './lib/Request';
12import Store from './lib/Store'; 12import Store from './lib/Store';
13 13
14const debug = require('debug')('Ferdi:SettingsStore'); 14const debug = require('debug')('Ferdium:SettingsStore');
15 15
16export default class SettingsStore extends Store { 16export 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';
10import Request from './lib/Request'; 10import Request from './lib/Request';
11import CachedRequest from './lib/CachedRequest'; 11import CachedRequest from './lib/CachedRequest';
12 12
13const debug = require('debug')('Ferdi:UserStore'); 13const debug = require('debug')('Ferdium:UserStore');
14 14
15// TODO: split stores into UserStore and AuthStore 15// TODO: split stores into UserStore and AuthStore
16export default class UserStore extends Store { 16export default class UserStore extends Store {