diff options
Diffstat (limited to 'src/config.js')
-rw-r--r-- | src/config.js | 47 |
1 files changed, 14 insertions, 33 deletions
diff --git a/src/config.js b/src/config.js index 7762a8cae..aeaec1089 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -4,6 +4,8 @@ import ms from 'ms'; | |||
4 | 4 | ||
5 | export const CHECK_INTERVAL = ms('1h'); // How often should we perform checks | 5 | export const CHECK_INTERVAL = ms('1h'); // How often should we perform checks |
6 | 6 | ||
7 | export const LOCAL_HOSTNAME = 'localhost'; | ||
8 | export const LOCAL_PORT = 45569; | ||
7 | export const LOCAL_API = 'http://localhost:3000'; | 9 | export const LOCAL_API = 'http://localhost:3000'; |
8 | export const DEV_FRANZ_API = 'https://dev.franzinfra.com'; | 10 | export const DEV_FRANZ_API = 'https://dev.franzinfra.com'; |
9 | 11 | ||
@@ -41,6 +43,17 @@ export const HIBERNATION_STRATEGIES = { | |||
41 | 3600: 'Extremely Slow Hibernation (1hour)', | 43 | 3600: 'Extremely Slow Hibernation (1hour)', |
42 | }; | 44 | }; |
43 | 45 | ||
46 | export const WAKE_UP_STRATEGIES = { | ||
47 | 0: 'Never wake up', | ||
48 | 10: 'Wake up after 10sec', | ||
49 | 30: 'Wake up after 30sec', | ||
50 | 60: 'Wake up after 1min', | ||
51 | 300: 'Wake up after 5min', | ||
52 | 600: 'Wake up after 10min', | ||
53 | 1800: 'Wake up after 30min', | ||
54 | 3600: 'Wake up after 1hour', | ||
55 | }; | ||
56 | |||
44 | export const NAVIGATION_BAR_BEHAVIOURS = { | 57 | export const NAVIGATION_BAR_BEHAVIOURS = { |
45 | custom: 'Show navigation bar on custom websites only', | 58 | custom: 'Show navigation bar on custom websites only', |
46 | always: 'Show navigation bar on all services', | 59 | always: 'Show navigation bar on all services', |
@@ -120,18 +133,10 @@ export const ICON_SIZES = { | |||
120 | export const iconSizeBias = 20; | 133 | export const iconSizeBias = 20; |
121 | 134 | ||
122 | export const DEFAULT_FEATURES_CONFIG = { | 135 | export const DEFAULT_FEATURES_CONFIG = { |
123 | isSpellcheckerIncludedInCurrentPlan: true, | ||
124 | needToWaitToProceed: false, | ||
125 | needToWaitToProceedConfig: { | ||
126 | delayOffset: ms('1h'), | ||
127 | wait: ms('10s'), | ||
128 | }, | ||
129 | isServiceProxyEnabled: false, | 136 | isServiceProxyEnabled: false, |
130 | isServiceProxyIncludedInCurrentPlan: true, | ||
131 | isAnnouncementsEnabled: true, | 137 | isAnnouncementsEnabled: true, |
132 | isWorkspaceIncludedInCurrentPlan: true, | ||
133 | isWorkspaceEnabled: false, | 138 | isWorkspaceEnabled: false, |
134 | isCommunityRecipesIncludedInCurrentPlan: true, | 139 | isTodosEnabled: true, |
135 | }; | 140 | }; |
136 | 141 | ||
137 | export const DEFAULT_WINDOW_OPTIONS = { | 142 | export const DEFAULT_WINDOW_OPTIONS = { |
@@ -166,32 +171,8 @@ export const ALLOWED_PROTOCOLS = [ | |||
166 | 'ferdi:', | 171 | 'ferdi:', |
167 | ]; | 172 | ]; |
168 | 173 | ||
169 | export const PLANS = { | ||
170 | PERSONAL: 'personal', | ||
171 | PRO: 'pro', | ||
172 | LEGACY: 'legacy', | ||
173 | FREE: 'free', | ||
174 | }; | ||
175 | |||
176 | export const PLANS_MAPPING = { | ||
177 | 'franz-personal-monthly': PLANS.PERSONAL, | ||
178 | 'franz-personal-yearly': PLANS.PERSONAL, | ||
179 | 'franz-pro-monthly': PLANS.PRO, | ||
180 | 'franz-pro-yearly': PLANS.PRO, | ||
181 | 'franz-supporter-license': PLANS.LEGACY, | ||
182 | 'franz-supporter-license-x1': PLANS.LEGACY, | ||
183 | 'franz-supporter-license-x2': PLANS.LEGACY, | ||
184 | 'franz-supporter-license-year': PLANS.LEGACY, | ||
185 | 'franz-supporter-license-year-x1': PLANS.LEGACY, | ||
186 | 'franz-supporter-license-year-x2': PLANS.LEGACY, | ||
187 | 'franz-supporter-license-year-2019': PLANS.LEGACY, | ||
188 | free: PLANS.FREE, | ||
189 | }; | ||
190 | |||
191 | export const DEFAULT_SETTING_KEEP_ALL_WORKSPACES_LOADED = false; | 174 | export const DEFAULT_SETTING_KEEP_ALL_WORKSPACES_LOADED = false; |
192 | 175 | ||
193 | export const DEFAULT_SERVICE_LIMIT = 3; | ||
194 | |||
195 | export const DEFAULT_TODOS_WIDTH = 300; | 176 | export const DEFAULT_TODOS_WIDTH = 300; |
196 | export const TODOS_MIN_WIDTH = 200; | 177 | export const TODOS_MIN_WIDTH = 200; |
197 | export const DEFAULT_TODOS_VISIBLE = true; | 178 | export const DEFAULT_TODOS_VISIBLE = true; |