diff options
author | 2021-07-17 20:32:22 +0530 | |
---|---|---|
committer | 2021-07-20 16:02:15 +0000 | |
commit | 45373f655f68fdd0b320cde175b6108454ad4731 (patch) | |
tree | c1ccb0c73639d754b68a36a1977b74471fe4b566 /src/stores/FeaturesStore.js | |
parent | New Crowdin updates (#1668) (diff) | |
download | ferdium-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.js | 18 |
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 @@ | |||
1 | import { | 1 | import { |
2 | computed, | 2 | computed, |
3 | observable, | 3 | observable, |
4 | reaction, | ||
5 | runInAction, | 4 | runInAction, |
6 | } from 'mobx'; | 5 | } from 'mobx'; |
7 | 6 | ||
8 | import Store from './lib/Store'; | 7 | import Store from './lib/Store'; |
9 | import CachedRequest from './lib/CachedRequest'; | 8 | import CachedRequest from './lib/CachedRequest'; |
10 | 9 | ||
11 | import delayApp from '../features/delayApp'; | ||
12 | import spellchecker from '../features/spellchecker'; | ||
13 | import serviceProxy from '../features/serviceProxy'; | 10 | import serviceProxy from '../features/serviceProxy'; |
14 | import basicAuth from '../features/basicAuth'; | 11 | import basicAuth from '../features/basicAuth'; |
15 | import workspaces from '../features/workspaces'; | 12 | import workspaces from '../features/workspaces'; |
@@ -19,12 +16,9 @@ import publishDebugInfo from '../features/publishDebugInfo'; | |||
19 | import shareFranz from '../features/shareFranz'; | 16 | import shareFranz from '../features/shareFranz'; |
20 | import announcements from '../features/announcements'; | 17 | import announcements from '../features/announcements'; |
21 | import settingsWS from '../features/settingsWS'; | 18 | import settingsWS from '../features/settingsWS'; |
22 | import serviceLimit from '../features/serviceLimit'; | ||
23 | import communityRecipes from '../features/communityRecipes'; | 19 | import communityRecipes from '../features/communityRecipes'; |
24 | import todos from '../features/todos'; | 20 | import todos from '../features/todos'; |
25 | import appearance from '../features/appearance'; | 21 | import appearance from '../features/appearance'; |
26 | import planSelection from '../features/planSelection'; | ||
27 | import trialStatusBar from '../features/trialStatusBar'; | ||
28 | 22 | ||
29 | import { DEFAULT_FEATURES_CONFIG } from '../config'; | 23 | import { 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 | } |