import { createStore } from 'vuex'
import UploadFilesModule from './uploadFile/uploadFile'
import DesignDetailModule from './Detail/designDetail'
import DesignDetail from './Detail/designDetail'
import HomeStoreModule  from './homeStore/homeStore'
import UserHabit  from './userHabit/userHabit'
import Workspace  from './workspace/workspace'
import Guide  from './guide/guide'
import adminPage  from './adminPage/adminPage'
export interface RootState{

}

export default createStore<RootState>({
  state: {
	loading: false,
	dataLoading: true,
	view_loading: false,
  },
  getters: {
  },
  mutations: {
	set_loading(state, v){
		state.loading = v;
	},
	set_view_loading(state, v){
		state.view_loading = v;
	},
	set_dataLoading(state, v){
		state.dataLoading = v;
	},
  },
  actions: {
  },
  modules: {
    UploadFilesModule,
    DesignDetailModule,
    DesignDetail,
    HomeStoreModule,
	UserHabit,
	Workspace,
	Guide,
	adminPage,
  }
})
