From 57118d3bfe0c5fe0925b3da065d42bce440a69ea Mon Sep 17 00:00:00 2001 From: cocos02 Date: Sat, 13 Jun 2026 20:19:10 +0800 Subject: [PATCH] simplify: embed bandwidth text directly into quality i18n labels, remove speed field --- src/components/PlaybackBar.vue | 16 +++++----------- src/locales/en.json | 9 +++------ src/locales/zh.json | 9 +++------ 3 files changed, 11 insertions(+), 23 deletions(-) diff --git a/src/components/PlaybackBar.vue b/src/components/PlaybackBar.vue index f496957..a38d49a 100644 --- a/src/components/PlaybackBar.vue +++ b/src/components/PlaybackBar.vue @@ -24,10 +24,10 @@ const showSpeedMenu = ref(false) const speedOptions = [1, 2, 4] const showQualityMenu = ref(false) const qualityOptions = computed(() => [ - { value: '', label: t('ui.qualityAuto'), speed: '' }, - { value: '超清 (1080P)', label: t('ui.quality1080p'), speed: t('ui.qualitySpeed1080p') }, - { value: '高清 (720P)', label: t('ui.quality720p'), speed: t('ui.qualitySpeed720p') }, - { value: '标清 (480P)', label: t('ui.quality480p'), speed: t('ui.qualitySpeed480p') }, + { value: '', label: t('ui.qualityAuto') }, + { value: '超清 (1080P)', label: t('ui.quality1080p') }, + { value: '高清 (720P)', label: t('ui.quality720p') }, + { value: '标清 (480P)', label: t('ui.quality480p') }, ]) function currentQualityLabel() { @@ -102,7 +102,7 @@ onUnmounted(() => document.removeEventListener('click', onDocClick)) class="speed-option" :class="{ active: store.preferredQuality === q.value }" @click.stop="selectQuality(q.value)" - >{{ q.label }}{{ q.speed }} + >{{ q.label }} @@ -199,12 +199,6 @@ onUnmounted(() => document.removeEventListener('click', onDocClick)) color: #c9a84c; } -.quality-speed { - margin-left: 8px; - font-size: 10px; - color: #666; -} - .speed-drop-enter-active, .speed-drop-leave-active { transition: all 0.15s ease; diff --git a/src/locales/en.json b/src/locales/en.json index 895ac3d..eeb2229 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -39,11 +39,8 @@ "pauseEnabled": "Pause Enabled", "none": "None", "qualityAuto": "Auto", - "quality1080p": "1080p", - "quality720p": "720p", - "quality480p": "480p", - "qualitySpeed1080p": "Requires 320KB/s", - "qualitySpeed720p": "Requires 256KB/s", - "qualitySpeed480p": "Requires 100KB/s" + "quality1080p": "1080p 2.5Mbps", + "quality720p": "720p 2Mbps", + "quality480p": "480p 0.8Mbps" } } \ No newline at end of file diff --git a/src/locales/zh.json b/src/locales/zh.json index 3289c98..8e5ff68 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -39,11 +39,8 @@ "pauseEnabled": "可暂停", "none": "无", "qualityAuto": "自动", - "quality1080p": "超清", - "quality720p": "高清", - "quality480p": "标清", - "qualitySpeed1080p": "需要 320KB/s", - "qualitySpeed720p": "需要 256KB/s", - "qualitySpeed480p": "需要 100KB/s" + "quality1080p": "超清 320KB/s", + "quality720p": "高清 256KB/s", + "quality480p": "标清 100KB/s" } } \ No newline at end of file