From 4e674fdd2744f59dd439e2d4bc40dd5d0dc37320 Mon Sep 17 00:00:00 2001 From: zyronon Date: Tue, 5 Dec 2023 01:05:27 +0800 Subject: [PATCH] change audio file name --- ...速打字的机械键盘声音.mp3 => 机械键盘1.mp3} | Bin .../{键盘快速打字的声音.mp3 => 机械键盘2.mp3} | Bin .../{电话打字的声音.mp3 => 笔记本键盘.mp3} | Bin .../{老式机械.mp3 => 老式机械键盘.mp3} | Bin src/components/DictListPanel.vue | 5 +- src/components/dialog/DictDiglog.vue | 36 +- src/components/dialog/WordListDialog.vue | 3 + src/components/list/DictGroup.vue | 5 +- src/components/list/DictItem.vue | 2 +- src/components/list/DictList.vue | 3 +- src/components/toolbar/VolumeSetting.vue | 1 - src/hooks/sound.ts | 6 +- src/stores/base.ts | 526 +++++++++--------- src/stores/setting.ts | 2 +- src/utils/const.ts | 10 +- 15 files changed, 294 insertions(+), 305 deletions(-) rename public/sound/key-sounds/{快速打字的机械键盘声音.mp3 => 机械键盘1.mp3} (100%) rename public/sound/key-sounds/{键盘快速打字的声音.mp3 => 机械键盘2.mp3} (100%) rename public/sound/key-sounds/{电话打字的声音.mp3 => 笔记本键盘.mp3} (100%) rename public/sound/key-sounds/{老式机械.mp3 => 老式机械键盘.mp3} (100%) diff --git a/public/sound/key-sounds/快速打字的机械键盘声音.mp3 b/public/sound/key-sounds/机械键盘1.mp3 similarity index 100% rename from public/sound/key-sounds/快速打字的机械键盘声音.mp3 rename to public/sound/key-sounds/机械键盘1.mp3 diff --git a/public/sound/key-sounds/键盘快速打字的声音.mp3 b/public/sound/key-sounds/机械键盘2.mp3 similarity index 100% rename from public/sound/key-sounds/键盘快速打字的声音.mp3 rename to public/sound/key-sounds/机械键盘2.mp3 diff --git a/public/sound/key-sounds/电话打字的声音.mp3 b/public/sound/key-sounds/笔记本键盘.mp3 similarity index 100% rename from public/sound/key-sounds/电话打字的声音.mp3 rename to public/sound/key-sounds/笔记本键盘.mp3 diff --git a/public/sound/key-sounds/老式机械.mp3 b/public/sound/key-sounds/老式机械键盘.mp3 similarity index 100% rename from public/sound/key-sounds/老式机械.mp3 rename to public/sound/key-sounds/老式机械键盘.mp3 diff --git a/src/components/DictListPanel.vue b/src/components/DictListPanel.vue index 3de9da74..e38b86cd 100644 --- a/src/components/DictListPanel.vue +++ b/src/components/DictListPanel.vue @@ -43,7 +43,7 @@ const groupByTranslateLanguage = $computed(() => { data = groupBy(articleList, 'translateLanguage') } else if (currentLanguage === 'my') { data = { - common: store.myDictList.concat([{name: '',} as any]) + common: store.myDictList.concat([{id: '',} as any]) } } else { data = groupBy(groupByLanguage[currentLanguage], 'translateLanguage') @@ -87,6 +87,7 @@ const groupedByCategoryAndTag = $computed(() => { diff --git a/src/components/list/DictGroup.vue b/src/components/list/DictGroup.vue index 905bcdf7..35d79b97 100644 --- a/src/components/list/DictGroup.vue +++ b/src/components/list/DictGroup.vue @@ -8,7 +8,7 @@ import DictList from "@/components/list/DictList.vue"; const props = defineProps<{ category: string, groupByTag: any, - selectDictName: string + selectId: string }>() const emit = defineEmits<{ selectDict: [val: { dict: DictResource, index: number }] @@ -37,7 +37,8 @@ watch(() => props.groupByTag, () => { + :list="list" + :select-id="selectId"/> diff --git a/src/components/list/DictItem.vue b/src/components/list/DictItem.vue index 4942a50a..84ced1a6 100644 --- a/src/components/list/DictItem.vue +++ b/src/components/list/DictItem.vue @@ -20,7 +20,7 @@ const emit = defineEmits<{ class="dict-item anim" :class="active && 'active'" > -