perf(frontend): soundConfigStore を defaultStore に統合しAPIリクエストを削減

This commit is contained in:
syuilo
2023-11-04 10:09:21 +09:00
parent ef8a65e6ff
commit 67414e0181
4 changed files with 38 additions and 54 deletions

View File

@@ -382,6 +382,31 @@ export const defaultStore = markRaw(new Storage('base', {
where: 'device',
default: true,
},
sound_masterVolume: {
where: 'device',
default: 0.3,
},
sound_note: {
where: 'device',
default: { type: 'syuilo/n-aec', volume: 1 },
},
sound_noteMy: {
where: 'device',
default: { type: 'syuilo/n-cea-4va', volume: 1 },
},
sound_notification: {
where: 'device',
default: { type: 'syuilo/n-ea', volume: 1 },
},
sound_antenna: {
where: 'device',
default: { type: 'syuilo/triple', volume: 1 },
},
sound_channel: {
where: 'device',
default: { type: 'syuilo/square-pico', volume: 1 },
},
}));
// TODO: 他のタブと永続化されたstateを同期