feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等

This commit is contained in:
zhanjunhao
2026-11-10 17:27:36 +08:00
parent 23824dad32
commit 425077f94b
195 changed files with 3546 additions and 1984 deletions
+37 -21
View File
@@ -16,6 +16,17 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import {
RefreshCw as ActionRefreshCw,
Plus as ActionPlus,
BookOpenText as ActionBookOpenText,
UploadCloud as ActionUploadCloud,
Settings2 as ActionSettings2,
ClipboardCopy as ActionClipboardCopy,
CheckCircle2 as ActionCheckCircle2,
Building2 as ActionBuilding2,
Search as ActionSearch,
} from '@/components/common/icons/ActionIcons';
import React, {
useCallback,
useEffect,
@@ -38,11 +49,8 @@ import {
Toast,
} from '@/components/ui';
import {
BookOpenText,
Boxes,
Building2,
CheckCircle2,
ClipboardCopy,
Clock4,
Database,
FileText,
@@ -50,12 +58,7 @@ import {
HardDrive,
Link2,
Loader2,
Plus,
RefreshCw,
Search,
Settings2,
ShieldCheck,
UploadCloud,
XCircle,
} from 'lucide-react';
import { API } from '../../helpers/api';
@@ -1355,13 +1358,16 @@ const OrgKnowledge = ({ orgId, canAuditContent = false }) => {
</div>
<div className='knowledge-hero-actions'>
<PageGuideTrigger guide={guide} />
<Button icon={<RefreshCw size={16} />} onClick={() => fetchBases()}>
<Button
icon={<ActionRefreshCw size={16} />}
onClick={() => fetchBases()}
>
{t('刷新')}
</Button>
<Button
theme='solid'
type='primary'
icon={<Plus size={16} />}
icon={<ActionPlus size={16} />}
onClick={() => setCreateVisible(true)}
>
{t('新建知识库')}
@@ -1422,11 +1428,16 @@ const OrgKnowledge = ({ orgId, canAuditContent = false }) => {
<button
type='button'
key={base.id}
className={`knowledge-library-card ${active ? 'is-active' : ''}`}
className={[
'app-action-button',
`knowledge-library-card ${active ? 'is-active' : ''}`,
]
.filter(Boolean)
.join(' ')}
onClick={() => setSelectedId(base.id)}
>
<span className='knowledge-library-icon'>
<BookOpenText size={18} />
<ActionBookOpenText size={18} />
</span>
<span className='knowledge-library-copy'>
<strong>{base.name}</strong>
@@ -1482,7 +1493,7 @@ const OrgKnowledge = ({ orgId, canAuditContent = false }) => {
/>
<Button
theme='solid'
icon={<UploadCloud size={16} />}
icon={<ActionUploadCloud size={16} />}
loading={uploading}
disabled={hasActiveJobs}
title={
@@ -1495,7 +1506,7 @@ const OrgKnowledge = ({ orgId, canAuditContent = false }) => {
{t('上传文档')}
</Button>
<Button
icon={<RefreshCw size={16} />}
icon={<ActionRefreshCw size={16} />}
disabled={
hasActiveJobs || selected.base.current_generation_id <= 0
}
@@ -1511,7 +1522,7 @@ const OrgKnowledge = ({ orgId, canAuditContent = false }) => {
{t('重建索引')}
</Button>
<Button
icon={<Settings2 size={16} />}
icon={<ActionSettings2 size={16} />}
title={t('编辑名称、可见范围与启用状态')}
onClick={openEditBase}
>
@@ -1580,7 +1591,7 @@ const OrgKnowledge = ({ orgId, canAuditContent = false }) => {
<Button
size='small'
theme='borderless'
icon={<ClipboardCopy size={14} />}
icon={<ActionClipboardCopy size={14} />}
onClick={() =>
copyJobDiagnostics(t('重建索引任务'), reindexJob, {})
}
@@ -1737,7 +1748,7 @@ const OrgKnowledge = ({ orgId, canAuditContent = false }) => {
<Button
size='small'
theme='borderless'
icon={<ClipboardCopy size={14} />}
icon={<ActionClipboardCopy size={14} />}
title={t('复制任务 ID、阶段与错误详情')}
onClick={() =>
copyJobDiagnostics(
@@ -1799,15 +1810,20 @@ const OrgKnowledge = ({ orgId, canAuditContent = false }) => {
return (
<button
type='button'
className={`knowledge-expert ${bound ? 'is-bound' : ''}`}
className={[
'app-action-button',
`knowledge-expert ${bound ? 'is-bound' : ''}`,
]
.filter(Boolean)
.join(' ')}
key={expert.id}
onClick={() => toggleExpert(expert.id, bound)}
>
<span>
{bound ? (
<CheckCircle2 size={17} />
<ActionCheckCircle2 size={17} />
) : (
<Building2 size={17} />
<ActionBuilding2 size={17} />
)}
</span>
<span>
@@ -1896,7 +1912,7 @@ const OrgKnowledge = ({ orgId, canAuditContent = false }) => {
)}
<Button
theme='solid'
icon={<Search size={16} />}
icon={<ActionSearch size={16} />}
loading={searching}
disabled={!searchQuery.trim()}
onClick={runSearch}