From c323ea1fd9f2e20e876e75738085fd67dca82c71 Mon Sep 17 00:00:00 2001 From: AdingApkgg Date: Tue, 20 Jan 2026 10:08:08 +0800 Subject: [PATCH] feat: implement sound settings management in App and SettingsModal components - Added sound settings functionality, allowing users to enable or disable sound effects. - Integrated sound initialization and synchronization with user settings in App.vue. - Updated SettingsModal.vue to include a dedicated sound settings card with toggle functionality. - Enhanced sound management in useSound.ts to support initialization and synchronization with settings store. --- src/App.vue | 14 +- src/components/SettingsModal.vue | 222 +++++++++++++++---------------- src/composables/useSound.ts | 12 +- src/data/api.json | 31 +++++ src/stores/settings.ts | 2 + 5 files changed, 163 insertions(+), 118 deletions(-) create mode 100644 src/data/api.json diff --git a/src/App.vue b/src/App.vue index 4f16144..50028e0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -62,7 +62,7 @@