From 760a22bff78c6ee807835a681b4893cb98785c68 Mon Sep 17 00:00:00 2001 From: lansonsam <2952678374@qq.com> Date: Sat, 14 Jun 2025 18:46:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E9=98=BF=E9=87=8C?= =?UTF-8?q?=E4=BA=91=E7=9B=98=E6=89=AB=E7=A0=81=E7=99=BB=E5=BD=95v2?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=20-=20=E6=96=B0=E5=A2=9E=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E7=9A=84=E5=A4=9A=E7=94=A8=E6=88=B7=E5=B9=B6=E5=8F=91=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=94=AF=E6=8C=81=EF=BC=8C=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=E6=8C=87=E7=BA=B9=E9=AA=8C=E8=AF=81=EF=BC=8C=E4=BC=9A=E8=AF=9D?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=92=8C=E8=87=AA=E5=8A=A8=E8=BF=87=E6=9C=9F?= =?UTF-8?q?=E6=9C=BA=E5=88=B6=EF=BC=8C=E4=BC=98=E5=8C=96UI=E4=BD=93?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 444 ++++++++++++++++++++++++++++- src/aliui2.ts | 692 ++++++++++++++++++++++++++++++++++++++++++++++ src/index.ts | 21 ++ 3 files changed, 1156 insertions(+), 1 deletion(-) create mode 100644 src/aliui2.ts diff --git a/public/index.html b/public/index.html index 89c0ca5..12ca9ef 100644 --- a/public/index.html +++ b/public/index.html @@ -91,6 +91,121 @@ [data-theme="dark"] p { color: #ffffff; } + + /* 阿里云盘扫码v2样式 */ + .qr-modal { + display: none; + position: fixed; + z-index: 1000; + left: 0; + top: 0; + width: 100%; + height: 100%; + background-color: rgba(0,0,0,0.5); + } + + .qr-modal-content { + background-color: #fefefe; + margin: 5% auto; + padding: 20px; + border-radius: 10px; + width: 90%; + max-width: 500px; + text-align: center; + } + + [data-theme="dark"] .qr-modal-content { + background-color: #2a2a3b; + color: #f0f0f0; + } + + .qr-code-container { + margin: 20px 0; + padding: 20px; + background: #f8f9fa; + border-radius: 10px; + } + + [data-theme="dark"] .qr-code-container { + background: #1a1a2e; + } + + .qr-code-img { + max-width: 200px; + max-height: 200px; + border-radius: 8px; + } + + .qr-status { + margin: 15px 0; + padding: 10px; + border-radius: 5px; + font-weight: 500; + } + + .qr-status.waiting { + background: #fff3cd; + color: #856404; + border: 1px solid #ffeaa7; + } + + .qr-status.scaned { + background: #d1ecf1; + color: #0c5460; + border: 1px solid #bee5eb; + } + + .qr-status.success { + background: #d4edda; + color: #155724; + border: 1px solid #c3e6cb; + } + + .qr-status.error { + background: #f8d7da; + color: #721c24; + border: 1px solid #f5c6cb; + } + + [data-theme="dark"] .qr-status.waiting { + background: #3d3d00; + color: #ffeb3b; + border: 1px solid #ffeb3b; + } + + [data-theme="dark"] .qr-status.scaned { + background: #003d4d; + color: #00bcd4; + border: 1px solid #00bcd4; + } + + [data-theme="dark"] .qr-status.success { + background: #1b5e20; + color: #4caf50; + border: 1px solid #4caf50; + } + + [data-theme="dark"] .qr-status.error { + background: #5d1a1a; + color: #f44336; + border: 1px solid #f44336; + } + + .close-btn { + color: #aaa; + float: right; + font-size: 28px; + font-weight: bold; + cursor: pointer; + } + + .close-btn:hover { + color: black; + } + + [data-theme="dark"] .close-btn:hover { + color: white; + }
@@ -108,6 +223,7 @@ + @@ -165,6 +281,22 @@ + + +