aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.js')
-rw-r--r--src/config.js32
1 files changed, 28 insertions, 4 deletions
diff --git a/src/config.js b/src/config.js
index 471f8d5a6..405cc5253 100644
--- a/src/config.js
+++ b/src/config.js
@@ -19,7 +19,8 @@ export const DEV_WS_API = 'wss://dev.franzinfra.com';
19export const LIVE_WS_API = 'wss://api.franzinfra.com'; 19export const LIVE_WS_API = 'wss://api.franzinfra.com';
20 20
21export const LOCAL_API_WEBSITE = 'http://localhost:3333'; 21export const LOCAL_API_WEBSITE = 'http://localhost:3333';
22export const DEV_API_WEBSITE = 'https://meetfranz.com'; 22// export const DEV_API_WEBSITE = 'https://meetfranz.com';t
23export const DEV_API_WEBSITE = 'http://hash-3ac3ccd2472269cf585c58a4f6973d86f3c9e7bd.franzstaging.com/'; // TODO: revert me
23export const LIVE_API_WEBSITE = 'https://meetfranz.com'; 24export const LIVE_API_WEBSITE = 'https://meetfranz.com';
24 25
25export const STATS_API = 'https://stats.franzinfra.com'; 26export const STATS_API = 'https://stats.franzinfra.com';
@@ -49,16 +50,16 @@ export const DEFAULT_APP_SETTINGS = {
49}; 50};
50 51
51export const DEFAULT_FEATURES_CONFIG = { 52export const DEFAULT_FEATURES_CONFIG = {
52 isSpellcheckerPremiumFeature: false, 53 isSpellcheckerIncludedInCurrentPlan: true,
53 needToWaitToProceed: false, 54 needToWaitToProceed: false,
54 needToWaitToProceedConfig: { 55 needToWaitToProceedConfig: {
55 delayOffset: ms('1h'), 56 delayOffset: ms('1h'),
56 wait: ms('10s'), 57 wait: ms('10s'),
57 }, 58 },
58 isServiceProxyEnabled: false, 59 isServiceProxyEnabled: false,
59 isServiceProxyPremiumFeature: true, 60 isServiceProxyIncludedInCurrentPlan: false,
60 isAnnouncementsEnabled: true, 61 isAnnouncementsEnabled: true,
61 isWorkspacePremiumFeature: true, 62 isWorkspaceIncludedInCurrentPlan: true,
62 isWorkspaceEnabled: false, 63 isWorkspaceEnabled: false,
63}; 64};
64 65
@@ -71,6 +72,7 @@ export const DEFAULT_WINDOW_OPTIONS = {
71 72
72export const FRANZ_SERVICE_REQUEST = 'https://bit.ly/franz-plugin-docs'; 73export const FRANZ_SERVICE_REQUEST = 'https://bit.ly/franz-plugin-docs';
73export const FRANZ_TRANSLATION = 'https://bit.ly/franz-translate'; 74export const FRANZ_TRANSLATION = 'https://bit.ly/franz-translate';
75export const FRANZ_DEV_DOCS = 'http://bit.ly/franz-dev-hub';
74 76
75export const FILE_SYSTEM_SETTINGS_TYPES = [ 77export const FILE_SYSTEM_SETTINGS_TYPES = [
76 'app', 78 'app',
@@ -87,3 +89,25 @@ export const ALLOWED_PROTOCOLS = [
87 'http:', 89 'http:',
88 'ftp:', 90 'ftp:',
89]; 91];
92
93export const PLANS = {
94 PERSONAL: 'PERSONAL_MONTHLY',
95 PRO: 'PRO_MONTHLY',
96 LEGACY: 'LEGACY',
97 FREE: 'FREE',
98};
99
100export 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};