Рефакторинг, store-модуль reader, начало верстки LoaderPage
This commit is contained in:
29
client/store/modules/reader.js
Normal file
29
client/store/modules/reader.js
Normal file
@@ -0,0 +1,29 @@
|
||||
// initial state
|
||||
const state = {
|
||||
loaderActive: false,
|
||||
fullScreenActive: false,
|
||||
};
|
||||
|
||||
// getters
|
||||
const getters = {};
|
||||
|
||||
// actions
|
||||
const actions = {};
|
||||
|
||||
// mutations
|
||||
const mutations = {
|
||||
setLoaderActive(state, value) {
|
||||
state.loaderActive = value;
|
||||
},
|
||||
setFullScreenActive(state, value) {
|
||||
state.fullScreenActive = value;
|
||||
},
|
||||
};
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state,
|
||||
getters,
|
||||
actions,
|
||||
mutations
|
||||
};
|
||||
Reference in New Issue
Block a user