diff options
author | vantezzen <properly@protonmail.com> | 2019-09-07 15:50:23 +0200 |
---|---|---|
committer | vantezzen <properly@protonmail.com> | 2019-09-07 15:50:23 +0200 |
commit | e7a74514c1e7c3833dfdcf5900cb87f9e6e8354e (patch) | |
tree | b8314e4155503b135dcb07e8b4a0e847e25c19cf /src/config.js | |
parent | Update CHANGELOG.md (diff) | |
parent | Update CHANGELOG.md (diff) | |
download | ferdium-app-e7a74514c1e7c3833dfdcf5900cb87f9e6e8354e.tar.gz ferdium-app-e7a74514c1e7c3833dfdcf5900cb87f9e6e8354e.tar.zst ferdium-app-e7a74514c1e7c3833dfdcf5900cb87f9e6e8354e.zip |
Merge branch 'master' of https://github.com/meetfranz/franz into franz-5.3.0
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 2d6e74411..d6a0317bf 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-58883791519ef6288c952316bdce7fb462283893.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 = { |
@@ -46,16 +51,16 @@ export const DEFAULT_APP_SETTINGS = { | |||
46 | }; | 51 | }; |
47 | 52 | ||
48 | export const DEFAULT_FEATURES_CONFIG = { | 53 | export const DEFAULT_FEATURES_CONFIG = { |
49 | isSpellcheckerPremiumFeature: false, | 54 | isSpellcheckerIncludedInCurrentPlan: true, |
50 | needToWaitToProceed: false, | 55 | needToWaitToProceed: false, |
51 | needToWaitToProceedConfig: { | 56 | needToWaitToProceedConfig: { |
52 | delayOffset: ms('1h'), | 57 | delayOffset: ms('1h'), |
53 | wait: ms('10s'), | 58 | wait: ms('10s'), |
54 | }, | 59 | }, |
55 | isServiceProxyEnabled: false, | 60 | isServiceProxyEnabled: false, |
56 | isServiceProxyPremiumFeature: true, | 61 | isServiceProxyIncludedInCurrentPlan: false, |
57 | isAnnouncementsEnabled: true, | 62 | isAnnouncementsEnabled: true, |
58 | isWorkspacePremiumFeature: true, | 63 | isWorkspaceIncludedInCurrentPlan: true, |
59 | isWorkspaceEnabled: false, | 64 | isWorkspaceEnabled: false, |
60 | }; | 65 | }; |
61 | 66 | ||
@@ -68,6 +73,7 @@ export const DEFAULT_WINDOW_OPTIONS = { | |||
68 | 73 | ||
69 | export const FRANZ_SERVICE_REQUEST = 'https://bit.ly/franz-plugin-docs'; | 74 | export const FRANZ_SERVICE_REQUEST = 'https://bit.ly/franz-plugin-docs'; |
70 | export const FRANZ_TRANSLATION = 'https://bit.ly/franz-translate'; | 75 | export const FRANZ_TRANSLATION = 'https://bit.ly/franz-translate'; |
76 | export const FRANZ_DEV_DOCS = 'http://bit.ly/franz-dev-hub'; | ||
71 | 77 | ||
72 | export const FILE_SYSTEM_SETTINGS_TYPES = [ | 78 | export const FILE_SYSTEM_SETTINGS_TYPES = [ |
73 | 'app', | 79 | 'app', |
@@ -84,3 +90,25 @@ export const ALLOWED_PROTOCOLS = [ | |||
84 | 'http:', | 90 | 'http:', |
85 | 'ftp:', | 91 | 'ftp:', |
86 | ]; | 92 | ]; |
93 | |||
94 | export const PLANS = { | ||
95 | PERSONAL: 'PERSONAL', | ||
96 | PRO: 'PRO', | ||
97 | LEGACY: 'LEGACY', | ||
98 | FREE: 'FREE', | ||
99 | }; | ||
100 | |||
101 | export const PLANS_MAPPING = { | ||
102 | 'franz-personal-monthly': PLANS.PERSONAL, | ||
103 | 'franz-personal-yearly': PLANS.PERSONAL, | ||
104 | 'franz-pro-monthly': PLANS.PRO, | ||
105 | 'franz-pro-yearly': PLANS.PRO, | ||
106 | 'franz-supporter-license': PLANS.LEGACY, | ||
107 | 'franz-supporter-license-x1': PLANS.LEGACY, | ||
108 | 'franz-supporter-license-x2': PLANS.LEGACY, | ||
109 | 'franz-supporter-license-year': PLANS.LEGACY, | ||
110 | 'franz-supporter-license-year-x1': PLANS.LEGACY, | ||
111 | 'franz-supporter-license-year-x2': PLANS.LEGACY, | ||
112 | 'franz-supporter-license-year-2019': PLANS.LEGACY, | ||
113 | free: PLANS.FREE, | ||
114 | }; | ||