diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/api/server/ServerApi.js | 3 | ||||
-rw-r--r-- | src/components/settings/settings/EditSettingsForm.js | 3 | ||||
-rw-r--r-- | src/config.js | 102 | ||||
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 4 | ||||
-rw-r--r-- | src/containers/settings/RecipesScreen.js | 3 | ||||
-rw-r--r-- | src/electron/Settings.js | 2 | ||||
-rw-r--r-- | src/environment.js | 108 | ||||
-rw-r--r-- | src/features/announcements/store.js | 2 | ||||
-rw-r--r-- | src/features/appearance/index.js | 3 | ||||
-rw-r--r-- | src/i18n/locales/defaultMessages.json | 128 | ||||
-rw-r--r-- | src/i18n/messages/src/components/settings/settings/EditSettingsForm.json | 128 | ||||
-rw-r--r-- | src/index.js | 23 | ||||
-rw-r--r-- | src/stores/AppStore.js | 4 | ||||
-rw-r--r-- | src/stores/RecipesStore.js | 2 | ||||
-rw-r--r-- | src/stores/SettingsStore.js | 4 | ||||
-rw-r--r-- | src/webview/recipe.js | 3 |
16 files changed, 252 insertions, 270 deletions
diff --git a/src/api/server/ServerApi.js b/src/api/server/ServerApi.js index 5365f9dbe..75d18f234 100644 --- a/src/api/server/ServerApi.js +++ b/src/api/server/ServerApi.js | |||
@@ -14,7 +14,8 @@ import OrderModel from '../../models/Order'; | |||
14 | 14 | ||
15 | import { sleep } from '../../helpers/async-helpers'; | 15 | import { sleep } from '../../helpers/async-helpers'; |
16 | 16 | ||
17 | import { RECIPES_PATH, SERVER_NOT_LOADED } from '../../config'; | 17 | import { SERVER_NOT_LOADED } from '../../config'; |
18 | import { RECIPES_PATH } from '../../environment'; | ||
18 | import apiBase from '../apiBase'; | 19 | import apiBase from '../apiBase'; |
19 | import { prepareAuthRequest, sendAuthRequest } from '../utils/auth'; | 20 | import { prepareAuthRequest, sendAuthRequest } from '../utils/auth'; |
20 | 21 | ||
diff --git a/src/components/settings/settings/EditSettingsForm.js b/src/components/settings/settings/EditSettingsForm.js index d31bb8933..4ba7dc720 100644 --- a/src/components/settings/settings/EditSettingsForm.js +++ b/src/components/settings/settings/EditSettingsForm.js | |||
@@ -14,11 +14,10 @@ import PremiumFeatureContainer from '../../ui/PremiumFeatureContainer'; | |||
14 | import Input from '../../ui/Input'; | 14 | import Input from '../../ui/Input'; |
15 | 15 | ||
16 | import { | 16 | import { |
17 | DEFAULT_APP_SETTINGS, | ||
18 | FRANZ_TRANSLATION, | 17 | FRANZ_TRANSLATION, |
19 | GITHUB_FRANZ_URL, | 18 | GITHUB_FRANZ_URL, |
20 | } from '../../../config'; | 19 | } from '../../../config'; |
21 | import { isMac, isWindows } from '../../../environment'; | 20 | import { DEFAULT_APP_SETTINGS, isMac, isWindows } from '../../../environment'; |
22 | 21 | ||
23 | const messages = defineMessages({ | 22 | const messages = defineMessages({ |
24 | headline: { | 23 | headline: { |
diff --git a/src/config.js b/src/config.js index d96a6068b..089ec1a8d 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -1,9 +1,6 @@ | |||
1 | import ms from 'ms'; | 1 | // Note: This file has now become devoid of all references to values deduced from the runtime process - all those now live in the `environment.js` file |
2 | import path from 'path'; | ||
3 | import { DEFAULT_ACCENT_COLOR } from '@meetfranz/theme'; | ||
4 | import { asarPath } from './helpers/asar-helpers'; | ||
5 | 2 | ||
6 | const { app, nativeTheme } = process.type === 'renderer' ? require('@electron/remote') : require('electron'); | 3 | import ms from 'ms'; |
7 | 4 | ||
8 | export const CHECK_INTERVAL = ms('1h'); // How often should we perform checks | 5 | export const CHECK_INTERVAL = ms('1h'); // How often should we perform checks |
9 | 6 | ||
@@ -122,61 +119,6 @@ export const ICON_SIZES = { | |||
122 | // The bias should always be the "Normal icons" value | 119 | // The bias should always be the "Normal icons" value |
123 | export const iconSizeBias = 20; | 120 | export const iconSizeBias = 20; |
124 | 121 | ||
125 | export const DEFAULT_APP_SETTINGS = { | ||
126 | autoLaunchInBackground: false, | ||
127 | runInBackground: true, | ||
128 | reloadAfterResume: true, | ||
129 | enableSystemTray: true, | ||
130 | startMinimized: false, | ||
131 | minimizeToSystemTray: false, | ||
132 | closeToSystemTray: false, | ||
133 | privateNotifications: false, | ||
134 | clipboardNotifications: true, | ||
135 | notifyTaskBarOnMessage: false, | ||
136 | showDisabledServices: true, | ||
137 | showMessageBadgeWhenMuted: true, | ||
138 | showDragArea: false, | ||
139 | enableSpellchecking: true, | ||
140 | spellcheckerLanguage: 'en-us', | ||
141 | darkMode: process.platform === 'darwin' ? nativeTheme.shouldUseDarkColors : false, // We can't use refs from `./environment` at this time | ||
142 | locale: '', | ||
143 | fallbackLocale: 'en-US', | ||
144 | beta: false, | ||
145 | isAppMuted: false, | ||
146 | enableGPUAcceleration: true, | ||
147 | serviceLimit: 5, | ||
148 | |||
149 | // Ferdi specific options | ||
150 | server: LIVE_FERDI_API, | ||
151 | predefinedTodoServer: DEFAULT_TODO_SERVICE, | ||
152 | autohideMenuBar: false, | ||
153 | lockingFeatureEnabled: false, | ||
154 | locked: false, | ||
155 | lockedPassword: '', | ||
156 | useTouchIdToUnlock: true, | ||
157 | scheduledDNDEnabled: false, | ||
158 | scheduledDNDStart: '17:00', | ||
159 | scheduledDNDEnd: '09:00', | ||
160 | hibernate: false, | ||
161 | hibernateOnStartup: true, | ||
162 | hibernationStrategy: 300, | ||
163 | inactivityLock: 0, | ||
164 | automaticUpdates: true, | ||
165 | showServiceNavigationBar: false, | ||
166 | universalDarkMode: true, | ||
167 | userAgentPref: '', | ||
168 | adaptableDarkMode: true, | ||
169 | accentColor: DEFAULT_ACCENT_COLOR, | ||
170 | serviceRibbonWidth: 68, | ||
171 | iconSize: iconSizeBias, | ||
172 | sentry: false, | ||
173 | nightly: false, | ||
174 | navigationBarBehaviour: 'custom', | ||
175 | searchEngine: SEARCH_ENGINE_DDG, | ||
176 | useVerticalStyle: false, | ||
177 | alwaysShowWorkspaces: false, | ||
178 | }; | ||
179 | |||
180 | export const DEFAULT_FEATURES_CONFIG = { | 122 | export const DEFAULT_FEATURES_CONFIG = { |
181 | isSpellcheckerIncludedInCurrentPlan: true, | 123 | isSpellcheckerIncludedInCurrentPlan: true, |
182 | needToWaitToProceed: false, | 124 | needToWaitToProceed: false, |
@@ -217,45 +159,6 @@ export const FILE_SYSTEM_SETTINGS_TYPES = [ | |||
217 | export const LOCAL_SERVER = 'You are using Ferdi without a server'; | 159 | export const LOCAL_SERVER = 'You are using Ferdi without a server'; |
218 | export const SERVER_NOT_LOADED = 'Ferdi::SERVER_NOT_LOADED'; | 160 | export const SERVER_NOT_LOADED = 'Ferdi::SERVER_NOT_LOADED'; |
219 | 161 | ||
220 | // TODO: This seems to be duplicated between here and 'index.js' | ||
221 | // Set app directory before loading user modules | ||
222 | if (process.env.FERDI_APPDATA_DIR != null) { | ||
223 | app.setPath('appData', process.env.FERDI_APPDATA_DIR); | ||
224 | app.setPath('userData', path.join(app.getPath('appData'))); | ||
225 | } else if (process.env.PORTABLE_EXECUTABLE_DIR != null) { | ||
226 | app.setPath('appData', process.env.PORTABLE_EXECUTABLE_DIR, `${app.name}AppData`); | ||
227 | app.setPath('userData', path.join(app.getPath('appData'), `${app.name}AppData`)); | ||
228 | } else if (process.platform === 'win32') { | ||
229 | app.setPath('appData', process.env.APPDATA); | ||
230 | app.setPath('userData', path.join(app.getPath('appData'), app.name)); | ||
231 | } | ||
232 | |||
233 | const ELECTRON_IS_DEV_VAR = 'ELECTRON_IS_DEV'; | ||
234 | const NODE_ENV_VAR = 'NODE_ENV'; | ||
235 | |||
236 | // TODO Move this to environment.js and remove the re-export from there. | ||
237 | export const isDevMode = (() => { | ||
238 | const isEnvVarSet = name => name in process.env; | ||
239 | if (isEnvVarSet(ELECTRON_IS_DEV_VAR)) { | ||
240 | // Copied from https://github.com/sindresorhus/electron-is-dev/blob/f05330b856782dac7987b10859bfd95ea6a187a6/index.js | ||
241 | // but electron-is-dev breaks in a renderer process, so we use the app import from above instead. | ||
242 | const electronIsDev = process.env[ELECTRON_IS_DEV_VAR]; | ||
243 | return electronIsDev === 'true' || Number.parseInt(electronIsDev, 10) === 1; | ||
244 | } | ||
245 | if (isEnvVarSet(NODE_ENV_VAR)) { | ||
246 | return process.env[NODE_ENV_VAR] === 'development'; | ||
247 | } | ||
248 | return !app.isPackaged; | ||
249 | })(); | ||
250 | if (isDevMode) { | ||
251 | app.setPath('userData', path.join(app.getPath('appData'), `${app.name}Dev`)); | ||
252 | } | ||
253 | |||
254 | export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config'); | ||
255 | |||
256 | // Replacing app.asar is not beautiful but unfortunately necessary | ||
257 | export const RECIPES_PATH = asarPath(path.join(__dirname, 'recipes')); | ||
258 | |||
259 | export const ALLOWED_PROTOCOLS = [ | 162 | export const ALLOWED_PROTOCOLS = [ |
260 | 'https:', | 163 | 'https:', |
261 | 'http:', | 164 | 'http:', |
@@ -285,7 +188,6 @@ export const PLANS_MAPPING = { | |||
285 | free: PLANS.FREE, | 188 | free: PLANS.FREE, |
286 | }; | 189 | }; |
287 | 190 | ||
288 | |||
289 | export const DEFAULT_SETTING_KEEP_ALL_WORKSPACES_LOADED = false; | 191 | export const DEFAULT_SETTING_KEEP_ALL_WORKSPACES_LOADED = false; |
290 | 192 | ||
291 | export const DEFAULT_SERVICE_LIMIT = 3; | 193 | export const DEFAULT_SERVICE_LIMIT = 3; |
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index 93c5daca2..d601e03d4 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -10,10 +10,10 @@ import TodosStore from '../../features/todos/store'; | |||
10 | import Form from '../../lib/Form'; | 10 | import Form from '../../lib/Form'; |
11 | import { APP_LOCALES, SPELLCHECKER_LOCALES } from '../../i18n/languages'; | 11 | import { APP_LOCALES, SPELLCHECKER_LOCALES } from '../../i18n/languages'; |
12 | import { | 12 | import { |
13 | DEFAULT_APP_SETTINGS, HIBERNATION_STRATEGIES, SIDEBAR_WIDTH, ICON_SIZES, NAVIGATION_BAR_BEHAVIOURS, SEARCH_ENGINE_NAMES, TODO_APPS, | 13 | HIBERNATION_STRATEGIES, SIDEBAR_WIDTH, ICON_SIZES, NAVIGATION_BAR_BEHAVIOURS, SEARCH_ENGINE_NAMES, TODO_APPS, |
14 | DEFAULT_SETTING_KEEP_ALL_WORKSPACES_LOADED, DEFAULT_IS_FEATURE_ENABLED_BY_USER, | 14 | DEFAULT_SETTING_KEEP_ALL_WORKSPACES_LOADED, DEFAULT_IS_FEATURE_ENABLED_BY_USER, |
15 | } from '../../config'; | 15 | } from '../../config'; |
16 | import { isMac } from '../../environment'; | 16 | import { DEFAULT_APP_SETTINGS, isMac } from '../../environment'; |
17 | import { config as spellcheckerConfig } from '../../features/spellchecker'; | 17 | import { config as spellcheckerConfig } from '../../features/spellchecker'; |
18 | 18 | ||
19 | import { getSelectOptions } from '../../helpers/i18n-helpers'; | 19 | import { getSelectOptions } from '../../helpers/i18n-helpers'; |
diff --git a/src/containers/settings/RecipesScreen.js b/src/containers/settings/RecipesScreen.js index c69a70e2f..117f62ea8 100644 --- a/src/containers/settings/RecipesScreen.js +++ b/src/containers/settings/RecipesScreen.js | |||
@@ -14,7 +14,8 @@ import UserStore from '../../stores/UserStore'; | |||
14 | 14 | ||
15 | import RecipesDashboard from '../../components/settings/recipes/RecipesDashboard'; | 15 | import RecipesDashboard from '../../components/settings/recipes/RecipesDashboard'; |
16 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 16 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
17 | import { FRANZ_DEV_DOCS, RECIPES_PATH } from '../../config'; | 17 | import { FRANZ_DEV_DOCS } from '../../config'; |
18 | import { RECIPES_PATH } from '../../environment'; | ||
18 | import { communityRecipesStore } from '../../features/communityRecipes'; | 19 | import { communityRecipesStore } from '../../features/communityRecipes'; |
19 | import RecipePreview from '../../models/RecipePreview'; | 20 | import RecipePreview from '../../models/RecipePreview'; |
20 | import AppStore from '../../stores/AppStore'; | 21 | import AppStore from '../../stores/AppStore'; |
diff --git a/src/electron/Settings.js b/src/electron/Settings.js index 743d48632..2f3f8261a 100644 --- a/src/electron/Settings.js +++ b/src/electron/Settings.js | |||
@@ -2,7 +2,7 @@ import { observable, toJS } from 'mobx'; | |||
2 | import { pathExistsSync, outputJsonSync, readJsonSync } from 'fs-extra'; | 2 | import { pathExistsSync, outputJsonSync, readJsonSync } from 'fs-extra'; |
3 | import path from 'path'; | 3 | import path from 'path'; |
4 | 4 | ||
5 | import { SETTINGS_PATH } from '../config'; | 5 | import { SETTINGS_PATH } from '../environment'; |
6 | 6 | ||
7 | const debug = require('debug')('Ferdi:Settings'); | 7 | const debug = require('debug')('Ferdi:Settings'); |
8 | 8 | ||
diff --git a/src/environment.js b/src/environment.js index 18d686232..6a55045a7 100644 --- a/src/environment.js +++ b/src/environment.js | |||
@@ -1,5 +1,8 @@ | |||
1 | import path from 'path'; | ||
2 | |||
3 | import { DEFAULT_ACCENT_COLOR } from '@meetfranz/theme'; | ||
4 | |||
1 | import { | 5 | import { |
2 | isDevMode as isDev, | ||
3 | LIVE_FERDI_API, | 6 | LIVE_FERDI_API, |
4 | DEV_FRANZ_API, | 7 | DEV_FRANZ_API, |
5 | LOCAL_API, | 8 | LOCAL_API, |
@@ -12,16 +15,56 @@ import { | |||
12 | LOCAL_TODOS_FRONTEND_URL, | 15 | LOCAL_TODOS_FRONTEND_URL, |
13 | PRODUCTION_TODOS_FRONTEND_URL, | 16 | PRODUCTION_TODOS_FRONTEND_URL, |
14 | LIVE_FRANZ_API, | 17 | LIVE_FRANZ_API, |
18 | DEFAULT_TODO_SERVICE, | ||
19 | SEARCH_ENGINE_DDG, | ||
20 | iconSizeBias, | ||
15 | } from './config'; | 21 | } from './config'; |
16 | 22 | ||
23 | import { asarPath } from './helpers/asar-helpers'; | ||
24 | |||
17 | // eslint-disable-next-line global-require | 25 | // eslint-disable-next-line global-require |
18 | export const { app } = process.type === 'renderer' ? require('@electron/remote') : require('electron'); | 26 | export const { app } = process.type === 'renderer' ? require('@electron/remote') : require('electron'); |
27 | const { nativeTheme } = process.type === 'renderer' ? require('@electron/remote') : require('electron'); | ||
19 | 28 | ||
20 | // TODO Remove this re-export and move the code from config.js to here. | 29 | // TODO: This seems to be duplicated between here and 'index.js' |
21 | export const isDevMode = isDev; | 30 | // Set app directory before loading user modules |
31 | if (process.env.FERDI_APPDATA_DIR != null) { | ||
32 | app.setPath('appData', process.env.FERDI_APPDATA_DIR); | ||
33 | app.setPath('userData', path.join(app.getPath('appData'))); | ||
34 | } else if (process.env.PORTABLE_EXECUTABLE_DIR != null) { | ||
35 | app.setPath('appData', process.env.PORTABLE_EXECUTABLE_DIR, `${app.name}AppData`); | ||
36 | app.setPath('userData', path.join(app.getPath('appData'), `${app.name}AppData`)); | ||
37 | } else if (process.platform === 'win32') { | ||
38 | app.setPath('appData', process.env.APPDATA); | ||
39 | app.setPath('userData', path.join(app.getPath('appData'), app.name)); | ||
40 | } | ||
41 | |||
42 | const ELECTRON_IS_DEV_VAR = 'ELECTRON_IS_DEV'; | ||
43 | const NODE_ENV_VAR = 'NODE_ENV'; | ||
44 | |||
45 | export const isDevMode = (() => { | ||
46 | const isEnvVarSet = name => name in process.env; | ||
47 | if (isEnvVarSet(ELECTRON_IS_DEV_VAR)) { | ||
48 | // Copied from https://github.com/sindresorhus/electron-is-dev/blob/f05330b856782dac7987b10859bfd95ea6a187a6/index.js | ||
49 | // but electron-is-dev breaks in a renderer process, so we use the app import from above instead. | ||
50 | const electronIsDev = process.env[ELECTRON_IS_DEV_VAR]; | ||
51 | return electronIsDev === 'true' || Number.parseInt(electronIsDev, 10) === 1; | ||
52 | } | ||
53 | if (isEnvVarSet(NODE_ENV_VAR)) { | ||
54 | return process.env[NODE_ENV_VAR] === 'development'; | ||
55 | } | ||
56 | return !app.isPackaged; | ||
57 | })(); | ||
58 | if (isDevMode) { | ||
59 | app.setPath('userData', path.join(app.getPath('appData'), `${app.name}Dev`)); | ||
60 | } | ||
61 | |||
62 | export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config'); | ||
63 | |||
64 | // Replacing app.asar is not beautiful but unfortunately necessary | ||
65 | export const RECIPES_PATH = asarPath(path.join(__dirname, 'recipes')); | ||
22 | 66 | ||
23 | export const useLiveAPI = process.env.LIVE_API; | 67 | export const useLiveAPI = process.env.LIVE_API; |
24 | export const useLocalAPI = process.env.LOCAL_API; | ||
25 | 68 | ||
26 | let { platform } = process; | 69 | let { platform } = process; |
27 | if (process.env.OS_PLATFORM) { | 70 | if (process.env.OS_PLATFORM) { |
@@ -46,7 +89,7 @@ if (!isDevMode || (isDevMode && useLiveAPI)) { | |||
46 | web = LIVE_API_FERDI_WEBSITE; | 89 | web = LIVE_API_FERDI_WEBSITE; |
47 | // web = DEV_API_FRANZ_WEBSITE; | 90 | // web = DEV_API_FRANZ_WEBSITE; |
48 | todos = PRODUCTION_TODOS_FRONTEND_URL; | 91 | todos = PRODUCTION_TODOS_FRONTEND_URL; |
49 | } else if (isDevMode && useLocalAPI) { | 92 | } else if (isDevMode && process.env.LOCAL_API) { |
50 | api = LOCAL_API; | 93 | api = LOCAL_API; |
51 | wsApi = LOCAL_WS_API; | 94 | wsApi = LOCAL_WS_API; |
52 | web = LOCAL_API_WEBSITE; | 95 | web = LOCAL_API_WEBSITE; |
@@ -64,6 +107,61 @@ export const WS_API = wsApi; | |||
64 | export const WEBSITE = web; | 107 | export const WEBSITE = web; |
65 | export const TODOS_FRONTEND = todos; | 108 | export const TODOS_FRONTEND = todos; |
66 | 109 | ||
110 | export const DEFAULT_APP_SETTINGS = { | ||
111 | autoLaunchInBackground: false, | ||
112 | runInBackground: true, | ||
113 | reloadAfterResume: true, | ||
114 | enableSystemTray: true, | ||
115 | startMinimized: false, | ||
116 | minimizeToSystemTray: false, | ||
117 | closeToSystemTray: false, | ||
118 | privateNotifications: false, | ||
119 | clipboardNotifications: true, | ||
120 | notifyTaskBarOnMessage: false, | ||
121 | showDisabledServices: true, | ||
122 | showMessageBadgeWhenMuted: true, | ||
123 | showDragArea: false, | ||
124 | enableSpellchecking: true, | ||
125 | spellcheckerLanguage: 'en-us', | ||
126 | darkMode: isMac ? nativeTheme.shouldUseDarkColors : false, | ||
127 | locale: '', | ||
128 | fallbackLocale: 'en-US', | ||
129 | beta: false, | ||
130 | isAppMuted: false, | ||
131 | enableGPUAcceleration: true, | ||
132 | serviceLimit: 5, | ||
133 | |||
134 | // Ferdi specific options | ||
135 | server: LIVE_FERDI_API, | ||
136 | predefinedTodoServer: DEFAULT_TODO_SERVICE, | ||
137 | autohideMenuBar: false, | ||
138 | lockingFeatureEnabled: false, | ||
139 | locked: false, | ||
140 | lockedPassword: '', | ||
141 | useTouchIdToUnlock: true, | ||
142 | scheduledDNDEnabled: false, | ||
143 | scheduledDNDStart: '17:00', | ||
144 | scheduledDNDEnd: '09:00', | ||
145 | hibernate: false, | ||
146 | hibernateOnStartup: true, | ||
147 | hibernationStrategy: 300, | ||
148 | inactivityLock: 0, | ||
149 | automaticUpdates: true, | ||
150 | showServiceNavigationBar: false, | ||
151 | universalDarkMode: true, | ||
152 | userAgentPref: '', | ||
153 | adaptableDarkMode: true, | ||
154 | accentColor: DEFAULT_ACCENT_COLOR, | ||
155 | serviceRibbonWidth: 68, | ||
156 | iconSize: iconSizeBias, | ||
157 | sentry: false, | ||
158 | nightly: false, | ||
159 | navigationBarBehaviour: 'custom', | ||
160 | searchEngine: SEARCH_ENGINE_DDG, | ||
161 | useVerticalStyle: false, | ||
162 | alwaysShowWorkspaces: false, | ||
163 | }; | ||
164 | |||
67 | export function termsBase() { | 165 | export function termsBase() { |
68 | return window.ferdi.stores.settings.all.app.server !== LIVE_FRANZ_API ? window.ferdi.stores.settings.all.app.server : DEV_API_FRANZ_WEBSITE; | 166 | return window.ferdi.stores.settings.all.app.server !== LIVE_FRANZ_API ? window.ferdi.stores.settings.all.app.server : DEV_API_FRANZ_WEBSITE; |
69 | } | 167 | } |
diff --git a/src/features/announcements/store.js b/src/features/announcements/store.js index 4e465286a..794d20142 100644 --- a/src/features/announcements/store.js +++ b/src/features/announcements/store.js | |||
@@ -13,7 +13,7 @@ import { announcementActions } from './actions'; | |||
13 | import { createActionBindings } from '../utils/ActionBinding'; | 13 | import { createActionBindings } from '../utils/ActionBinding'; |
14 | import { createReactions } from '../../stores/lib/Reaction'; | 14 | import { createReactions } from '../../stores/lib/Reaction'; |
15 | import { matchRoute } from '../../helpers/routing-helpers'; | 15 | import { matchRoute } from '../../helpers/routing-helpers'; |
16 | import { DEFAULT_APP_SETTINGS } from '../../config'; | 16 | import { DEFAULT_APP_SETTINGS } from '../../environment'; |
17 | 17 | ||
18 | const LOCAL_STORAGE_KEY = 'announcements'; | 18 | const LOCAL_STORAGE_KEY = 'announcements'; |
19 | 19 | ||
diff --git a/src/features/appearance/index.js b/src/features/appearance/index.js index b5648250e..87651a3f4 100644 --- a/src/features/appearance/index.js +++ b/src/features/appearance/index.js | |||
@@ -1,7 +1,8 @@ | |||
1 | import color from 'color'; | 1 | import color from 'color'; |
2 | import { reaction } from 'mobx'; | 2 | import { reaction } from 'mobx'; |
3 | import themeInfo from '../../assets/themeInfo.json'; | 3 | import themeInfo from '../../assets/themeInfo.json'; |
4 | import { DEFAULT_APP_SETTINGS, iconSizeBias } from '../../config'; | 4 | import { iconSizeBias } from '../../config'; |
5 | import { DEFAULT_APP_SETTINGS } from '../../environment'; | ||
5 | 6 | ||
6 | const STYLE_ELEMENT_ID = 'custom-appearance-style'; | 7 | const STYLE_ELEMENT_ID = 'custom-appearance-style'; |
7 | 8 | ||
diff --git a/src/i18n/locales/defaultMessages.json b/src/i18n/locales/defaultMessages.json index 3c57f5df3..8401184de 100644 --- a/src/i18n/locales/defaultMessages.json +++ b/src/i18n/locales/defaultMessages.json | |||
@@ -3241,416 +3241,416 @@ | |||
3241 | "defaultMessage": "!!!Settings", | 3241 | "defaultMessage": "!!!Settings", |
3242 | "end": { | 3242 | "end": { |
3243 | "column": 3, | 3243 | "column": 3, |
3244 | "line": 27 | 3244 | "line": 26 |
3245 | }, | 3245 | }, |
3246 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3246 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3247 | "id": "settings.app.headline", | 3247 | "id": "settings.app.headline", |
3248 | "start": { | 3248 | "start": { |
3249 | "column": 12, | 3249 | "column": 12, |
3250 | "line": 24 | 3250 | "line": 23 |
3251 | } | 3251 | } |
3252 | }, | 3252 | }, |
3253 | { | 3253 | { |
3254 | "defaultMessage": "!!!General", | 3254 | "defaultMessage": "!!!General", |
3255 | "end": { | 3255 | "end": { |
3256 | "column": 3, | 3256 | "column": 3, |
3257 | "line": 31 | 3257 | "line": 30 |
3258 | }, | 3258 | }, |
3259 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3259 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3260 | "id": "settings.app.headlineGeneral", | 3260 | "id": "settings.app.headlineGeneral", |
3261 | "start": { | 3261 | "start": { |
3262 | "column": 19, | 3262 | "column": 19, |
3263 | "line": 28 | 3263 | "line": 27 |
3264 | } | 3264 | } |
3265 | }, | 3265 | }, |
3266 | { | 3266 | { |
3267 | "defaultMessage": "!!!Sending telemetry data allows us to find errors in Ferdi - we will not send any personal information like your message data! Changing this option requires you to restart Ferdi.", | 3267 | "defaultMessage": "!!!Sending telemetry data allows us to find errors in Ferdi - we will not send any personal information like your message data! Changing this option requires you to restart Ferdi.", |
3268 | "end": { | 3268 | "end": { |
3269 | "column": 3, | 3269 | "column": 3, |
3270 | "line": 35 | 3270 | "line": 34 |
3271 | }, | 3271 | }, |
3272 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3272 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3273 | "id": "settings.app.sentryInfo", | 3273 | "id": "settings.app.sentryInfo", |
3274 | "start": { | 3274 | "start": { |
3275 | "column": 14, | 3275 | "column": 14, |
3276 | "line": 32 | 3276 | "line": 31 |
3277 | } | 3277 | } |
3278 | }, | 3278 | }, |
3279 | { | 3279 | { |
3280 | "defaultMessage": "!!!By default, Ferdi will keep all your services open and loaded in the background so they are ready when you want to use them. Service Hibernation will unload your services after a specified amount. This is useful to save RAM or keeping services from slowing down your computer.", | 3280 | "defaultMessage": "!!!By default, Ferdi will keep all your services open and loaded in the background so they are ready when you want to use them. Service Hibernation will unload your services after a specified amount. This is useful to save RAM or keeping services from slowing down your computer.", |
3281 | "end": { | 3281 | "end": { |
3282 | "column": 3, | 3282 | "column": 3, |
3283 | "line": 39 | 3283 | "line": 38 |
3284 | }, | 3284 | }, |
3285 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3285 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3286 | "id": "settings.app.hibernateInfo", | 3286 | "id": "settings.app.hibernateInfo", |
3287 | "start": { | 3287 | "start": { |
3288 | "column": 17, | 3288 | "column": 17, |
3289 | "line": 36 | 3289 | "line": 35 |
3290 | } | 3290 | } |
3291 | }, | 3291 | }, |
3292 | { | 3292 | { |
3293 | "defaultMessage": "!!!Minutes of inactivity, after which Ferdi should automatically lock. Use 0 to disable", | 3293 | "defaultMessage": "!!!Minutes of inactivity, after which Ferdi should automatically lock. Use 0 to disable", |
3294 | "end": { | 3294 | "end": { |
3295 | "column": 3, | 3295 | "column": 3, |
3296 | "line": 43 | 3296 | "line": 42 |
3297 | }, | 3297 | }, |
3298 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3298 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3299 | "id": "settings.app.inactivityLockInfo", | 3299 | "id": "settings.app.inactivityLockInfo", |
3300 | "start": { | 3300 | "start": { |
3301 | "column": 22, | 3301 | "column": 22, |
3302 | "line": 40 | 3302 | "line": 39 |
3303 | } | 3303 | } |
3304 | }, | 3304 | }, |
3305 | { | 3305 | { |
3306 | "defaultMessage": "!!!This server will be used for the \"Franz Todo\" feature. (default: https://app.franztodos.com)", | 3306 | "defaultMessage": "!!!This server will be used for the \"Franz Todo\" feature. (default: https://app.franztodos.com)", |
3307 | "end": { | 3307 | "end": { |
3308 | "column": 3, | 3308 | "column": 3, |
3309 | "line": 47 | 3309 | "line": 46 |
3310 | }, | 3310 | }, |
3311 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3311 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3312 | "id": "settings.app.todoServerInfo", | 3312 | "id": "settings.app.todoServerInfo", |
3313 | "start": { | 3313 | "start": { |
3314 | "column": 18, | 3314 | "column": 18, |
3315 | "line": 44 | 3315 | "line": 43 |
3316 | } | 3316 | } |
3317 | }, | 3317 | }, |
3318 | { | 3318 | { |
3319 | "defaultMessage": "!!!Password", | 3319 | "defaultMessage": "!!!Password", |
3320 | "end": { | 3320 | "end": { |
3321 | "column": 3, | 3321 | "column": 3, |
3322 | "line": 51 | 3322 | "line": 50 |
3323 | }, | 3323 | }, |
3324 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3324 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3325 | "id": "settings.app.lockedPassword", | 3325 | "id": "settings.app.lockedPassword", |
3326 | "start": { | 3326 | "start": { |
3327 | "column": 18, | 3327 | "column": 18, |
3328 | "line": 48 | 3328 | "line": 47 |
3329 | } | 3329 | } |
3330 | }, | 3330 | }, |
3331 | { | 3331 | { |
3332 | "defaultMessage": "!!!Please make sure to set a password you'll remember.\nIf you loose this password, you will have to reinstall Ferdi.", | 3332 | "defaultMessage": "!!!Please make sure to set a password you'll remember.\nIf you loose this password, you will have to reinstall Ferdi.", |
3333 | "end": { | 3333 | "end": { |
3334 | "column": 3, | 3334 | "column": 3, |
3335 | "line": 55 | 3335 | "line": 54 |
3336 | }, | 3336 | }, |
3337 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3337 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3338 | "id": "settings.app.lockedPasswordInfo", | 3338 | "id": "settings.app.lockedPasswordInfo", |
3339 | "start": { | 3339 | "start": { |
3340 | "column": 22, | 3340 | "column": 22, |
3341 | "line": 52 | 3341 | "line": 51 |
3342 | } | 3342 | } |
3343 | }, | 3343 | }, |
3344 | { | 3344 | { |
3345 | "defaultMessage": "!!!Password Lock allows you to keep your messages protected.\nUsing Password Lock, you will be prompted to enter your password everytime you start Ferdi or lock Ferdi yourself using the lock symbol in the bottom left corner or the shortcut CMD/CTRL+Shift+L.", | 3345 | "defaultMessage": "!!!Password Lock allows you to keep your messages protected.\nUsing Password Lock, you will be prompted to enter your password everytime you start Ferdi or lock Ferdi yourself using the lock symbol in the bottom left corner or the shortcut CMD/CTRL+Shift+L.", |
3346 | "end": { | 3346 | "end": { |
3347 | "column": 3, | 3347 | "column": 3, |
3348 | "line": 59 | 3348 | "line": 58 |
3349 | }, | 3349 | }, |
3350 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3350 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3351 | "id": "settings.app.lockInfo", | 3351 | "id": "settings.app.lockInfo", |
3352 | "start": { | 3352 | "start": { |
3353 | "column": 12, | 3353 | "column": 12, |
3354 | "line": 56 | 3354 | "line": 55 |
3355 | } | 3355 | } |
3356 | }, | 3356 | }, |
3357 | { | 3357 | { |
3358 | "defaultMessage": "!!!Times in 24-Hour-Format. End time can be before start time (e.g. start 17:00, end 09:00) to enable Do-not-Disturb overnight.", | 3358 | "defaultMessage": "!!!Times in 24-Hour-Format. End time can be before start time (e.g. start 17:00, end 09:00) to enable Do-not-Disturb overnight.", |
3359 | "end": { | 3359 | "end": { |
3360 | "column": 3, | 3360 | "column": 3, |
3361 | "line": 63 | 3361 | "line": 62 |
3362 | }, | 3362 | }, |
3363 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3363 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3364 | "id": "settings.app.scheduledDNDTimeInfo", | 3364 | "id": "settings.app.scheduledDNDTimeInfo", |
3365 | "start": { | 3365 | "start": { |
3366 | "column": 24, | 3366 | "column": 24, |
3367 | "line": 60 | 3367 | "line": 59 |
3368 | } | 3368 | } |
3369 | }, | 3369 | }, |
3370 | { | 3370 | { |
3371 | "defaultMessage": "!!!Scheduled Do-not-Disturb allows you to define a period of time in which you do not want to get Notifications from Ferdi.", | 3371 | "defaultMessage": "!!!Scheduled Do-not-Disturb allows you to define a period of time in which you do not want to get Notifications from Ferdi.", |
3372 | "end": { | 3372 | "end": { |
3373 | "column": 3, | 3373 | "column": 3, |
3374 | "line": 67 | 3374 | "line": 66 |
3375 | }, | 3375 | }, |
3376 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3376 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3377 | "id": "settings.app.scheduledDNDInfo", | 3377 | "id": "settings.app.scheduledDNDInfo", |
3378 | "start": { | 3378 | "start": { |
3379 | "column": 20, | 3379 | "column": 20, |
3380 | "line": 64 | 3380 | "line": 63 |
3381 | } | 3381 | } |
3382 | }, | 3382 | }, |
3383 | { | 3383 | { |
3384 | "defaultMessage": "!!!Language", | 3384 | "defaultMessage": "!!!Language", |
3385 | "end": { | 3385 | "end": { |
3386 | "column": 3, | 3386 | "column": 3, |
3387 | "line": 71 | 3387 | "line": 70 |
3388 | }, | 3388 | }, |
3389 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3389 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3390 | "id": "settings.app.headlineLanguage", | 3390 | "id": "settings.app.headlineLanguage", |
3391 | "start": { | 3391 | "start": { |
3392 | "column": 20, | 3392 | "column": 20, |
3393 | "line": 68 | 3393 | "line": 67 |
3394 | } | 3394 | } |
3395 | }, | 3395 | }, |
3396 | { | 3396 | { |
3397 | "defaultMessage": "!!!Updates", | 3397 | "defaultMessage": "!!!Updates", |
3398 | "end": { | 3398 | "end": { |
3399 | "column": 3, | 3399 | "column": 3, |
3400 | "line": 75 | 3400 | "line": 74 |
3401 | }, | 3401 | }, |
3402 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3402 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3403 | "id": "settings.app.headlineUpdates", | 3403 | "id": "settings.app.headlineUpdates", |
3404 | "start": { | 3404 | "start": { |
3405 | "column": 19, | 3405 | "column": 19, |
3406 | "line": 72 | 3406 | "line": 71 |
3407 | } | 3407 | } |
3408 | }, | 3408 | }, |
3409 | { | 3409 | { |
3410 | "defaultMessage": "!!!Appearance", | 3410 | "defaultMessage": "!!!Appearance", |
3411 | "end": { | 3411 | "end": { |
3412 | "column": 3, | 3412 | "column": 3, |
3413 | "line": 79 | 3413 | "line": 78 |
3414 | }, | 3414 | }, |
3415 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3415 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3416 | "id": "settings.app.headlineAppearance", | 3416 | "id": "settings.app.headlineAppearance", |
3417 | "start": { | 3417 | "start": { |
3418 | "column": 22, | 3418 | "column": 22, |
3419 | "line": 76 | 3419 | "line": 75 |
3420 | } | 3420 | } |
3421 | }, | 3421 | }, |
3422 | { | 3422 | { |
3423 | "defaultMessage": "!!!Universal Dark Mode tries to dynamically generate dark mode styles for services that are otherwise not currently supported.", | 3423 | "defaultMessage": "!!!Universal Dark Mode tries to dynamically generate dark mode styles for services that are otherwise not currently supported.", |
3424 | "end": { | 3424 | "end": { |
3425 | "column": 3, | 3425 | "column": 3, |
3426 | "line": 83 | 3426 | "line": 82 |
3427 | }, | 3427 | }, |
3428 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3428 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3429 | "id": "settings.app.universalDarkModeInfo", | 3429 | "id": "settings.app.universalDarkModeInfo", |
3430 | "start": { | 3430 | "start": { |
3431 | "column": 25, | 3431 | "column": 25, |
3432 | "line": 80 | 3432 | "line": 79 |
3433 | } | 3433 | } |
3434 | }, | 3434 | }, |
3435 | { | 3435 | { |
3436 | "defaultMessage": "!!!Write your accent color in a CSS-compatible format. (Default: {defaultAccentColor})", | 3436 | "defaultMessage": "!!!Write your accent color in a CSS-compatible format. (Default: {defaultAccentColor})", |
3437 | "end": { | 3437 | "end": { |
3438 | "column": 3, | 3438 | "column": 3, |
3439 | "line": 87 | 3439 | "line": 86 |
3440 | }, | 3440 | }, |
3441 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3441 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3442 | "id": "settings.app.accentColorInfo", | 3442 | "id": "settings.app.accentColorInfo", |
3443 | "start": { | 3443 | "start": { |
3444 | "column": 19, | 3444 | "column": 19, |
3445 | "line": 84 | 3445 | "line": 83 |
3446 | } | 3446 | } |
3447 | }, | 3447 | }, |
3448 | { | 3448 | { |
3449 | "defaultMessage": "!!!Privacy", | 3449 | "defaultMessage": "!!!Privacy", |
3450 | "end": { | 3450 | "end": { |
3451 | "column": 3, | 3451 | "column": 3, |
3452 | "line": 91 | 3452 | "line": 90 |
3453 | }, | 3453 | }, |
3454 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3454 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3455 | "id": "settings.app.headlinePrivacy", | 3455 | "id": "settings.app.headlinePrivacy", |
3456 | "start": { | 3456 | "start": { |
3457 | "column": 19, | 3457 | "column": 19, |
3458 | "line": 88 | 3458 | "line": 87 |
3459 | } | 3459 | } |
3460 | }, | 3460 | }, |
3461 | { | 3461 | { |
3462 | "defaultMessage": "!!!Advanced", | 3462 | "defaultMessage": "!!!Advanced", |
3463 | "end": { | 3463 | "end": { |
3464 | "column": 3, | 3464 | "column": 3, |
3465 | "line": 95 | 3465 | "line": 94 |
3466 | }, | 3466 | }, |
3467 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3467 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3468 | "id": "settings.app.headlineAdvanced", | 3468 | "id": "settings.app.headlineAdvanced", |
3469 | "start": { | 3469 | "start": { |
3470 | "column": 20, | 3470 | "column": 20, |
3471 | "line": 92 | 3471 | "line": 91 |
3472 | } | 3472 | } |
3473 | }, | 3473 | }, |
3474 | { | 3474 | { |
3475 | "defaultMessage": "!!!Help us to translate Ferdi into your language.", | 3475 | "defaultMessage": "!!!Help us to translate Ferdi into your language.", |
3476 | "end": { | 3476 | "end": { |
3477 | "column": 3, | 3477 | "column": 3, |
3478 | "line": 99 | 3478 | "line": 98 |
3479 | }, | 3479 | }, |
3480 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3480 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3481 | "id": "settings.app.translationHelp", | 3481 | "id": "settings.app.translationHelp", |
3482 | "start": { | 3482 | "start": { |
3483 | "column": 19, | 3483 | "column": 19, |
3484 | "line": 96 | 3484 | "line": 95 |
3485 | } | 3485 | } |
3486 | }, | 3486 | }, |
3487 | { | 3487 | { |
3488 | "defaultMessage": "!!!Ferdi uses your Mac's build-in spellchecker to check for typos. If you want to change the languages the spellchecker checks for, you can do so in your Mac's System Preferences.", | 3488 | "defaultMessage": "!!!Ferdi uses your Mac's build-in spellchecker to check for typos. If you want to change the languages the spellchecker checks for, you can do so in your Mac's System Preferences.", |
3489 | "end": { | 3489 | "end": { |
3490 | "column": 3, | 3490 | "column": 3, |
3491 | "line": 103 | 3491 | "line": 102 |
3492 | }, | 3492 | }, |
3493 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3493 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3494 | "id": "settings.app.spellCheckerLanguageInfo", | 3494 | "id": "settings.app.spellCheckerLanguageInfo", |
3495 | "start": { | 3495 | "start": { |
3496 | "column": 28, | 3496 | "column": 28, |
3497 | "line": 100 | 3497 | "line": 99 |
3498 | } | 3498 | } |
3499 | }, | 3499 | }, |
3500 | { | 3500 | { |
3501 | "defaultMessage": "!!!Cache", | 3501 | "defaultMessage": "!!!Cache", |
3502 | "end": { | 3502 | "end": { |
3503 | "column": 3, | 3503 | "column": 3, |
3504 | "line": 107 | 3504 | "line": 106 |
3505 | }, | 3505 | }, |
3506 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3506 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3507 | "id": "settings.app.subheadlineCache", | 3507 | "id": "settings.app.subheadlineCache", |
3508 | "start": { | 3508 | "start": { |
3509 | "column": 20, | 3509 | "column": 20, |
3510 | "line": 104 | 3510 | "line": 103 |
3511 | } | 3511 | } |
3512 | }, | 3512 | }, |
3513 | { | 3513 | { |
3514 | "defaultMessage": "!!!Ferdi cache is currently using {size} of disk space.", | 3514 | "defaultMessage": "!!!Ferdi cache is currently using {size} of disk space.", |
3515 | "end": { | 3515 | "end": { |
3516 | "column": 3, | 3516 | "column": 3, |
3517 | "line": 111 | 3517 | "line": 110 |
3518 | }, | 3518 | }, |
3519 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3519 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3520 | "id": "settings.app.cacheInfo", | 3520 | "id": "settings.app.cacheInfo", |
3521 | "start": { | 3521 | "start": { |
3522 | "column": 13, | 3522 | "column": 13, |
3523 | "line": 108 | 3523 | "line": 107 |
3524 | } | 3524 | } |
3525 | }, | 3525 | }, |
3526 | { | 3526 | { |
3527 | "defaultMessage": "!!!Couldn't clear all cache", | 3527 | "defaultMessage": "!!!Couldn't clear all cache", |
3528 | "end": { | 3528 | "end": { |
3529 | "column": 3, | 3529 | "column": 3, |
3530 | "line": 115 | 3530 | "line": 114 |
3531 | }, | 3531 | }, |
3532 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3532 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3533 | "id": "settings.app.cacheNotCleared", | 3533 | "id": "settings.app.cacheNotCleared", |
3534 | "start": { | 3534 | "start": { |
3535 | "column": 19, | 3535 | "column": 19, |
3536 | "line": 112 | 3536 | "line": 111 |
3537 | } | 3537 | } |
3538 | }, | 3538 | }, |
3539 | { | 3539 | { |
3540 | "defaultMessage": "!!!Clear cache", | 3540 | "defaultMessage": "!!!Clear cache", |
3541 | "end": { | 3541 | "end": { |
3542 | "column": 3, | 3542 | "column": 3, |
3543 | "line": 119 | 3543 | "line": 118 |
3544 | }, | 3544 | }, |
3545 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3545 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3546 | "id": "settings.app.buttonClearAllCache", | 3546 | "id": "settings.app.buttonClearAllCache", |
3547 | "start": { | 3547 | "start": { |
3548 | "column": 23, | 3548 | "column": 23, |
3549 | "line": 116 | 3549 | "line": 115 |
3550 | } | 3550 | } |
3551 | }, | 3551 | }, |
3552 | { | 3552 | { |
3553 | "defaultMessage": "!!!Check for updates", | 3553 | "defaultMessage": "!!!Check for updates", |
3554 | "end": { | 3554 | "end": { |
3555 | "column": 3, | 3555 | "column": 3, |
3556 | "line": 123 | 3556 | "line": 122 |
3557 | }, | 3557 | }, |
3558 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3558 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3559 | "id": "settings.app.buttonSearchForUpdate", | 3559 | "id": "settings.app.buttonSearchForUpdate", |
3560 | "start": { | 3560 | "start": { |
3561 | "column": 25, | 3561 | "column": 25, |
3562 | "line": 120 | 3562 | "line": 119 |
3563 | } | 3563 | } |
3564 | }, | 3564 | }, |
3565 | { | 3565 | { |
3566 | "defaultMessage": "!!!Restart & install update", | 3566 | "defaultMessage": "!!!Restart & install update", |
3567 | "end": { | 3567 | "end": { |
3568 | "column": 3, | 3568 | "column": 3, |
3569 | "line": 127 | 3569 | "line": 126 |
3570 | }, | 3570 | }, |
3571 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3571 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3572 | "id": "settings.app.buttonInstallUpdate", | 3572 | "id": "settings.app.buttonInstallUpdate", |
3573 | "start": { | 3573 | "start": { |
3574 | "column": 23, | 3574 | "column": 23, |
3575 | "line": 124 | 3575 | "line": 123 |
3576 | } | 3576 | } |
3577 | }, | 3577 | }, |
3578 | { | 3578 | { |
3579 | "defaultMessage": "!!!Is searching for update", | 3579 | "defaultMessage": "!!!Is searching for update", |
3580 | "end": { | 3580 | "end": { |
3581 | "column": 3, | 3581 | "column": 3, |
3582 | "line": 131 | 3582 | "line": 130 |
3583 | }, | 3583 | }, |
3584 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3584 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3585 | "id": "settings.app.updateStatusSearching", | 3585 | "id": "settings.app.updateStatusSearching", |
3586 | "start": { | 3586 | "start": { |
3587 | "column": 25, | 3587 | "column": 25, |
3588 | "line": 128 | 3588 | "line": 127 |
3589 | } | 3589 | } |
3590 | }, | 3590 | }, |
3591 | { | 3591 | { |
3592 | "defaultMessage": "!!!Update available, downloading...", | 3592 | "defaultMessage": "!!!Update available, downloading...", |
3593 | "end": { | 3593 | "end": { |
3594 | "column": 3, | 3594 | "column": 3, |
3595 | "line": 135 | 3595 | "line": 134 |
3596 | }, | 3596 | }, |
3597 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3597 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3598 | "id": "settings.app.updateStatusAvailable", | 3598 | "id": "settings.app.updateStatusAvailable", |
3599 | "start": { | 3599 | "start": { |
3600 | "column": 25, | 3600 | "column": 25, |
3601 | "line": 132 | 3601 | "line": 131 |
3602 | } | 3602 | } |
3603 | }, | 3603 | }, |
3604 | { | 3604 | { |
3605 | "defaultMessage": "!!!You are using the latest version of Ferdi", | 3605 | "defaultMessage": "!!!You are using the latest version of Ferdi", |
3606 | "end": { | 3606 | "end": { |
3607 | "column": 3, | 3607 | "column": 3, |
3608 | "line": 139 | 3608 | "line": 138 |
3609 | }, | 3609 | }, |
3610 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3610 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3611 | "id": "settings.app.updateStatusUpToDate", | 3611 | "id": "settings.app.updateStatusUpToDate", |
3612 | "start": { | 3612 | "start": { |
3613 | "column": 24, | 3613 | "column": 24, |
3614 | "line": 136 | 3614 | "line": 135 |
3615 | } | 3615 | } |
3616 | }, | 3616 | }, |
3617 | { | 3617 | { |
3618 | "defaultMessage": "!!!Current version:", | 3618 | "defaultMessage": "!!!Current version:", |
3619 | "end": { | 3619 | "end": { |
3620 | "column": 3, | 3620 | "column": 3, |
3621 | "line": 143 | 3621 | "line": 142 |
3622 | }, | 3622 | }, |
3623 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3623 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3624 | "id": "settings.app.currentVersion", | 3624 | "id": "settings.app.currentVersion", |
3625 | "start": { | 3625 | "start": { |
3626 | "column": 18, | 3626 | "column": 18, |
3627 | "line": 140 | 3627 | "line": 139 |
3628 | } | 3628 | } |
3629 | }, | 3629 | }, |
3630 | { | 3630 | { |
3631 | "defaultMessage": "!!!Changes require restart", | 3631 | "defaultMessage": "!!!Changes require restart", |
3632 | "end": { | 3632 | "end": { |
3633 | "column": 3, | 3633 | "column": 3, |
3634 | "line": 147 | 3634 | "line": 146 |
3635 | }, | 3635 | }, |
3636 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3636 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3637 | "id": "settings.app.restartRequired", | 3637 | "id": "settings.app.restartRequired", |
3638 | "start": { | 3638 | "start": { |
3639 | "column": 22, | 3639 | "column": 22, |
3640 | "line": 144 | 3640 | "line": 143 |
3641 | } | 3641 | } |
3642 | }, | 3642 | }, |
3643 | { | 3643 | { |
3644 | "defaultMessage": "!!!Official translations are English & German. All other languages are community based translations.", | 3644 | "defaultMessage": "!!!Official translations are English & German. All other languages are community based translations.", |
3645 | "end": { | 3645 | "end": { |
3646 | "column": 3, | 3646 | "column": 3, |
3647 | "line": 151 | 3647 | "line": 150 |
3648 | }, | 3648 | }, |
3649 | "file": "src/components/settings/settings/EditSettingsForm.js", | 3649 | "file": "src/components/settings/settings/EditSettingsForm.js", |
3650 | "id": "settings.app.languageDisclaimer", | 3650 | "id": "settings.app.languageDisclaimer", |
3651 | "start": { | 3651 | "start": { |
3652 | "column": 22, | 3652 | "column": 22, |
3653 | "line": 148 | 3653 | "line": 147 |
3654 | } | 3654 | } |
3655 | } | 3655 | } |
3656 | ], | 3656 | ], |
diff --git a/src/i18n/messages/src/components/settings/settings/EditSettingsForm.json b/src/i18n/messages/src/components/settings/settings/EditSettingsForm.json index a1e8c714e..c96a1de22 100644 --- a/src/i18n/messages/src/components/settings/settings/EditSettingsForm.json +++ b/src/i18n/messages/src/components/settings/settings/EditSettingsForm.json | |||
@@ -4,11 +4,11 @@ | |||
4 | "defaultMessage": "!!!Settings", | 4 | "defaultMessage": "!!!Settings", |
5 | "file": "src/components/settings/settings/EditSettingsForm.js", | 5 | "file": "src/components/settings/settings/EditSettingsForm.js", |
6 | "start": { | 6 | "start": { |
7 | "line": 24, | 7 | "line": 23, |
8 | "column": 12 | 8 | "column": 12 |
9 | }, | 9 | }, |
10 | "end": { | 10 | "end": { |
11 | "line": 27, | 11 | "line": 26, |
12 | "column": 3 | 12 | "column": 3 |
13 | } | 13 | } |
14 | }, | 14 | }, |
@@ -17,11 +17,11 @@ | |||
17 | "defaultMessage": "!!!General", | 17 | "defaultMessage": "!!!General", |
18 | "file": "src/components/settings/settings/EditSettingsForm.js", | 18 | "file": "src/components/settings/settings/EditSettingsForm.js", |
19 | "start": { | 19 | "start": { |
20 | "line": 28, | 20 | "line": 27, |
21 | "column": 19 | 21 | "column": 19 |
22 | }, | 22 | }, |
23 | "end": { | 23 | "end": { |
24 | "line": 31, | 24 | "line": 30, |
25 | "column": 3 | 25 | "column": 3 |
26 | } | 26 | } |
27 | }, | 27 | }, |
@@ -30,11 +30,11 @@ | |||
30 | "defaultMessage": "!!!Sending telemetry data allows us to find errors in Ferdi - we will not send any personal information like your message data! Changing this option requires you to restart Ferdi.", | 30 | "defaultMessage": "!!!Sending telemetry data allows us to find errors in Ferdi - we will not send any personal information like your message data! Changing this option requires you to restart Ferdi.", |
31 | "file": "src/components/settings/settings/EditSettingsForm.js", | 31 | "file": "src/components/settings/settings/EditSettingsForm.js", |
32 | "start": { | 32 | "start": { |
33 | "line": 32, | 33 | "line": 31, |
34 | "column": 14 | 34 | "column": 14 |
35 | }, | 35 | }, |
36 | "end": { | 36 | "end": { |
37 | "line": 35, | 37 | "line": 34, |
38 | "column": 3 | 38 | "column": 3 |
39 | } | 39 | } |
40 | }, | 40 | }, |
@@ -43,11 +43,11 @@ | |||
43 | "defaultMessage": "!!!By default, Ferdi will keep all your services open and loaded in the background so they are ready when you want to use them. Service Hibernation will unload your services after a specified amount. This is useful to save RAM or keeping services from slowing down your computer.", | 43 | "defaultMessage": "!!!By default, Ferdi will keep all your services open and loaded in the background so they are ready when you want to use them. Service Hibernation will unload your services after a specified amount. This is useful to save RAM or keeping services from slowing down your computer.", |
44 | "file": "src/components/settings/settings/EditSettingsForm.js", | 44 | "file": "src/components/settings/settings/EditSettingsForm.js", |
45 | "start": { | 45 | "start": { |
46 | "line": 36, | 46 | "line": 35, |
47 | "column": 17 | 47 | "column": 17 |
48 | }, | 48 | }, |
49 | "end": { | 49 | "end": { |
50 | "line": 39, | 50 | "line": 38, |
51 | "column": 3 | 51 | "column": 3 |
52 | } | 52 | } |
53 | }, | 53 | }, |
@@ -56,11 +56,11 @@ | |||
56 | "defaultMessage": "!!!Minutes of inactivity, after which Ferdi should automatically lock. Use 0 to disable", | 56 | "defaultMessage": "!!!Minutes of inactivity, after which Ferdi should automatically lock. Use 0 to disable", |
57 | "file": "src/components/settings/settings/EditSettingsForm.js", | 57 | "file": "src/components/settings/settings/EditSettingsForm.js", |
58 | "start": { | 58 | "start": { |
59 | "line": 40, | 59 | "line": 39, |
60 | "column": 22 | 60 | "column": 22 |
61 | }, | 61 | }, |
62 | "end": { | 62 | "end": { |
63 | "line": 43, | 63 | "line": 42, |
64 | "column": 3 | 64 | "column": 3 |
65 | } | 65 | } |
66 | }, | 66 | }, |
@@ -69,11 +69,11 @@ | |||
69 | "defaultMessage": "!!!This server will be used for the \"Franz Todo\" feature. (default: https://app.franztodos.com)", | 69 | "defaultMessage": "!!!This server will be used for the \"Franz Todo\" feature. (default: https://app.franztodos.com)", |
70 | "file": "src/components/settings/settings/EditSettingsForm.js", | 70 | "file": "src/components/settings/settings/EditSettingsForm.js", |
71 | "start": { | 71 | "start": { |
72 | "line": 44, | 72 | "line": 43, |
73 | "column": 18 | 73 | "column": 18 |
74 | }, | 74 | }, |
75 | "end": { | 75 | "end": { |
76 | "line": 47, | 76 | "line": 46, |
77 | "column": 3 | 77 | "column": 3 |
78 | } | 78 | } |
79 | }, | 79 | }, |
@@ -82,11 +82,11 @@ | |||
82 | "defaultMessage": "!!!Password", | 82 | "defaultMessage": "!!!Password", |
83 | "file": "src/components/settings/settings/EditSettingsForm.js", | 83 | "file": "src/components/settings/settings/EditSettingsForm.js", |
84 | "start": { | 84 | "start": { |
85 | "line": 48, | 85 | "line": 47, |
86 | "column": 18 | 86 | "column": 18 |
87 | }, | 87 | }, |
88 | "end": { | 88 | "end": { |
89 | "line": 51, | 89 | "line": 50, |
90 | "column": 3 | 90 | "column": 3 |
91 | } | 91 | } |
92 | }, | 92 | }, |
@@ -95,11 +95,11 @@ | |||
95 | "defaultMessage": "!!!Please make sure to set a password you'll remember.\nIf you loose this password, you will have to reinstall Ferdi.", | 95 | "defaultMessage": "!!!Please make sure to set a password you'll remember.\nIf you loose this password, you will have to reinstall Ferdi.", |
96 | "file": "src/components/settings/settings/EditSettingsForm.js", | 96 | "file": "src/components/settings/settings/EditSettingsForm.js", |
97 | "start": { | 97 | "start": { |
98 | "line": 52, | 98 | "line": 51, |
99 | "column": 22 | 99 | "column": 22 |
100 | }, | 100 | }, |
101 | "end": { | 101 | "end": { |
102 | "line": 55, | 102 | "line": 54, |
103 | "column": 3 | 103 | "column": 3 |
104 | } | 104 | } |
105 | }, | 105 | }, |
@@ -108,11 +108,11 @@ | |||
108 | "defaultMessage": "!!!Password Lock allows you to keep your messages protected.\nUsing Password Lock, you will be prompted to enter your password everytime you start Ferdi or lock Ferdi yourself using the lock symbol in the bottom left corner or the shortcut CMD/CTRL+Shift+L.", | 108 | "defaultMessage": "!!!Password Lock allows you to keep your messages protected.\nUsing Password Lock, you will be prompted to enter your password everytime you start Ferdi or lock Ferdi yourself using the lock symbol in the bottom left corner or the shortcut CMD/CTRL+Shift+L.", |
109 | "file": "src/components/settings/settings/EditSettingsForm.js", | 109 | "file": "src/components/settings/settings/EditSettingsForm.js", |
110 | "start": { | 110 | "start": { |
111 | "line": 56, | 111 | "line": 55, |
112 | "column": 12 | 112 | "column": 12 |
113 | }, | 113 | }, |
114 | "end": { | 114 | "end": { |
115 | "line": 59, | 115 | "line": 58, |
116 | "column": 3 | 116 | "column": 3 |
117 | } | 117 | } |
118 | }, | 118 | }, |
@@ -121,11 +121,11 @@ | |||
121 | "defaultMessage": "!!!Times in 24-Hour-Format. End time can be before start time (e.g. start 17:00, end 09:00) to enable Do-not-Disturb overnight.", | 121 | "defaultMessage": "!!!Times in 24-Hour-Format. End time can be before start time (e.g. start 17:00, end 09:00) to enable Do-not-Disturb overnight.", |
122 | "file": "src/components/settings/settings/EditSettingsForm.js", | 122 | "file": "src/components/settings/settings/EditSettingsForm.js", |
123 | "start": { | 123 | "start": { |
124 | "line": 60, | 124 | "line": 59, |
125 | "column": 24 | 125 | "column": 24 |
126 | }, | 126 | }, |
127 | "end": { | 127 | "end": { |
128 | "line": 63, | 128 | "line": 62, |
129 | "column": 3 | 129 | "column": 3 |
130 | } | 130 | } |
131 | }, | 131 | }, |
@@ -134,11 +134,11 @@ | |||
134 | "defaultMessage": "!!!Scheduled Do-not-Disturb allows you to define a period of time in which you do not want to get Notifications from Ferdi.", | 134 | "defaultMessage": "!!!Scheduled Do-not-Disturb allows you to define a period of time in which you do not want to get Notifications from Ferdi.", |
135 | "file": "src/components/settings/settings/EditSettingsForm.js", | 135 | "file": "src/components/settings/settings/EditSettingsForm.js", |
136 | "start": { | 136 | "start": { |
137 | "line": 64, | 137 | "line": 63, |
138 | "column": 20 | 138 | "column": 20 |
139 | }, | 139 | }, |
140 | "end": { | 140 | "end": { |
141 | "line": 67, | 141 | "line": 66, |
142 | "column": 3 | 142 | "column": 3 |
143 | } | 143 | } |
144 | }, | 144 | }, |
@@ -147,11 +147,11 @@ | |||
147 | "defaultMessage": "!!!Language", | 147 | "defaultMessage": "!!!Language", |
148 | "file": "src/components/settings/settings/EditSettingsForm.js", | 148 | "file": "src/components/settings/settings/EditSettingsForm.js", |
149 | "start": { | 149 | "start": { |
150 | "line": 68, | 150 | "line": 67, |
151 | "column": 20 | 151 | "column": 20 |
152 | }, | 152 | }, |
153 | "end": { | 153 | "end": { |
154 | "line": 71, | 154 | "line": 70, |
155 | "column": 3 | 155 | "column": 3 |
156 | } | 156 | } |
157 | }, | 157 | }, |
@@ -160,11 +160,11 @@ | |||
160 | "defaultMessage": "!!!Updates", | 160 | "defaultMessage": "!!!Updates", |
161 | "file": "src/components/settings/settings/EditSettingsForm.js", | 161 | "file": "src/components/settings/settings/EditSettingsForm.js", |
162 | "start": { | 162 | "start": { |
163 | "line": 72, | 163 | "line": 71, |
164 | "column": 19 | 164 | "column": 19 |
165 | }, | 165 | }, |
166 | "end": { | 166 | "end": { |
167 | "line": 75, | 167 | "line": 74, |
168 | "column": 3 | 168 | "column": 3 |
169 | } | 169 | } |
170 | }, | 170 | }, |
@@ -173,11 +173,11 @@ | |||
173 | "defaultMessage": "!!!Appearance", | 173 | "defaultMessage": "!!!Appearance", |
174 | "file": "src/components/settings/settings/EditSettingsForm.js", | 174 | "file": "src/components/settings/settings/EditSettingsForm.js", |
175 | "start": { | 175 | "start": { |
176 | "line": 76, | 176 | "line": 75, |
177 | "column": 22 | 177 | "column": 22 |
178 | }, | 178 | }, |
179 | "end": { | 179 | "end": { |
180 | "line": 79, | 180 | "line": 78, |
181 | "column": 3 | 181 | "column": 3 |
182 | } | 182 | } |
183 | }, | 183 | }, |
@@ -186,11 +186,11 @@ | |||
186 | "defaultMessage": "!!!Universal Dark Mode tries to dynamically generate dark mode styles for services that are otherwise not currently supported.", | 186 | "defaultMessage": "!!!Universal Dark Mode tries to dynamically generate dark mode styles for services that are otherwise not currently supported.", |
187 | "file": "src/components/settings/settings/EditSettingsForm.js", | 187 | "file": "src/components/settings/settings/EditSettingsForm.js", |
188 | "start": { | 188 | "start": { |
189 | "line": 80, | 189 | "line": 79, |
190 | "column": 25 | 190 | "column": 25 |
191 | }, | 191 | }, |
192 | "end": { | 192 | "end": { |
193 | "line": 83, | 193 | "line": 82, |
194 | "column": 3 | 194 | "column": 3 |
195 | } | 195 | } |
196 | }, | 196 | }, |
@@ -199,11 +199,11 @@ | |||
199 | "defaultMessage": "!!!Write your accent color in a CSS-compatible format. (Default: {defaultAccentColor})", | 199 | "defaultMessage": "!!!Write your accent color in a CSS-compatible format. (Default: {defaultAccentColor})", |
200 | "file": "src/components/settings/settings/EditSettingsForm.js", | 200 | "file": "src/components/settings/settings/EditSettingsForm.js", |
201 | "start": { | 201 | "start": { |
202 | "line": 84, | 202 | "line": 83, |
203 | "column": 19 | 203 | "column": 19 |
204 | }, | 204 | }, |
205 | "end": { | 205 | "end": { |
206 | "line": 87, | 206 | "line": 86, |
207 | "column": 3 | 207 | "column": 3 |
208 | } | 208 | } |
209 | }, | 209 | }, |
@@ -212,11 +212,11 @@ | |||
212 | "defaultMessage": "!!!Privacy", | 212 | "defaultMessage": "!!!Privacy", |
213 | "file": "src/components/settings/settings/EditSettingsForm.js", | 213 | "file": "src/components/settings/settings/EditSettingsForm.js", |
214 | "start": { | 214 | "start": { |
215 | "line": 88, | 215 | "line": 87, |
216 | "column": 19 | 216 | "column": 19 |
217 | }, | 217 | }, |
218 | "end": { | 218 | "end": { |
219 | "line": 91, | 219 | "line": 90, |
220 | "column": 3 | 220 | "column": 3 |
221 | } | 221 | } |
222 | }, | 222 | }, |
@@ -225,11 +225,11 @@ | |||
225 | "defaultMessage": "!!!Advanced", | 225 | "defaultMessage": "!!!Advanced", |
226 | "file": "src/components/settings/settings/EditSettingsForm.js", | 226 | "file": "src/components/settings/settings/EditSettingsForm.js", |
227 | "start": { | 227 | "start": { |
228 | "line": 92, | 228 | "line": 91, |
229 | "column": 20 | 229 | "column": 20 |
230 | }, | 230 | }, |
231 | "end": { | 231 | "end": { |
232 | "line": 95, | 232 | "line": 94, |
233 | "column": 3 | 233 | "column": 3 |
234 | } | 234 | } |
235 | }, | 235 | }, |
@@ -238,11 +238,11 @@ | |||
238 | "defaultMessage": "!!!Help us to translate Ferdi into your language.", | 238 | "defaultMessage": "!!!Help us to translate Ferdi into your language.", |
239 | "file": "src/components/settings/settings/EditSettingsForm.js", | 239 | "file": "src/components/settings/settings/EditSettingsForm.js", |
240 | "start": { | 240 | "start": { |
241 | "line": 96, | 241 | "line": 95, |
242 | "column": 19 | 242 | "column": 19 |
243 | }, | 243 | }, |
244 | "end": { | 244 | "end": { |
245 | "line": 99, | 245 | "line": 98, |
246 | "column": 3 | 246 | "column": 3 |
247 | } | 247 | } |
248 | }, | 248 | }, |
@@ -251,11 +251,11 @@ | |||
251 | "defaultMessage": "!!!Ferdi uses your Mac's build-in spellchecker to check for typos. If you want to change the languages the spellchecker checks for, you can do so in your Mac's System Preferences.", | 251 | "defaultMessage": "!!!Ferdi uses your Mac's build-in spellchecker to check for typos. If you want to change the languages the spellchecker checks for, you can do so in your Mac's System Preferences.", |
252 | "file": "src/components/settings/settings/EditSettingsForm.js", | 252 | "file": "src/components/settings/settings/EditSettingsForm.js", |
253 | "start": { | 253 | "start": { |
254 | "line": 100, | 254 | "line": 99, |
255 | "column": 28 | 255 | "column": 28 |
256 | }, | 256 | }, |
257 | "end": { | 257 | "end": { |
258 | "line": 103, | 258 | "line": 102, |
259 | "column": 3 | 259 | "column": 3 |
260 | } | 260 | } |
261 | }, | 261 | }, |
@@ -264,11 +264,11 @@ | |||
264 | "defaultMessage": "!!!Cache", | 264 | "defaultMessage": "!!!Cache", |
265 | "file": "src/components/settings/settings/EditSettingsForm.js", | 265 | "file": "src/components/settings/settings/EditSettingsForm.js", |
266 | "start": { | 266 | "start": { |
267 | "line": 104, | 267 | "line": 103, |
268 | "column": 20 | 268 | "column": 20 |
269 | }, | 269 | }, |
270 | "end": { | 270 | "end": { |
271 | "line": 107, | 271 | "line": 106, |
272 | "column": 3 | 272 | "column": 3 |
273 | } | 273 | } |
274 | }, | 274 | }, |
@@ -277,11 +277,11 @@ | |||
277 | "defaultMessage": "!!!Ferdi cache is currently using {size} of disk space.", | 277 | "defaultMessage": "!!!Ferdi cache is currently using {size} of disk space.", |
278 | "file": "src/components/settings/settings/EditSettingsForm.js", | 278 | "file": "src/components/settings/settings/EditSettingsForm.js", |
279 | "start": { | 279 | "start": { |
280 | "line": 108, | 280 | "line": 107, |
281 | "column": 13 | 281 | "column": 13 |
282 | }, | 282 | }, |
283 | "end": { | 283 | "end": { |
284 | "line": 111, | 284 | "line": 110, |
285 | "column": 3 | 285 | "column": 3 |
286 | } | 286 | } |
287 | }, | 287 | }, |
@@ -290,11 +290,11 @@ | |||
290 | "defaultMessage": "!!!Couldn't clear all cache", | 290 | "defaultMessage": "!!!Couldn't clear all cache", |
291 | "file": "src/components/settings/settings/EditSettingsForm.js", | 291 | "file": "src/components/settings/settings/EditSettingsForm.js", |
292 | "start": { | 292 | "start": { |
293 | "line": 112, | 293 | "line": 111, |
294 | "column": 19 | 294 | "column": 19 |
295 | }, | 295 | }, |
296 | "end": { | 296 | "end": { |
297 | "line": 115, | 297 | "line": 114, |
298 | "column": 3 | 298 | "column": 3 |
299 | } | 299 | } |
300 | }, | 300 | }, |
@@ -303,11 +303,11 @@ | |||
303 | "defaultMessage": "!!!Clear cache", | 303 | "defaultMessage": "!!!Clear cache", |
304 | "file": "src/components/settings/settings/EditSettingsForm.js", | 304 | "file": "src/components/settings/settings/EditSettingsForm.js", |
305 | "start": { | 305 | "start": { |
306 | "line": 116, | 306 | "line": 115, |
307 | "column": 23 | 307 | "column": 23 |
308 | }, | 308 | }, |
309 | "end": { | 309 | "end": { |
310 | "line": 119, | 310 | "line": 118, |
311 | "column": 3 | 311 | "column": 3 |
312 | } | 312 | } |
313 | }, | 313 | }, |
@@ -316,11 +316,11 @@ | |||
316 | "defaultMessage": "!!!Check for updates", | 316 | "defaultMessage": "!!!Check for updates", |
317 | "file": "src/components/settings/settings/EditSettingsForm.js", | 317 | "file": "src/components/settings/settings/EditSettingsForm.js", |
318 | "start": { | 318 | "start": { |
319 | "line": 120, | 319 | "line": 119, |
320 | "column": 25 | 320 | "column": 25 |
321 | }, | 321 | }, |
322 | "end": { | 322 | "end": { |
323 | "line": 123, | 323 | "line": 122, |
324 | "column": 3 | 324 | "column": 3 |
325 | } | 325 | } |
326 | }, | 326 | }, |
@@ -329,11 +329,11 @@ | |||
329 | "defaultMessage": "!!!Restart & install update", | 329 | "defaultMessage": "!!!Restart & install update", |
330 | "file": "src/components/settings/settings/EditSettingsForm.js", | 330 | "file": "src/components/settings/settings/EditSettingsForm.js", |
331 | "start": { | 331 | "start": { |
332 | "line": 124, | 332 | "line": 123, |
333 | "column": 23 | 333 | "column": 23 |
334 | }, | 334 | }, |
335 | "end": { | 335 | "end": { |
336 | "line": 127, | 336 | "line": 126, |
337 | "column": 3 | 337 | "column": 3 |
338 | } | 338 | } |
339 | }, | 339 | }, |
@@ -342,11 +342,11 @@ | |||
342 | "defaultMessage": "!!!Is searching for update", | 342 | "defaultMessage": "!!!Is searching for update", |
343 | "file": "src/components/settings/settings/EditSettingsForm.js", | 343 | "file": "src/components/settings/settings/EditSettingsForm.js", |
344 | "start": { | 344 | "start": { |
345 | "line": 128, | 345 | "line": 127, |
346 | "column": 25 | 346 | "column": 25 |
347 | }, | 347 | }, |
348 | "end": { | 348 | "end": { |
349 | "line": 131, | 349 | "line": 130, |
350 | "column": 3 | 350 | "column": 3 |
351 | } | 351 | } |
352 | }, | 352 | }, |
@@ -355,11 +355,11 @@ | |||
355 | "defaultMessage": "!!!Update available, downloading...", | 355 | "defaultMessage": "!!!Update available, downloading...", |
356 | "file": "src/components/settings/settings/EditSettingsForm.js", | 356 | "file": "src/components/settings/settings/EditSettingsForm.js", |
357 | "start": { | 357 | "start": { |
358 | "line": 132, | 358 | "line": 131, |
359 | "column": 25 | 359 | "column": 25 |
360 | }, | 360 | }, |
361 | "end": { | 361 | "end": { |
362 | "line": 135, | 362 | "line": 134, |
363 | "column": 3 | 363 | "column": 3 |
364 | } | 364 | } |
365 | }, | 365 | }, |
@@ -368,11 +368,11 @@ | |||
368 | "defaultMessage": "!!!You are using the latest version of Ferdi", | 368 | "defaultMessage": "!!!You are using the latest version of Ferdi", |
369 | "file": "src/components/settings/settings/EditSettingsForm.js", | 369 | "file": "src/components/settings/settings/EditSettingsForm.js", |
370 | "start": { | 370 | "start": { |
371 | "line": 136, | 371 | "line": 135, |
372 | "column": 24 | 372 | "column": 24 |
373 | }, | 373 | }, |
374 | "end": { | 374 | "end": { |
375 | "line": 139, | 375 | "line": 138, |
376 | "column": 3 | 376 | "column": 3 |
377 | } | 377 | } |
378 | }, | 378 | }, |
@@ -381,11 +381,11 @@ | |||
381 | "defaultMessage": "!!!Current version:", | 381 | "defaultMessage": "!!!Current version:", |
382 | "file": "src/components/settings/settings/EditSettingsForm.js", | 382 | "file": "src/components/settings/settings/EditSettingsForm.js", |
383 | "start": { | 383 | "start": { |
384 | "line": 140, | 384 | "line": 139, |
385 | "column": 18 | 385 | "column": 18 |
386 | }, | 386 | }, |
387 | "end": { | 387 | "end": { |
388 | "line": 143, | 388 | "line": 142, |
389 | "column": 3 | 389 | "column": 3 |
390 | } | 390 | } |
391 | }, | 391 | }, |
@@ -394,11 +394,11 @@ | |||
394 | "defaultMessage": "!!!Changes require restart", | 394 | "defaultMessage": "!!!Changes require restart", |
395 | "file": "src/components/settings/settings/EditSettingsForm.js", | 395 | "file": "src/components/settings/settings/EditSettingsForm.js", |
396 | "start": { | 396 | "start": { |
397 | "line": 144, | 397 | "line": 143, |
398 | "column": 22 | 398 | "column": 22 |
399 | }, | 399 | }, |
400 | "end": { | 400 | "end": { |
401 | "line": 147, | 401 | "line": 146, |
402 | "column": 3 | 402 | "column": 3 |
403 | } | 403 | } |
404 | }, | 404 | }, |
@@ -407,11 +407,11 @@ | |||
407 | "defaultMessage": "!!!Official translations are English & German. All other languages are community based translations.", | 407 | "defaultMessage": "!!!Official translations are English & German. All other languages are community based translations.", |
408 | "file": "src/components/settings/settings/EditSettingsForm.js", | 408 | "file": "src/components/settings/settings/EditSettingsForm.js", |
409 | "start": { | 409 | "start": { |
410 | "line": 148, | 410 | "line": 147, |
411 | "column": 22 | 411 | "column": 22 |
412 | }, | 412 | }, |
413 | "end": { | 413 | "end": { |
414 | "line": 151, | 414 | "line": 150, |
415 | "column": 3 | 415 | "column": 3 |
416 | } | 416 | } |
417 | } | 417 | } |
diff --git a/src/index.js b/src/index.js index 21cf61c0c..d3b996540 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -16,35 +16,16 @@ import ms from 'ms'; | |||
16 | 16 | ||
17 | require('@electron/remote/main').initialize(); | 17 | require('@electron/remote/main').initialize(); |
18 | 18 | ||
19 | import { | 19 | import { DEFAULT_WINDOW_OPTIONS } from './config'; |
20 | DEFAULT_APP_SETTINGS, | ||
21 | DEFAULT_WINDOW_OPTIONS, | ||
22 | } from './config'; | ||
23 | 20 | ||
24 | import { | 21 | import { |
22 | DEFAULT_APP_SETTINGS, | ||
25 | isDevMode, | 23 | isDevMode, |
26 | isMac, | 24 | isMac, |
27 | isWindows, | 25 | isWindows, |
28 | isLinux, | 26 | isLinux, |
29 | } from './environment'; | 27 | } from './environment'; |
30 | 28 | ||
31 | // TODO: This seems to be duplicated between here and 'config.js' | ||
32 | // Set app directory before loading user modules | ||
33 | if (process.env.FERDI_APPDATA_DIR != null) { | ||
34 | app.setPath('appData', process.env.FERDI_APPDATA_DIR); | ||
35 | app.setPath('userData', path.join(app.getPath('appData'))); | ||
36 | } else if (process.env.PORTABLE_EXECUTABLE_DIR != null) { | ||
37 | app.setPath('appData', process.env.PORTABLE_EXECUTABLE_DIR, `${app.name}AppData`); | ||
38 | app.setPath('userData', path.join(app.getPath('appData'), `${app.name}AppData`)); | ||
39 | } else if (process.platform === 'win32') { | ||
40 | app.setPath('appData', process.env.APPDATA); | ||
41 | app.setPath('userData', path.join(app.getPath('appData'), app.name)); | ||
42 | } | ||
43 | |||
44 | if (isDevMode) { | ||
45 | app.setPath('userData', path.join(app.getPath('appData'), `${app.name}Dev`)); | ||
46 | } | ||
47 | |||
48 | import { mainIpcHandler as basicAuthHandler } from './features/basicAuth'; | 29 | import { mainIpcHandler as basicAuthHandler } from './features/basicAuth'; |
49 | import ipcApi from './electron/ipc-api'; | 30 | import ipcApi from './electron/ipc-api'; |
50 | import Tray from './lib/Tray'; | 31 | import Tray from './lib/Tray'; |
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'; |
diff --git a/src/webview/recipe.js b/src/webview/recipe.js index 6c382d388..8da45864b 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js | |||
@@ -29,8 +29,7 @@ import contextMenu from './contextMenu'; | |||
29 | import './notifications'; | 29 | import './notifications'; |
30 | import { screenShareCss } from './screenshare'; | 30 | import { screenShareCss } from './screenshare'; |
31 | 31 | ||
32 | import { DEFAULT_APP_SETTINGS } from '../config'; | 32 | import { DEFAULT_APP_SETTINGS, isDevMode } from '../environment'; |
33 | import { isDevMode } from '../environment'; | ||
34 | 33 | ||
35 | const debug = require('debug')('Ferdi:Plugin'); | 34 | const debug = require('debug')('Ferdi:Plugin'); |
36 | 35 | ||