mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-08-28 03:27:54 +08:00
fix
This commit is contained in:
@@ -140,7 +140,7 @@ const dropdownItems = ref([
|
|||||||
<template>
|
<template>
|
||||||
<VCard :width="props.width" :height="props.height" @click="handleAddDownload">
|
<VCard :width="props.width" :height="props.height" @click="handleAddDownload">
|
||||||
<template #image v-if="!showMoreTorrents">
|
<template #image v-if="!showMoreTorrents">
|
||||||
<VAvatar class="absolute right-2 bottom-2" variant="flat" rounded="0">
|
<VAvatar class="absolute right-2 bottom-2 rounded" variant="flat" rounded="0">
|
||||||
<VImg :src="siteIcon" />
|
<VImg :src="siteIcon" />
|
||||||
</VAvatar>
|
</VAvatar>
|
||||||
</template>
|
</template>
|
||||||
@@ -156,7 +156,12 @@ const dropdownItems = ref([
|
|||||||
<VIcon icon="mdi-dots-vertical" color="white" />
|
<VIcon icon="mdi-dots-vertical" color="white" />
|
||||||
<VMenu activator="parent" close-on-content-click>
|
<VMenu activator="parent" close-on-content-click>
|
||||||
<VList>
|
<VList>
|
||||||
<VListItem v-for="(item, i) in dropdownItems" variant="plain" :key="i" @click="item.props.click">
|
<VListItem
|
||||||
|
v-for="(item, i) in dropdownItems"
|
||||||
|
variant="plain"
|
||||||
|
:key="i"
|
||||||
|
@click="item.props.click"
|
||||||
|
>
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<VIcon :icon="item.props.prependIcon"></VIcon>
|
<VIcon :icon="item.props.prependIcon"></VIcon>
|
||||||
</template>
|
</template>
|
||||||
@@ -173,29 +178,71 @@ const dropdownItems = ref([
|
|||||||
</VCardText>
|
</VCardText>
|
||||||
<VCardText>{{ torrent?.description }}</VCardText>
|
<VCardText>{{ torrent?.description }}</VCardText>
|
||||||
<VCardItem class="pb-3 pt-0 pe-12" v-if="torrent?.labels">
|
<VCardItem class="pb-3 pt-0 pe-12" v-if="torrent?.labels">
|
||||||
<VChip variant="elevated" size="small" v-for="label in torrent?.labels" color="primary" class="me-1 mb-1">{{ label
|
<VChip
|
||||||
}}</VChip>
|
variant="elevated"
|
||||||
<VChip v-if="meta?.edition" variant="elevated" size="small" class="me-1 mb-1 text-white bg-red-500">
|
size="small"
|
||||||
{{ meta?.edition }}</VChip>
|
v-for="label in torrent?.labels"
|
||||||
<VChip v-if="meta?.resource_pix" variant="elevated" size="small" class="me-1 mb-1 text-white bg-red-500">
|
color="primary"
|
||||||
|
class="me-1 mb-1"
|
||||||
|
>{{ label }}</VChip
|
||||||
|
>
|
||||||
|
<VChip
|
||||||
|
v-if="meta?.edition"
|
||||||
|
variant="elevated"
|
||||||
|
size="small"
|
||||||
|
class="me-1 mb-1 text-white bg-red-500"
|
||||||
|
>
|
||||||
|
{{ meta?.edition }}</VChip
|
||||||
|
>
|
||||||
|
<VChip
|
||||||
|
v-if="meta?.resource_pix"
|
||||||
|
variant="elevated"
|
||||||
|
size="small"
|
||||||
|
class="me-1 mb-1 text-white bg-red-500"
|
||||||
|
>
|
||||||
{{ meta?.resource_pix }}
|
{{ meta?.resource_pix }}
|
||||||
</VChip>
|
</VChip>
|
||||||
<VChip v-if="meta?.video_encode" variant="elevated" size="small" class="me-1 mb-1 text-white bg-orange-500">
|
<VChip
|
||||||
|
v-if="meta?.video_encode"
|
||||||
|
variant="elevated"
|
||||||
|
size="small"
|
||||||
|
class="me-1 mb-1 text-white bg-orange-500"
|
||||||
|
>
|
||||||
{{ meta?.video_encode }}
|
{{ meta?.video_encode }}
|
||||||
</VChip>
|
</VChip>
|
||||||
<VChip v-if="torrent?.size" variant="elevated" size="small" class="me-1 mb-1 text-white bg-yellow-500">
|
<VChip
|
||||||
|
v-if="torrent?.size"
|
||||||
|
variant="elevated"
|
||||||
|
size="small"
|
||||||
|
class="me-1 mb-1 text-white bg-yellow-500"
|
||||||
|
>
|
||||||
{{ formatFileSize(torrent?.size) }}
|
{{ formatFileSize(torrent?.size) }}
|
||||||
</VChip>
|
</VChip>
|
||||||
<VChip v-if="meta?.resource_team" variant="elevated" size="small" class="me-1 mb-1 text-white bg-cyan-500">
|
<VChip
|
||||||
|
v-if="meta?.resource_team"
|
||||||
|
variant="elevated"
|
||||||
|
size="small"
|
||||||
|
class="me-1 mb-1 text-white bg-cyan-500"
|
||||||
|
>
|
||||||
{{ meta?.resource_team }}
|
{{ meta?.resource_team }}
|
||||||
</VChip>
|
</VChip>
|
||||||
<VChip v-if="torrent?.downloadvolumefactor !== 1 || torrent?.uploadvolumefactor !== 1" :class="getVolumeFactorClass(torrent?.downloadvolumefactor, torrent?.uploadvolumefactor)
|
<VChip
|
||||||
" variant="elevated" size="small" class="me-1 mb-1">
|
v-if="torrent?.downloadvolumefactor !== 1 || torrent?.uploadvolumefactor !== 1"
|
||||||
|
:class="
|
||||||
|
getVolumeFactorClass(torrent?.downloadvolumefactor, torrent?.uploadvolumefactor)
|
||||||
|
"
|
||||||
|
variant="elevated"
|
||||||
|
size="small"
|
||||||
|
class="me-1 mb-1"
|
||||||
|
>
|
||||||
{{ torrent?.volume_factor }}
|
{{ torrent?.volume_factor }}
|
||||||
</VChip>
|
</VChip>
|
||||||
</VCardItem>
|
</VCardItem>
|
||||||
<VCardActions>
|
<VCardActions>
|
||||||
<VBtn @click.stop="showMoreTorrents = !showMoreTorrents" v-if="props.more && props.more.length > 0">
|
<VBtn
|
||||||
|
@click.stop="showMoreTorrents = !showMoreTorrents"
|
||||||
|
v-if="props.more && props.more.length > 0"
|
||||||
|
>
|
||||||
<template #append>
|
<template #append>
|
||||||
<VIcon :icon="showMoreTorrents ? 'mdi-chevron-up' : 'mdi-chevron-down'"></VIcon>
|
<VIcon :icon="showMoreTorrents ? 'mdi-chevron-up' : 'mdi-chevron-down'"></VIcon>
|
||||||
</template>
|
</template>
|
||||||
@@ -206,17 +253,32 @@ const dropdownItems = ref([
|
|||||||
<div v-show="showMoreTorrents">
|
<div v-show="showMoreTorrents">
|
||||||
<VDivider></VDivider>
|
<VDivider></VDivider>
|
||||||
<VChipGroup class="p-3">
|
<VChipGroup class="p-3">
|
||||||
<VChip v-for="item in props.more" @click.stop="
|
<VChip
|
||||||
handleAddDownload(
|
v-for="item in props.more"
|
||||||
item.torrent_info?.site_name,
|
@click.stop="
|
||||||
item.media_info,
|
handleAddDownload(
|
||||||
item.torrent_info
|
item.torrent_info?.site_name,
|
||||||
)
|
item.media_info,
|
||||||
">
|
item.torrent_info
|
||||||
|
)
|
||||||
|
"
|
||||||
|
>
|
||||||
<template #append>
|
<template #append>
|
||||||
<VBadge color="primary" :content="`↑${item.torrent_info?.seeders}`" inline size="small"></VBadge>
|
<VBadge
|
||||||
<VBadge :content="item.torrent_info?.volume_factor" inline size="small"
|
color="primary"
|
||||||
v-if="item.torrent_info?.downloadvolumefactor !== 1 || item.torrent_info?.uploadvolumefactor !== 1">
|
:content="`↑${item.torrent_info?.seeders}`"
|
||||||
|
inline
|
||||||
|
size="small"
|
||||||
|
></VBadge>
|
||||||
|
<VBadge
|
||||||
|
:content="item.torrent_info?.volume_factor"
|
||||||
|
inline
|
||||||
|
size="small"
|
||||||
|
v-if="
|
||||||
|
item.torrent_info?.downloadvolumefactor !== 1 ||
|
||||||
|
item.torrent_info?.uploadvolumefactor !== 1
|
||||||
|
"
|
||||||
|
>
|
||||||
</VBadge>
|
</VBadge>
|
||||||
</template>
|
</template>
|
||||||
{{ item.torrent_info.site_name }}
|
{{ item.torrent_info.site_name }}
|
||||||
|
|||||||
Reference in New Issue
Block a user