aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores
diff options
context:
space:
mode:
authorLibravatar Ricardo Cino <ricardo@cino.io>2022-06-27 18:21:31 +0200
committerLibravatar GitHub <noreply@github.com>2022-06-27 17:21:31 +0100
commit0bf13689d53bd493fb4d0a4213c1801013b5aa8a (patch)
tree2b5ae44e4f1aa73b49c011954ff1cb47e3959bad /src/stores
parentchore: recommend specific vscode extensions to setup development [skip ci] (#... (diff)
downloadferdium-app-0bf13689d53bd493fb4d0a4213c1801013b5aa8a.tar.gz
ferdium-app-0bf13689d53bd493fb4d0a4213c1801013b5aa8a.tar.zst
ferdium-app-0bf13689d53bd493fb4d0a4213c1801013b5aa8a.zip
chore: transform containers/settings from js to tsx (#384)
Diffstat (limited to 'src/stores')
-rw-r--r--src/stores/AppStore.ts4
-rw-r--r--src/stores/RecipePreviewsStore.ts7
2 files changed, 8 insertions, 3 deletions
diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts
index 05acbf33d..a949bae1d 100644
--- a/src/stores/AppStore.ts
+++ b/src/stores/AppStore.ts
@@ -94,6 +94,10 @@ export default class AppStore extends TypedStore {
94 94
95 @observable isFocused = true; 95 @observable isFocused = true;
96 96
97 @observable lockingFeatureEnabled = false;
98
99 @observable launchInBackground = false;
100
97 dictionaries = []; 101 dictionaries = [];
98 102
99 fetchDataInterval: null | NodeJS.Timer = null; 103 fetchDataInterval: null | NodeJS.Timer = null;
diff --git a/src/stores/RecipePreviewsStore.ts b/src/stores/RecipePreviewsStore.ts
index 099867785..ad9fda4a7 100644
--- a/src/stores/RecipePreviewsStore.ts
+++ b/src/stores/RecipePreviewsStore.ts
@@ -4,6 +4,7 @@ import { ApiInterface } from 'src/api';
4import Recipe from 'src/models/Recipe'; 4import Recipe from 'src/models/Recipe';
5import { Stores } from 'src/@types/stores.types'; 5import { Stores } from 'src/@types/stores.types';
6 6
7import RecipePreview from 'src/models/RecipePreview';
7import CachedRequest from './lib/CachedRequest'; 8import CachedRequest from './lib/CachedRequest';
8import Request from './lib/Request'; 9import Request from './lib/Request';
9import TypedStore from './lib/TypedStore'; 10import TypedStore from './lib/TypedStore';
@@ -35,15 +36,15 @@ export default class RecipePreviewsStore extends TypedStore {
35 // Not implemented 36 // Not implemented
36 } 37 }
37 38
38 @computed get all(): Recipe[] { 39 @computed get all(): RecipePreview[] {
39 return this.allRecipePreviewsRequest.execute().result || []; 40 return this.allRecipePreviewsRequest.execute().result || [];
40 } 41 }
41 42
42 @computed get featured(): Recipe[] { 43 @computed get featured(): RecipePreview[] {
43 return this.featuredRecipePreviewsRequest.execute().result || []; 44 return this.featuredRecipePreviewsRequest.execute().result || [];
44 } 45 }
45 46
46 @computed get searchResults(): Recipe[] { 47 @computed get searchResults(): RecipePreview[] {
47 return this.searchRecipePreviewsRequest.result || []; 48 return this.searchRecipePreviewsRequest.result || [];
48 } 49 }
49 50