12345678910111213141516171819202122232425262728293031323334353637383940 |
- // initial state
- const state = {
- config: {},
- settings: {
- accessToken: '',
- limit: 20,
- expanded: [],
- expandedSeries: [],
- showCounts: true,
- showRate: true,
- showGenres: true,
- 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
- };
|