diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-07-04 12:51:44 +0530 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2022-07-04 13:08:32 +0530 |
commit | 91cc78009cf57ad8f53e69d20aa974f4833e61b0 (patch) | |
tree | 10a4e397734d7ac1c70dd9acbe86108a5344ed7f | |
parent | Disable symlinks to build_id for rpm (diff) | |
download | ferdium-app-91cc78009cf57ad8f53e69d20aa974f4833e61b0.tar.gz ferdium-app-91cc78009cf57ad8f53e69d20aa974f4833e61b0.tar.zst ferdium-app-91cc78009cf57ad8f53e69d20aa974f4833e61b0.zip |
chore: Use relative paths while importing from custom code
33 files changed, 64 insertions, 65 deletions
diff --git a/src/@types/ferdium-components.types.ts b/src/@types/ferdium-components.types.ts index c4d1f0696..03cfdc3b7 100644 --- a/src/@types/ferdium-components.types.ts +++ b/src/@types/ferdium-components.types.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { Actions } from 'src/actions/lib/actions'; | 1 | import { Actions } from '../actions/lib/actions'; |
2 | import { RealStores } from 'src/stores'; | 2 | import { RealStores } from '../stores'; |
3 | 3 | ||
4 | export interface StoresProps { | 4 | export interface StoresProps { |
5 | actions: Actions; | 5 | actions: Actions; |
diff --git a/src/containers/auth/AuthLayoutContainer.tsx b/src/containers/auth/AuthLayoutContainer.tsx index abe3905e0..1f2753a66 100644 --- a/src/containers/auth/AuthLayoutContainer.tsx +++ b/src/containers/auth/AuthLayoutContainer.tsx | |||
@@ -2,8 +2,8 @@ import { Component, ReactElement, ReactNode } from 'react'; | |||
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { ThemeProvider } from 'react-jss'; | 3 | import { ThemeProvider } from 'react-jss'; |
4 | 4 | ||
5 | import { StoresProps } from 'src/@types/ferdium-components.types'; | ||
6 | import { Location } from 'mobx-react-router'; | 5 | import { Location } from 'mobx-react-router'; |
6 | import { StoresProps } from '../../@types/ferdium-components.types'; | ||
7 | import AuthLayout from '../../components/auth/AuthLayout'; | 7 | import AuthLayout from '../../components/auth/AuthLayout'; |
8 | import AppLoader from '../../components/ui/AppLoader'; | 8 | import AppLoader from '../../components/ui/AppLoader'; |
9 | 9 | ||
diff --git a/src/containers/auth/ChangeServerScreen.tsx b/src/containers/auth/ChangeServerScreen.tsx index 6d0feaecb..29320a001 100644 --- a/src/containers/auth/ChangeServerScreen.tsx +++ b/src/containers/auth/ChangeServerScreen.tsx | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { StoresProps } from 'src/@types/ferdium-components.types'; | 3 | import { StoresProps } from '../../@types/ferdium-components.types'; |
4 | import ChangeServer from '../../components/auth/ChangeServer'; | 4 | import ChangeServer from '../../components/auth/ChangeServer'; |
5 | 5 | ||
6 | class ChangeServerScreen extends Component<StoresProps> { | 6 | class ChangeServerScreen extends Component<StoresProps> { |
diff --git a/src/containers/auth/ImportScreen.tsx b/src/containers/auth/ImportScreen.tsx index 3522ce0ce..91e985ad5 100644 --- a/src/containers/auth/ImportScreen.tsx +++ b/src/containers/auth/ImportScreen.tsx | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { StoresProps } from 'src/@types/ferdium-components.types'; | 3 | import { StoresProps } from '../../@types/ferdium-components.types'; |
4 | import Import from '../../components/auth/Import'; | 4 | import Import from '../../components/auth/Import'; |
5 | 5 | ||
6 | class ImportScreen extends Component<StoresProps> { | 6 | class ImportScreen extends Component<StoresProps> { |
diff --git a/src/containers/auth/InviteScreen.tsx b/src/containers/auth/InviteScreen.tsx index 40ebdba8d..2dfc3c88c 100644 --- a/src/containers/auth/InviteScreen.tsx +++ b/src/containers/auth/InviteScreen.tsx | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { StoresProps } from 'src/@types/ferdium-components.types'; | 3 | import { StoresProps } from '../../@types/ferdium-components.types'; |
4 | import Invite from '../../components/auth/Invite'; | 4 | import Invite from '../../components/auth/Invite'; |
5 | 5 | ||
6 | class InviteScreen extends Component<StoresProps> { | 6 | class InviteScreen extends Component<StoresProps> { |
diff --git a/src/containers/auth/LockedScreen.tsx b/src/containers/auth/LockedScreen.tsx index 88f743d02..1b703207f 100644 --- a/src/containers/auth/LockedScreen.tsx +++ b/src/containers/auth/LockedScreen.tsx | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { StoresProps } from 'src/@types/ferdium-components.types'; | 3 | import { StoresProps } from '../../@types/ferdium-components.types'; |
4 | import Locked from '../../components/auth/Locked'; | 4 | import Locked from '../../components/auth/Locked'; |
5 | 5 | ||
6 | import { hash } from '../../helpers/password-helpers'; | 6 | import { hash } from '../../helpers/password-helpers'; |
diff --git a/src/containers/auth/LoginScreen.tsx b/src/containers/auth/LoginScreen.tsx index c2efd27eb..5c30e6569 100644 --- a/src/containers/auth/LoginScreen.tsx +++ b/src/containers/auth/LoginScreen.tsx | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { StoresProps, GlobalError } from 'src/@types/ferdium-components.types'; | 3 | import { StoresProps, GlobalError } from '../../@types/ferdium-components.types'; |
4 | import Login from '../../components/auth/Login'; | 4 | import Login from '../../components/auth/Login'; |
5 | 5 | ||
6 | interface LoginScreenProps extends StoresProps { | 6 | interface LoginScreenProps extends StoresProps { |
diff --git a/src/containers/auth/PasswordScreen.tsx b/src/containers/auth/PasswordScreen.tsx index 313554802..c7539f21e 100644 --- a/src/containers/auth/PasswordScreen.tsx +++ b/src/containers/auth/PasswordScreen.tsx | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { StoresProps } from 'src/@types/ferdium-components.types'; | 3 | import { StoresProps } from '../../@types/ferdium-components.types'; |
4 | import Password from '../../components/auth/Password'; | 4 | import Password from '../../components/auth/Password'; |
5 | 5 | ||
6 | class PasswordScreen extends Component<StoresProps> { | 6 | class PasswordScreen extends Component<StoresProps> { |
diff --git a/src/containers/auth/SetupAssistantScreen.tsx b/src/containers/auth/SetupAssistantScreen.tsx index b286d7cac..661d688aa 100644 --- a/src/containers/auth/SetupAssistantScreen.tsx +++ b/src/containers/auth/SetupAssistantScreen.tsx | |||
@@ -2,7 +2,7 @@ | |||
2 | import { Component, ReactElement } from 'react'; | 2 | import { Component, ReactElement } from 'react'; |
3 | import { inject, observer } from 'mobx-react'; | 3 | import { inject, observer } from 'mobx-react'; |
4 | 4 | ||
5 | import { StoresProps } from 'src/@types/ferdium-components.types'; | 5 | import { StoresProps } from '../../@types/ferdium-components.types'; |
6 | import sleep from '../../helpers/async-helpers'; | 6 | import sleep from '../../helpers/async-helpers'; |
7 | import SetupAssistant from '../../components/auth/SetupAssistant'; | 7 | import SetupAssistant from '../../components/auth/SetupAssistant'; |
8 | 8 | ||
diff --git a/src/containers/auth/SignupScreen.tsx b/src/containers/auth/SignupScreen.tsx index 04b39df67..f3675c286 100644 --- a/src/containers/auth/SignupScreen.tsx +++ b/src/containers/auth/SignupScreen.tsx | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | 3 | ||
4 | import { StoresProps, GlobalError } from 'src/@types/ferdium-components.types'; | 4 | import { StoresProps, GlobalError } from '../../@types/ferdium-components.types'; |
5 | import Signup from '../../components/auth/Signup'; | 5 | import Signup from '../../components/auth/Signup'; |
6 | 6 | ||
7 | interface SignUpScreenComponents extends StoresProps { | 7 | interface SignUpScreenComponents extends StoresProps { |
diff --git a/src/containers/auth/WelcomeScreen.tsx b/src/containers/auth/WelcomeScreen.tsx index bbd5b4825..c03319179 100644 --- a/src/containers/auth/WelcomeScreen.tsx +++ b/src/containers/auth/WelcomeScreen.tsx | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | 3 | ||
4 | import { StoresProps } from 'src/@types/ferdium-components.types'; | 4 | import { StoresProps } from '../../@types/ferdium-components.types'; |
5 | import Welcome from '../../components/auth/Welcome'; | 5 | import Welcome from '../../components/auth/Welcome'; |
6 | 6 | ||
7 | class WelcomeScreen extends Component<StoresProps> { | 7 | class WelcomeScreen extends Component<StoresProps> { |
diff --git a/src/containers/layout/AppLayoutContainer.tsx b/src/containers/layout/AppLayoutContainer.tsx index c6a9dfb0d..984ea8b68 100644 --- a/src/containers/layout/AppLayoutContainer.tsx +++ b/src/containers/layout/AppLayoutContainer.tsx | |||
@@ -2,7 +2,7 @@ import { Children, Component, ReactElement, ReactNode } from 'react'; | |||
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { ThemeProvider } from 'react-jss'; | 3 | import { ThemeProvider } from 'react-jss'; |
4 | 4 | ||
5 | import { StoresProps } from 'src/@types/ferdium-components.types'; | 5 | import { StoresProps } from '../../@types/ferdium-components.types'; |
6 | import AppLayout from '../../components/layout/AppLayout'; | 6 | import AppLayout from '../../components/layout/AppLayout'; |
7 | import Sidebar from '../../components/layout/Sidebar'; | 7 | import Sidebar from '../../components/layout/Sidebar'; |
8 | import Services from '../../components/services/content/Services'; | 8 | import Services from '../../components/services/content/Services'; |
diff --git a/src/containers/settings/AccountScreen.tsx b/src/containers/settings/AccountScreen.tsx index 480b61f6c..e072b28af 100644 --- a/src/containers/settings/AccountScreen.tsx +++ b/src/containers/settings/AccountScreen.tsx | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | 3 | ||
4 | import { StoresProps } from 'src/@types/ferdium-components.types'; | 4 | import { StoresProps } from '../../@types/ferdium-components.types'; |
5 | 5 | ||
6 | import AccountDashboard from '../../components/settings/account/AccountDashboard'; | 6 | import AccountDashboard from '../../components/settings/account/AccountDashboard'; |
7 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 7 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
diff --git a/src/containers/settings/EditServiceScreen.tsx b/src/containers/settings/EditServiceScreen.tsx index 93fb4418d..f8532a7b4 100644 --- a/src/containers/settings/EditServiceScreen.tsx +++ b/src/containers/settings/EditServiceScreen.tsx | |||
@@ -3,10 +3,10 @@ import { inject, observer } from 'mobx-react'; | |||
3 | import { defineMessages, injectIntl } from 'react-intl'; | 3 | import { defineMessages, injectIntl } from 'react-intl'; |
4 | 4 | ||
5 | import { RouterStore } from 'mobx-react-router'; | 5 | import { RouterStore } from 'mobx-react-router'; |
6 | import { StoresProps } from 'src/@types/ferdium-components.types'; | 6 | import { StoresProps } from '../../@types/ferdium-components.types'; |
7 | import { IRecipe } from 'src/models/Recipe'; | 7 | import { IRecipe } from '../../models/Recipe'; |
8 | import Service from 'src/models/Service'; | 8 | import Service from '../../models/Service'; |
9 | import { FormFields } from 'src/@types/mobx-form.types'; | 9 | import { FormFields } from '../../@types/mobx-form.types'; |
10 | import Form from '../../lib/Form'; | 10 | import Form from '../../lib/Form'; |
11 | 11 | ||
12 | import ServiceError from '../../components/settings/services/ServiceError'; | 12 | import ServiceError from '../../components/settings/services/ServiceError'; |
diff --git a/src/containers/settings/EditSettingsScreen.tsx b/src/containers/settings/EditSettingsScreen.tsx index 205c71107..b2604ae0e 100644 --- a/src/containers/settings/EditSettingsScreen.tsx +++ b/src/containers/settings/EditSettingsScreen.tsx | |||
@@ -3,8 +3,8 @@ import { Component, ReactElement } from 'react'; | |||
3 | import { inject, observer } from 'mobx-react'; | 3 | import { inject, observer } from 'mobx-react'; |
4 | import { defineMessages, injectIntl } from 'react-intl'; | 4 | import { defineMessages, injectIntl } from 'react-intl'; |
5 | 5 | ||
6 | import { FormFields } from 'src/@types/mobx-form.types'; | 6 | import { FormFields } from '../../@types/mobx-form.types'; |
7 | import { StoresProps } from 'src/@types/ferdium-components.types'; | 7 | import { StoresProps } from '../../@types/ferdium-components.types'; |
8 | import Form from '../../lib/Form'; | 8 | import Form from '../../lib/Form'; |
9 | import { APP_LOCALES, SPELLCHECKER_LOCALES } from '../../i18n/languages'; | 9 | import { APP_LOCALES, SPELLCHECKER_LOCALES } from '../../i18n/languages'; |
10 | import { | 10 | import { |
diff --git a/src/containers/settings/EditUserScreen.tsx b/src/containers/settings/EditUserScreen.tsx index 6ab288d6f..0d6c47da5 100644 --- a/src/containers/settings/EditUserScreen.tsx +++ b/src/containers/settings/EditUserScreen.tsx | |||
@@ -2,8 +2,8 @@ import { Component, ReactElement } from 'react'; | |||
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { defineMessages, injectIntl } from 'react-intl'; | 3 | import { defineMessages, injectIntl } from 'react-intl'; |
4 | 4 | ||
5 | import { StoresProps } from 'src/@types/ferdium-components.types'; | 5 | import { StoresProps } from '../../@types/ferdium-components.types'; |
6 | import { FormFields } from 'src/@types/mobx-form.types'; | 6 | import { FormFields } from '../../@types/mobx-form.types'; |
7 | import Form from '../../lib/Form'; | 7 | import Form from '../../lib/Form'; |
8 | import EditUserForm from '../../components/settings/user/EditUserForm'; | 8 | import EditUserForm from '../../components/settings/user/EditUserForm'; |
9 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 9 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
diff --git a/src/containers/settings/InviteScreen.tsx b/src/containers/settings/InviteScreen.tsx index ff192783c..c67b892bd 100644 --- a/src/containers/settings/InviteScreen.tsx +++ b/src/containers/settings/InviteScreen.tsx | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Component, ReactNode } from 'react'; | 1 | import { Component, ReactNode } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | 3 | ||
4 | import { StoresProps } from 'src/@types/ferdium-components.types'; | 4 | import { StoresProps } from '../../@types/ferdium-components.types'; |
5 | import Invite from '../../components/auth/Invite'; | 5 | import Invite from '../../components/auth/Invite'; |
6 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 6 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
7 | 7 | ||
diff --git a/src/containers/settings/RecipesScreen.tsx b/src/containers/settings/RecipesScreen.tsx index c50ff246e..bc7fa9ba0 100644 --- a/src/containers/settings/RecipesScreen.tsx +++ b/src/containers/settings/RecipesScreen.tsx | |||
@@ -3,8 +3,8 @@ import { Component, ReactElement } from 'react'; | |||
3 | import { autorun, IReactionDisposer } from 'mobx'; | 3 | import { autorun, IReactionDisposer } from 'mobx'; |
4 | import { inject, observer } from 'mobx-react'; | 4 | import { inject, observer } from 'mobx-react'; |
5 | 5 | ||
6 | import { StoresProps } from 'src/@types/ferdium-components.types'; | 6 | import Recipe from '../../models/Recipe'; |
7 | import Recipe from 'src/models/Recipe'; | 7 | import { StoresProps } from '../../@types/ferdium-components.types'; |
8 | import RecipesDashboard from '../../components/settings/recipes/RecipesDashboard'; | 8 | import RecipesDashboard from '../../components/settings/recipes/RecipesDashboard'; |
9 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 9 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
10 | import { CUSTOM_WEBSITE_RECIPE_ID, FRANZ_DEV_DOCS } from '../../config'; | 10 | import { CUSTOM_WEBSITE_RECIPE_ID, FRANZ_DEV_DOCS } from '../../config'; |
diff --git a/src/containers/settings/ServicesScreen.tsx b/src/containers/settings/ServicesScreen.tsx index 615747382..affe965e9 100644 --- a/src/containers/settings/ServicesScreen.tsx +++ b/src/containers/settings/ServicesScreen.tsx | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | 3 | ||
4 | import { StoresProps } from 'src/@types/ferdium-components.types'; | 4 | import { StoresProps } from '../../@types/ferdium-components.types'; |
5 | import ServicesDashboard from '../../components/settings/services/ServicesDashboard'; | 5 | import ServicesDashboard from '../../components/settings/services/ServicesDashboard'; |
6 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 6 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
7 | 7 | ||
diff --git a/src/containers/settings/SettingsWindow.tsx b/src/containers/settings/SettingsWindow.tsx index fb1e2fd2d..2192a6f69 100644 --- a/src/containers/settings/SettingsWindow.tsx +++ b/src/containers/settings/SettingsWindow.tsx | |||
@@ -2,8 +2,7 @@ import { Component, ReactNode, ReactPortal } from 'react'; | |||
2 | import ReactDOM from 'react-dom'; | 2 | import ReactDOM from 'react-dom'; |
3 | import { observer, inject } from 'mobx-react'; | 3 | import { observer, inject } from 'mobx-react'; |
4 | 4 | ||
5 | import { StoresProps } from 'src/@types/ferdium-components.types'; | 5 | import { StoresProps } from '../../@types/ferdium-components.types'; |
6 | |||
7 | import Layout from '../../components/settings/SettingsLayout'; | 6 | import Layout from '../../components/settings/SettingsLayout'; |
8 | import Navigation from '../../components/settings/navigation/SettingsNavigation'; | 7 | import Navigation from '../../components/settings/navigation/SettingsNavigation'; |
9 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 8 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
diff --git a/src/containers/settings/TeamScreen.tsx b/src/containers/settings/TeamScreen.tsx index 5e5223f67..9d155f01c 100644 --- a/src/containers/settings/TeamScreen.tsx +++ b/src/containers/settings/TeamScreen.tsx | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | 3 | ||
4 | import { StoresProps } from 'src/@types/ferdium-components.types'; | 4 | import { StoresProps } from '../../@types/ferdium-components.types'; |
5 | 5 | ||
6 | import TeamDashboard from '../../components/settings/team/TeamDashboard'; | 6 | import TeamDashboard from '../../components/settings/team/TeamDashboard'; |
7 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 7 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
diff --git a/src/features/workspaces/store.js b/src/features/workspaces/store.js index 4fdb3dd15..9b4c4e928 100644 --- a/src/features/workspaces/store.js +++ b/src/features/workspaces/store.js | |||
@@ -1,6 +1,6 @@ | |||
1 | import { computed, observable, action } from 'mobx'; | 1 | import { computed, observable, action } from 'mobx'; |
2 | import localStorage from 'mobx-localstorage'; | 2 | import localStorage from 'mobx-localstorage'; |
3 | import { matchRoute } from '../../helpers/routing-helpers'; | 3 | import matchRoute from '../../helpers/routing-helpers'; |
4 | import workspaceActions from './actions'; | 4 | import workspaceActions from './actions'; |
5 | import FeatureStore from '../utils/FeatureStore'; | 5 | import FeatureStore from '../utils/FeatureStore'; |
6 | import { | 6 | import { |
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'; | |||
14 | import { URL } from 'url'; | 14 | import { URL } from 'url'; |
15 | import { readJsonSync } from 'fs-extra'; | 15 | import { readJsonSync } from 'fs-extra'; |
16 | 16 | ||
17 | import { Stores } from 'src/@types/stores.types'; | 17 | import { Stores } from '../@types/stores.types'; |
18 | import { ApiInterface } from 'src/api'; | 18 | import { ApiInterface } from '../api'; |
19 | import { Actions } from 'src/actions/lib/actions'; | 19 | import { Actions } from '../actions/lib/actions'; |
20 | import TypedStore from './lib/TypedStore'; | 20 | import TypedStore from './lib/TypedStore'; |
21 | import Request from './lib/Request'; | 21 | import Request from './lib/Request'; |
22 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; | 22 | import { 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 @@ | |||
1 | import { observable, action } from 'mobx'; | 1 | import { observable, action } from 'mobx'; |
2 | import { Actions } from 'src/actions/lib/actions'; | 2 | import { Actions } from '../actions/lib/actions'; |
3 | import { ApiInterface } from 'src/api'; | 3 | import { ApiInterface } from '../api'; |
4 | import { Stores } from 'src/@types/stores.types'; | 4 | import { Stores } from '../@types/stores.types'; |
5 | import Request from './lib/Request'; | 5 | import Request from './lib/Request'; |
6 | import TypedStore from './lib/TypedStore'; | 6 | import 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 @@ | |||
1 | import { action, computed, observable } from 'mobx'; | 1 | import { action, computed, observable } from 'mobx'; |
2 | import { Actions } from 'src/actions/lib/actions'; | 2 | import { Actions } from '../actions/lib/actions'; |
3 | import { ApiInterface } from 'src/api'; | 3 | import { ApiInterface } from '../api'; |
4 | import Recipe from 'src/models/Recipe'; | 4 | import Recipe from '../models/Recipe'; |
5 | import { Stores } from 'src/@types/stores.types'; | 5 | import { Stores } from '../@types/stores.types'; |
6 | 6 | ||
7 | import RecipePreview from 'src/models/RecipePreview'; | ||
8 | import CachedRequest from './lib/CachedRequest'; | 7 | import CachedRequest from './lib/CachedRequest'; |
9 | import Request from './lib/Request'; | 8 | import Request from './lib/Request'; |
10 | import TypedStore from './lib/TypedStore'; | 9 | import TypedStore from './lib/TypedStore'; |
10 | import RecipePreview from '../models/RecipePreview'; | ||
11 | 11 | ||
12 | export default class RecipePreviewsStore extends TypedStore { | 12 | export 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'; | |||
2 | import { readJSONSync } from 'fs-extra'; | 2 | import { readJSONSync } from 'fs-extra'; |
3 | import semver from 'semver'; | 3 | import semver from 'semver'; |
4 | 4 | ||
5 | import { Stores } from 'src/@types/stores.types'; | 5 | import Recipe from '../models/Recipe'; |
6 | import { ApiInterface } from 'src/api'; | 6 | import { Stores } from '../@types/stores.types'; |
7 | import { Actions } from 'src/actions/lib/actions'; | 7 | import { ApiInterface } from '../api'; |
8 | import Recipe from 'src/models/Recipe'; | 8 | import { Actions } from '../actions/lib/actions'; |
9 | import CachedRequest from './lib/CachedRequest'; | 9 | import CachedRequest from './lib/CachedRequest'; |
10 | import Request from './lib/Request'; | 10 | import Request from './lib/Request'; |
11 | import matchRoute from '../helpers/routing-helpers'; | 11 | import 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'; | |||
2 | import { action, computed, observable } from 'mobx'; | 2 | import { action, computed, observable } from 'mobx'; |
3 | import ms from 'ms'; | 3 | import ms from 'ms'; |
4 | 4 | ||
5 | import { Actions } from 'src/actions/lib/actions'; | 5 | import { Actions } from '../actions/lib/actions'; |
6 | import { ApiInterface } from 'src/api'; | 6 | import { ApiInterface } from '../api'; |
7 | import { Stores } from 'src/@types/stores.types'; | 7 | import { Stores } from '../@types/stores.types'; |
8 | import CachedRequest from './lib/CachedRequest'; | 8 | import CachedRequest from './lib/CachedRequest'; |
9 | import { LOCAL_PORT } from '../config'; | 9 | import { 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'; | |||
5 | import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra'; | 5 | import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra'; |
6 | import { join } from 'path'; | 6 | import { join } from 'path'; |
7 | 7 | ||
8 | import { Stores } from 'src/@types/stores.types'; | 8 | import { Stores } from '../@types/stores.types'; |
9 | import { ApiInterface } from 'src/api'; | 9 | import { ApiInterface } from '../api'; |
10 | import { Actions } from 'src/actions/lib/actions'; | 10 | import { Actions } from '../actions/lib/actions'; |
11 | import Request from './lib/Request'; | 11 | import Request from './lib/Request'; |
12 | import CachedRequest from './lib/CachedRequest'; | 12 | import CachedRequest from './lib/CachedRequest'; |
13 | import matchRoute from '../helpers/routing-helpers'; | 13 | import 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'; | |||
2 | import { getCurrentWindow } from '@electron/remote'; | 2 | import { getCurrentWindow } from '@electron/remote'; |
3 | import { action, computed, observable, reaction } from 'mobx'; | 3 | import { action, computed, observable, reaction } from 'mobx'; |
4 | import localStorage from 'mobx-localstorage'; | 4 | import localStorage from 'mobx-localstorage'; |
5 | import { Stores } from 'src/@types/stores.types'; | 5 | import { Stores } from '../@types/stores.types'; |
6 | import { ApiInterface } from 'src/api'; | 6 | import { ApiInterface } from '../api'; |
7 | import { Actions } from 'src/actions/lib/actions'; | 7 | import { Actions } from '../actions/lib/actions'; |
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 e9e099ebc..c43c6d8c7 100644 --- a/src/stores/UIStore.ts +++ b/src/stores/UIStore.ts | |||
@@ -1,9 +1,9 @@ | |||
1 | import { action, observable, computed, reaction } from 'mobx'; | 1 | import { action, observable, computed, reaction } from 'mobx'; |
2 | import { nativeTheme } from '@electron/remote'; | 2 | import { nativeTheme } from '@electron/remote'; |
3 | 3 | ||
4 | import { Stores } from 'src/@types/stores.types'; | 4 | import { Stores } from '../@types/stores.types'; |
5 | import { ApiInterface } from 'src/api'; | 5 | import { ApiInterface } from '../api'; |
6 | import { Actions } from 'src/actions/lib/actions'; | 6 | import { Actions } from '../actions/lib/actions'; |
7 | import { Theme, theme, ThemeType } from '../themes'; | 7 | import { Theme, theme, ThemeType } from '../themes'; |
8 | import TypedStore from './lib/TypedStore'; | 8 | import 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'; | |||
4 | import localStorage from 'mobx-localstorage'; | 4 | import localStorage from 'mobx-localstorage'; |
5 | import { ipcRenderer } from 'electron'; | 5 | import { ipcRenderer } from 'electron'; |
6 | 6 | ||
7 | import { ApiInterface } from 'src/api'; | 7 | import { ApiInterface } from '../api'; |
8 | import { Actions } from 'src/actions/lib/actions'; | 8 | import { Actions } from '../actions/lib/actions'; |
9 | import { Stores } from 'src/@types/stores.types'; | 9 | import { Stores } from '../@types/stores.types'; |
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'; | 12 | import 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 @@ | |||
1 | import { RouterStore } from 'mobx-react-router'; | 1 | import { RouterStore } from 'mobx-react-router'; |
2 | import { ApiInterface } from 'src/api'; | 2 | import { ApiInterface } from '../api'; |
3 | import { Actions } from 'src/actions/lib/actions'; | 3 | import { Actions } from '../actions/lib/actions'; |
4 | import AppStore from './AppStore'; | 4 | import AppStore from './AppStore'; |
5 | import UserStore from './UserStore'; | 5 | import UserStore from './UserStore'; |
6 | import FeaturesStore from './FeaturesStore'; | 6 | import 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 @@ | |||
1 | import { computed, IReactionPublic, observable } from 'mobx'; | 1 | import { computed, IReactionPublic, observable } from 'mobx'; |
2 | import { Actions } from 'src/actions/lib/actions'; | 2 | import { Actions } from '../../actions/lib/actions'; |
3 | import { ApiInterface } from 'src/api'; | 3 | import { ApiInterface } from '../../api'; |
4 | import { Stores } from 'src/@types/stores.types'; | 4 | import { Stores } from '../../@types/stores.types'; |
5 | import Reaction from './Reaction'; | 5 | import Reaction from './Reaction'; |
6 | 6 | ||
7 | export default abstract class TypedStore { | 7 | export default abstract class TypedStore { |