diff options
Diffstat (limited to 'src/config.js')
-rw-r--r-- | src/config.js | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/src/config.js b/src/config.js index af304232e..45b840b0a 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -36,13 +36,13 @@ export const GA_ID = !isDevMode ? 'UA-74126766-10' : 'UA-74126766-12'; | |||
36 | export const KEEP_WS_LOADED_USID = '0a0aa000-0a0a-49a0-a000-a0a0a0a0a0a0'; | 36 | export const KEEP_WS_LOADED_USID = '0a0aa000-0a0a-49a0-a000-a0a0a0a0a0a0'; |
37 | 37 | ||
38 | export const HIBERNATION_STRATEGIES = { | 38 | export const HIBERNATION_STRATEGIES = { |
39 | 10: 'Extemely Fast Hibernation (10sec)', | 39 | 10: 'Extremely Fast Hibernation (10sec)', |
40 | 30: 'Very Fast Hibernation (30sec)', | 40 | 30: 'Very Fast Hibernation (30sec)', |
41 | 60: 'Fast Hibernation (1min)', | 41 | 60: 'Fast Hibernation (1min)', |
42 | 300: 'Normal Hibernation (5min)', | 42 | 300: 'Normal Hibernation (5min)', |
43 | 600: 'Slow Hibernation (10min)', | 43 | 600: 'Slow Hibernation (10min)', |
44 | 1800: 'Very Slow Hibernation (30min)', | 44 | 1800: 'Very Slow Hibernation (30min)', |
45 | 3600: 'Extemely Slow Hibernation (1hour)', | 45 | 3600: 'Extremely Slow Hibernation (1hour)', |
46 | }; | 46 | }; |
47 | 47 | ||
48 | export const NAVIGATION_BAR_BEHAVIOURS = { | 48 | export const NAVIGATION_BAR_BEHAVIOURS = { |
@@ -51,14 +51,26 @@ export const NAVIGATION_BAR_BEHAVIOURS = { | |||
51 | never: 'Never show navigation bar', | 51 | never: 'Never show navigation bar', |
52 | }; | 52 | }; |
53 | 53 | ||
54 | export const TODO_APPS = { | ||
55 | 'https://todoist.com/app': 'Todoist', | ||
56 | 'https://app.franztodos.com': 'Franz Todo', | ||
57 | 'https://ticktick.com/signin': 'TickTick', | ||
58 | 'https://todo.microsoft.com/?app#': 'Microsoft To Do', | ||
59 | 'https://habitica.com/login': 'Habitica', | ||
60 | 'https://app.nozbe.com/#login': 'Nozbe', | ||
61 | 'https://www.rememberthemilk.com/login/': 'Remember The Milk', | ||
62 | 'https://desktop.any.do/': 'Any.do', | ||
63 | isUsingCustomTodoService: 'Other service', | ||
64 | }; | ||
65 | |||
54 | export const SIDEBAR_WIDTH = { | 66 | export const SIDEBAR_WIDTH = { |
55 | 35: 'Extemely slim sidebar', | 67 | 35: 'Extremely slim sidebar', |
56 | 45: 'Very slim sidebar', | 68 | 45: 'Very slim sidebar', |
57 | 55: 'Slim sidebar', | 69 | 55: 'Slim sidebar', |
58 | 68: 'Normal sidebar', | 70 | 68: 'Normal sidebar', |
59 | 80: 'Wide sidebar', | 71 | 80: 'Wide sidebar', |
60 | 90: 'Very wide sidebar', | 72 | 90: 'Very wide sidebar', |
61 | 100: 'Extemely wide sidebar', | 73 | 100: 'Extremely wide sidebar', |
62 | }; | 74 | }; |
63 | 75 | ||
64 | export const ICON_SIZES = { | 76 | export const ICON_SIZES = { |
@@ -83,6 +95,7 @@ export const DEFAULT_APP_SETTINGS = { | |||
83 | privateNotifications: false, | 95 | privateNotifications: false, |
84 | showDisabledServices: true, | 96 | showDisabledServices: true, |
85 | showMessageBadgeWhenMuted: true, | 97 | showMessageBadgeWhenMuted: true, |
98 | showDragArea: false, | ||
86 | enableSpellchecking: true, | 99 | enableSpellchecking: true, |
87 | spellcheckerLanguage: 'en-us', | 100 | spellcheckerLanguage: 'en-us', |
88 | darkMode: process.platform === 'darwin' ? nativeTheme.shouldUseDarkColors : false, // We can't use refs from `./environment` at this time | 101 | darkMode: process.platform === 'darwin' ? nativeTheme.shouldUseDarkColors : false, // We can't use refs from `./environment` at this time |
@@ -95,7 +108,7 @@ export const DEFAULT_APP_SETTINGS = { | |||
95 | 108 | ||
96 | // Ferdi specific options | 109 | // Ferdi specific options |
97 | server: LIVE_API, | 110 | server: LIVE_API, |
98 | todoServer: PRODUCTION_TODOS_FRONTEND_URL, | 111 | predefinedTodoServer: 'https://app.franztodos.com', |
99 | autohideMenuBar: false, | 112 | autohideMenuBar: false, |
100 | lockingFeatureEnabled: false, | 113 | lockingFeatureEnabled: false, |
101 | locked: false, | 114 | locked: false, |
@@ -107,7 +120,7 @@ export const DEFAULT_APP_SETTINGS = { | |||
107 | hibernate: false, | 120 | hibernate: false, |
108 | hibernationStrategy: 300, | 121 | hibernationStrategy: 300, |
109 | inactivityLock: 0, | 122 | inactivityLock: 0, |
110 | noUpdates: false, | 123 | automaticUpdates: true, |
111 | showServiceNavigationBar: false, | 124 | showServiceNavigationBar: false, |
112 | universalDarkMode: true, | 125 | universalDarkMode: true, |
113 | adaptableDarkMode: true, | 126 | adaptableDarkMode: true, |
@@ -166,7 +179,7 @@ if (process.env.FERDI_APPDATA_DIR != null) { | |||
166 | 179 | ||
167 | export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config'); | 180 | export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config'); |
168 | 181 | ||
169 | // Replacing app.asar is not beautiful but unforunately necessary | 182 | // Replacing app.asar is not beautiful but unfortunately necessary |
170 | export const RECIPES_PATH = asarPath(path.join(__dirname, 'recipes')); | 183 | export const RECIPES_PATH = asarPath(path.join(__dirname, 'recipes')); |
171 | 184 | ||
172 | export const ALLOWED_PROTOCOLS = [ | 185 | export const ALLOWED_PROTOCOLS = [ |