simplify: embed bandwidth text directly into quality i18n labels, remove speed field
This commit is contained in:
@@ -24,10 +24,10 @@ const showSpeedMenu = ref(false)
|
|||||||
const speedOptions = [1, 2, 4]
|
const speedOptions = [1, 2, 4]
|
||||||
const showQualityMenu = ref(false)
|
const showQualityMenu = ref(false)
|
||||||
const qualityOptions = computed(() => [
|
const qualityOptions = computed(() => [
|
||||||
{ value: '', label: t('ui.qualityAuto'), speed: '' },
|
{ value: '', label: t('ui.qualityAuto') },
|
||||||
{ value: '超清 (1080P)', label: t('ui.quality1080p'), speed: t('ui.qualitySpeed1080p') },
|
{ value: '超清 (1080P)', label: t('ui.quality1080p') },
|
||||||
{ value: '高清 (720P)', label: t('ui.quality720p'), speed: t('ui.qualitySpeed720p') },
|
{ value: '高清 (720P)', label: t('ui.quality720p') },
|
||||||
{ value: '标清 (480P)', label: t('ui.quality480p'), speed: t('ui.qualitySpeed480p') },
|
{ value: '标清 (480P)', label: t('ui.quality480p') },
|
||||||
])
|
])
|
||||||
|
|
||||||
function currentQualityLabel() {
|
function currentQualityLabel() {
|
||||||
@@ -102,7 +102,7 @@ onUnmounted(() => document.removeEventListener('click', onDocClick))
|
|||||||
class="speed-option"
|
class="speed-option"
|
||||||
:class="{ active: store.preferredQuality === q.value }"
|
:class="{ active: store.preferredQuality === q.value }"
|
||||||
@click.stop="selectQuality(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>
|
</div>
|
||||||
</Transition>
|
</Transition>
|
||||||
</div>
|
</div>
|
||||||
@@ -199,12 +199,6 @@ onUnmounted(() => document.removeEventListener('click', onDocClick))
|
|||||||
color: #c9a84c;
|
color: #c9a84c;
|
||||||
}
|
}
|
||||||
|
|
||||||
.quality-speed {
|
|
||||||
margin-left: 8px;
|
|
||||||
font-size: 10px;
|
|
||||||
color: #666;
|
|
||||||
}
|
|
||||||
|
|
||||||
.speed-drop-enter-active,
|
.speed-drop-enter-active,
|
||||||
.speed-drop-leave-active {
|
.speed-drop-leave-active {
|
||||||
transition: all 0.15s ease;
|
transition: all 0.15s ease;
|
||||||
|
|||||||
@@ -39,11 +39,8 @@
|
|||||||
"pauseEnabled": "Pause Enabled",
|
"pauseEnabled": "Pause Enabled",
|
||||||
"none": "None",
|
"none": "None",
|
||||||
"qualityAuto": "Auto",
|
"qualityAuto": "Auto",
|
||||||
"quality1080p": "1080p",
|
"quality1080p": "1080p 2.5Mbps",
|
||||||
"quality720p": "720p",
|
"quality720p": "720p 2Mbps",
|
||||||
"quality480p": "480p",
|
"quality480p": "480p 0.8Mbps"
|
||||||
"qualitySpeed1080p": "Requires 320KB/s",
|
|
||||||
"qualitySpeed720p": "Requires 256KB/s",
|
|
||||||
"qualitySpeed480p": "Requires 100KB/s"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -39,11 +39,8 @@
|
|||||||
"pauseEnabled": "可暂停",
|
"pauseEnabled": "可暂停",
|
||||||
"none": "无",
|
"none": "无",
|
||||||
"qualityAuto": "自动",
|
"qualityAuto": "自动",
|
||||||
"quality1080p": "超清",
|
"quality1080p": "超清 320KB/s",
|
||||||
"quality720p": "高清",
|
"quality720p": "高清 256KB/s",
|
||||||
"quality480p": "标清",
|
"quality480p": "标清 100KB/s"
|
||||||
"qualitySpeed1080p": "需要 320KB/s",
|
|
||||||
"qualitySpeed720p": "需要 256KB/s",
|
|
||||||
"qualitySpeed480p": "需要 100KB/s"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user