From e47a50f78ab5e98f7f1eea5fe46e782c0e39eb16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=8E=E6=B3=BD?= Date: Thu, 12 Jun 2025 15:40:45 +0800 Subject: [PATCH] Update index.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复暗黑模式下输入框、按钮不变问题 --- public/index.html | 56 +++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 52 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index b423f61..3353869 100644 --- a/public/index.html +++ b/public/index.html @@ -1,3 +1,4 @@ + @@ -53,8 +54,45 @@ a { text-decoration: none; } - + + [data-theme="dark"] body { + background-color: var(--bg-color-dark); + color: var(--text-color-dark); + } + [data-theme="dark"] .form-control { + background-color: #2a2a3b; + color: #f0f0f0; + border-color: #444; + } + + [data-theme="dark"] .form-control:read-only { + background-color: #2a2a3b; + color: #ccc; + border-color: #444; + } + + [data-theme="dark"] .form-select { + background-color: #2a2a3b; + color: #f0f0f0; + border-color: #444; + } + + [data-theme="dark"] .btn { + background-color: #00bfa5; + color: #ffffff; + border: none; + } + + [data-theme="dark"] .btn:hover { + background-color: #00a58e; + color: #ffffff; + } + + [data-theme="dark"] p { + color: #ffffff; + } +
@@ -105,8 +143,9 @@

本工具所有信息只以Cookie形式存储于浏览器本地
- 开源于 GitHub | by OpenListTeam + 开源于 GitHub | by OpenListTeam

@@ -139,7 +178,6 @@ // 解析响应内容 =============================================== const response_data = await response.json(); if (response.status === 200) { - // window.open(response_data.text) window.location.href = response_data.text; } else Swal.fire({ icon: 'error', @@ -189,6 +227,16 @@ const client_key = urlParams.get("client_key"); const access_token = urlParams.get("access_token"); const refresh_token = urlParams.get("refresh_token"); + const message_err = urlParams.get("message_err"); + if (message_err && client_uid) { + Swal.fire({ + position: 'top', + icon: 'error', + title: '授权失败', + text: message_err, + showConfirmButton: true, + }); + } document.getElementById("client-id").value = client_uid; document.getElementById("app-secret").value = client_key; document.getElementById("access-token").value = access_token;