mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-07 00:36:41 +08:00
Refactor: Improve rating filter UI and update locale text
Co-authored-by: jxxghp <jxxghp@qq.com>
This commit is contained in:
@@ -872,7 +872,7 @@ export default {
|
|||||||
batchEnableError: 'Batch enable operation failed',
|
batchEnableError: 'Batch enable operation failed',
|
||||||
batchPauseError: 'Batch pause operation failed',
|
batchPauseError: 'Batch pause operation failed',
|
||||||
batchDeleteError: 'Batch delete operation failed',
|
batchDeleteError: 'Batch delete operation failed',
|
||||||
minSubscribers: 'Min Subscribers',
|
minSubscribers: 'Minimum Subscribers',
|
||||||
},
|
},
|
||||||
recommend: {
|
recommend: {
|
||||||
all: 'All',
|
all: 'All',
|
||||||
|
|||||||
@@ -217,23 +217,21 @@ async function fetchData({ done }: { done: any }) {
|
|||||||
<div class="mr-5">
|
<div class="mr-5">
|
||||||
<VLabel>{{ t('tmdb.rating') }}</VLabel>
|
<VLabel>{{ t('tmdb.rating') }}</VLabel>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex align-center" style="width: 300px;">
|
<VSlider
|
||||||
<VTextField
|
|
||||||
v-model="filterParams.min_rating"
|
v-model="filterParams.min_rating"
|
||||||
variant="outlined"
|
thumb-label
|
||||||
density="compact"
|
|
||||||
type="number"
|
|
||||||
hide-details
|
|
||||||
single-line
|
|
||||||
min="0"
|
|
||||||
max="10"
|
max="10"
|
||||||
step="0.1"
|
min="0"
|
||||||
style="width: 80px;"
|
:step="0.1"
|
||||||
/>
|
class="align-center"
|
||||||
<span class="mx-2">-</span>
|
hide-details
|
||||||
|
style="width: 200px;"
|
||||||
|
>
|
||||||
|
<template v-slot:append>
|
||||||
<VTextField
|
<VTextField
|
||||||
v-model="filterParams.max_rating"
|
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
|
width="5rem"
|
||||||
|
v-model="filterParams.max_rating"
|
||||||
density="compact"
|
density="compact"
|
||||||
type="number"
|
type="number"
|
||||||
hide-details
|
hide-details
|
||||||
@@ -241,9 +239,9 @@ async function fetchData({ done }: { done: any }) {
|
|||||||
min="0"
|
min="0"
|
||||||
max="10"
|
max="10"
|
||||||
step="0.1"
|
step="0.1"
|
||||||
style="width: 80px;"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</template>
|
||||||
|
</VSlider>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex justify-start align-center">
|
<div class="flex justify-start align-center">
|
||||||
|
|||||||
@@ -236,23 +236,21 @@ function removeData(id: number) {
|
|||||||
<div class="mr-5">
|
<div class="mr-5">
|
||||||
<VLabel>{{ t('tmdb.rating') }}</VLabel>
|
<VLabel>{{ t('tmdb.rating') }}</VLabel>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex align-center" style="width: 300px;">
|
<VSlider
|
||||||
<VTextField
|
|
||||||
v-model="filterParams.min_rating"
|
v-model="filterParams.min_rating"
|
||||||
variant="outlined"
|
thumb-label
|
||||||
density="compact"
|
|
||||||
type="number"
|
|
||||||
hide-details
|
|
||||||
single-line
|
|
||||||
min="0"
|
|
||||||
max="10"
|
max="10"
|
||||||
step="0.1"
|
min="0"
|
||||||
style="width: 80px;"
|
:step="0.1"
|
||||||
/>
|
class="align-center"
|
||||||
<span class="mx-2">-</span>
|
hide-details
|
||||||
|
style="width: 200px;"
|
||||||
|
>
|
||||||
|
<template v-slot:append>
|
||||||
<VTextField
|
<VTextField
|
||||||
v-model="filterParams.max_rating"
|
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
|
width="5rem"
|
||||||
|
v-model="filterParams.max_rating"
|
||||||
density="compact"
|
density="compact"
|
||||||
type="number"
|
type="number"
|
||||||
hide-details
|
hide-details
|
||||||
@@ -260,9 +258,9 @@ function removeData(id: number) {
|
|||||||
min="0"
|
min="0"
|
||||||
max="10"
|
max="10"
|
||||||
step="0.1"
|
step="0.1"
|
||||||
style="width: 80px;"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</template>
|
||||||
|
</VSlider>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user