From 7e65ae975fda32b6588fc2ef9e7bdcc096b48a06 Mon Sep 17 00:00:00 2001 From: ice-a Date: Fri, 16 Oct 2026 19:43:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B5=8F=E8=A7=88=E5=99=A8=E7=AB=AF=20?= =?UTF-8?q?P2P=20=E5=8F=96=E6=B8=85=E5=8D=95/=E9=A2=84=E8=A7=88=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E8=BF=9B=E5=BA=A6=E4=B8=8E=E8=B6=85=E6=97=B6=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/css/main.css | 3 ++ app/components/ImagePreview.vue | 20 ++++++++--- app/components/TorrentDetail.vue | 13 +++++-- app/utils/clientTorrent.ts | 62 ++++++++++++++++++++++++++++++-- 4 files changed, 89 insertions(+), 9 deletions(-) diff --git a/app/assets/css/main.css b/app/assets/css/main.css index c62d863..2360345 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -365,6 +365,9 @@ h3 { font-family: var(--display); font-size: 15px; margin: 0; font-weight: 600; .spin { display: inline-block; width: 11px; height: 11px; border: 1.5px solid var(--line-2); border-top-color: var(--acc); border-radius: 50%; animation: spin 0.7s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } +.bar { width: min(360px, 80%); height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; } +.bar > i { display: block; height: 100%; background: var(--acc); transition: width 0.25s ease; } + .footer { border-top: 1px solid var(--line); padding: 16px 0 26px; color: var(--fg-mute); font-family: var(--mono); font-size: 11px; } /* 图片预览弹层 */ diff --git a/app/components/ImagePreview.vue b/app/components/ImagePreview.vue index b54bacd..3a5af8c 100644 --- a/app/components/ImagePreview.vue +++ b/app/components/ImagePreview.vue @@ -1,6 +1,7 @@