This commit is contained in:
syuilo
2018-06-06 02:48:26 +09:00
parent f88fb9bc1d
commit f918081168
3 changed files with 67 additions and 48 deletions

View File

@ -7,6 +7,20 @@ import { hostname } from './config';
const defaultSettings = {
home: [],
mobileHome: [],
deck: {
columns: [/*{
type: 'widgets',
widgets: []
}, */{
type: 'home'
}, {
type: 'notifications'
}, {
type: 'local'
}, {
type: 'global'
}]
},
fetchOnScroll: true,
showMaps: true,
showPostFormOnTopOfTl: false,
@ -156,6 +170,7 @@ export default (os: MiOS) => new Vuex.Store({
actions: {
merge(ctx, settings) {
if (settings == null) return;
Object.entries(settings).forEach(([key, value]) => {
ctx.commit('set', { key, value });
});