simplify: embed bandwidth text directly into quality i18n labels, remove speed field

This commit is contained in:
2026-06-13 20:19:10 +08:00
parent cf3060b7fe
commit 57118d3bfe
3 changed files with 11 additions and 23 deletions

View File

@@ -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 }}<span v-if="q.speed" class="quality-speed">{{ q.speed }}</span></button>
>{{ q.label }}</button>
</div>
</Transition>
</div>
@@ -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;

View File

@@ -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"
}
}

View File

@@ -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"
}
}