diff options
Diffstat (limited to 'src/config.js')
-rw-r--r-- | src/config.js | 40 |
1 files changed, 35 insertions, 5 deletions
diff --git a/src/config.js b/src/config.js index 78a92d948..cd1b2a6c2 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -12,7 +12,7 @@ export const CHECK_INTERVAL = ms('1h'); // How often should we perform checks | |||
12 | 12 | ||
13 | export const LOCAL_API = 'http://localhost:3000'; | 13 | export const LOCAL_API = 'http://localhost:3000'; |
14 | export const DEV_API = 'https://dev.franzinfra.com'; | 14 | export const DEV_API = 'https://dev.franzinfra.com'; |
15 | export const LIVE_API = 'https://api.franzinfra.com'; | 15 | export const LIVE_API = 'https://api.getferdi.com'; |
16 | 16 | ||
17 | export const LOCAL_WS_API = 'ws://localhost:3000'; | 17 | export const LOCAL_WS_API = 'ws://localhost:3000'; |
18 | export const DEV_WS_API = 'wss://dev.franzinfra.com'; | 18 | export const DEV_WS_API = 'wss://dev.franzinfra.com'; |
@@ -21,7 +21,7 @@ export const LIVE_WS_API = 'wss://api.franzinfra.com'; | |||
21 | export const LOCAL_API_WEBSITE = 'http://localhost:3333'; | 21 | export const LOCAL_API_WEBSITE = 'http://localhost:3333'; |
22 | // export const DEV_API_WEBSITE = 'https://meetfranz.com';t | 22 | // export const DEV_API_WEBSITE = 'https://meetfranz.com';t |
23 | export const DEV_API_WEBSITE = 'http://hash-58883791519ef6288c952316bdce7fb462283893.franzstaging.com/'; // TODO: revert me | 23 | export const DEV_API_WEBSITE = 'http://hash-58883791519ef6288c952316bdce7fb462283893.franzstaging.com/'; // TODO: revert me |
24 | export const LIVE_API_WEBSITE = 'https://meetfranz.com'; | 24 | export const LIVE_API_WEBSITE = 'https://getferdi.com'; |
25 | 25 | ||
26 | export const STATS_API = 'https://stats.franzinfra.com'; | 26 | export const STATS_API = 'https://stats.franzinfra.com'; |
27 | 27 | ||
@@ -31,11 +31,25 @@ export const DEVELOPMENT_TODOS_FRONTEND_URL = 'https://development--franz-todos. | |||
31 | 31 | ||
32 | export const GA_ID = !isDevMode ? 'UA-74126766-10' : 'UA-74126766-12'; | 32 | export const GA_ID = !isDevMode ? 'UA-74126766-10' : 'UA-74126766-12'; |
33 | 33 | ||
34 | export const DEFAULT_LOCK_PASSWORD = 'ferdi'; | ||
35 | export const KEEP_WS_LOADED_USID = '0a0aa000-0a0a-49a0-a000-a0a0a0a0a0a0'; | ||
36 | |||
37 | export const HIBERNATION_STRATEGIES = { | ||
38 | 10: 'Extemely Fast Hibernation (10sec)', | ||
39 | 30: 'Very Fast Hibernation (30sec)', | ||
40 | 60: 'Fast Hibernation (1min)', | ||
41 | 300: 'Normal Hibernation (5min)', | ||
42 | 600: 'Slow Hibernation (10min)', | ||
43 | 1800: 'Very Slow Hibernation (30min)', | ||
44 | 3600: 'Extemely Slow Hibernation (1hour)', | ||
45 | }; | ||
46 | |||
34 | export const DEFAULT_APP_SETTINGS = { | 47 | export const DEFAULT_APP_SETTINGS = { |
35 | autoLaunchInBackground: false, | 48 | autoLaunchInBackground: false, |
36 | runInBackground: true, | 49 | runInBackground: true, |
37 | enableSystemTray: true, | 50 | enableSystemTray: true, |
38 | minimizeToSystemTray: false, | 51 | minimizeToSystemTray: false, |
52 | privateNotifications: false, | ||
39 | showDisabledServices: true, | 53 | showDisabledServices: true, |
40 | showMessageBadgeWhenMuted: true, | 54 | showMessageBadgeWhenMuted: true, |
41 | enableSpellchecking: true, | 55 | enableSpellchecking: true, |
@@ -47,6 +61,20 @@ export const DEFAULT_APP_SETTINGS = { | |||
47 | isAppMuted: false, | 61 | isAppMuted: false, |
48 | enableGPUAcceleration: true, | 62 | enableGPUAcceleration: true, |
49 | serviceLimit: 5, | 63 | serviceLimit: 5, |
64 | |||
65 | // Ferdi specific options | ||
66 | server: LIVE_API, | ||
67 | todoServer: PRODUCTION_TODOS_FRONTEND_URL, | ||
68 | autohideMenuBar: false, | ||
69 | lockingFeatureEnabled: false, | ||
70 | locked: false, | ||
71 | lockedPassword: '', | ||
72 | scheduledDNDEnabled: false, | ||
73 | scheduledDNDStart: '17:00', | ||
74 | scheduledDNDEnd: '09:00', | ||
75 | hibernate: false, | ||
76 | hibernationStrategy: 300, | ||
77 | noUpdates: false, | ||
50 | }; | 78 | }; |
51 | 79 | ||
52 | export const DEFAULT_FEATURES_CONFIG = { | 80 | export const DEFAULT_FEATURES_CONFIG = { |
@@ -57,10 +85,11 @@ export const DEFAULT_FEATURES_CONFIG = { | |||
57 | wait: ms('10s'), | 85 | wait: ms('10s'), |
58 | }, | 86 | }, |
59 | isServiceProxyEnabled: false, | 87 | isServiceProxyEnabled: false, |
60 | isServiceProxyIncludedInCurrentPlan: false, | 88 | isServiceProxyIncludedInCurrentPlan: true, |
61 | isAnnouncementsEnabled: true, | 89 | isAnnouncementsEnabled: true, |
62 | isWorkspaceIncludedInCurrentPlan: true, | 90 | isWorkspaceIncludedInCurrentPlan: true, |
63 | isWorkspaceEnabled: false, | 91 | isWorkspaceEnabled: false, |
92 | isCommunityRecipesIncludedInCurrentPlan: true, | ||
64 | }; | 93 | }; |
65 | 94 | ||
66 | export const DEFAULT_WINDOW_OPTIONS = { | 95 | export const DEFAULT_WINDOW_OPTIONS = { |
@@ -70,8 +99,8 @@ export const DEFAULT_WINDOW_OPTIONS = { | |||
70 | y: 0, | 99 | y: 0, |
71 | }; | 100 | }; |
72 | 101 | ||
73 | export const FRANZ_SERVICE_REQUEST = 'https://bit.ly/franz-plugin-docs'; | 102 | export const FRANZ_SERVICE_REQUEST = 'https://github.com/getferdi/recipes/issues'; |
74 | export const FRANZ_TRANSLATION = 'https://bit.ly/franz-translate'; | 103 | export const FRANZ_TRANSLATION = 'https://crowdin.com/project/getferdi'; |
75 | export const FRANZ_DEV_DOCS = 'http://bit.ly/franz-dev-hub'; | 104 | export const FRANZ_DEV_DOCS = 'http://bit.ly/franz-dev-hub'; |
76 | 105 | ||
77 | export const FILE_SYSTEM_SETTINGS_TYPES = [ | 106 | export const FILE_SYSTEM_SETTINGS_TYPES = [ |
@@ -83,6 +112,7 @@ export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config'); | |||
83 | 112 | ||
84 | // Replacing app.asar is not beautiful but unforunately necessary | 113 | // Replacing app.asar is not beautiful but unforunately necessary |
85 | export const DICTIONARY_PATH = asarPath(path.join(__dirname, 'dictionaries')); | 114 | export const DICTIONARY_PATH = asarPath(path.join(__dirname, 'dictionaries')); |
115 | export const RECIPES_PATH = asarPath(path.join(__dirname, 'recipes')); | ||
86 | 116 | ||
87 | export const ALLOWED_PROTOCOLS = [ | 117 | export const ALLOWED_PROTOCOLS = [ |
88 | 'https:', | 118 | 'https:', |