From 8d778a8b44e19fd39d70918b676474af5f1450bc Mon Sep 17 00:00:00 2001 From: Zyronon Date: Tue, 30 Dec 2025 01:44:54 +0800 Subject: [PATCH] feat: add audio-setting icon --- components.d.ts | 5 +- package.json | 1 + pnpm-lock.yaml | 10 + src/assets/css/style.scss | 2 +- src/components/StageProgress.vue | 4 +- src/components/base/select/Select.vue | 41 +- src/components/dialog/MiniDialog.vue | 28 +- src/hooks/sound.ts | 6 +- src/pages/setting/Log.vue | 392 ++++++------------ src/pages/word/PracticeWords.vue | 2 +- src/pages/word/components/Footer.vue | 5 + .../word/{ => components}/Statistics.vue | 0 .../components/VolumeSettingMiniDialog.vue | 128 ++++++ 13 files changed, 296 insertions(+), 328 deletions(-) rename src/pages/word/{ => components}/Statistics.vue (100%) create mode 100644 src/pages/word/components/VolumeSettingMiniDialog.vue diff --git a/components.d.ts b/components.d.ts index 6362f2e6..edaeed54 100644 --- a/components.d.ts +++ b/components.d.ts @@ -11,7 +11,6 @@ declare module 'vue' { About: typeof import('./src/components/About.vue')['default'] ArticleList: typeof import('./src/components/list/ArticleList.vue')['default'] ArticleSetting: typeof import('./src/components/setting/ArticleSetting.vue')['default'] - ArticleSettting: typeof import('./src/components/setting/ArticleSettting.vue')['default'] Audio: typeof import('./src/components/base/Audio.vue')['default'] BackIcon: typeof import('./src/components/BackIcon.vue')['default'] BaseButton: typeof import('./src/components/BaseButton.vue')['default'] @@ -42,6 +41,7 @@ declare module 'vue' { IconBxVolumeFull: typeof import('~icons/bx/volume-full')['default'] IconBxVolumeLow: typeof import('~icons/bx/volume-low')['default'] IconBxVolumeMute: typeof import('~icons/bx/volume-mute')['default'] + IconClarityVolumeUpLine: typeof import('~icons/clarity/volume-up-line')['default'] IconEosIconsLoading: typeof import('~icons/eos-icons/loading')['default'] IconFluentAdd16Regular: typeof import('~icons/fluent/add16-regular')['default'] IconFluentAdd20Regular: typeof import('~icons/fluent/add20-regular')['default'] @@ -55,7 +55,6 @@ declare module 'vue' { IconFluentArrowRepeatAll20Regular: typeof import('~icons/fluent/arrow-repeat-all20-regular')['default'] IconFluentArrowRight16Regular: typeof import('~icons/fluent/arrow-right16-regular')['default'] IconFluentArrowShuffle16Regular: typeof import('~icons/fluent/arrow-shuffle16-regular')['default'] - IconFluentArrowShuffle20Filled: typeof import('~icons/fluent/arrow-shuffle20-filled')['default'] IconFluentArrowSort20Regular: typeof import('~icons/fluent/arrow-sort20-regular')['default'] IconFluentArrowSwap20Regular: typeof import('~icons/fluent/arrow-swap20-regular')['default'] IconFluentBook20Regular: typeof import('~icons/fluent/book20-regular')['default'] @@ -121,6 +120,7 @@ declare module 'vue' { IconFluentWeatherMoon16Regular: typeof import('~icons/fluent/weather-moon16-regular')['default'] IconFluentWeatherSunny16Regular: typeof import('~icons/fluent/weather-sunny16-regular')['default'] IconIconParkOutlineAddMusic: typeof import('~icons/icon-park-outline/add-music')['default'] + IconIconParkOutlineVolumeNotice: typeof import('~icons/icon-park-outline/volume-notice')['default'] IconIxWechatLogo: typeof import('~icons/ix/wechat-logo')['default'] IconMaterialSymbolsMail: typeof import('~icons/material-symbols/mail')['default'] IconMdiSparkles: typeof import('~icons/mdi/sparkles')['default'] @@ -159,6 +159,7 @@ declare module 'vue' { SlideHorizontal: typeof import('./src/components/slide/SlideHorizontal.vue')['default'] SlideItem: typeof import('./src/components/slide/SlideItem.vue')['default'] Slider: typeof import('./src/components/base/Slider.vue')['default'] + StageProgress: typeof import('./src/components/StageProgress.vue')['default'] Switch: typeof import('./src/components/base/Switch.vue')['default'] Textarea: typeof import('./src/components/base/Textarea.vue')['default'] Toast: typeof import('./src/components/base/toast/Toast.vue')['default'] diff --git a/package.json b/package.json index ac71b78e..3b4e1a34 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "devDependencies": { "@alicloud/pop-core": "^1.8.0", "@iconify-json/bx": "^1.2.2", + "@iconify-json/clarity": "^1.2.4", "@iconify-json/dinkie-icons": "^1.2.0", "@iconify-json/eos-icons": "^1.2.4", "@iconify-json/fluent": "^1.2.28", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5910fe57..81d5d3fd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -66,6 +66,9 @@ importers: '@iconify-json/bx': specifier: ^1.2.2 version: 1.2.2 + '@iconify-json/clarity': + specifier: ^1.2.4 + version: 1.2.4 '@iconify-json/dinkie-icons': specifier: ^1.2.0 version: 1.2.0 @@ -535,6 +538,9 @@ packages: '@iconify-json/bx@1.2.2': resolution: {integrity: sha512-hZVx6LMEkYckScdRdUuQWcmv8Lm2au6Cnf799TLoR6YgiAfFvaJ4M5ElwcnExvCu8ntsS7jW89r0W5LwBAfZXQ==} + '@iconify-json/clarity@1.2.4': + resolution: {integrity: sha512-9hQ405dgvK2b2BWQdAIb/+ayH02k5VE4lKw2456wpjtq+57shHXE4Kk8bFa7RwchQHFuTtJBItVhlU4kjejxDw==} + '@iconify-json/dinkie-icons@1.2.0': resolution: {integrity: sha512-/RSAjK6twyEOKfW9FddZDP+EPMeSIocb4Y4Zq2Y2IbqUxYmNHqXtxidVioBzpv+a3JeiQ61ARlRKtCQ0BqSGpA==} @@ -4217,6 +4223,10 @@ snapshots: dependencies: '@iconify/types': 2.0.0 + '@iconify-json/clarity@1.2.4': + dependencies: + '@iconify/types': 2.0.0 + '@iconify-json/dinkie-icons@1.2.0': dependencies: '@iconify/types': 2.0.0 diff --git a/src/assets/css/style.scss b/src/assets/css/style.scss index ab51642b..f0139b69 100644 --- a/src/assets/css/style.scss +++ b/src/assets/css/style.scss @@ -109,7 +109,7 @@ html.dark { --color-label-bg: rgb(10, 10, 10); - --color-card-bg: rgb(30, 31, 34); + --color-card-bg: var(--color-second); --bg-card-primary: rgb(30, 31, 34); --bg-card-secend: rgb(43, 45, 48); diff --git a/src/components/StageProgress.vue b/src/components/StageProgress.vue index 16a15bca..a90dcee8 100644 --- a/src/components/StageProgress.vue +++ b/src/components/StageProgress.vue @@ -1,8 +1,8 @@