mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-05-27 05:50:43 +00:00
♻️ 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:
@@ -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';
|
||||
|
||||
@@ -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'>
|
||||
Reference in New Issue
Block a user