diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2024-03-22 02:33:33 +0530 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2024-03-21 21:24:35 +0000 |
commit | 2f3f2ae7f098376f535e5aa993c9eedc14e36f5d (patch) | |
tree | d919bda212744493a7b66c2e91a75455421d62cc /src/stores | |
parent | Upgrade electron to '29.1.5' (diff) | |
download | ferdium-app-2f3f2ae7f098376f535e5aa993c9eedc14e36f5d.tar.gz ferdium-app-2f3f2ae7f098376f535e5aa993c9eedc14e36f5d.tar.zst ferdium-app-2f3f2ae7f098376f535e5aa993c9eedc14e36f5d.zip |
Upgrade node modules
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/AppStore.ts | 32 | ||||
-rw-r--r-- | src/stores/FeaturesStore.ts | 18 | ||||
-rw-r--r-- | src/stores/GlobalErrorStore.ts | 10 | ||||
-rw-r--r-- | src/stores/RecipePreviewsStore.ts | 10 | ||||
-rw-r--r-- | src/stores/RecipesStore.ts | 14 | ||||
-rw-r--r-- | src/stores/RequestStore.ts | 8 | ||||
-rw-r--r-- | src/stores/ServicesStore.ts | 32 | ||||
-rw-r--r-- | src/stores/SettingsStore.ts | 8 | ||||
-rw-r--r-- | src/stores/UIStore.ts | 10 | ||||
-rw-r--r-- | src/stores/UserStore.ts | 14 | ||||
-rw-r--r-- | src/stores/index.ts | 24 | ||||
-rw-r--r-- | src/stores/lib/CachedRequest.ts | 2 | ||||
-rw-r--r-- | src/stores/lib/Reaction.ts | 2 | ||||
-rw-r--r-- | src/stores/lib/Request.ts | 2 | ||||
-rw-r--r-- | src/stores/lib/TypedStore.ts | 8 |
15 files changed, 97 insertions, 97 deletions
diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts index b8356bd56..b0a925411 100644 --- a/src/stores/AppStore.ts +++ b/src/stores/AppStore.ts | |||
@@ -1,46 +1,46 @@ | |||
1 | import { URL } from 'node:url'; | 1 | import { URL } from 'node:url'; |
2 | import { ipcRenderer } from 'electron'; | ||
3 | import { | 2 | import { |
4 | app, | 3 | app, |
5 | screen, | ||
6 | powerMonitor, | ||
7 | nativeTheme, | ||
8 | getCurrentWindow, | 4 | getCurrentWindow, |
5 | nativeTheme, | ||
6 | powerMonitor, | ||
9 | process as remoteProcess, | 7 | process as remoteProcess, |
8 | screen, | ||
10 | } from '@electron/remote'; | 9 | } from '@electron/remote'; |
10 | import AutoLaunch from 'auto-launch'; | ||
11 | import { ipcRenderer } from 'electron'; | ||
12 | import { readJsonSync } from 'fs-extra'; | ||
11 | import { action, computed, makeObservable, observable } from 'mobx'; | 13 | import { action, computed, makeObservable, observable } from 'mobx'; |
12 | import moment from 'moment'; | 14 | import moment from 'moment'; |
13 | import AutoLaunch from 'auto-launch'; | ||
14 | import ms from 'ms'; | 15 | import ms from 'ms'; |
15 | import { readJsonSync } from 'fs-extra'; | ||
16 | 16 | ||
17 | import { Stores } from '../@types/stores.types'; | 17 | import type { Stores } from '../@types/stores.types'; |
18 | import { ApiInterface } from '../api'; | 18 | import type { Actions } from '../actions/lib/actions'; |
19 | import { Actions } from '../actions/lib/actions'; | 19 | import type { ApiInterface } from '../api'; |
20 | import TypedStore from './lib/TypedStore'; | ||
21 | import Request from './lib/Request'; | ||
22 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; | 20 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; |
23 | import { cleanseJSObject } from '../jsUtils'; | ||
24 | import { | 21 | import { |
22 | electronVersion, | ||
25 | isMac, | 23 | isMac, |
26 | isWinPortable, | 24 | isWinPortable, |
27 | electronVersion, | ||
28 | osRelease, | 25 | osRelease, |
29 | } from '../environment'; | 26 | } from '../environment'; |
30 | import { | 27 | import { |
28 | ferdiumLocale, | ||
31 | ferdiumVersion, | 29 | ferdiumVersion, |
32 | userDataPath, | 30 | userDataPath, |
33 | ferdiumLocale, | ||
34 | } from '../environment-remote'; | 31 | } from '../environment-remote'; |
35 | import generatedTranslations from '../i18n/translations'; | ||
36 | import { getLocale } from '../helpers/i18n-helpers'; | 32 | import { getLocale } from '../helpers/i18n-helpers'; |
33 | import generatedTranslations from '../i18n/translations'; | ||
34 | import { cleanseJSObject } from '../jsUtils'; | ||
35 | import Request from './lib/Request'; | ||
36 | import TypedStore from './lib/TypedStore'; | ||
37 | 37 | ||
38 | import sleep from '../helpers/async-helpers'; | ||
38 | import { | 39 | import { |
39 | getServiceIdsFromPartitions, | 40 | getServiceIdsFromPartitions, |
40 | removeServicePartitionDirectory, | 41 | removeServicePartitionDirectory, |
41 | } from '../helpers/service-helpers'; | 42 | } from '../helpers/service-helpers'; |
42 | import { openExternalUrl } from '../helpers/url-helpers'; | 43 | import { openExternalUrl } from '../helpers/url-helpers'; |
43 | import sleep from '../helpers/async-helpers'; | ||
44 | 44 | ||
45 | const debug = require('../preload-safe-debug')('Ferdium:AppStore'); | 45 | const debug = require('../preload-safe-debug')('Ferdium:AppStore'); |
46 | 46 | ||
diff --git a/src/stores/FeaturesStore.ts b/src/stores/FeaturesStore.ts index 8584b6060..6167d0e22 100644 --- a/src/stores/FeaturesStore.ts +++ b/src/stores/FeaturesStore.ts | |||
@@ -5,18 +5,18 @@ import { | |||
5 | observable, | 5 | observable, |
6 | runInAction, | 6 | runInAction, |
7 | } from 'mobx'; | 7 | } from 'mobx'; |
8 | import { Stores } from '../@types/stores.types'; | 8 | import type { Stores } from '../@types/stores.types'; |
9 | import { ApiInterface } from '../api'; | 9 | import type { Actions } from '../actions/lib/actions'; |
10 | import { Actions } from '../actions/lib/actions'; | 10 | import type { ApiInterface } from '../api'; |
11 | import CachedRequest from './lib/CachedRequest'; | 11 | import appearance from '../features/appearance'; |
12 | import serviceProxy from '../features/serviceProxy'; | ||
13 | import basicAuth from '../features/basicAuth'; | 12 | import basicAuth from '../features/basicAuth'; |
14 | import workspaces from '../features/workspaces'; | ||
15 | import quickSwitch from '../features/quickSwitch'; | ||
16 | import publishDebugInfo from '../features/publishDebugInfo'; | ||
17 | import communityRecipes from '../features/communityRecipes'; | 13 | import communityRecipes from '../features/communityRecipes'; |
14 | import publishDebugInfo from '../features/publishDebugInfo'; | ||
15 | import quickSwitch from '../features/quickSwitch'; | ||
16 | import serviceProxy from '../features/serviceProxy'; | ||
18 | import todos from '../features/todos'; | 17 | import todos from '../features/todos'; |
19 | import appearance from '../features/appearance'; | 18 | import workspaces from '../features/workspaces'; |
19 | import CachedRequest from './lib/CachedRequest'; | ||
20 | import TypedStore from './lib/TypedStore'; | 20 | import TypedStore from './lib/TypedStore'; |
21 | 21 | ||
22 | export default class FeaturesStore extends TypedStore { | 22 | export default class FeaturesStore extends TypedStore { |
diff --git a/src/stores/GlobalErrorStore.ts b/src/stores/GlobalErrorStore.ts index 74a43100b..1da81eaa3 100644 --- a/src/stores/GlobalErrorStore.ts +++ b/src/stores/GlobalErrorStore.ts | |||
@@ -1,8 +1,8 @@ | |||
1 | import { observable, action, makeObservable } from 'mobx'; | 1 | import type { Response } from 'electron'; |
2 | import { Response } from 'electron'; | 2 | import { action, makeObservable, observable } from 'mobx'; |
3 | import { Actions } from '../actions/lib/actions'; | 3 | import type { Stores } from '../@types/stores.types'; |
4 | import { ApiInterface } from '../api'; | 4 | import type { Actions } from '../actions/lib/actions'; |
5 | import { Stores } from '../@types/stores.types'; | 5 | import type { ApiInterface } from '../api'; |
6 | import Request from './lib/Request'; | 6 | import Request from './lib/Request'; |
7 | import TypedStore from './lib/TypedStore'; | 7 | import TypedStore from './lib/TypedStore'; |
8 | 8 | ||
diff --git a/src/stores/RecipePreviewsStore.ts b/src/stores/RecipePreviewsStore.ts index 1c95e6b54..f851f3203 100644 --- a/src/stores/RecipePreviewsStore.ts +++ b/src/stores/RecipePreviewsStore.ts | |||
@@ -1,14 +1,14 @@ | |||
1 | import { action, computed, makeObservable, observable } from 'mobx'; | 1 | import { action, computed, makeObservable, observable } from 'mobx'; |
2 | 2 | ||
3 | import { Actions } from '../actions/lib/actions'; | 3 | import type { Stores } from '../@types/stores.types'; |
4 | import { ApiInterface } from '../api'; | 4 | import type { Actions } from '../actions/lib/actions'; |
5 | import Recipe from '../models/Recipe'; | 5 | import type { ApiInterface } from '../api'; |
6 | import { Stores } from '../@types/stores.types'; | 6 | import type Recipe from '../models/Recipe'; |
7 | 7 | ||
8 | import type RecipePreview from '../models/RecipePreview'; | ||
8 | import CachedRequest from './lib/CachedRequest'; | 9 | import CachedRequest from './lib/CachedRequest'; |
9 | import Request from './lib/Request'; | 10 | import Request from './lib/Request'; |
10 | import TypedStore from './lib/TypedStore'; | 11 | import TypedStore from './lib/TypedStore'; |
11 | import RecipePreview from '../models/RecipePreview'; | ||
12 | 12 | ||
13 | export default class RecipePreviewsStore extends TypedStore { | 13 | export default class RecipePreviewsStore extends TypedStore { |
14 | @observable allRecipePreviewsRequest = new CachedRequest( | 14 | @observable allRecipePreviewsRequest = new CachedRequest( |
diff --git a/src/stores/RecipesStore.ts b/src/stores/RecipesStore.ts index 9b5565dcf..3cd81807a 100644 --- a/src/stores/RecipesStore.ts +++ b/src/stores/RecipesStore.ts | |||
@@ -1,15 +1,15 @@ | |||
1 | import { action, computed, makeObservable, observable } from 'mobx'; | ||
2 | import { readJSONSync } from 'fs-extra'; | 1 | import { readJSONSync } from 'fs-extra'; |
2 | import { action, computed, makeObservable, observable } from 'mobx'; | ||
3 | import semver from 'semver'; | 3 | import semver from 'semver'; |
4 | 4 | ||
5 | import Recipe from '../models/Recipe'; | 5 | import type { Stores } from '../@types/stores.types'; |
6 | import { Stores } from '../@types/stores.types'; | 6 | import type { Actions } from '../actions/lib/actions'; |
7 | import { ApiInterface } from '../api'; | 7 | import type { ApiInterface } from '../api'; |
8 | import { Actions } from '../actions/lib/actions'; | 8 | import { asarRecipesPath } from '../helpers/asar-helpers'; |
9 | import matchRoute from '../helpers/routing-helpers'; | ||
10 | import type Recipe from '../models/Recipe'; | ||
9 | import CachedRequest from './lib/CachedRequest'; | 11 | import CachedRequest from './lib/CachedRequest'; |
10 | import Request from './lib/Request'; | 12 | import Request from './lib/Request'; |
11 | import matchRoute from '../helpers/routing-helpers'; | ||
12 | import { asarRecipesPath } from '../helpers/asar-helpers'; | ||
13 | import TypedStore from './lib/TypedStore'; | 13 | import TypedStore from './lib/TypedStore'; |
14 | 14 | ||
15 | const debug = require('../preload-safe-debug')('Ferdium:RecipeStore'); | 15 | const debug = require('../preload-safe-debug')('Ferdium:RecipeStore'); |
diff --git a/src/stores/RequestStore.ts b/src/stores/RequestStore.ts index 807f2d126..bad9f39ea 100644 --- a/src/stores/RequestStore.ts +++ b/src/stores/RequestStore.ts | |||
@@ -2,11 +2,11 @@ import { ipcRenderer } from 'electron'; | |||
2 | import { action, computed, makeObservable, observable } from 'mobx'; | 2 | import { action, computed, makeObservable, observable } from 'mobx'; |
3 | import ms from 'ms'; | 3 | import ms from 'ms'; |
4 | 4 | ||
5 | import { Actions } from '../actions/lib/actions'; | 5 | import type { Stores } from '../@types/stores.types'; |
6 | import { ApiInterface } from '../api'; | 6 | import type { Actions } from '../actions/lib/actions'; |
7 | import { Stores } from '../@types/stores.types'; | 7 | import type { ApiInterface } from '../api'; |
8 | import CachedRequest from './lib/CachedRequest'; | ||
9 | import { LOCAL_HOSTNAME, LOCAL_PORT } from '../config'; | 8 | import { LOCAL_HOSTNAME, LOCAL_PORT } from '../config'; |
9 | import type CachedRequest from './lib/CachedRequest'; | ||
10 | 10 | ||
11 | import TypedStore from './lib/TypedStore'; | 11 | import TypedStore from './lib/TypedStore'; |
12 | 12 | ||
diff --git a/src/stores/ServicesStore.ts b/src/stores/ServicesStore.ts index d7804a3fe..8105aa084 100644 --- a/src/stores/ServicesStore.ts +++ b/src/stores/ServicesStore.ts | |||
@@ -1,29 +1,29 @@ | |||
1 | import { join } from 'node:path'; | 1 | import { join } from 'node:path'; |
2 | import { clipboard, ipcRenderer, shell } from 'electron'; | 2 | import { clipboard, ipcRenderer, shell } from 'electron'; |
3 | import { action, reaction, computed, observable, makeObservable } from 'mobx'; | 3 | import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra'; |
4 | import { debounce, remove } from 'lodash'; | 4 | import { debounce, remove } from 'lodash'; |
5 | import { action, computed, makeObservable, observable, reaction } from 'mobx'; | ||
5 | import ms from 'ms'; | 6 | import ms from 'ms'; |
6 | import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra'; | ||
7 | 7 | ||
8 | import { Stores } from '../@types/stores.types'; | 8 | import type { Stores } from '../@types/stores.types'; |
9 | import { ApiInterface } from '../api'; | 9 | import type { Actions } from '../actions/lib/actions'; |
10 | import { Actions } from '../actions/lib/actions'; | 10 | import type { ApiInterface } from '../api'; |
11 | import Request from './lib/Request'; | 11 | import { DEFAULT_SERVICE_SETTINGS, KEEP_WS_LOADED_USID } from '../config'; |
12 | import CachedRequest from './lib/CachedRequest'; | 12 | import { ferdiumVersion } from '../environment-remote'; |
13 | import matchRoute from '../helpers/routing-helpers'; | 13 | import { workspaceStore } from '../features/workspaces'; |
14 | import { isInTimeframe } from '../helpers/schedule-helpers'; | ||
15 | import { | 14 | import { |
16 | getRecipeDirectory, | ||
17 | getDevRecipeDirectory, | 15 | getDevRecipeDirectory, |
16 | getRecipeDirectory, | ||
18 | } from '../helpers/recipe-helpers'; | 17 | } from '../helpers/recipe-helpers'; |
19 | import Service from '../models/Service'; | 18 | import matchRoute from '../helpers/routing-helpers'; |
20 | import { workspaceStore } from '../features/workspaces'; | 19 | import { isInTimeframe } from '../helpers/schedule-helpers'; |
21 | import { DEFAULT_SERVICE_SETTINGS, KEEP_WS_LOADED_USID } from '../config'; | ||
22 | import { cleanseJSObject } from '../jsUtils'; | ||
23 | import { SPELLCHECKER_LOCALES } from '../i18n/languages'; | 20 | import { SPELLCHECKER_LOCALES } from '../i18n/languages'; |
24 | import { ferdiumVersion } from '../environment-remote'; | 21 | import { cleanseJSObject } from '../jsUtils'; |
25 | import TypedStore from './lib/TypedStore'; | ||
26 | import type { UnreadServices } from '../lib/dbus/Ferdium'; | 22 | import type { UnreadServices } from '../lib/dbus/Ferdium'; |
23 | import type Service from '../models/Service'; | ||
24 | import CachedRequest from './lib/CachedRequest'; | ||
25 | import Request from './lib/Request'; | ||
26 | import TypedStore from './lib/TypedStore'; | ||
27 | 27 | ||
28 | const debug = require('../preload-safe-debug')('Ferdium:ServiceStore'); | 28 | const debug = require('../preload-safe-debug')('Ferdium:ServiceStore'); |
29 | 29 | ||
diff --git a/src/stores/SettingsStore.ts b/src/stores/SettingsStore.ts index 010290a4a..72d6331cb 100644 --- a/src/stores/SettingsStore.ts +++ b/src/stores/SettingsStore.ts | |||
@@ -1,10 +1,10 @@ | |||
1 | import { ipcRenderer } from 'electron'; | ||
2 | import { getCurrentWindow } from '@electron/remote'; | 1 | import { getCurrentWindow } from '@electron/remote'; |
2 | import { ipcRenderer } from 'electron'; | ||
3 | import { action, computed, makeObservable, observable, reaction } from 'mobx'; | 3 | import { action, computed, makeObservable, observable, reaction } from 'mobx'; |
4 | import localStorage from 'mobx-localstorage'; | 4 | import localStorage from 'mobx-localstorage'; |
5 | import { Stores } from '../@types/stores.types'; | 5 | import type { Stores } from '../@types/stores.types'; |
6 | import { ApiInterface } from '../api'; | 6 | import type { Actions } from '../actions/lib/actions'; |
7 | import { Actions } from '../actions/lib/actions'; | 7 | import type { ApiInterface } from '../api'; |
8 | import { | 8 | import { |
9 | DEFAULT_APP_SETTINGS, | 9 | DEFAULT_APP_SETTINGS, |
10 | FILE_SYSTEM_SETTINGS_TYPES, | 10 | FILE_SYSTEM_SETTINGS_TYPES, |
diff --git a/src/stores/UIStore.ts b/src/stores/UIStore.ts index a3330c2e6..614c16763 100644 --- a/src/stores/UIStore.ts +++ b/src/stores/UIStore.ts | |||
@@ -1,10 +1,10 @@ | |||
1 | import { action, observable, computed, reaction, makeObservable } from 'mobx'; | ||
2 | import { nativeTheme } from '@electron/remote'; | 1 | import { nativeTheme } from '@electron/remote'; |
2 | import { action, computed, makeObservable, observable, reaction } from 'mobx'; | ||
3 | 3 | ||
4 | import { Stores } from '../@types/stores.types'; | 4 | import type { Stores } from '../@types/stores.types'; |
5 | import { ApiInterface } from '../api'; | 5 | import type { Actions } from '../actions/lib/actions'; |
6 | import { Actions } from '../actions/lib/actions'; | 6 | import type { ApiInterface } from '../api'; |
7 | import { Theme, theme, ThemeType } from '../themes'; | 7 | import { type Theme, ThemeType, theme } from '../themes'; |
8 | import TypedStore from './lib/TypedStore'; | 8 | import TypedStore from './lib/TypedStore'; |
9 | 9 | ||
10 | export default class UIStore extends TypedStore { | 10 | export default class UIStore extends TypedStore { |
diff --git a/src/stores/UserStore.ts b/src/stores/UserStore.ts index 9c3fcd3b9..ade68e4d4 100644 --- a/src/stores/UserStore.ts +++ b/src/stores/UserStore.ts | |||
@@ -1,16 +1,16 @@ | |||
1 | import { observable, computed, action, makeObservable } from 'mobx'; | 1 | import { ipcRenderer } from 'electron'; |
2 | import moment from 'moment'; | ||
3 | import jwt from 'jsonwebtoken'; | 2 | import jwt from 'jsonwebtoken'; |
3 | import { action, computed, makeObservable, observable } from 'mobx'; | ||
4 | import localStorage from 'mobx-localstorage'; | 4 | import localStorage from 'mobx-localstorage'; |
5 | import { ipcRenderer } from 'electron'; | 5 | import moment from 'moment'; |
6 | 6 | ||
7 | import { ApiInterface } from '../api'; | 7 | import type { Stores } from '../@types/stores.types'; |
8 | import { Actions } from '../actions/lib/actions'; | 8 | import type { Actions } from '../actions/lib/actions'; |
9 | import { Stores } from '../@types/stores.types'; | 9 | import type { ApiInterface } from '../api'; |
10 | import { TODOS_PARTITION_ID } from '../config'; | 10 | import { TODOS_PARTITION_ID } from '../config'; |
11 | import { isDevMode } from '../environment-remote'; | 11 | import { isDevMode } from '../environment-remote'; |
12 | import Request from './lib/Request'; | ||
13 | import CachedRequest from './lib/CachedRequest'; | 12 | import CachedRequest from './lib/CachedRequest'; |
13 | import Request from './lib/Request'; | ||
14 | import TypedStore from './lib/TypedStore'; | 14 | import TypedStore from './lib/TypedStore'; |
15 | 15 | ||
16 | const debug = require('../preload-safe-debug')('Ferdium:UserStore'); | 16 | const debug = require('../preload-safe-debug')('Ferdium:UserStore'); |
diff --git a/src/stores/index.ts b/src/stores/index.ts index f9927d9a3..5b96e6efb 100644 --- a/src/stores/index.ts +++ b/src/stores/index.ts | |||
@@ -1,19 +1,19 @@ | |||
1 | import { RouterStore } from '@superwf/mobx-react-router'; | 1 | import type { RouterStore } from '@superwf/mobx-react-router'; |
2 | import { ApiInterface } from '../api'; | 2 | import type { Actions } from '../actions/lib/actions'; |
3 | import { Actions } from '../actions/lib/actions'; | 3 | import type { ApiInterface } from '../api'; |
4 | import { communityRecipesStore } from '../features/communityRecipes'; | ||
5 | import { todosStore } from '../features/todos'; | ||
6 | import { workspaceStore } from '../features/workspaces'; | ||
4 | import AppStore from './AppStore'; | 7 | import AppStore from './AppStore'; |
5 | import UserStore from './UserStore'; | ||
6 | import FeaturesStore from './FeaturesStore'; | 8 | import FeaturesStore from './FeaturesStore'; |
7 | import SettingsStore from './SettingsStore'; | 9 | import GlobalErrorStore from './GlobalErrorStore'; |
8 | import ServicesStore from './ServicesStore'; | ||
9 | import RecipesStore from './RecipesStore'; | ||
10 | import RecipePreviewsStore from './RecipePreviewsStore'; | 10 | import RecipePreviewsStore from './RecipePreviewsStore'; |
11 | import UIStore from './UIStore'; | 11 | import RecipesStore from './RecipesStore'; |
12 | import RequestStore from './RequestStore'; | 12 | import RequestStore from './RequestStore'; |
13 | import GlobalErrorStore from './GlobalErrorStore'; | 13 | import ServicesStore from './ServicesStore'; |
14 | import { workspaceStore } from '../features/workspaces'; | 14 | import SettingsStore from './SettingsStore'; |
15 | import { communityRecipesStore } from '../features/communityRecipes'; | 15 | import UIStore from './UIStore'; |
16 | import { todosStore } from '../features/todos'; | 16 | import UserStore from './UserStore'; |
17 | 17 | ||
18 | export interface RealStores { | 18 | export interface RealStores { |
19 | router: RouterStore; | 19 | router: RouterStore; |
diff --git a/src/stores/lib/CachedRequest.ts b/src/stores/lib/CachedRequest.ts index b24336fe6..3b15fcf3f 100644 --- a/src/stores/lib/CachedRequest.ts +++ b/src/stores/lib/CachedRequest.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { action } from 'mobx'; | ||
2 | import { isEqual } from 'lodash'; | 1 | import { isEqual } from 'lodash'; |
2 | import { action } from 'mobx'; | ||
3 | import Request from './Request'; | 3 | import Request from './Request'; |
4 | 4 | ||
5 | export default class CachedRequest extends Request { | 5 | export default class CachedRequest extends Request { |
diff --git a/src/stores/lib/Reaction.ts b/src/stores/lib/Reaction.ts index 3966c8073..d418d8db8 100644 --- a/src/stores/lib/Reaction.ts +++ b/src/stores/lib/Reaction.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { autorun, IReactionDisposer, IReactionPublic } from 'mobx'; | 1 | import { type IReactionDisposer, type IReactionPublic, autorun } from 'mobx'; |
2 | 2 | ||
3 | export default class Reaction { | 3 | export default class Reaction { |
4 | public reaction: (r: IReactionPublic) => any; | 4 | public reaction: (r: IReactionPublic) => any; |
diff --git a/src/stores/lib/Request.ts b/src/stores/lib/Request.ts index 587af87d7..e7739bba1 100644 --- a/src/stores/lib/Request.ts +++ b/src/stores/lib/Request.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { observable, action, computed, makeObservable } from 'mobx'; | 1 | import { action, computed, makeObservable, observable } from 'mobx'; |
2 | 2 | ||
3 | // eslint-disable-next-line no-use-before-define | 3 | // eslint-disable-next-line no-use-before-define |
4 | type Hook = (request: Request) => void; | 4 | type Hook = (request: Request) => void; |
diff --git a/src/stores/lib/TypedStore.ts b/src/stores/lib/TypedStore.ts index 8bae529ba..6d499b637 100644 --- a/src/stores/lib/TypedStore.ts +++ b/src/stores/lib/TypedStore.ts | |||
@@ -1,13 +1,13 @@ | |||
1 | import { | 1 | import { |
2 | type IReactionPublic, | ||
2 | action, | 3 | action, |
3 | computed, | 4 | computed, |
4 | IReactionPublic, | ||
5 | makeObservable, | 5 | makeObservable, |
6 | observable, | 6 | observable, |
7 | } from 'mobx'; | 7 | } from 'mobx'; |
8 | import { Actions } from '../../actions/lib/actions'; | 8 | import type { Stores } from '../../@types/stores.types'; |
9 | import { ApiInterface } from '../../api'; | 9 | import type { Actions } from '../../actions/lib/actions'; |
10 | import { Stores } from '../../@types/stores.types'; | 10 | import type { ApiInterface } from '../../api'; |
11 | import Reaction from './Reaction'; | 11 | import Reaction from './Reaction'; |
12 | 12 | ||
13 | export default abstract class TypedStore { | 13 | export default abstract class TypedStore { |