Client - upgrade Vue to 3.3 and move to Vite

This commit is contained in:
Sam
2023-11-11 15:23:04 +01:00
parent 91455251e1
commit 1befae927d
309 changed files with 6291 additions and 12719 deletions

View File

@ -1,11 +1,11 @@
import { ActionContext, ActionTree } from 'vuex'
import type { ActionContext, ActionTree } from 'vuex'
import authApi from '@/api/authApi'
import createI18n from '@/i18n'
import router from '@/router'
import { ROOT_STORE } from '@/store/constants'
import { IRootActions, IRootState } from '@/store/modules/root/types'
import { TAppConfigForm } from '@/types/application'
import type { IRootActions, IRootState } from '@/store/modules/root/types'
import type { TAppConfigForm } from '@/types/application'
import { handleError } from '@/utils'
const { locale } = createI18n.global

View File

@ -1,7 +1,7 @@
import { GetterTree } from 'vuex'
import type { GetterTree } from 'vuex'
import { ROOT_STORE } from '@/store/constants'
import { IRootGetters, IRootState } from '@/store/modules/root/types'
import type { IRootGetters, IRootState } from '@/store/modules/root/types'
export const getters: GetterTree<IRootState, IRootState> & IRootGetters = {
[ROOT_STORE.GETTERS.APP_CONFIG]: (state: IRootState) => {

View File

@ -1,4 +1,4 @@
import { Module, ModuleTree } from 'vuex'
import type { Module, ModuleTree } from 'vuex'
import authUserModule from '@/store/modules/authUser'
import oAuthModule from '@/store/modules/oauth2'
@ -6,7 +6,7 @@ import { actions } from '@/store/modules/root/actions'
import { getters } from '@/store/modules/root/getters'
import { mutations } from '@/store/modules/root/mutations'
import { state } from '@/store/modules/root/state'
import { IRootState } from '@/store/modules/root/types'
import type { IRootState } from '@/store/modules/root/types'
import sportsModule from '@/store/modules/sports'
import statsModule from '@/store/modules/statistics'
import usersModule from '@/store/modules/users'

View File

@ -1,8 +1,8 @@
import { MutationTree } from 'vuex'
import type { MutationTree } from 'vuex'
import { ROOT_STORE } from '@/store/constants'
import { IRootState, TRootMutations } from '@/store/modules/root/types'
import { TAppConfig, IAppStatistics } from '@/types/application'
import type { IRootState, TRootMutations } from '@/store/modules/root/types'
import type { TAppConfig, IAppStatistics } from '@/types/application'
import { localeFromLanguage } from '@/utils/locales'
export const mutations: MutationTree<IRootState> & TRootMutations = {

View File

@ -1,7 +1,7 @@
import { enUS } from 'date-fns/locale'
import { IRootState } from '@/store/modules/root/types'
import { IApplication } from '@/types/application'
import type { IRootState } from '@/store/modules/root/types'
import type { IApplication } from '@/types/application'
export const state: IRootState = {
root: true,

View File

@ -1,5 +1,5 @@
import { Locale } from 'date-fns'
import {
import type { Locale } from 'date-fns'
import type {
ActionContext,
CommitOptions,
DispatchOptions,
@ -7,7 +7,7 @@ import {
} from 'vuex'
import { ROOT_STORE } from '@/store/constants'
import {
import type {
TAppConfig,
IApplication,
IAppStatistics,
@ -100,7 +100,7 @@ export type TRootStoreModule<S = IRootState> = Omit<
} & {
commit<
K extends keyof TRootMutations,
P extends Parameters<TRootMutations[K]>[1]
P extends Parameters<TRootMutations[K]>[1],
>(
key: K,
payload?: P,