From e9e1dbff5e9ebcdd8e925b819b6294615f19266c Mon Sep 17 00:00:00 2001 From: t0ng7u Date: Tue, 23 Sep 2025 04:01:48 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20reorganize=20O?= =?UTF-8?q?Auth=20consent=20page=20structure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move OAuth consent component to dedicated OAuth directory as index.jsx - Rename component export structure for better module organization - Update App.jsx import path to reflect new OAuth page structure - Maintain existing OAuth consent functionality while improving --- web/src/App.jsx | 2 +- .../pages/OAuth/{Consent.jsx => index.jsx} | 24 +++++++++---------- 2 files changed, 12 insertions(+), 14 deletions(-) rename web/src/pages/OAuth/{Consent.jsx => index.jsx} (97%) diff --git a/web/src/App.jsx b/web/src/App.jsx index 4baf5c42b..ee3bc0c5b 100644 --- a/web/src/App.jsx +++ b/web/src/App.jsx @@ -44,7 +44,7 @@ import Task from './pages/Task'; import ModelPage from './pages/Model'; import Playground from './pages/Playground'; import OAuth2Callback from './components/auth/OAuth2Callback'; -import OAuthConsent from './pages/OAuth/Consent'; +import OAuthConsent from './pages/OAuth'; import PersonalSetting from './components/settings/PersonalSetting'; import Setup from './pages/Setup'; import SetupCheck from './components/layout/SetupCheck'; diff --git a/web/src/pages/OAuth/Consent.jsx b/web/src/pages/OAuth/index.jsx similarity index 97% rename from web/src/pages/OAuth/Consent.jsx rename to web/src/pages/OAuth/index.jsx index 0e36715bd..1f7795d79 100644 --- a/web/src/pages/OAuth/Consent.jsx +++ b/web/src/pages/OAuth/index.jsx @@ -149,18 +149,16 @@ export default function OAuthConsent() { ) : error ? ( - - - + ) : ( info && ( <> @@ -247,7 +245,7 @@ export default function OAuthConsent() { {/* 链接图标 */}
- +
{/* 站点Logo */}