aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/FeaturesStore.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-07-17 20:32:22 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-07-20 16:02:15 +0000
commit45373f655f68fdd0b320cde175b6108454ad4731 (patch)
treec1ccb0c73639d754b68a36a1977b74471fe4b566 /src/stores/FeaturesStore.js
parentNew Crowdin updates (#1668) (diff)
downloadferdium-app-45373f655f68fdd0b320cde175b6108454ad4731.tar.gz
ferdium-app-45373f655f68fdd0b320cde175b6108454ad4731.tar.zst
ferdium-app-45373f655f68fdd0b320cde175b6108454ad4731.zip
Removed Franz paid plans features:
- serviceLimit - planSelection - trialStatusBar and other Franz features that were for different tiers of subscription.
Diffstat (limited to 'src/stores/FeaturesStore.js')
-rw-r--r--src/stores/FeaturesStore.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/stores/FeaturesStore.js b/src/stores/FeaturesStore.js
index 2fee9bdda..ac623c258 100644
--- a/src/stores/FeaturesStore.js
+++ b/src/stores/FeaturesStore.js
@@ -1,15 +1,12 @@
1import { 1import {
2 computed, 2 computed,
3 observable, 3 observable,
4 reaction,
5 runInAction, 4 runInAction,
6} from 'mobx'; 5} from 'mobx';
7 6
8import Store from './lib/Store'; 7import Store from './lib/Store';
9import CachedRequest from './lib/CachedRequest'; 8import CachedRequest from './lib/CachedRequest';
10 9
11import delayApp from '../features/delayApp';
12import spellchecker from '../features/spellchecker';
13import serviceProxy from '../features/serviceProxy'; 10import serviceProxy from '../features/serviceProxy';
14import basicAuth from '../features/basicAuth'; 11import basicAuth from '../features/basicAuth';
15import workspaces from '../features/workspaces'; 12import workspaces from '../features/workspaces';
@@ -19,12 +16,9 @@ import publishDebugInfo from '../features/publishDebugInfo';
19import shareFranz from '../features/shareFranz'; 16import shareFranz from '../features/shareFranz';
20import announcements from '../features/announcements'; 17import announcements from '../features/announcements';
21import settingsWS from '../features/settingsWS'; 18import settingsWS from '../features/settingsWS';
22import serviceLimit from '../features/serviceLimit';
23import communityRecipes from '../features/communityRecipes'; 19import communityRecipes from '../features/communityRecipes';
24import todos from '../features/todos'; 20import todos from '../features/todos';
25import appearance from '../features/appearance'; 21import appearance from '../features/appearance';
26import planSelection from '../features/planSelection';
27import trialStatusBar from '../features/trialStatusBar';
28 22
29import { DEFAULT_FEATURES_CONFIG } from '../config'; 23import { DEFAULT_FEATURES_CONFIG } from '../config';
30 24
@@ -43,13 +37,6 @@ export default class FeaturesStore extends Store {
43 37
44 await this.featuresRequest._promise; 38 await this.featuresRequest._promise;
45 setTimeout(this._setupFeatures.bind(this), 1); 39 setTimeout(this._setupFeatures.bind(this), 1);
46
47 // single key reaction
48 reaction(() => this.stores.user.data.isPremium, () => {
49 if (this.stores.user.isLoggedIn) {
50 this.featuresRequest.invalidate({ immediately: true });
51 }
52 });
53 } 40 }
54 41
55 @computed get anonymousFeatures() { 42 @computed get anonymousFeatures() {
@@ -80,8 +67,6 @@ export default class FeaturesStore extends Store {
80 } 67 }
81 68
82 _setupFeatures() { 69 _setupFeatures() {
83 delayApp(this.stores, this.actions);
84 spellchecker(this.stores, this.actions);
85 serviceProxy(this.stores, this.actions); 70 serviceProxy(this.stores, this.actions);
86 basicAuth(this.stores, this.actions); 71 basicAuth(this.stores, this.actions);
87 workspaces(this.stores, this.actions); 72 workspaces(this.stores, this.actions);
@@ -91,11 +76,8 @@ export default class FeaturesStore extends Store {
91 shareFranz(this.stores, this.actions); 76 shareFranz(this.stores, this.actions);
92 announcements(this.stores, this.actions); 77 announcements(this.stores, this.actions);
93 settingsWS(this.stores, this.actions); 78 settingsWS(this.stores, this.actions);
94 serviceLimit(this.stores, this.actions);
95 communityRecipes(this.stores, this.actions); 79 communityRecipes(this.stores, this.actions);
96 todos(this.stores, this.actions); 80 todos(this.stores, this.actions);
97 appearance(this.stores, this.actions); 81 appearance(this.stores, this.actions);
98 planSelection(this.stores, this.actions);
99 trialStatusBar(this.stores, this.actions);
100 } 82 }
101} 83}