♻️ refactor: reorganize OAuth consent page structure

- 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
This commit is contained in:
t0ng7u
2025-09-23 04:01:48 +08:00
parent 315eabc1e7
commit e9e1dbff5e
2 changed files with 12 additions and 14 deletions

View File

@@ -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';

View File

@@ -149,18 +149,16 @@ export default function OAuthConsent() {
</Text>
</Card>
) : error ? (
<Card>
<Banner
type='warning'
closeIcon={null}
className='!rounded-lg'
description={
error === 'login_required'
? t('请先登录后再继续授权。')
: t('暂时无法加载授权信息')
}
/>
</Card>
<Banner
type='warning'
closeIcon={null}
className='!rounded-lg'
description={
error === 'login_required'
? t('请先登录后再继续授权。')
: t('暂时无法加载授权信息')
}
/>
) : (
info && (
<>
@@ -247,7 +245,7 @@ export default function OAuthConsent() {
</Popover>
{/* 链接图标 */}
<div className='w-10 h-10 rounded-full flex items-center justify-center'>
<Link size={16} />
<Link size={20} />
</div>
{/* 站点Logo */}
<div className='w-12 h-12 rounded-full overflow-hidden flex items-center justify-center'>