aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.js')
-rw-r--r--src/config.js40
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
13export const LOCAL_API = 'http://localhost:3000'; 13export const LOCAL_API = 'http://localhost:3000';
14export const DEV_API = 'https://dev.franzinfra.com'; 14export const DEV_API = 'https://dev.franzinfra.com';
15export const LIVE_API = 'https://api.franzinfra.com'; 15export const LIVE_API = 'https://api.getferdi.com';
16 16
17export const LOCAL_WS_API = 'ws://localhost:3000'; 17export const LOCAL_WS_API = 'ws://localhost:3000';
18export const DEV_WS_API = 'wss://dev.franzinfra.com'; 18export const DEV_WS_API = 'wss://dev.franzinfra.com';
@@ -21,7 +21,7 @@ export const LIVE_WS_API = 'wss://api.franzinfra.com';
21export const LOCAL_API_WEBSITE = 'http://localhost:3333'; 21export 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
23export const DEV_API_WEBSITE = 'http://hash-58883791519ef6288c952316bdce7fb462283893.franzstaging.com/'; // TODO: revert me 23export const DEV_API_WEBSITE = 'http://hash-58883791519ef6288c952316bdce7fb462283893.franzstaging.com/'; // TODO: revert me
24export const LIVE_API_WEBSITE = 'https://meetfranz.com'; 24export const LIVE_API_WEBSITE = 'https://getferdi.com';
25 25
26export const STATS_API = 'https://stats.franzinfra.com'; 26export 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
32export const GA_ID = !isDevMode ? 'UA-74126766-10' : 'UA-74126766-12'; 32export const GA_ID = !isDevMode ? 'UA-74126766-10' : 'UA-74126766-12';
33 33
34export const DEFAULT_LOCK_PASSWORD = 'ferdi';
35export const KEEP_WS_LOADED_USID = '0a0aa000-0a0a-49a0-a000-a0a0a0a0a0a0';
36
37export 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
34export const DEFAULT_APP_SETTINGS = { 47export 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
52export const DEFAULT_FEATURES_CONFIG = { 80export 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
66export const DEFAULT_WINDOW_OPTIONS = { 95export const DEFAULT_WINDOW_OPTIONS = {
@@ -70,8 +99,8 @@ export const DEFAULT_WINDOW_OPTIONS = {
70 y: 0, 99 y: 0,
71}; 100};
72 101
73export const FRANZ_SERVICE_REQUEST = 'https://bit.ly/franz-plugin-docs'; 102export const FRANZ_SERVICE_REQUEST = 'https://github.com/getferdi/recipes/issues';
74export const FRANZ_TRANSLATION = 'https://bit.ly/franz-translate'; 103export const FRANZ_TRANSLATION = 'https://crowdin.com/project/getferdi';
75export const FRANZ_DEV_DOCS = 'http://bit.ly/franz-dev-hub'; 104export const FRANZ_DEV_DOCS = 'http://bit.ly/franz-dev-hub';
76 105
77export const FILE_SYSTEM_SETTINGS_TYPES = [ 106export 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
85export const DICTIONARY_PATH = asarPath(path.join(__dirname, 'dictionaries')); 114export const DICTIONARY_PATH = asarPath(path.join(__dirname, 'dictionaries'));
115export const RECIPES_PATH = asarPath(path.join(__dirname, 'recipes'));
86 116
87export const ALLOWED_PROTOCOLS = [ 117export const ALLOWED_PROTOCOLS = [
88 'https:', 118 'https:',