51 lines
941 B
JavaScript
51 lines
941 B
JavaScript
// initial state
|
|
const state = {
|
|
config: {},
|
|
settings: {
|
|
accessToken: '',
|
|
extendedParams: false,
|
|
expandedAuthor: [],
|
|
expandedSeries: [],
|
|
|
|
defaultsSet: false,
|
|
|
|
//uiDefaults
|
|
limit: 20,
|
|
downloadAsZip: false,
|
|
showCounts: true,
|
|
showRates: true,
|
|
showInfo: true,
|
|
showGenres: true,
|
|
showDates: false,
|
|
showDeleted: false,
|
|
abCacheEnabled: true,
|
|
langDefault: '',
|
|
showJson: false,
|
|
showNewReleaseAvailable: true,
|
|
},
|
|
};
|
|
|
|
// getters
|
|
const getters = {};
|
|
|
|
// actions
|
|
const actions = {};
|
|
|
|
// mutations
|
|
const mutations = {
|
|
setConfig(state, value) {
|
|
state.config = value;
|
|
},
|
|
setSettings(state, value) {
|
|
state.settings = Object.assign({}, state.settings, value);
|
|
},
|
|
};
|
|
|
|
export default {
|
|
namespaced: true,
|
|
state,
|
|
getters,
|
|
actions,
|
|
mutations
|
|
};
|