2019-04-14 11:51:38 +02:00
|
|
|
import Index, { IndexState } from './Lists/Index'
|
2019-04-14 12:11:27 +02:00
|
|
|
import Show, { ShowState } from './Lists/Show'
|
2019-04-14 13:32:48 +02:00
|
|
|
import Edit, { EditState } from './Lists/Edit'
|
2019-04-14 11:45:16 +02:00
|
|
|
import { Module } from 'vuex'
|
|
|
|
import { RootState } from '@/store'
|
|
|
|
|
2019-06-06 16:44:50 +02:00
|
|
|
export type ListsState = {}
|
2019-04-14 11:45:16 +02:00
|
|
|
|
2019-06-06 16:44:50 +02:00
|
|
|
type ListModule = {
|
|
|
|
Index: IndexState
|
|
|
|
Show: ShowState
|
2019-04-14 13:32:48 +02:00
|
|
|
Edit: EditState
|
2019-04-14 11:51:38 +02:00
|
|
|
}
|
2019-04-14 11:45:16 +02:00
|
|
|
|
2019-06-06 16:44:50 +02:00
|
|
|
export type ListsModuleState = ListModule & ListsState
|
|
|
|
|
2019-04-14 11:45:16 +02:00
|
|
|
const state = (): ListsState => ({})
|
|
|
|
|
|
|
|
export default {
|
|
|
|
namespaced: true,
|
|
|
|
state: state,
|
|
|
|
modules: {
|
|
|
|
Index,
|
|
|
|
Show,
|
|
|
|
Edit
|
|
|
|
}
|
|
|
|
} as Module<ListsState, RootState>
|