diff --git a/public/sound/boom.mp3 b/public/sound/boom.mp3 deleted file mode 100644 index 05873abf..00000000 Binary files a/public/sound/boom.mp3 and /dev/null differ diff --git a/public/sound/shotfire.mp3 b/public/sound/shotfire.mp3 deleted file mode 100644 index e296d071..00000000 Binary files a/public/sound/shotfire.mp3 and /dev/null differ diff --git a/src/assets/css/style.scss b/src/assets/css/style.scss index 995d0cce..f8011875 100644 --- a/src/assets/css/style.scss +++ b/src/assets/css/style.scss @@ -420,7 +420,7 @@ a { .book { @extend .anim; - @apply p-4 rounded-md relative cursor-pointer bg-third hover:bg-card-active flex flex-col justify-between shrink-0; + @apply p-3 rounded-md relative cursor-pointer bg-third hover:bg-card-active flex flex-col justify-between shrink-0; $w: 6rem; width: $w; height: calc($w * 1.4); diff --git a/src/assets/img/a.png b/src/assets/img/a.png deleted file mode 100644 index fc8dab04..00000000 Binary files a/src/assets/img/a.png and /dev/null differ diff --git a/src/assets/img/b.png b/src/assets/img/b.png deleted file mode 100644 index d2e1d00d..00000000 Binary files a/src/assets/img/b.png and /dev/null differ diff --git a/src/assets/img/book2.png b/src/assets/img/book2.png deleted file mode 100644 index d464a202..00000000 Binary files a/src/assets/img/book2.png and /dev/null differ diff --git a/src/assets/img/books.png b/src/assets/img/books.png deleted file mode 100644 index c35ca03f..00000000 Binary files a/src/assets/img/books.png and /dev/null differ diff --git a/src/assets/img/city.png b/src/assets/img/city.png deleted file mode 100644 index 79419135..00000000 Binary files a/src/assets/img/city.png and /dev/null differ diff --git a/src/assets/img/collect.png b/src/assets/img/collect.png deleted file mode 100644 index 11091703..00000000 Binary files a/src/assets/img/collect.png and /dev/null differ diff --git a/src/assets/img/complete.png b/src/assets/img/complete.png deleted file mode 100644 index 26eb56d2..00000000 Binary files a/src/assets/img/complete.png and /dev/null differ diff --git a/src/assets/img/flags/book.png b/src/assets/img/flags/book.png deleted file mode 100644 index f1bd4a5c..00000000 Binary files a/src/assets/img/flags/book.png and /dev/null differ diff --git a/src/assets/img/flags/code.png b/src/assets/img/flags/code.png deleted file mode 100644 index ceeeac95..00000000 Binary files a/src/assets/img/flags/code.png and /dev/null differ diff --git a/src/assets/img/flags/de.png b/src/assets/img/flags/de.png deleted file mode 100644 index c2244075..00000000 Binary files a/src/assets/img/flags/de.png and /dev/null differ diff --git a/src/assets/img/flags/en.png b/src/assets/img/flags/en.png deleted file mode 100644 index d47c9737..00000000 Binary files a/src/assets/img/flags/en.png and /dev/null differ diff --git a/src/assets/img/flags/ja.png b/src/assets/img/flags/ja.png deleted file mode 100644 index bf31abc4..00000000 Binary files a/src/assets/img/flags/ja.png and /dev/null differ diff --git a/src/assets/img/flags/leetcode.png b/src/assets/img/flags/leetcode.png deleted file mode 100644 index 60985225..00000000 Binary files a/src/assets/img/flags/leetcode.png and /dev/null differ diff --git a/src/assets/img/flags/my.png b/src/assets/img/flags/my.png deleted file mode 100644 index 0da9f1d3..00000000 Binary files a/src/assets/img/flags/my.png and /dev/null differ diff --git a/src/assets/sound/beep.wav b/src/assets/sound/beep.wav deleted file mode 100644 index 26df295f..00000000 Binary files a/src/assets/sound/beep.wav and /dev/null differ diff --git a/src/assets/sound/boom.mp3 b/src/assets/sound/boom.mp3 deleted file mode 100644 index 05873abf..00000000 Binary files a/src/assets/sound/boom.mp3 and /dev/null differ diff --git a/src/assets/sound/correct.wav b/src/assets/sound/correct.wav deleted file mode 100644 index 06806051..00000000 Binary files a/src/assets/sound/correct.wav and /dev/null differ diff --git a/src/assets/sound/key-sounds/jixie/机械0.mp3 b/src/assets/sound/key-sounds/jixie/机械0.mp3 deleted file mode 100644 index 760f75bf..00000000 Binary files a/src/assets/sound/key-sounds/jixie/机械0.mp3 and /dev/null differ diff --git a/src/assets/sound/key-sounds/jixie/机械1.mp3 b/src/assets/sound/key-sounds/jixie/机械1.mp3 deleted file mode 100644 index 396e9624..00000000 Binary files a/src/assets/sound/key-sounds/jixie/机械1.mp3 and /dev/null differ diff --git a/src/assets/sound/key-sounds/jixie/机械2.mp3 b/src/assets/sound/key-sounds/jixie/机械2.mp3 deleted file mode 100644 index c4c3e30a..00000000 Binary files a/src/assets/sound/key-sounds/jixie/机械2.mp3 and /dev/null differ diff --git a/src/assets/sound/key-sounds/jixie/机械3.mp3 b/src/assets/sound/key-sounds/jixie/机械3.mp3 deleted file mode 100644 index 4965ac8b..00000000 Binary files a/src/assets/sound/key-sounds/jixie/机械3.mp3 and /dev/null differ diff --git a/src/assets/sound/key-sounds/快速打字的机械键盘声音.mp3 b/src/assets/sound/key-sounds/快速打字的机械键盘声音.mp3 deleted file mode 100644 index 7da87cb4..00000000 Binary files a/src/assets/sound/key-sounds/快速打字的机械键盘声音.mp3 and /dev/null differ diff --git a/src/assets/sound/key-sounds/电话打字的声音.mp3 b/src/assets/sound/key-sounds/电话打字的声音.mp3 deleted file mode 100644 index c96274cc..00000000 Binary files a/src/assets/sound/key-sounds/电话打字的声音.mp3 and /dev/null differ diff --git a/src/assets/sound/key-sounds/老式机械.mp3 b/src/assets/sound/key-sounds/老式机械.mp3 deleted file mode 100644 index 3c8e890e..00000000 Binary files a/src/assets/sound/key-sounds/老式机械.mp3 and /dev/null differ diff --git a/src/assets/sound/key-sounds/键盘快速打字的声音.mp3 b/src/assets/sound/key-sounds/键盘快速打字的声音.mp3 deleted file mode 100644 index a55e7cd3..00000000 Binary files a/src/assets/sound/key-sounds/键盘快速打字的声音.mp3 and /dev/null differ diff --git a/src/assets/sound/shotfire.mp3 b/src/assets/sound/shotfire.mp3 deleted file mode 100644 index e296d071..00000000 Binary files a/src/assets/sound/shotfire.mp3 and /dev/null differ diff --git a/src/assets/vue.svg b/src/assets/vue.svg deleted file mode 100644 index 770e9d33..00000000 --- a/src/assets/vue.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/hooks/sound.ts b/src/hooks/sound.ts index c349dbe4..f000e652 100644 --- a/src/hooks/sound.ts +++ b/src/hooks/sound.ts @@ -1,11 +1,7 @@ import {onMounted, watch, watchEffect} from "vue" import {useSettingStore} from "@/stores/setting.ts"; import {PronunciationApi} from "@/types/types.ts"; -import beep from "@/assets/sound/beep.wav"; -import correct from "@/assets/sound/correct.wav"; - import {SoundFileOptions} from "@/utils/const.ts"; -import {useBaseStore} from "@/stores/base.ts"; export function useSound(audioSrcList?: string[], audioFileLength?: number) { let audioList: HTMLAudioElement[] = $ref([]) @@ -63,7 +59,7 @@ export function usePlayKeyboardAudio() { export function usePlayBeep() { const settingStore = useSettingStore() - const {play} = useSound([beep], 1) + const {play} = useSound([`/sound/beep.wav`], 1) function playAudio() { if (settingStore.effectSound) { @@ -76,7 +72,7 @@ export function usePlayBeep() { export function usePlayCorrect() { const settingStore = useSettingStore() - const {play} = useSound([correct], 1) + const {play} = useSound([`/sound/correct.wav`], 1) function playAudio() { if (settingStore.effectSound) { @@ -135,13 +131,13 @@ export function usePlayAudio(url: string) { export function getAudioFileUrl(name: string) { if (name === '机械键盘') { return [ - `./sound/key-sounds/jixie/机械0.mp3`, - `./sound/key-sounds/jixie/机械1.mp3`, - `./sound/key-sounds/jixie/机械2.mp3`, - `./sound/key-sounds/jixie/机械3.mp3`, + `/sound/key-sounds/jixie/机械0.mp3`, + `/sound/key-sounds/jixie/机械1.mp3`, + `/sound/key-sounds/jixie/机械2.mp3`, + `/sound/key-sounds/jixie/机械3.mp3`, ] } else { - return [`./sound/key-sounds/${name}.mp3`] + return [`/sound/key-sounds/${name}.mp3`] } } diff --git a/src/pages/pc/components/Book.vue b/src/pages/pc/components/Book.vue index baae3ffe..93b53516 100644 --- a/src/pages/pc/components/Book.vue +++ b/src/pages/pc/components/Book.vue @@ -30,13 +30,13 @@ const studyProgress = $computed(() => {