aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.js')
-rw-r--r--src/config.js46
1 files changed, 40 insertions, 6 deletions
diff --git a/src/config.js b/src/config.js
index 11e6cb91f..761d26eea 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,23 @@ 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,
78 showServiceNavigationBar: false,
79 universalDarkMode: true,
80 accentColor: '#7367f0',
50}; 81};
51 82
52export const DEFAULT_FEATURES_CONFIG = { 83export const DEFAULT_FEATURES_CONFIG = {
@@ -57,10 +88,11 @@ export const DEFAULT_FEATURES_CONFIG = {
57 wait: ms('10s'), 88 wait: ms('10s'),
58 }, 89 },
59 isServiceProxyEnabled: false, 90 isServiceProxyEnabled: false,
60 isServiceProxyIncludedInCurrentPlan: false, 91 isServiceProxyIncludedInCurrentPlan: true,
61 isAnnouncementsEnabled: true, 92 isAnnouncementsEnabled: true,
62 isWorkspaceIncludedInCurrentPlan: true, 93 isWorkspaceIncludedInCurrentPlan: true,
63 isWorkspaceEnabled: false, 94 isWorkspaceEnabled: false,
95 isCommunityRecipesIncludedInCurrentPlan: true,
64}; 96};
65 97
66export const DEFAULT_WINDOW_OPTIONS = { 98export const DEFAULT_WINDOW_OPTIONS = {
@@ -70,8 +102,8 @@ export const DEFAULT_WINDOW_OPTIONS = {
70 y: 0, 102 y: 0,
71}; 103};
72 104
73export const FRANZ_SERVICE_REQUEST = 'https://bit.ly/franz-plugin-docs'; 105export const FRANZ_SERVICE_REQUEST = 'https://github.com/getferdi/recipes/issues/new/choose';
74export const FRANZ_TRANSLATION = 'https://bit.ly/franz-translate'; 106export const FRANZ_TRANSLATION = 'https://crowdin.com/project/getferdi';
75export const FRANZ_DEV_DOCS = 'http://bit.ly/franz-dev-hub'; 107export const FRANZ_DEV_DOCS = 'http://bit.ly/franz-dev-hub';
76 108
77export const FILE_SYSTEM_SETTINGS_TYPES = [ 109export const FILE_SYSTEM_SETTINGS_TYPES = [
@@ -79,10 +111,12 @@ export const FILE_SYSTEM_SETTINGS_TYPES = [
79 'proxy', 111 'proxy',
80]; 112];
81 113
114export const LOCAL_SERVER = 'You are using Ferdi without a server';
115
82export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config'); 116export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config');
83 117
84// Replacing app.asar is not beautiful but unforunately necessary 118// Replacing app.asar is not beautiful but unforunately necessary
85export const DICTIONARY_PATH = asarPath(path.join(__dirname, 'dictionaries')); 119export const RECIPES_PATH = asarPath(path.join(__dirname, 'recipes'));
86 120
87export const ALLOWED_PROTOCOLS = [ 121export const ALLOWED_PROTOCOLS = [
88 'https:', 122 'https:',