Refactor: Improve rating filter UI and update locale text

Co-authored-by: jxxghp <jxxghp@qq.com>
This commit is contained in:
Cursor Agent
2025-09-16 02:36:16 +00:00
co-authored by jxxghp
parent fb6ee2910f
commit b004facfca
3 changed files with 51 additions and 55 deletions
+1 -1
View File
@@ -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',
+25 -27
View File
@@ -217,33 +217,31 @@ 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" thumb-label
variant="outlined" max="10"
density="compact" min="0"
type="number" :step="0.1"
hide-details class="align-center"
single-line hide-details
min="0" style="width: 200px;"
max="10" >
step="0.1" <template v-slot:append>
style="width: 80px;" <VTextField
/> variant="outlined"
<span class="mx-2">-</span> width="5rem"
<VTextField v-model="filterParams.max_rating"
v-model="filterParams.max_rating" density="compact"
variant="outlined" type="number"
density="compact" hide-details
type="number" single-line
hide-details min="0"
single-line max="10"
min="0" step="0.1"
max="10" />
step="0.1" </template>
style="width: 80px;" </VSlider>
/>
</div>
</div> </div>
<div class="flex justify-start align-center"> <div class="flex justify-start align-center">
+25 -27
View File
@@ -236,33 +236,31 @@ 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" thumb-label
variant="outlined" max="10"
density="compact" min="0"
type="number" :step="0.1"
hide-details class="align-center"
single-line hide-details
min="0" style="width: 200px;"
max="10" >
step="0.1" <template v-slot:append>
style="width: 80px;" <VTextField
/> variant="outlined"
<span class="mx-2">-</span> width="5rem"
<VTextField v-model="filterParams.max_rating"
v-model="filterParams.max_rating" density="compact"
variant="outlined" type="number"
density="compact" hide-details
type="number" single-line
hide-details min="0"
single-line max="10"
min="0" step="0.1"
max="10" />
step="0.1" </template>
style="width: 80px;" </VSlider>
/>
</div>
</div> </div>
</div> </div>