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, useRef, useState } from 'react';
|
||||
import {
|
||||
Button,
|
||||
@@ -48,7 +49,7 @@ import {
|
||||
} from '../../components/skill';
|
||||
import './skill-platform.css';
|
||||
|
||||
const { Title, Text, Paragraph } = Typography;
|
||||
const { Text, Paragraph } = Typography;
|
||||
|
||||
const IMPORT_TERMINAL = ['succeeded', 'completed_with_errors', 'failed'];
|
||||
|
||||
@@ -599,42 +600,32 @@ const SkillPlatform = () => {
|
||||
};
|
||||
|
||||
return (
|
||||
<main className='skill-platform-page'>
|
||||
<header className='skill-platform-hero'>
|
||||
<div>
|
||||
<Title heading={2}>{t('平台 Skill 中心')}</Title>
|
||||
<Paragraph>
|
||||
{t(
|
||||
'从固定来源快照到不可变发布版本,让许可证、安全和人工审核都有证据。',
|
||||
)}
|
||||
</Paragraph>
|
||||
</div>
|
||||
<div className='skill-platform-actions'>
|
||||
<Button
|
||||
onClick={() => window.location.assign('/console/expert-platform')}
|
||||
>
|
||||
{t('专家与模型能力')}
|
||||
</Button>
|
||||
<Button icon={<IconRefresh />} onClick={loadSkills}>
|
||||
{t('刷新')}
|
||||
</Button>
|
||||
<Button
|
||||
loading={importingBundled}
|
||||
disabled={pendingImportIds.length > 0}
|
||||
onClick={importBundledPacks}
|
||||
>
|
||||
{t('一键导入内置技能包')}
|
||||
</Button>
|
||||
<Button
|
||||
theme='solid'
|
||||
type='primary'
|
||||
icon={<IconPlus />}
|
||||
onClick={() => setImportVisible(true)}
|
||||
>
|
||||
{t('导入快照')}
|
||||
</Button>
|
||||
</div>
|
||||
</header>
|
||||
<section className='skill-platform-page'>
|
||||
<ConsolePageActions>
|
||||
<Button
|
||||
onClick={() => window.location.assign('/console/expert-platform')}
|
||||
>
|
||||
{t('专家与模型能力')}
|
||||
</Button>
|
||||
<Button icon={<IconRefresh />} onClick={loadSkills}>
|
||||
{t('刷新')}
|
||||
</Button>
|
||||
<Button
|
||||
loading={importingBundled}
|
||||
disabled={pendingImportIds.length > 0}
|
||||
onClick={importBundledPacks}
|
||||
>
|
||||
{t('一键导入内置技能包')}
|
||||
</Button>
|
||||
<Button
|
||||
theme='solid'
|
||||
type='primary'
|
||||
icon={<IconPlus />}
|
||||
onClick={() => setImportVisible(true)}
|
||||
>
|
||||
{t('导入快照')}
|
||||
</Button>
|
||||
</ConsolePageActions>
|
||||
|
||||
<section className='skill-platform-metrics'>
|
||||
{Object.entries(metrics).map(([key, value]) => (
|
||||
@@ -725,7 +716,9 @@ const SkillPlatform = () => {
|
||||
String(option.value || '')
|
||||
.toLowerCase()
|
||||
.includes(needle) ||
|
||||
String(option.label || '').toLowerCase().includes(needle)
|
||||
String(option.label || '')
|
||||
.toLowerCase()
|
||||
.includes(needle)
|
||||
);
|
||||
}}
|
||||
showClear
|
||||
@@ -1114,9 +1107,7 @@ const SkillPlatform = () => {
|
||||
</Modal>
|
||||
|
||||
<Modal
|
||||
title={
|
||||
reviewDecision?.approved ? t('审核结论确认') : t('驳回原因')
|
||||
}
|
||||
title={reviewDecision?.approved ? t('审核结论确认') : t('驳回原因')}
|
||||
visible={!!reviewDecision}
|
||||
// 关闭动画期间 reviewDecision 已为 null,正文会闪成驳回分支——
|
||||
// 该弹窗内容轻量,直接关动画(R29 发现项)。
|
||||
@@ -1344,7 +1335,7 @@ const SkillPlatform = () => {
|
||||
)}
|
||||
</div>
|
||||
</Modal>
|
||||
</main>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user