diff --git a/src/components/cards/DownloaderCard.vue b/src/components/cards/DownloaderCard.vue index cebe3a7c..cc9ad07a 100644 --- a/src/components/cards/DownloaderCard.vue +++ b/src/components/cards/DownloaderCard.vue @@ -120,7 +120,7 @@ onUnmounted(() => { - + { color="success" class="me-1" /> - {{ downloader.name }} + {{ downloader.name }} + + + {{ `↑ ${formatFileSize(upload_rate, 1)}/s ` }} + {{ `↓ ${formatFileSize(download_rate, 1)}/s` }} - {{ getSpeedText }} - + diff --git a/src/components/cards/MediaServerCard.vue b/src/components/cards/MediaServerCard.vue index 26b06496..fd259484 100644 --- a/src/components/cards/MediaServerCard.vue +++ b/src/components/cards/MediaServerCard.vue @@ -1,8 +1,9 @@ @@ -67,9 +124,13 @@ function onClose() { {{ mediaserver.name }} - + + + {{ item.amount }} + + - + diff --git a/src/components/cards/NotificationChannelCard.vue b/src/components/cards/NotificationChannelCard.vue index a74af22f..9df937dc 100644 --- a/src/components/cards/NotificationChannelCard.vue +++ b/src/components/cards/NotificationChannelCard.vue @@ -32,6 +32,16 @@ const notificationInfo = ref({ config: {}, }) +// 各通知类型的名称字典 +const notificationTypeNames: { [key: string]: string } = { + wechat: '企业微信', + telegram: 'Telegram', + vocechat: 'VoceChat', + synologychat: 'Synology Chat', + slack: 'Slack', + webpush: 'WebPush', +} + // 打开详情弹窗 function openNotificationInfoDialog() { notificationInfo.value = props.notification @@ -77,10 +87,13 @@ function onClose() { - {{ notification.name }} - {{ notification.type }} + + + {{ props.notification.name }} + + {{ notificationTypeNames[notification.type] }} - +