2017-05-21 20:43:58 +00:00
|
|
|
import Vue from 'vue'
|
|
|
|
import Vuex from 'vuex'
|
|
|
|
|
|
|
|
import alert from './modules/alert'
|
2017-05-22 17:32:52 +00:00
|
|
|
import anchor from './modules/anchor'
|
2017-05-27 22:03:24 +00:00
|
|
|
import editor from './modules/editor'
|
2017-05-28 02:24:46 +00:00
|
|
|
import editorCodeblock from './modules/editor-codeblock'
|
2017-06-05 03:16:00 +00:00
|
|
|
import editorFile from './modules/editor-file'
|
2017-05-29 00:30:58 +00:00
|
|
|
import editorVideo from './modules/editor-video'
|
2017-05-23 04:27:16 +00:00
|
|
|
import modalCreatePage from './modules/modal-create-page'
|
|
|
|
import modalCreateUser from './modules/modal-create-user'
|
2017-05-30 01:58:33 +00:00
|
|
|
import modalDeleteUser from './modules/modal-delete-user'
|
2017-05-27 22:03:24 +00:00
|
|
|
import modalDiscardPage from './modules/modal-discard-page'
|
2017-05-27 02:23:05 +00:00
|
|
|
import modalMovePage from './modules/modal-move-page'
|
2017-06-12 01:11:01 +00:00
|
|
|
import modalProfile2fa from './modules/modal-profile-2fa'
|
2017-06-10 14:41:15 +00:00
|
|
|
import modalUpgradeSystem from './modules/modal-upgrade-system'
|
2017-05-26 04:12:38 +00:00
|
|
|
import pageLoader from './modules/page-loader'
|
2017-05-21 20:43:58 +00:00
|
|
|
|
|
|
|
Vue.use(Vuex)
|
|
|
|
|
|
|
|
export default new Vuex.Store({
|
|
|
|
state: {
|
|
|
|
loading: false
|
|
|
|
},
|
|
|
|
mutations: {
|
|
|
|
loadingChange: (state, loadingState) => { state.loading = loadingState }
|
|
|
|
},
|
|
|
|
actions: {
|
|
|
|
startLoading({ commit }) { commit('loadingChange', true) },
|
|
|
|
stopLoading({ commit }) { commit('loadingChange', false) }
|
|
|
|
},
|
|
|
|
getters: {},
|
|
|
|
modules: {
|
|
|
|
alert,
|
2017-05-22 17:32:52 +00:00
|
|
|
anchor,
|
2017-05-27 22:03:24 +00:00
|
|
|
editor,
|
2017-05-28 02:24:46 +00:00
|
|
|
editorCodeblock,
|
2017-06-05 03:16:00 +00:00
|
|
|
editorFile,
|
2017-05-29 00:30:58 +00:00
|
|
|
editorVideo,
|
2017-05-23 04:27:16 +00:00
|
|
|
modalCreatePage,
|
2017-05-26 04:12:38 +00:00
|
|
|
modalCreateUser,
|
2017-05-30 01:58:33 +00:00
|
|
|
modalDeleteUser,
|
2017-05-27 22:03:24 +00:00
|
|
|
modalDiscardPage,
|
2017-05-27 02:23:05 +00:00
|
|
|
modalMovePage,
|
2017-06-12 01:11:01 +00:00
|
|
|
modalProfile2fa,
|
2017-06-10 14:41:15 +00:00
|
|
|
modalUpgradeSystem,
|
2017-05-26 04:12:38 +00:00
|
|
|
pageLoader
|
2017-05-21 20:43:58 +00:00
|
|
|
}
|
|
|
|
})
|