fix ui warnings

This commit is contained in:
jxxghp
2025-04-13 16:00:31 +08:00
parent 8b53cd0a09
commit cb5bccc945
12 changed files with 70 additions and 70 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "moviepilot", "name": "moviepilot",
"version": "2.3.9", "version": "2.3.9-1",
"private": true, "private": true,
"bin": "dist/service.js", "bin": "dist/service.js",
"scripts": { "scripts": {
+2 -2
View File
@@ -20,13 +20,13 @@ export const storageOptions = [
{ {
title: 'RClone', title: 'RClone',
value: 'rclone', value: 'rclone',
icon: 'mdi-cloud-outline', icon: 'mdi-server-network-outline',
remote: true, remote: true,
}, },
{ {
title: 'AList', title: 'AList',
value: 'alist', value: 'alist',
icon: 'mdi-cloud-outline', icon: 'mdi-server-network-outline',
remote: true, remote: true,
}, },
] ]
+1 -3
View File
@@ -1,5 +1,4 @@
<script lang="ts" setup> <script lang="ts" setup>
import type { Axios } from 'axios'
import FileList from './filebrowser/FileList.vue' import FileList from './filebrowser/FileList.vue'
import FileToolbar from './filebrowser/FileToolbar.vue' import FileToolbar from './filebrowser/FileToolbar.vue'
import FileNavigator from './filebrowser/FileNavigator.vue' import FileNavigator from './filebrowser/FileNavigator.vue'
@@ -13,7 +12,7 @@ const props = defineProps({
tree: Boolean, tree: Boolean,
endpoints: Object as PropType<EndPoints>, endpoints: Object as PropType<EndPoints>,
axios: { axios: {
type: Object as PropType<Axios>, type: Function,
required: true, required: true,
}, },
axiosconfig: Object, axiosconfig: Object,
@@ -220,7 +219,6 @@ const fileListStyle = computed(() => {
@navigate="pathChanged" @navigate="pathChanged"
/> />
<FileList <FileList
class="flex-grow"
:item="item" :item="item"
:storage="activeStorage" :storage="activeStorage"
:icons="fileIcons" :icons="fileIcons"
@@ -66,7 +66,6 @@ const notificationTypes = [
function openNotificationInfoDialog() { function openNotificationInfoDialog() {
// 替换成深复制,避免修改时影响原数据 // 替换成深复制,避免修改时影响原数据
notificationInfo.value = cloneDeep(props.notification) notificationInfo.value = cloneDeep(props.notification)
console.log(`当前卡片的通知信息:${JSON.stringify(notificationInfo.value)}`)
notificationInfoDialog.value = true notificationInfoDialog.value = true
} }
+2
View File
@@ -128,6 +128,7 @@ onMounted(() => {
}) })
</script> </script>
<template> <template>
<div>
<VCard variant="tonal" @click="openStorageDialog"> <VCard variant="tonal" @click="openStorageDialog">
<VCardText class="flex justify-space-between align-center gap-3"> <VCardText class="flex justify-space-between align-center gap-3">
<div class="align-self-start flex-1"> <div class="align-self-start flex-1">
@@ -169,4 +170,5 @@ onMounted(() => {
@close="aListConfigDialog = false" @close="aListConfigDialog = false"
@done="handleDone" @done="handleDone"
/> />
</div>
</template> </template>
+4 -4
View File
@@ -1,5 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
import type { Axios, AxiosRequestConfig } from 'axios' import type { AxiosRequestConfig } from 'axios'
import type { PropType } from 'vue' import type { PropType } from 'vue'
import { useConfirm } from 'vuetify-use-dialog' import { useConfirm } from 'vuetify-use-dialog'
import { useToast } from 'vue-toast-notification' import { useToast } from 'vue-toast-notification'
@@ -20,7 +20,7 @@ const inProps = defineProps({
storage: String, storage: String,
endpoints: Object as PropType<EndPoints>, endpoints: Object as PropType<EndPoints>,
axios: { axios: {
type: Object as PropType<Axios>, type: Function,
required: true, required: true,
}, },
refreshpending: Boolean, refreshpending: Boolean,
@@ -686,7 +686,7 @@ onMounted(() => {
<VCardText v-else-if="!loading" class="grow d-flex justify-center align-center grey--text py-5"> 空目录 </VCardText> <VCardText v-else-if="!loading" class="grow d-flex justify-center align-center grey--text py-5"> 空目录 </VCardText>
</VCard> </VCard>
<!-- 重命名弹窗 --> <!-- 重命名弹窗 -->
<VDialog v-if="renamePopper" v-model="renamePopper" max-width="50rem"> <VDialog v-if="renamePopper" v-model="renamePopper" max-width="35rem">
<VCard title="重命名"> <VCard title="重命名">
<DialogCloseBtn @click="renamePopper = false" /> <DialogCloseBtn @click="renamePopper = false" />
<VDivider /> <VDivider />
@@ -695,7 +695,7 @@ onMounted(() => {
<VCol cols="12"> <VCol cols="12">
<VTextField v-model="newName" label="新名称" :loading="renameLoading" /> <VTextField v-model="newName" label="新名称" :loading="renameLoading" />
</VCol> </VCol>
<VCol cols="12" md="6" v-if="currentItem && currentItem.type == 'dir'"> <VCol cols="12" v-if="currentItem && currentItem.type == 'dir'">
<VSwitch v-model="renameAll" label="自动重命名目录内所有媒体文件" /> <VSwitch v-model="renameAll" label="自动重命名目录内所有媒体文件" />
</VCol> </VCol>
</VRow> </VRow>
+2 -2
View File
@@ -2,7 +2,7 @@
import type { PropType } from 'vue' import type { PropType } from 'vue'
import type { FileItem } from '@/api/types' import type { FileItem } from '@/api/types'
import { useDisplay } from 'vuetify' import { useDisplay } from 'vuetify'
import type { Axios, AxiosRequestConfig } from 'axios' import type { AxiosRequestConfig } from 'axios'
// 显示器宽度 // 显示器宽度
const display = useDisplay() const display = useDisplay()
@@ -23,7 +23,7 @@ const props = defineProps({
}, },
endpoints: Object, endpoints: Object,
axios: { axios: {
type: Object as PropType<Axios>, type: Function,
required: true, required: true,
}, },
}) })
+7 -7
View File
@@ -1,5 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
import type { Axios, AxiosRequestConfig } from 'axios' import type { AxiosRequestConfig } from 'axios'
import type { EndPoints, FileItem } from '@/api/types' import type { EndPoints, FileItem } from '@/api/types'
import { useDisplay } from 'vuetify' import { useDisplay } from 'vuetify'
@@ -20,7 +20,7 @@ const inProps = defineProps({
}, },
endpoints: Object as PropType<EndPoints>, endpoints: Object as PropType<EndPoints>,
axios: { axios: {
type: Object as PropType<Axios>, type: Function,
required: true, required: true,
}, },
}) })
@@ -117,9 +117,9 @@ const sortIcon = computed(() => {
<template> <template>
<VToolbar flat dense class="rounded-t-lg border-b overflow-hidden"> <VToolbar flat dense class="rounded-t-lg border-b overflow-hidden">
<VToolbarItems class="overflow-hidden"> <VToolbarItems class="overflow-hidden">
<VMenu v-if="inProps.storages?.length || 0 > 1" offset-y> <VMenu v-if="storages?.length || 0 > 1" offset-y>
<template #activator="{ props }"> <template #activator="{ props }">
<VBtn> <VBtn v-bind="props">
<VIcon icon="mdi-arrow-down-drop-circle-outline" /> <VIcon icon="mdi-arrow-down-drop-circle-outline" />
</VBtn> </VBtn>
</template> </template>
@@ -131,7 +131,7 @@ const sortIcon = computed(() => {
@click="changeStorage(item.value)" @click="changeStorage(item.value)"
> >
<template #prepend> <template #prepend>
<Icon :icon="item.icon" /> <VIcon :icon="item.icon" />
</template> </template>
<VListItemTitle>{{ item.title }}</VListItemTitle> <VListItemTitle>{{ item.title }}</VListItemTitle>
</VListItem> </VListItem>
@@ -161,10 +161,10 @@ const sortIcon = computed(() => {
<IconBtn @click="goUp"> <IconBtn @click="goUp">
<VIcon icon="mdi-arrow-up-bold-outline" /> <VIcon icon="mdi-arrow-up-bold-outline" />
</IconBtn> </IconBtn>
<VDialog v-model="newFolderPopper" max-width="50rem"> <VDialog v-model="newFolderPopper" max-width="35rem">
<template #activator="{ props }"> <template #activator="{ props }">
<IconBtn> <IconBtn>
<VIcon v-bind="_props" icon="mdi-folder-plus-outline" /> <VIcon v-bind="props" icon="mdi-folder-plus-outline" />
</IconBtn> </IconBtn>
</template> </template>
<VCard title="新建文件夹"> <VCard title="新建文件夹">
@@ -26,5 +26,5 @@ const themes: ThemeSwitcherTheme[] = [
</script> </script>
<template> <template>
<ThemeSwitcher class="ms-2" :themes="themes" /> <ThemeSwitcher :themes="themes" />
</template> </template>
+4
View File
@@ -241,12 +241,16 @@ onUnmounted(() => {
<div v-if="isRefreshed && dataList.length > 0 && !isViewChanging" class="search-results-container"> <div v-if="isRefreshed && dataList.length > 0 && !isViewChanging" class="search-results-container">
<!-- 卡片视图模式 --> <!-- 卡片视图模式 -->
<VFadeTransition> <VFadeTransition>
<div>
<TorrentCardListView v-if="viewType === 'card'" :items="dataList" /> <TorrentCardListView v-if="viewType === 'card'" :items="dataList" />
</div>
</VFadeTransition> </VFadeTransition>
<!-- 列表视图模式 --> <!-- 列表视图模式 -->
<VFadeTransition> <VFadeTransition>
<div>
<TorrentRowListView v-if="viewType === 'row'" :items="dataList" /> <TorrentRowListView v-if="viewType === 'row'" :items="dataList" />
</div>
</VFadeTransition> </VFadeTransition>
</div> </div>
+2 -5
View File
@@ -454,13 +454,12 @@ onMounted(async () => {
<div v-if="isAppMarketLoaded" class="bg-transparent mb-3 shadow-none"> <div v-if="isAppMarketLoaded" class="bg-transparent mb-3 shadow-none">
<VRow> <VRow>
<VCol cols="6" md=""> <VCol cols="6" md="">
<VTextField v-model="filterForm.name" size="small" density="compact" label="名称" clearable /> <VTextField v-model="filterForm.name" density="compact" label="名称" clearable />
</VCol> </VCol>
<VCol v-if="authorFilterOptions.length > 0" cols="6" md=""> <VCol v-if="authorFilterOptions.length > 0" cols="6" md="">
<VSelect <VSelect
v-model="filterForm.author" v-model="filterForm.author"
:items="authorFilterOptions" :items="authorFilterOptions"
size="small"
density="compact" density="compact"
chips chips
label="作者" label="作者"
@@ -472,7 +471,6 @@ onMounted(async () => {
<VSelect <VSelect
v-model="filterForm.label" v-model="filterForm.label"
:items="labelFilterOptions" :items="labelFilterOptions"
size="small"
density="compact" density="compact"
chips chips
label="标签" label="标签"
@@ -484,7 +482,6 @@ onMounted(async () => {
<VSelect <VSelect
v-model="filterForm.repo" v-model="filterForm.repo"
:items="repoFilterOptions" :items="repoFilterOptions"
size="small"
density="compact" density="compact"
chips chips
label="插件库" label="插件库"
@@ -493,7 +490,7 @@ onMounted(async () => {
/> />
</VCol> </VCol>
<VCol v-if="repoFilterOptions.length > 0" cols="6" md=""> <VCol v-if="repoFilterOptions.length > 0" cols="6" md="">
<VSelect v-model="activeSort" :items="sortOptions" size="small" density="compact" label="排序" /> <VSelect v-model="activeSort" :items="sortOptions" density="compact" label="排序" />
</VCol> </VCol>
</VRow> </VRow>
</div> </div>
+1 -1
View File
@@ -648,7 +648,7 @@ onMounted(fetchData)
<VDivider /> <VDivider />
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<div class="w-auto"> <div class="w-auto">
<VSelect v-model="itemsPerPage" :items="pageRange" density="compact" variant="tonal" flat /> <VSelect v-model="itemsPerPage" :items="pageRange" density="compact" flat />
</div> </div>
<div class="w-auto text-sm">{{ pageTip.begin }} - {{ pageTip.end }} / {{ totalItems }}</div> <div class="w-auto text-sm">{{ pageTip.begin }} - {{ pageTip.end }} / {{ totalItems }}</div>
<VPagination <VPagination