// initial state const state = { config: {}, settings: { accessToken: '', extendedParams: false, limit: 20, expandedAuthor: [], expandedSeries: [], downloadAsZip: false, showCounts: true, showRates: true, showInfo: true, showGenres: true, showDates: false, showDeleted: false, abCacheEnabled: true, langDefault: '', }, }; // 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 };