1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- // 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
- };
|