diff options
Diffstat (limited to 'src/config.js')
-rw-r--r-- | src/config.js | 31 |
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 | ||
47 | export const DEFAULT_FEATURES_CONFIG = { | 47 | export 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 | ||
68 | export const FRANZ_SERVICE_REQUEST = 'https://bit.ly/franz-plugin-docs'; | 68 | export const FRANZ_SERVICE_REQUEST = 'https://bit.ly/franz-plugin-docs'; |
69 | export const FRANZ_TRANSLATION = 'https://bit.ly/franz-translate'; | 69 | export const FRANZ_TRANSLATION = 'https://bit.ly/franz-translate'; |
70 | export const FRANZ_DEV_DOCS = 'http://bit.ly/franz-dev-hub'; | ||
70 | 71 | ||
71 | export const FILE_SYSTEM_SETTINGS_TYPES = [ | 72 | export 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 | |||
88 | export 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 | |||
97 | export 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 | }; | ||