Risistemazione: Signup...

This commit is contained in:
paolo
2018-11-17 21:07:07 +01:00
parent 794e7088e7
commit 48c8c742b0
5 changed files with 27 additions and 19 deletions

View File

@@ -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,
},

View File

@@ -1,5 +1,6 @@
import { IGlobalState } from '@types'
import { storeBuilder } from '@store'
import { storeBuilder } from './Store/Store'
const state: IGlobalState = {
conta: 0,

View File

@@ -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'

View File

@@ -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>({
// })

View File

@@ -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