diff options
author | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2022-12-10 05:58:40 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-10 00:28:40 +0000 |
commit | 5afe57e289715e0bf77008ed8bb85482b014549d (patch) | |
tree | 673e1af515f8c184a96f0e534c0e70340cedf2b2 | |
parent | migrate npm to pnpm for build (diff) | |
download | ferdium-server-5afe57e289715e0bf77008ed8bb85482b014549d.tar.gz ferdium-server-5afe57e289715e0bf77008ed8bb85482b014549d.tar.zst ferdium-server-5afe57e289715e0bf77008ed8bb85482b014549d.zip |
Removed API endpoints and other code related to pricing/payment plans - since Ferdium is completely FOSS (#55)
-rw-r--r-- | app/Controllers/Http/StaticController.js | 66 | ||||
-rw-r--r-- | public/privacy.html | 2 | ||||
-rw-r--r-- | start/routes.js | 1 |
3 files changed, 1 insertions, 68 deletions
diff --git a/app/Controllers/Http/StaticController.js b/app/Controllers/Http/StaticController.js index abba249..82cf1db 100644 --- a/app/Controllers/Http/StaticController.js +++ b/app/Controllers/Http/StaticController.js | |||
@@ -11,62 +11,12 @@ class StaticController { | |||
11 | response, | 11 | response, |
12 | }) { | 12 | }) { |
13 | return response.send({ | 13 | return response.send({ |
14 | needToWaitToProceed: false, | ||
15 | isSpellcheckerPremiumFeature: false, | ||
16 | isSpellcheckerIncludedInCurrentPlan: true, | ||
17 | isServiceProxyEnabled: true, | 14 | isServiceProxyEnabled: true, |
18 | isServiceProxyIncludedInCurrentPlan: true, | ||
19 | isServiceProxyPremiumFeature: true, | ||
20 | isWorkspacePremiumFeature: false, | ||
21 | isWorkspaceEnabled: true, | 15 | isWorkspaceEnabled: true, |
22 | isAnnouncementsEnabled: true, | 16 | isAnnouncementsEnabled: true, |
23 | isSettingsWSEnabled: false, | 17 | isSettingsWSEnabled: false, |
24 | isServiceLimitEnabled: false, | ||
25 | serviceLimitCount: 0, | ||
26 | isCommunityRecipesPremiumFeature: false, | ||
27 | isCommunityRecipesIncludedInCurrentPlan: true, | ||
28 | isCustomUrlIncludedInCurrentPlan: true, | ||
29 | isMagicBarEnabled: true, | 18 | isMagicBarEnabled: true, |
30 | isTeamManagementIncludedInCurrentPlan: true, | ||
31 | isTodosEnabled: true, | 19 | isTodosEnabled: true, |
32 | isTodosIncludedInCurrentPlan: true, | ||
33 | defaultTrialPlan: 'franz-pro-yearly', | ||
34 | subscribeURL: 'https://ferdium.org', | ||
35 | planSelectionURL: 'https://ferdium.org', | ||
36 | hasInlineCheckout: true, | ||
37 | isPlanSelectionEnabled: false, | ||
38 | isTrialStatusBarEnabled: false, | ||
39 | canSkipTrial: true, | ||
40 | pricingConfig: { | ||
41 | currency: '$', | ||
42 | currencyID: 'USD', | ||
43 | plans: { | ||
44 | personal: { | ||
45 | monthly: { | ||
46 | id: 'ferdium-free', | ||
47 | price: 0, | ||
48 | billed: 0, | ||
49 | }, | ||
50 | yearly: { | ||
51 | id: 'ferdium-completely-free', | ||
52 | price: 0, | ||
53 | billed: 0, | ||
54 | }, | ||
55 | }, | ||
56 | pro: { | ||
57 | monthly: { | ||
58 | id: 'ferdium-still-free', | ||
59 | price: 0, | ||
60 | billed: 0, | ||
61 | }, | ||
62 | yearly: { | ||
63 | id: 'ferdium-forever-free', | ||
64 | price: 0, | ||
65 | billed: 0, | ||
66 | }, | ||
67 | }, | ||
68 | }, | ||
69 | }, | ||
70 | }); | 20 | }); |
71 | } | 21 | } |
72 | 22 | ||
@@ -77,22 +27,6 @@ class StaticController { | |||
77 | return response.send([]); | 27 | return response.send([]); |
78 | } | 28 | } |
79 | 29 | ||
80 | // Payment plans availible | ||
81 | plans({ | ||
82 | response, | ||
83 | }) { | ||
84 | return response.send({ | ||
85 | month: { | ||
86 | id: 'franz-supporter-license', | ||
87 | price: 99, | ||
88 | }, | ||
89 | year: { | ||
90 | id: 'franz-supporter-license-year-2019', | ||
91 | price: 99, | ||
92 | }, | ||
93 | }); | ||
94 | } | ||
95 | |||
96 | // Show announcements | 30 | // Show announcements |
97 | async announcement({ | 31 | async announcement({ |
98 | response, | 32 | response, |
diff --git a/public/privacy.html b/public/privacy.html index d304189..08e5e6d 100644 --- a/public/privacy.html +++ b/public/privacy.html | |||
@@ -55,7 +55,7 @@ | |||
55 | <p> <br /> </p> | 55 | <p> <br /> </p> |
56 | <p><strong>Personal information you disclose to us</strong> </p> | 56 | <p><strong>Personal information you disclose to us</strong> </p> |
57 | <p><strong><em>In Short:</em> </strong><em>We collect personal information that you provide to us such as name, | 57 | <p><strong><em>In Short:</em> </strong><em>We collect personal information that you provide to us such as name, |
58 | address, contact information, passwords and security data, and payment information .</em> </p> | 58 | address, contact information, passwords and security data.</em> </p> |
59 | <p>We collect personal information that you voluntarily provide to us when registering at the Services or Apps, | 59 | <p>We collect personal information that you voluntarily provide to us when registering at the Services or Apps, |
60 | expressing an interest in obtaining information about us or our products and services, when participating in | 60 | expressing an interest in obtaining information about us or our products and services, when participating in |
61 | activities on the Services or Apps or otherwise contacting us .</p> | 61 | activities on the Services or Apps or otherwise contacting us .</p> |
diff --git a/start/routes.js b/start/routes.js index 64a7605..0f3785f 100644 --- a/start/routes.js +++ b/start/routes.js | |||
@@ -53,7 +53,6 @@ Route.group(() => { | |||
53 | Route.get('features/:mode?', 'StaticController.features'); | 53 | Route.get('features/:mode?', 'StaticController.features'); |
54 | Route.get('services', 'StaticController.emptyArray'); | 54 | Route.get('services', 'StaticController.emptyArray'); |
55 | Route.get('news', 'StaticController.emptyArray'); | 55 | Route.get('news', 'StaticController.emptyArray'); |
56 | Route.get('payment/plans', 'StaticController.plans'); | ||
57 | Route.get('announcements/:version', 'StaticController.announcement'); | 56 | Route.get('announcements/:version', 'StaticController.announcement'); |
58 | }).prefix('v1'); | 57 | }).prefix('v1'); |
59 | 58 | ||