enhance(frontend): deckをpreferences管理に

This commit is contained in:
syuilo
2025-03-11 11:14:55 +09:00
parent 1f2801af02
commit 1f345eb839
7 changed files with 231 additions and 215 deletions

View File

@@ -10,7 +10,6 @@ import darkTheme from '@@/themes/d-green-lime.json5';
import { hemisphere } from '@@/js/intl-const.js';
import type { DeviceKind } from '@/utility/device-kind.js';
import type { Plugin } from '@/plugin.js';
import type { Column } from '@/deck.js';
import { miLocalStorage } from '@/local-storage.js';
import { Storage } from '@/pizzax.js';
import { DEFAULT_DEVICE_KIND } from '@/utility/device-kind.js';
@@ -117,18 +116,6 @@ export const store = markRaw(new Storage('base', {
where: 'deviceAccount',
default: {} as Record<string, string>, // plugin id, token
},
'deck.profile': {
where: 'deviceAccount',
default: 'default',
},
'deck.columns': {
where: 'deviceAccount',
default: [] as Column[],
},
'deck.layout': {
where: 'deviceAccount',
default: [] as Column['id'][][],
},
enablePreferencesAutoCloudBackup: {
where: 'device',