mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-10-29 20:54:19 +00:00
spell + filtering + urlParams
This commit is contained in:
parent
d872002ee9
commit
da1547ab88
40 changed files with 1448 additions and 89 deletions
|
|
@ -1,23 +1,56 @@
|
|||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
|
||||
import spellFilters from './modules/spellFilters'
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
export default new Vuex.Store({
|
||||
modules: {
|
||||
spellFilters
|
||||
},
|
||||
|
||||
state: {
|
||||
drawer: true,
|
||||
rightDrawer: false,
|
||||
hasRightDrawer: false,
|
||||
inRightSidebar: null,
|
||||
},
|
||||
|
||||
getters: {
|
||||
drawer: state => state.drawer,
|
||||
rightDrawer: state => state.rightDrawer,
|
||||
hasRightDrawer: state => state.hasRightDrawer,
|
||||
inRightDrawer: state => state.inRightDrawer,
|
||||
},
|
||||
|
||||
actions: {
|
||||
updateDrawer: ({ commit }, payload) => {
|
||||
commit('setDrawer', payload)
|
||||
}
|
||||
},
|
||||
updateRightDrawer: ({ commit }, payload) => {
|
||||
commit('setRightDrawer', payload)
|
||||
},
|
||||
updateHasRightDrawer: ({ commit }, payload) => {
|
||||
commit('setHasRightDrawer', payload)
|
||||
},
|
||||
updateInRightDrawer: ({ commit }, payload) => {
|
||||
commit('setInRightDrawer', payload)
|
||||
},
|
||||
},
|
||||
|
||||
mutations: {
|
||||
setDrawer: (state, payload) => {
|
||||
state.drawer = payload
|
||||
},
|
||||
setRightDrawer: (state, payload) => {
|
||||
state.rightDrawer = payload
|
||||
},
|
||||
setHasRightDrawer: (state, payload) => {
|
||||
state.hasRightDrawer = payload
|
||||
},
|
||||
setInRightDrawer: (state, payload) => {
|
||||
state.inRightDrawer = payload
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue