feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面
This commit is contained in:
@@ -17,6 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { ConsolePageActions } from '../../components/console/ConsolePageContainer';
|
||||
import React, {
|
||||
useCallback,
|
||||
useEffect,
|
||||
@@ -50,11 +51,9 @@ import {
|
||||
RefreshCw,
|
||||
Scale,
|
||||
ShieldCheck,
|
||||
Sparkles,
|
||||
} from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { API, isRoot, showError } from '../../helpers';
|
||||
import PageBackground from '../../components/common/PageBackground';
|
||||
import './expert-platform.css';
|
||||
|
||||
const { Text } = Typography;
|
||||
@@ -1257,63 +1256,28 @@ const ExpertPlatform = () => {
|
||||
);
|
||||
|
||||
return (
|
||||
<main className='expert-platform-page'>
|
||||
<PageBackground variant='subtle' />
|
||||
<section className='expert-platform-page'>
|
||||
<div className='expert-platform-shell'>
|
||||
<header className='expert-hero'>
|
||||
<div className='expert-hero-copy'>
|
||||
<div className='expert-eyebrow'>
|
||||
<Sparkles size={15} />
|
||||
<span>{t('云端大脑 · 平台能力供给')}</span>
|
||||
</div>
|
||||
<h1>{t('平台专家与模型能力')}</h1>
|
||||
<p>
|
||||
{t(
|
||||
'专家版本不可变:任何改动都以新版本发布,发布后全平台企业立即可用。',
|
||||
)}
|
||||
</p>
|
||||
<div className='expert-flow' aria-label={t('三步闭环')}>
|
||||
<span className='expert-flow-step'>
|
||||
<b>1</b>
|
||||
{t('登记模型能力')}
|
||||
</span>
|
||||
<span className='expert-flow-arrow' aria-hidden='true'>
|
||||
→
|
||||
</span>
|
||||
<span className='expert-flow-step'>
|
||||
<b>2</b>
|
||||
{t('配置专家')}
|
||||
</span>
|
||||
<span className='expert-flow-arrow' aria-hidden='true'>
|
||||
→
|
||||
</span>
|
||||
<span className='expert-flow-step'>
|
||||
<b>3</b>
|
||||
{t('发布给全平台使用')}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div className='expert-hero-actions'>
|
||||
<Button
|
||||
icon={<RefreshCw size={16} />}
|
||||
loading={loading}
|
||||
onClick={() => void load()}
|
||||
>
|
||||
{t('刷新')}
|
||||
</Button>
|
||||
<Button icon={<Cpu size={16} />} onClick={() => openCapability()}>
|
||||
{t('登记模型能力')}
|
||||
</Button>
|
||||
<Button
|
||||
theme='solid'
|
||||
type='primary'
|
||||
icon={<Plus size={16} />}
|
||||
onClick={openCreate}
|
||||
>
|
||||
{t('创建专家')}
|
||||
</Button>
|
||||
</div>
|
||||
</header>
|
||||
<ConsolePageActions>
|
||||
<Button
|
||||
icon={<RefreshCw size={16} />}
|
||||
loading={loading}
|
||||
onClick={() => void load()}
|
||||
>
|
||||
{t('刷新')}
|
||||
</Button>
|
||||
<Button icon={<Cpu size={16} />} onClick={() => openCapability()}>
|
||||
{t('登记模型能力')}
|
||||
</Button>
|
||||
<Button
|
||||
theme='solid'
|
||||
type='primary'
|
||||
icon={<Plus size={16} />}
|
||||
onClick={openCreate}
|
||||
>
|
||||
{t('创建专家')}
|
||||
</Button>
|
||||
</ConsolePageActions>
|
||||
|
||||
{loadError !== '' && (
|
||||
<Banner
|
||||
@@ -1657,7 +1621,7 @@ const ExpertPlatform = () => {
|
||||
<Text
|
||||
className='expert-card-key'
|
||||
size='small'
|
||||
copyable={{ content: item.workload_id }}
|
||||
copyable={{ text: item.workload_id }}
|
||||
>
|
||||
{item.workload_id}
|
||||
</Text>
|
||||
@@ -1764,7 +1728,7 @@ const ExpertPlatform = () => {
|
||||
{(topic.dead_letters || []).map((item) => (
|
||||
<div className='expert-dead-row' key={item.id}>
|
||||
<div className='expert-dead-copy'>
|
||||
<Text size='small' copyable={{ content: item.key }}>
|
||||
<Text size='small' copyable={{ text: item.key }}>
|
||||
{item.key}
|
||||
</Text>
|
||||
<p>{item.error_message || t('未知投递错误')}</p>
|
||||
@@ -2657,7 +2621,7 @@ const ExpertPlatform = () => {
|
||||
/>
|
||||
</div>
|
||||
</Modal>
|
||||
</main>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user