aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-07-04 12:51:44 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-07-04 13:08:32 +0530
commit91cc78009cf57ad8f53e69d20aa974f4833e61b0 (patch)
tree10a4e397734d7ac1c70dd9acbe86108a5344ed7f /src/stores
parentDisable symlinks to build_id for rpm (diff)
downloadferdium-app-91cc78009cf57ad8f53e69d20aa974f4833e61b0.tar.gz
ferdium-app-91cc78009cf57ad8f53e69d20aa974f4833e61b0.tar.zst
ferdium-app-91cc78009cf57ad8f53e69d20aa974f4833e61b0.zip
chore: Use relative paths while importing from custom code
Diffstat (limited to 'src/stores')
-rw-r--r--src/stores/AppStore.ts6
-rw-r--r--src/stores/GlobalErrorStore.ts6
-rw-r--r--src/stores/RecipePreviewsStore.ts10
-rw-r--r--src/stores/RecipesStore.ts8
-rw-r--r--src/stores/RequestStore.ts6
-rw-r--r--src/stores/ServicesStore.ts6
-rw-r--r--src/stores/SettingsStore.ts6
-rw-r--r--src/stores/UIStore.ts6
-rw-r--r--src/stores/UserStore.ts6
-rw-r--r--src/stores/index.ts4
-rw-r--r--src/stores/lib/TypedStore.ts6
11 files changed, 35 insertions, 35 deletions
diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts
index b2adb0f02..0ecfdb7c0 100644
--- a/src/stores/AppStore.ts
+++ b/src/stores/AppStore.ts
@@ -14,9 +14,9 @@ import ms from 'ms';
14import { URL } from 'url'; 14import { URL } from 'url';
15import { readJsonSync } from 'fs-extra'; 15import { readJsonSync } from 'fs-extra';
16 16
17import { Stores } from 'src/@types/stores.types'; 17import { Stores } from '../@types/stores.types';
18import { ApiInterface } from 'src/api'; 18import { ApiInterface } from '../api';
19import { Actions } from 'src/actions/lib/actions'; 19import { Actions } from '../actions/lib/actions';
20import TypedStore from './lib/TypedStore'; 20import TypedStore from './lib/TypedStore';
21import Request from './lib/Request'; 21import Request from './lib/Request';
22import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; 22import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config';
diff --git a/src/stores/GlobalErrorStore.ts b/src/stores/GlobalErrorStore.ts
index fcc1276c8..8c6317c91 100644
--- a/src/stores/GlobalErrorStore.ts
+++ b/src/stores/GlobalErrorStore.ts
@@ -1,7 +1,7 @@
1import { observable, action } from 'mobx'; 1import { observable, action } from 'mobx';
2import { Actions } from 'src/actions/lib/actions'; 2import { Actions } from '../actions/lib/actions';
3import { ApiInterface } from 'src/api'; 3import { ApiInterface } from '../api';
4import { Stores } from 'src/@types/stores.types'; 4import { Stores } from '../@types/stores.types';
5import Request from './lib/Request'; 5import Request from './lib/Request';
6import TypedStore from './lib/TypedStore'; 6import TypedStore from './lib/TypedStore';
7 7
diff --git a/src/stores/RecipePreviewsStore.ts b/src/stores/RecipePreviewsStore.ts
index ad9fda4a7..b1d50c8b8 100644
--- a/src/stores/RecipePreviewsStore.ts
+++ b/src/stores/RecipePreviewsStore.ts
@@ -1,13 +1,13 @@
1import { action, computed, observable } from 'mobx'; 1import { action, computed, observable } from 'mobx';
2import { Actions } from 'src/actions/lib/actions'; 2import { Actions } from '../actions/lib/actions';
3import { ApiInterface } from 'src/api'; 3import { ApiInterface } from '../api';
4import Recipe from 'src/models/Recipe'; 4import Recipe from '../models/Recipe';
5import { Stores } from 'src/@types/stores.types'; 5import { Stores } from '../@types/stores.types';
6 6
7import RecipePreview from 'src/models/RecipePreview';
8import CachedRequest from './lib/CachedRequest'; 7import CachedRequest from './lib/CachedRequest';
9import Request from './lib/Request'; 8import Request from './lib/Request';
10import TypedStore from './lib/TypedStore'; 9import TypedStore from './lib/TypedStore';
10import RecipePreview from '../models/RecipePreview';
11 11
12export default class RecipePreviewsStore extends TypedStore { 12export default class RecipePreviewsStore extends TypedStore {
13 @observable allRecipePreviewsRequest = new CachedRequest( 13 @observable allRecipePreviewsRequest = new CachedRequest(
diff --git a/src/stores/RecipesStore.ts b/src/stores/RecipesStore.ts
index 6bd4ab382..364d56dd2 100644
--- a/src/stores/RecipesStore.ts
+++ b/src/stores/RecipesStore.ts
@@ -2,10 +2,10 @@ import { action, computed, observable } from 'mobx';
2import { readJSONSync } from 'fs-extra'; 2import { readJSONSync } from 'fs-extra';
3import semver from 'semver'; 3import semver from 'semver';
4 4
5import { Stores } from 'src/@types/stores.types'; 5import Recipe from '../models/Recipe';
6import { ApiInterface } from 'src/api'; 6import { Stores } from '../@types/stores.types';
7import { Actions } from 'src/actions/lib/actions'; 7import { ApiInterface } from '../api';
8import Recipe from 'src/models/Recipe'; 8import { Actions } from '../actions/lib/actions';
9import CachedRequest from './lib/CachedRequest'; 9import CachedRequest from './lib/CachedRequest';
10import Request from './lib/Request'; 10import Request from './lib/Request';
11import matchRoute from '../helpers/routing-helpers'; 11import matchRoute from '../helpers/routing-helpers';
diff --git a/src/stores/RequestStore.ts b/src/stores/RequestStore.ts
index af686388a..e5df1292d 100644
--- a/src/stores/RequestStore.ts
+++ b/src/stores/RequestStore.ts
@@ -2,9 +2,9 @@ import { ipcRenderer } from 'electron';
2import { action, computed, observable } from 'mobx'; 2import { action, computed, observable } from 'mobx';
3import ms from 'ms'; 3import ms from 'ms';
4 4
5import { Actions } from 'src/actions/lib/actions'; 5import { Actions } from '../actions/lib/actions';
6import { ApiInterface } from 'src/api'; 6import { ApiInterface } from '../api';
7import { Stores } from 'src/@types/stores.types'; 7import { Stores } from '../@types/stores.types';
8import CachedRequest from './lib/CachedRequest'; 8import CachedRequest from './lib/CachedRequest';
9import { LOCAL_PORT } from '../config'; 9import { LOCAL_PORT } from '../config';
10 10
diff --git a/src/stores/ServicesStore.ts b/src/stores/ServicesStore.ts
index e690b3791..4c1b4116c 100644
--- a/src/stores/ServicesStore.ts
+++ b/src/stores/ServicesStore.ts
@@ -5,9 +5,9 @@ import ms from 'ms';
5import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra'; 5import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra';
6import { join } from 'path'; 6import { join } from 'path';
7 7
8import { Stores } from 'src/@types/stores.types'; 8import { Stores } from '../@types/stores.types';
9import { ApiInterface } from 'src/api'; 9import { ApiInterface } from '../api';
10import { Actions } from 'src/actions/lib/actions'; 10import { Actions } from '../actions/lib/actions';
11import Request from './lib/Request'; 11import Request from './lib/Request';
12import CachedRequest from './lib/CachedRequest'; 12import CachedRequest from './lib/CachedRequest';
13import matchRoute from '../helpers/routing-helpers'; 13import matchRoute from '../helpers/routing-helpers';
diff --git a/src/stores/SettingsStore.ts b/src/stores/SettingsStore.ts
index dabd7b099..0296ba0e7 100644
--- a/src/stores/SettingsStore.ts
+++ b/src/stores/SettingsStore.ts
@@ -2,9 +2,9 @@ import { ipcRenderer } from 'electron';
2import { getCurrentWindow } from '@electron/remote'; 2import { getCurrentWindow } from '@electron/remote';
3import { action, computed, observable, reaction } from 'mobx'; 3import { action, computed, observable, reaction } from 'mobx';
4import localStorage from 'mobx-localstorage'; 4import localStorage from 'mobx-localstorage';
5import { Stores } from 'src/@types/stores.types'; 5import { Stores } from '../@types/stores.types';
6import { ApiInterface } from 'src/api'; 6import { ApiInterface } from '../api';
7import { Actions } from 'src/actions/lib/actions'; 7import { Actions } from '../actions/lib/actions';
8import { 8import {
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 e9e099ebc..c43c6d8c7 100644
--- a/src/stores/UIStore.ts
+++ b/src/stores/UIStore.ts
@@ -1,9 +1,9 @@
1import { action, observable, computed, reaction } from 'mobx'; 1import { action, observable, computed, reaction } from 'mobx';
2import { nativeTheme } from '@electron/remote'; 2import { nativeTheme } from '@electron/remote';
3 3
4import { Stores } from 'src/@types/stores.types'; 4import { Stores } from '../@types/stores.types';
5import { ApiInterface } from 'src/api'; 5import { ApiInterface } from '../api';
6import { Actions } from 'src/actions/lib/actions'; 6import { Actions } from '../actions/lib/actions';
7import { Theme, theme, ThemeType } from '../themes'; 7import { Theme, theme, ThemeType } from '../themes';
8import TypedStore from './lib/TypedStore'; 8import TypedStore from './lib/TypedStore';
9 9
diff --git a/src/stores/UserStore.ts b/src/stores/UserStore.ts
index 0827f8196..b9c3c7576 100644
--- a/src/stores/UserStore.ts
+++ b/src/stores/UserStore.ts
@@ -4,9 +4,9 @@ import jwt from 'jsonwebtoken';
4import localStorage from 'mobx-localstorage'; 4import localStorage from 'mobx-localstorage';
5import { ipcRenderer } from 'electron'; 5import { ipcRenderer } from 'electron';
6 6
7import { ApiInterface } from 'src/api'; 7import { ApiInterface } from '../api';
8import { Actions } from 'src/actions/lib/actions'; 8import { Actions } from '../actions/lib/actions';
9import { Stores } from 'src/@types/stores.types'; 9import { Stores } from '../@types/stores.types';
10import { TODOS_PARTITION_ID } from '../config'; 10import { TODOS_PARTITION_ID } from '../config';
11import { isDevMode } from '../environment-remote'; 11import { isDevMode } from '../environment-remote';
12import Request from './lib/Request'; 12import Request from './lib/Request';
diff --git a/src/stores/index.ts b/src/stores/index.ts
index aac501cda..d31f2c933 100644
--- a/src/stores/index.ts
+++ b/src/stores/index.ts
@@ -1,6 +1,6 @@
1import { RouterStore } from 'mobx-react-router'; 1import { RouterStore } from 'mobx-react-router';
2import { ApiInterface } from 'src/api'; 2import { ApiInterface } from '../api';
3import { Actions } from 'src/actions/lib/actions'; 3import { Actions } from '../actions/lib/actions';
4import AppStore from './AppStore'; 4import AppStore from './AppStore';
5import UserStore from './UserStore'; 5import UserStore from './UserStore';
6import FeaturesStore from './FeaturesStore'; 6import FeaturesStore from './FeaturesStore';
diff --git a/src/stores/lib/TypedStore.ts b/src/stores/lib/TypedStore.ts
index c78f83850..c97ae1aa5 100644
--- a/src/stores/lib/TypedStore.ts
+++ b/src/stores/lib/TypedStore.ts
@@ -1,7 +1,7 @@
1import { computed, IReactionPublic, observable } from 'mobx'; 1import { computed, IReactionPublic, observable } from 'mobx';
2import { Actions } from 'src/actions/lib/actions'; 2import { Actions } from '../../actions/lib/actions';
3import { ApiInterface } from 'src/api'; 3import { ApiInterface } from '../../api';
4import { Stores } from 'src/@types/stores.types'; 4import { Stores } from '../../@types/stores.types';
5import Reaction from './Reaction'; 5import Reaction from './Reaction';
6 6
7export default abstract class TypedStore { 7export default abstract class TypedStore {