aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.js')
-rw-r--r--src/config.js29
1 files changed, 25 insertions, 4 deletions
diff --git a/src/config.js b/src/config.js
index 77fa92eca..08dbb85f3 100644
--- a/src/config.js
+++ b/src/config.js
@@ -7,7 +7,7 @@ export const CHECK_INTERVAL = 1000 * 3600; // How often should we perform checks
7export const LOCAL_API = 'http://localhost:3000'; 7export const LOCAL_API = 'http://localhost:3000';
8export const DEV_API = 'https://dev.franzinfra.com'; 8export const DEV_API = 'https://dev.franzinfra.com';
9export const LIVE_API = 'https://api.franzinfra.com'; 9export const LIVE_API = 'https://api.franzinfra.com';
10export const GA_ID = 'UA-74126766-6'; 10export const GA_ID = 'UA-74126766-10';
11 11
12export const DEFAULT_APP_SETTINGS = { 12export const DEFAULT_APP_SETTINGS = {
13 autoLaunchInBackground: false, 13 autoLaunchInBackground: false,
@@ -17,14 +17,35 @@ export const DEFAULT_APP_SETTINGS = {
17 showDisabledServices: true, 17 showDisabledServices: true,
18 showMessageBadgeWhenMuted: true, 18 showMessageBadgeWhenMuted: true,
19 enableSpellchecking: true, 19 enableSpellchecking: true,
20 spellcheckerLanguage: 'en-us',
21 darkMode: false,
20 locale: '', 22 locale: '',
21 fallbackLocale: 'en-US', 23 fallbackLocale: 'en-US',
22 beta: false, 24 beta: false,
23 isAppMuted: false, 25 isAppMuted: false,
24 enableGPUAcceleration: true, 26 enableGPUAcceleration: true,
27 serviceLimit: 5,
25}; 28};
26 29
27export const FRANZ_SERVICE_REQUEST = 'http://bit.ly/franz-service-request'; 30export const DEFAULT_FEATURES_CONFIG = {
28export const FRANZ_TRANSLATION = 'http://bit.ly/franz-translate'; 31 isSpellcheckerPremiumFeature: false,
32 needToWaitToProceed: false,
33 needToWaitToProceedConfig: {
34 delayOffset: 3600000,
35 wait: 10000,
36 },
37 isServiceProxyEnabled: false,
38 isServiceProxyPremiumFeature: true,
39};
40
41export const FRANZ_SERVICE_REQUEST = 'hhttp://bit.ly/franz-plugin-docs';
42export const FRANZ_TRANSLATION = 'https://bit.ly/franz-translate';
43
44export const FILE_SYSTEM_SETTINGS_TYPES = [
45 'app',
46 'proxy',
47];
48
49export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config');
29 50
30export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config', 'settings.json'); 51export const DICTIONARY_PATH = path.join(app.getPath('userData'), 'dicts');