mirror of
https://github.com/Lissy93/dashy.git
synced 2024-12-28 19:32:49 +03: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) {
|
||||
return filterUserSections(state.config.sections || []);
|
||||
},
|
||||
widgets(state) {
|
||||
return state.config.widgets || [];
|
||||
},
|
||||
theme(state) {
|
||||
return state.config.appConfig.theme;
|
||||
},
|
||||
|
@ -78,23 +78,12 @@ export default class ConfigAccumulator {
|
||||
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 */
|
||||
config() {
|
||||
return {
|
||||
appConfig: this.appConfig(),
|
||||
pageInfo: this.pageInfo(),
|
||||
sections: this.sections(),
|
||||
widgets: this.widgets(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user