diff options
Diffstat (limited to 'src/config.js')
-rw-r--r-- | src/config.js | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/src/config.js b/src/config.js index 5bc318545..405cc5253 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -19,11 +19,16 @@ export const DEV_WS_API = 'wss://dev.franzinfra.com'; | |||
19 | export const LIVE_WS_API = 'wss://api.franzinfra.com'; | 19 | export const LIVE_WS_API = 'wss://api.franzinfra.com'; |
20 | 20 | ||
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'; | 22 | // export const DEV_API_WEBSITE = 'https://meetfranz.com';t |
23 | export const DEV_API_WEBSITE = 'http://hash-3ac3ccd2472269cf585c58a4f6973d86f3c9e7bd.franzstaging.com/'; // TODO: revert me | ||
23 | export const LIVE_API_WEBSITE = 'https://meetfranz.com'; | 24 | export const LIVE_API_WEBSITE = 'https://meetfranz.com'; |
24 | 25 | ||
25 | export const STATS_API = 'https://stats.franzinfra.com'; | 26 | export const STATS_API = 'https://stats.franzinfra.com'; |
26 | 27 | ||
28 | export const LOCAL_TODOS_FRONTEND_URL = 'http://localhost:4000'; | ||
29 | export const PRODUCTION_TODOS_FRONTEND_URL = 'https://app.franztodos.com'; | ||
30 | export const DEVELOPMENT_TODOS_FRONTEND_URL = 'https://development--franz-todos.netlify.com'; | ||
31 | |||
27 | export const GA_ID = !isDevMode ? 'UA-74126766-10' : 'UA-74126766-12'; | 32 | export const GA_ID = !isDevMode ? 'UA-74126766-10' : 'UA-74126766-12'; |
28 | 33 | ||
29 | export const DEFAULT_APP_SETTINGS = { | 34 | export const DEFAULT_APP_SETTINGS = { |
@@ -45,16 +50,16 @@ export const DEFAULT_APP_SETTINGS = { | |||
45 | }; | 50 | }; |
46 | 51 | ||
47 | export const DEFAULT_FEATURES_CONFIG = { | 52 | export const DEFAULT_FEATURES_CONFIG = { |
48 | isSpellcheckerPremiumFeature: false, | 53 | isSpellcheckerIncludedInCurrentPlan: true, |
49 | needToWaitToProceed: false, | 54 | needToWaitToProceed: false, |
50 | needToWaitToProceedConfig: { | 55 | needToWaitToProceedConfig: { |
51 | delayOffset: ms('1h'), | 56 | delayOffset: ms('1h'), |
52 | wait: ms('10s'), | 57 | wait: ms('10s'), |
53 | }, | 58 | }, |
54 | isServiceProxyEnabled: false, | 59 | isServiceProxyEnabled: false, |
55 | isServiceProxyPremiumFeature: true, | 60 | isServiceProxyIncludedInCurrentPlan: false, |
56 | isAnnouncementsEnabled: true, | 61 | isAnnouncementsEnabled: true, |
57 | isWorkspacePremiumFeature: true, | 62 | isWorkspaceIncludedInCurrentPlan: true, |
58 | isWorkspaceEnabled: false, | 63 | isWorkspaceEnabled: false, |
59 | }; | 64 | }; |
60 | 65 | ||
@@ -67,6 +72,7 @@ export const DEFAULT_WINDOW_OPTIONS = { | |||
67 | 72 | ||
68 | export const FRANZ_SERVICE_REQUEST = 'https://bit.ly/franz-plugin-docs'; | 73 | export const FRANZ_SERVICE_REQUEST = 'https://bit.ly/franz-plugin-docs'; |
69 | export const FRANZ_TRANSLATION = 'https://bit.ly/franz-translate'; | 74 | export const FRANZ_TRANSLATION = 'https://bit.ly/franz-translate'; |
75 | export const FRANZ_DEV_DOCS = 'http://bit.ly/franz-dev-hub'; | ||
70 | 76 | ||
71 | export const FILE_SYSTEM_SETTINGS_TYPES = [ | 77 | export const FILE_SYSTEM_SETTINGS_TYPES = [ |
72 | 'app', | 78 | 'app', |
@@ -83,3 +89,25 @@ export const ALLOWED_PROTOCOLS = [ | |||
83 | 'http:', | 89 | 'http:', |
84 | 'ftp:', | 90 | 'ftp:', |
85 | ]; | 91 | ]; |
92 | |||
93 | export const PLANS = { | ||
94 | PERSONAL: 'PERSONAL_MONTHLY', | ||
95 | PRO: 'PRO_MONTHLY', | ||
96 | LEGACY: 'LEGACY', | ||
97 | FREE: 'FREE', | ||
98 | }; | ||
99 | |||
100 | export const PLANS_MAPPING = { | ||
101 | 'franz-personal-monthly': PLANS.PERSONAL, | ||
102 | 'franz-personal-yearly': PLANS.PERSONAL, | ||
103 | 'franz-pro-monthly': PLANS.PRO, | ||
104 | 'franz-pro-yearly': PLANS.PRO, | ||
105 | 'franz-supporter-license': PLANS.LEGACY, | ||
106 | 'franz-supporter-license-x1': PLANS.LEGACY, | ||
107 | 'franz-supporter-license-x2': PLANS.LEGACY, | ||
108 | 'franz-supporter-license-year': PLANS.LEGACY, | ||
109 | 'franz-supporter-license-year-x1': PLANS.LEGACY, | ||
110 | 'franz-supporter-license-year-x2': PLANS.LEGACY, | ||
111 | 'franz-supporter-license-year-2019': PLANS.LEGACY, | ||
112 | free: PLANS.FREE, | ||
113 | }; | ||