mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-23 13:45:33 +02:00
🔥 Removes previous widget data structure
This commit is contained in:
parent
c17b93c1d4
commit
c4134e033b
@ -54,9 +54,6 @@ const store = new Vuex.Store({
|
|||||||
sections(state) {
|
sections(state) {
|
||||||
return filterUserSections(state.config.sections || []);
|
return filterUserSections(state.config.sections || []);
|
||||||
},
|
},
|
||||||
widgets(state) {
|
|
||||||
return state.config.widgets || [];
|
|
||||||
},
|
|
||||||
theme(state) {
|
theme(state) {
|
||||||
return state.config.appConfig.theme;
|
return state.config.appConfig.theme;
|
||||||
},
|
},
|
||||||
|
@ -78,23 +78,12 @@ export default class ConfigAccumulator {
|
|||||||
return sections;
|
return sections;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Widgets */
|
|
||||||
widgets() {
|
|
||||||
const localWidgets = localStorage[localStorageKeys.CONF_WIDGETS];
|
|
||||||
if (localWidgets) {
|
|
||||||
const json = JSON.parse(localWidgets);
|
|
||||||
if (json.length >= 1) return json;
|
|
||||||
}
|
|
||||||
return this.conf.widgets || [];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Complete config */
|
/* Complete config */
|
||||||
config() {
|
config() {
|
||||||
return {
|
return {
|
||||||
appConfig: this.appConfig(),
|
appConfig: this.appConfig(),
|
||||||
pageInfo: this.pageInfo(),
|
pageInfo: this.pageInfo(),
|
||||||
sections: this.sections(),
|
sections: this.sections(),
|
||||||
widgets: this.widgets(),
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user