aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.js')
-rw-r--r--src/config.js31
1 files changed, 28 insertions, 3 deletions
diff --git a/src/config.js b/src/config.js
index 5bc318545..edcae9df1 100644
--- a/src/config.js
+++ b/src/config.js
@@ -45,16 +45,16 @@ export const DEFAULT_APP_SETTINGS = {
45}; 45};
46 46
47export const DEFAULT_FEATURES_CONFIG = { 47export const DEFAULT_FEATURES_CONFIG = {
48 isSpellcheckerPremiumFeature: false, 48 isSpellcheckerIncludedInCurrentPlan: true,
49 needToWaitToProceed: false, 49 needToWaitToProceed: false,
50 needToWaitToProceedConfig: { 50 needToWaitToProceedConfig: {
51 delayOffset: ms('1h'), 51 delayOffset: ms('1h'),
52 wait: ms('10s'), 52 wait: ms('10s'),
53 }, 53 },
54 isServiceProxyEnabled: false, 54 isServiceProxyEnabled: false,
55 isServiceProxyPremiumFeature: true, 55 isServiceProxyIncludedInCurrentPlan: false,
56 isAnnouncementsEnabled: true, 56 isAnnouncementsEnabled: true,
57 isWorkspacePremiumFeature: true, 57 isWorkspaceIncludedInCurrentPlan: true,
58 isWorkspaceEnabled: false, 58 isWorkspaceEnabled: false,
59}; 59};
60 60
@@ -67,6 +67,7 @@ export const DEFAULT_WINDOW_OPTIONS = {
67 67
68export const FRANZ_SERVICE_REQUEST = 'https://bit.ly/franz-plugin-docs'; 68export const FRANZ_SERVICE_REQUEST = 'https://bit.ly/franz-plugin-docs';
69export const FRANZ_TRANSLATION = 'https://bit.ly/franz-translate'; 69export const FRANZ_TRANSLATION = 'https://bit.ly/franz-translate';
70export const FRANZ_DEV_DOCS = 'http://bit.ly/franz-dev-hub';
70 71
71export const FILE_SYSTEM_SETTINGS_TYPES = [ 72export const FILE_SYSTEM_SETTINGS_TYPES = [
72 'app', 73 'app',
@@ -83,3 +84,27 @@ export const ALLOWED_PROTOCOLS = [
83 'http:', 84 'http:',
84 'ftp:', 85 'ftp:',
85]; 86];
87
88export const PLANS = {
89 PERSONAL_MONTHLY: 'PERSONAL_MONTHLY',
90 PERSONAL_YEARLY: 'PERSONAL_YEARLY',
91 PRO_MONTHLY: 'PRO_MONTHLY',
92 PRO_YEARLY: 'PRO_YEARLY',
93 LEGACY: 'LEGACY',
94 FREE: 'FREE',
95};
96
97export const PLANS_MAPPING = {
98 'franz-personal-monthly': PLANS.PERSONAL_MONTHLY,
99 'franz-personal-yearly': PLANS.PERSONAL_YEARLY,
100 'franz-pro-monthly': PLANS.PRO_MONTHLY,
101 'franz-pro-yearly': PLANS.PRO_YEARLY,
102 'franz-supporter-license': PLANS.LEGACY,
103 'franz-supporter-license-x1': PLANS.LEGACY,
104 'franz-supporter-license-x2': PLANS.LEGACY,
105 'franz-supporter-license-year': PLANS.LEGACY,
106 'franz-supporter-license-year-x1': PLANS.LEGACY,
107 'franz-supporter-license-year-x2': PLANS.LEGACY,
108 'franz-supporter-license-year-2019': PLANS.LEGACY,
109 free: PLANS.FREE,
110};