feat: 1.统一右侧抽屉关闭按钮布局 2.统一 UI 组件为 Ant Design 移除 radix-ui、floating-ui 组件 3. 修复 ESLint 文件格式错误的问题

This commit is contained in:
zhanjunhao
2026-11-10 14:08:10 +08:00
parent 5c0849e82b
commit 85214b308a
202 changed files with 29195 additions and 12732 deletions
@@ -23,18 +23,11 @@ For commercial licensing, please contact support@quantumnous.com
.dept-flow-cinema {
--dfc-glow: color-mix(in srgb, var(--ui-color-primary) 16%, transparent);
--dfc-glow-soft: color-mix(
in srgb,
var(--ui-color-primary) 9%,
transparent
);
--dfc-glow-soft: color-mix(in srgb, var(--ui-color-primary) 9%, transparent);
/* 不支持 color-mix 的旧内核退化为纯渐变底 */
background: linear-gradient(180deg, #f7f9fd 0%, #edf1f8 100%);
background: radial-gradient(
1100px 520px at 50% -8%,
var(--dfc-glow),
transparent 62%
),
background:
radial-gradient(1100px 520px at 50% -8%, var(--dfc-glow), transparent 62%),
radial-gradient(
900px 480px at 88% 110%,
var(--dfc-glow-soft),
@@ -45,7 +38,8 @@ For commercial licensing, please contact support@quantumnous.com
.dept-flow-cinema.dark {
background: linear-gradient(180deg, #0b1020 0%, #0d1329 55%, #090e1c 100%);
background: radial-gradient(
background:
radial-gradient(
1100px 520px at 50% -8%,
color-mix(in srgb, var(--ui-color-primary) 24%, transparent),
transparent 62%
@@ -44,7 +44,10 @@ const OrgPanel = ({
}) => {
const hasHeader = title || actions;
return (
<Card className={`org-panel ${className}`} styles={{ body: { padding: 24 } }}>
<Card
className={`org-panel ${className}`}
styles={{ body: { padding: 24 } }}
>
{hasHeader && (
<div className='flex items-start justify-between gap-3 flex-wrap border-b border-[var(--border-subtle)] px-5 py-3.5'>
<div className='flex items-center gap-2.5 min-w-0'>
@@ -82,9 +82,13 @@ const OrgScopedLimitButtons = ({
setModelModalVisible(true);
setLoadingModels(true);
try {
const res = await API.get('/api/org/models', { headers: getOrgHeaders(orgId) });
const res = await API.get('/api/org/models', {
headers: getOrgHeaders(orgId),
});
if (res.data.success) {
setOrgModels((res.data.data || []).map((m) => ({ label: m, value: m })));
setOrgModels(
(res.data.data || []).map((m) => ({ label: m, value: m })),
);
}
} catch {
/* ignore */
@@ -96,7 +100,9 @@ const OrgScopedLimitButtons = ({
setSelectedGroups(parseGroups(record?.groups));
setGroupsModalVisible(true);
try {
const res = await API.get('/api/org/info', { headers: getOrgHeaders(orgId) });
const res = await API.get('/api/org/info', {
headers: getOrgHeaders(orgId),
});
if (res.data.success) {
const org = res.data.data?.organization || {};
let groups = [];
@@ -122,7 +128,10 @@ const OrgScopedLimitButtons = ({
try {
const res = await API.put(
`${apiBase}/${record.id}/models`,
{ model_limits_enabled: enabled, model_limits: selectedModels.join(',') },
{
model_limits_enabled: enabled,
model_limits: selectedModels.join(','),
},
{ headers: getOrgHeaders(orgId) },
);
if (res.data.success) {
@@ -161,7 +170,12 @@ const OrgScopedLimitButtons = ({
return (
<>
<Tooltip content={t('设置该{{scope}}成员默认可用的模型范围(与成员/项目/部门限制取交集)', { scope: t(scopeLabel) })}>
<Tooltip
content={t(
'设置该{{scope}}成员默认可用的模型范围(与成员/项目/部门限制取交集)',
{ scope: t(scopeLabel) },
)}
>
<Button
{...(variant === 'link'
? { type: 'link' }
@@ -176,7 +190,12 @@ const OrgScopedLimitButtons = ({
{t('模型')}
</Button>
</Tooltip>
<Tooltip content={t('设置该{{scope}}成员默认可调用的分组(与成员/项目/部门限制取交集)', { scope: t(scopeLabel) })}>
<Tooltip
content={t(
'设置该{{scope}}成员默认可调用的分组(与成员/项目/部门限制取交集)',
{ scope: t(scopeLabel) },
)}
>
<Button
{...(variant === 'link'
? { type: 'link' }
@@ -42,9 +42,7 @@ const OrgStateBlock = ({
}) => {
if (loading) {
return (
<div
className={`flex items-center justify-center py-16 ${className}`}
>
<div className={`flex items-center justify-center py-16 ${className}`}>
<Spin size='large' />
</div>
);