Client - minor refacto w/ import order rules
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { createStore } from 'vuex'
|
||||
|
||||
import { IRootState } from '@/store/modules/root/interfaces'
|
||||
import root from '@/store/modules/root'
|
||||
import { IRootState } from '@/store/modules/root/interfaces'
|
||||
|
||||
const store = createStore<IRootState>(root)
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
import { ActionContext, ActionTree } from 'vuex'
|
||||
|
||||
import authApi from '@/api/authApi'
|
||||
import { ROOT_STORE } from '@/store/constants'
|
||||
import { IRootActions, IRootState } from '@/store/modules/root/interfaces'
|
||||
import authApi from '@/api/authApi'
|
||||
import { handleError } from '@/utils'
|
||||
|
||||
export const actions: ActionTree<IRootState, IRootState> & IRootActions = {
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { ROOT_STORE } from '@/store/constants'
|
||||
import { ActionContext } from 'vuex'
|
||||
|
||||
import { ROOT_STORE } from '@/store/constants'
|
||||
|
||||
export interface IAppStatistics {
|
||||
sports: number
|
||||
uploads_dir_size: number
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IRootState } from '@/store/modules/root/interfaces'
|
||||
import { IApplication } from '@/store/modules/root/interfaces'
|
||||
import { IRootState, IApplication } from '@/store/modules/root/interfaces'
|
||||
|
||||
export const state: IRootState = {
|
||||
root: true,
|
||||
|
@ -1,5 +1,8 @@
|
||||
import { ActionContext, ActionTree } from 'vuex'
|
||||
|
||||
import authApi from '@/api/authApi'
|
||||
import api from '@/api/defaultApi'
|
||||
import router from '@/router'
|
||||
import { ROOT_STORE, USER_STORE } from '@/store/constants'
|
||||
import { IRootState } from '@/store/modules/root/interfaces'
|
||||
import {
|
||||
@ -8,9 +11,6 @@ import {
|
||||
IUserState,
|
||||
} from '@/store/modules/user/interfaces'
|
||||
import { handleError } from '@/utils'
|
||||
import authApi from '@/api/authApi'
|
||||
import api from '@/api/defaultApi'
|
||||
import router from '@/router'
|
||||
|
||||
export const actions: ActionTree<IUserState, IRootState> & IUserActions = {
|
||||
[USER_STORE.ACTIONS.CHECK_AUTH_USER](
|
||||
|
@ -4,8 +4,8 @@ import { IRootState } from '@/store/modules/root/interfaces'
|
||||
import { actions } from '@/store/modules/user/actions'
|
||||
import { getters } from '@/store/modules/user/getters'
|
||||
import { IUserState } from '@/store/modules/user/interfaces'
|
||||
import { userState } from '@/store/modules/user/state.ts'
|
||||
import { mutations } from '@/store/modules/user/mutations'
|
||||
import { userState } from '@/store/modules/user/state.ts'
|
||||
|
||||
const user: Module<IUserState, IRootState> = {
|
||||
state: userState,
|
||||
|
Reference in New Issue
Block a user