Risistemazione: Signup...
This commit is contained in:
@@ -28,13 +28,7 @@
|
||||
|
||||
import Header from './components/Header.vue'
|
||||
|
||||
const store: Store<RootState> = storeBuilder.vuexStore({
|
||||
strict: DebugMode
|
||||
})
|
||||
sync(store, router)
|
||||
|
||||
@Component({
|
||||
store: store,
|
||||
components: {
|
||||
appHeader: Header,
|
||||
},
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { IGlobalState } from '@types'
|
||||
import { storeBuilder } from '@store'
|
||||
import { storeBuilder } from './Store/Store'
|
||||
|
||||
|
||||
const state: IGlobalState = {
|
||||
conta: 0,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import Api from '@api'
|
||||
import { ISignupOptions, IUserState } from 'model'
|
||||
import { ILinkReg, IResult, IIdToken } from 'model/other'
|
||||
import { storeBuilder } from '@store'
|
||||
import { storeBuilder } from './Store/Store'
|
||||
import router from '@router'
|
||||
|
||||
import { serv_constants } from '../Modules/serv_constants'
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
import Vuex, { Store } from 'vuex'
|
||||
|
||||
|
||||
import { IUserState, IGlobState } from 'model'
|
||||
import {Route} from 'vue-router'
|
||||
|
||||
Vue.use(Vuex)
|
||||
import { IGlobState } from 'model'
|
||||
import { Route } from 'vue-router'
|
||||
import { getStoreBuilder } from 'vuex-typex'
|
||||
|
||||
|
||||
export interface RootState {
|
||||
@@ -13,11 +11,26 @@ export interface RootState {
|
||||
route: Route
|
||||
}
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
export const DebugMode = true
|
||||
|
||||
export * from './Modules'
|
||||
export {default as EventBus} from './EventBus'
|
||||
export {default as Api} from './Api'
|
||||
|
||||
export default new Vuex.Store<RootState>({
|
||||
})
|
||||
export { default as EventBus } from './EventBus'
|
||||
export { default as Api } from './Api'
|
||||
|
||||
const store: Store<RootState> = getStoreBuilder<RootState>().vuexStore()
|
||||
export default store
|
||||
|
||||
// export function createStore() {
|
||||
// const store: Store<RootState> = storeBuilder.vuexStore({
|
||||
// strict: DebugMode
|
||||
// })
|
||||
//
|
||||
// return store
|
||||
//
|
||||
// }
|
||||
// export default new Vuex.Store<RootState>({
|
||||
|
||||
// })
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { default as Axios, AxiosResponse } from 'axios'
|
||||
import { IPayload } from '@/model'
|
||||
import { IPayload } from 'model'
|
||||
import { GlobalConfig, PayloadMessageTypes } from '../common'
|
||||
|
||||
// const SITE_URL = GlobalConfig.uri.site
|
||||
|
||||
Reference in New Issue
Block a user