diff options
author | 2021-07-03 07:09:05 +0530 | |
---|---|---|
committer | 2021-07-03 07:09:05 +0530 | |
commit | 83676cec9ce8e41d5e88e7d06a17dd8194e3593e (patch) | |
tree | a73eb8b64a20530ee3c44f1901c9daa2a069f12a /src/stores | |
parent | Update submodules, browserslist data updates and linter fixes [skip ci] (diff) | |
download | ferdium-app-83676cec9ce8e41d5e88e7d06a17dd8194e3593e.tar.gz ferdium-app-83676cec9ce8e41d5e88e7d06a17dd8194e3593e.tar.zst ferdium-app-83676cec9ce8e41d5e88e7d06a17dd8194e3593e.zip |
Minor refactoring to move all runtime configs from 'config.js' into 'environment.js'. (#1588)
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/AppStore.js | 4 | ||||
-rw-r--r-- | src/stores/RecipesStore.js | 2 | ||||
-rw-r--r-- | src/stores/SettingsStore.js | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 4af802460..dd4ab3629 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -13,8 +13,8 @@ import { readJsonSync } from 'fs-extra'; | |||
13 | 13 | ||
14 | import Store from './lib/Store'; | 14 | import Store from './lib/Store'; |
15 | import Request from './lib/Request'; | 15 | import Request from './lib/Request'; |
16 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; | 16 | import { CHECK_INTERVAL } from '../config'; |
17 | import { isMac } from '../environment'; | 17 | import { DEFAULT_APP_SETTINGS, isMac } from '../environment'; |
18 | import locales from '../i18n/translations'; | 18 | import locales from '../i18n/translations'; |
19 | import { onVisibilityChange } from '../helpers/visibility-helper'; | 19 | import { onVisibilityChange } from '../helpers/visibility-helper'; |
20 | import { getLocale } from '../helpers/i18n-helpers'; | 20 | import { getLocale } from '../helpers/i18n-helpers'; |
diff --git a/src/stores/RecipesStore.js b/src/stores/RecipesStore.js index 965aa3a0a..b49fb72d9 100644 --- a/src/stores/RecipesStore.js +++ b/src/stores/RecipesStore.js | |||
@@ -7,7 +7,7 @@ import Store from './lib/Store'; | |||
7 | import CachedRequest from './lib/CachedRequest'; | 7 | import CachedRequest from './lib/CachedRequest'; |
8 | import Request from './lib/Request'; | 8 | import Request from './lib/Request'; |
9 | import { matchRoute } from '../helpers/routing-helpers'; | 9 | import { matchRoute } from '../helpers/routing-helpers'; |
10 | import { RECIPES_PATH } from '../config'; | 10 | import { RECIPES_PATH } from '../environment'; |
11 | 11 | ||
12 | const debug = require('debug')('Ferdi:RecipeStore'); | 12 | const debug = require('debug')('Ferdi:RecipeStore'); |
13 | 13 | ||
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index b433efd45..292242552 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js | |||
@@ -5,9 +5,9 @@ import { | |||
5 | } from 'mobx'; | 5 | } from 'mobx'; |
6 | import localStorage from 'mobx-localstorage'; | 6 | import localStorage from 'mobx-localstorage'; |
7 | import { | 7 | import { |
8 | DEFAULT_APP_SETTINGS, FILE_SYSTEM_SETTINGS_TYPES, LOCAL_SERVER, SEARCH_ENGINE_DDG, | 8 | FILE_SYSTEM_SETTINGS_TYPES, LOCAL_SERVER, SEARCH_ENGINE_DDG, |
9 | } from '../config'; | 9 | } from '../config'; |
10 | import { API } from '../environment'; | 10 | import { API, DEFAULT_APP_SETTINGS } from '../environment'; |
11 | import { getLocale } from '../helpers/i18n-helpers'; | 11 | import { getLocale } from '../helpers/i18n-helpers'; |
12 | import { hash } from '../helpers/password-helpers'; | 12 | import { hash } from '../helpers/password-helpers'; |
13 | import { SPELLCHECKER_LOCALES } from '../i18n/languages'; | 13 | import { SPELLCHECKER_LOCALES } from '../i18n/languages'; |