feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面
This commit is contained in:
@@ -30,10 +30,11 @@ import {
|
||||
Tag,
|
||||
Toast,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { API } from '../../helpers';
|
||||
import './org-experts.css';
|
||||
import OrgBreadcrumb from './components/OrgBreadcrumb';
|
||||
|
||||
const { Title, Paragraph, Text } = Typography;
|
||||
|
||||
@@ -155,6 +156,7 @@ const OrgAgentAudit = ({ orgId, canAuditContent, canManagePolicy }) => {
|
||||
<main className='org-expert-page'>
|
||||
<header className='org-audit-hero'>
|
||||
<div>
|
||||
<OrgBreadcrumb />
|
||||
<Title heading={3}>{t('Agent 任务审计')}</Title>
|
||||
<Paragraph>
|
||||
{t(
|
||||
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
Tooltip,
|
||||
Tabs,
|
||||
TabPane,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { API } from '../../helpers/api';
|
||||
import { useOrgAuditLogs } from '../../hooks/org/useOrgData';
|
||||
import OrgPageHeader from './components/OrgPageHeader';
|
||||
@@ -403,7 +403,7 @@ const OrgAudit = ({ orgId }) => {
|
||||
];
|
||||
|
||||
return (
|
||||
<div className='p-4 sm:p-6 lg:p-8'>
|
||||
<div className='uc-page'>
|
||||
<OrgPageHeader
|
||||
title={t('审计日志')}
|
||||
subtitle={t('查看企业操作记录')}
|
||||
|
||||
@@ -27,7 +27,7 @@ import {
|
||||
Progress,
|
||||
Banner,
|
||||
Popconfirm,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { RefreshCw, Plus, Pencil, Trash2 } from 'lucide-react';
|
||||
import { API } from '../../helpers/api';
|
||||
import { showError } from '../../helpers';
|
||||
@@ -316,7 +316,7 @@ const OrgBudgets = ({ orgId }) => {
|
||||
<Progress
|
||||
percent={pct}
|
||||
size='small'
|
||||
stroke={pct >= 90 ? 'var(--semi-color-danger)' : undefined}
|
||||
stroke={pct >= 90 ? 'var(--ui-color-danger)' : undefined}
|
||||
/>
|
||||
<span className='text-xs text-gray-500'>
|
||||
{renderQuota(r.used_in_cycle, 2)}
|
||||
@@ -389,7 +389,7 @@ const OrgBudgets = ({ orgId }) => {
|
||||
];
|
||||
|
||||
return (
|
||||
<div className='p-4 sm:p-6 lg:p-8'>
|
||||
<div className='uc-page'>
|
||||
<OrgPageHeader
|
||||
title={t('预算中心')}
|
||||
subtitle={t('部门 / 项目 / 成员的额度上限')}
|
||||
|
||||
@@ -30,7 +30,7 @@ import {
|
||||
Tag,
|
||||
TextArea,
|
||||
Toast,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { Cable, KeyRound, Plus, RefreshCw, ShieldCheck } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { API } from '../../helpers/api';
|
||||
@@ -41,6 +41,7 @@ import {
|
||||
PageGuideTrigger,
|
||||
} from '../../components/common/PageGuide';
|
||||
import './org-connectors.css';
|
||||
import OrgBreadcrumb from './components/OrgBreadcrumb';
|
||||
|
||||
const headersFor = (orgId) => ({ 'X-Org-Id': String(orgId) });
|
||||
const blankConnector = {
|
||||
@@ -352,6 +353,7 @@ const OrgConnectors = ({ orgId }) => {
|
||||
<main className='org-connector-page'>
|
||||
<header className='org-connector-hero'>
|
||||
<div>
|
||||
<OrgBreadcrumb />
|
||||
<h1>{t('业务系统连接器')}</h1>
|
||||
<p>{t('凭据、授权范围、写操作确认和调用审计在同一控制面闭环。')}</p>
|
||||
</div>
|
||||
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
AlertTriangle,
|
||||
RefreshCw,
|
||||
} from 'lucide-react';
|
||||
import { Input, Button, Toast } from '@douyinfe/semi-ui';
|
||||
import { Input, Button, Toast } from '@/components/ui';
|
||||
import { API } from '../../helpers/api';
|
||||
import { showError } from '../../helpers';
|
||||
import { UserContext } from '../../context/User';
|
||||
|
||||
@@ -55,7 +55,7 @@ import {
|
||||
Input,
|
||||
Spin,
|
||||
Tooltip,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { useOrgDashboard, useOrgQuota } from '../../hooks/org/useOrgData';
|
||||
import { renderQuota } from '../../helpers/render';
|
||||
import { API, showError } from '../../helpers';
|
||||
@@ -82,10 +82,10 @@ const safeQuotaNumber = (value) => Math.max(0, Number(value || 0));
|
||||
// 统一走这一套:>80% 危险、>60% 警告、其余正常。
|
||||
const usageStrokeColor = (percent) =>
|
||||
percent > 80
|
||||
? 'var(--semi-color-danger)'
|
||||
? 'var(--ui-color-danger)'
|
||||
: percent > 60
|
||||
? 'var(--semi-color-warning)'
|
||||
: 'var(--semi-color-success)';
|
||||
? 'var(--ui-color-warning)'
|
||||
: 'var(--ui-color-success)';
|
||||
|
||||
const quotaPeriodLimitLabel = (t, period) => {
|
||||
switch (period) {
|
||||
@@ -267,8 +267,8 @@ const MemberUsageSheet = ({ visible, onClose, member, orgId, t }) => {
|
||||
onCancel={onClose}
|
||||
placement='right'
|
||||
width={640}
|
||||
bodyStyle={{ background: 'var(--semi-color-bg-0)' }}
|
||||
style={{ background: 'var(--semi-color-bg-0)' }}
|
||||
bodyStyle={{ background: 'var(--ui-color-bg-0)' }}
|
||||
style={{ background: 'var(--ui-color-bg-0)' }}
|
||||
mask={true}
|
||||
maskClosable={true}
|
||||
maskStyle={{
|
||||
@@ -616,7 +616,7 @@ const OrgDashboard = ({ orgId, orgRole, featureFlags }) => {
|
||||
const unattributedQuota = Math.max(0, poolUsedQuota - memberUsedSum);
|
||||
|
||||
return (
|
||||
<div className='p-4 sm:p-6 lg:p-8 space-y-6'>
|
||||
<div className='uc-page space-y-6'>
|
||||
{/* Header */}
|
||||
<OrgPageHeader
|
||||
icon={BarChart2}
|
||||
@@ -632,7 +632,6 @@ const OrgDashboard = ({ orgId, orgRole, featureFlags }) => {
|
||||
theme='solid'
|
||||
type='primary'
|
||||
onClick={() => navigate('/org/recharge')}
|
||||
className='!bg-gradient-to-r !from-emerald-500 !to-emerald-600 !border-0 !shadow-md !shadow-emerald-500/30'
|
||||
>
|
||||
{t('立即充值')}
|
||||
</Button>
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Tabs, TabPane } from '@douyinfe/semi-ui';
|
||||
import { Tabs, TabPane } from '@/components/ui';
|
||||
import OrgDsPolicy from './datasecurity/OrgDsPolicy';
|
||||
import OrgDsRules from './datasecurity/OrgDsRules';
|
||||
import OrgDsTest from './datasecurity/OrgDsTest';
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Banner, Button, Form, Toast, Empty, Spin } from '@douyinfe/semi-ui';
|
||||
import { Banner, Button, Form, Toast, Empty, Spin } from '@/components/ui';
|
||||
import { RefreshCw, Plus, Network } from 'lucide-react';
|
||||
import { API } from '../../helpers/api';
|
||||
import { showError } from '../../helpers';
|
||||
@@ -239,7 +239,7 @@ const OrgDepartments = ({ orgId }) => {
|
||||
);
|
||||
|
||||
return (
|
||||
<div className='p-4 sm:p-6 lg:p-8'>
|
||||
<div className='uc-page'>
|
||||
<OrgPageHeader
|
||||
icon={Network}
|
||||
title={t('部门管理')}
|
||||
|
||||
@@ -35,7 +35,7 @@ import {
|
||||
Empty,
|
||||
Spin,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
RefreshCw,
|
||||
Users,
|
||||
@@ -307,7 +307,7 @@ const OrgDeptManage = ({ orgId, featureFlags }) => {
|
||||
];
|
||||
|
||||
return (
|
||||
<div className='p-4 sm:p-6 lg:p-8'>
|
||||
<div className='uc-page'>
|
||||
<OrgPageHeader
|
||||
title={t('部门管理')}
|
||||
subtitle={t('管理本部门成员额度、用量与审批')}
|
||||
@@ -379,7 +379,7 @@ const OrgDeptManage = ({ orgId, featureFlags }) => {
|
||||
) : (
|
||||
<>
|
||||
<div className='flex gap-4 mb-4'>
|
||||
<div className='px-4 py-3 rounded-lg bg-[var(--semi-color-fill-0)]'>
|
||||
<div className='px-4 py-3 rounded-lg bg-[var(--ui-color-fill-0)]'>
|
||||
<div className='text-xs text-gray-500'>
|
||||
{t('累计消耗')}
|
||||
</div>
|
||||
@@ -387,7 +387,7 @@ const OrgDeptManage = ({ orgId, featureFlags }) => {
|
||||
{renderQuota(stat?.quota || 0, 2)}
|
||||
</div>
|
||||
</div>
|
||||
<div className='px-4 py-3 rounded-lg bg-[var(--semi-color-fill-0)]'>
|
||||
<div className='px-4 py-3 rounded-lg bg-[var(--ui-color-fill-0)]'>
|
||||
<div className='text-xs text-gray-500'>{t('请求数')}</div>
|
||||
<div className='text-lg font-semibold'>
|
||||
{stat?.rpm || 0}
|
||||
@@ -424,7 +424,7 @@ const OrgDeptManage = ({ orgId, featureFlags }) => {
|
||||
style={{ padding: 40 }}
|
||||
/>
|
||||
) : (
|
||||
<div className='flex flex-col divide-y divide-[var(--semi-color-border)]'>
|
||||
<div className='flex flex-col divide-y divide-[var(--ui-color-border)]'>
|
||||
{requests.map((r) => (
|
||||
<div
|
||||
key={r.id}
|
||||
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
TextArea,
|
||||
Toast,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
Activity,
|
||||
FlaskConical,
|
||||
@@ -47,6 +47,7 @@ import {
|
||||
} from '../../components/common/PageGuide';
|
||||
import OrgPanel from './components/OrgPanel';
|
||||
import './org-effectiveness.css';
|
||||
import OrgBreadcrumb from './components/OrgBreadcrumb';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
|
||||
@@ -344,6 +345,7 @@ const OrgEffectiveness = ({ orgId, canManagePolicy, canManageSkills }) => {
|
||||
<div className='org-effect-page'>
|
||||
<header className='org-effect-hero'>
|
||||
<div>
|
||||
<OrgBreadcrumb />
|
||||
<Title heading={2}>{t('效能分析')}</Title>
|
||||
<Text type='tertiary'>
|
||||
{t('回答谁在用、节省多少时间、成本是否对账、质量与安全是否改善。')}
|
||||
|
||||
@@ -30,7 +30,7 @@ import {
|
||||
TextArea,
|
||||
Toast,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { API } from '../../helpers';
|
||||
import OrgPanel from './components/OrgPanel';
|
||||
@@ -41,6 +41,7 @@ import {
|
||||
PageGuideTrigger,
|
||||
} from '../../components/common/PageGuide';
|
||||
import './org-experts.css';
|
||||
import OrgBreadcrumb from './components/OrgBreadcrumb';
|
||||
|
||||
const { Title, Paragraph, Text } = Typography;
|
||||
|
||||
@@ -336,6 +337,7 @@ const OrgExperts = ({ orgId }) => {
|
||||
<main className='org-expert-page'>
|
||||
<header className='org-expert-hero'>
|
||||
<div>
|
||||
<OrgBreadcrumb />
|
||||
<Title heading={3}>{t('企业专家工坊')}</Title>
|
||||
<Paragraph>
|
||||
{t(
|
||||
|
||||
@@ -36,7 +36,7 @@ import {
|
||||
Tag,
|
||||
TextArea,
|
||||
Toast,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
BookOpenText,
|
||||
Boxes,
|
||||
@@ -67,6 +67,7 @@ import {
|
||||
PageGuideTrigger,
|
||||
} from '../../components/common/PageGuide';
|
||||
import './org-knowledge.css';
|
||||
import OrgBreadcrumb from './components/OrgBreadcrumb';
|
||||
|
||||
const headersFor = (orgId) => ({ 'X-Org-Id': String(orgId) });
|
||||
// Kept in sync with the backend reindex gate: pending_reconciliation is an
|
||||
@@ -1341,6 +1342,7 @@ const OrgKnowledge = ({ orgId, canAuditContent = false }) => {
|
||||
<main className='knowledge-page'>
|
||||
<header className='knowledge-hero'>
|
||||
<div className='knowledge-hero-copy'>
|
||||
<OrgBreadcrumb />
|
||||
<div className='knowledge-eyebrow'>
|
||||
<ShieldCheck size={15} />
|
||||
<span>{t('企业可信知识层')}</span>
|
||||
|
||||
@@ -38,7 +38,7 @@ import {
|
||||
Checkbox,
|
||||
Radio,
|
||||
RadioGroup,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
useOrgMemberLogs,
|
||||
useOrgLogsStat,
|
||||
@@ -771,7 +771,7 @@ const OrgLogs = ({ orgId, orgRole, isDeptManager = false }) => {
|
||||
);
|
||||
|
||||
return (
|
||||
<div className='p-4 sm:p-6 lg:p-8'>
|
||||
<div className='uc-page'>
|
||||
{/* 标题栏 */}
|
||||
<OrgPageHeader
|
||||
title={canViewTeamUsage ? t('消耗明细') : t('我的消耗明细')}
|
||||
@@ -1062,7 +1062,7 @@ const OrgLogs = ({ orgId, orgRole, isDeptManager = false }) => {
|
||||
</div>
|
||||
<div
|
||||
className='flex flex-wrap rounded-lg p-3'
|
||||
style={{ border: '1px solid var(--semi-color-border)' }}
|
||||
style={{ border: '1px solid var(--ui-color-border)' }}
|
||||
>
|
||||
{EXPORT_FIELDS.map((f) => (
|
||||
<div key={f.id} className='w-1/2 mb-2'>
|
||||
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
Banner,
|
||||
Typography,
|
||||
Tooltip,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
RefreshCw,
|
||||
UserPlus,
|
||||
@@ -479,7 +479,7 @@ const OrgMemberAccounts = ({
|
||||
);
|
||||
|
||||
return (
|
||||
<div className={embedded ? 'space-y-4' : 'p-4 sm:p-6 lg:p-8'}>
|
||||
<div className={embedded ? 'space-y-4' : 'uc-page'}>
|
||||
{embedded ? (
|
||||
<div className='flex items-start justify-between gap-3 flex-wrap rounded-2xl border border-dashed border-brand/25 bg-brand/5 p-4 dark:border-brand/25 dark:bg-brand/10'>
|
||||
<div className='flex items-start gap-3'>
|
||||
|
||||
@@ -41,7 +41,7 @@ import {
|
||||
Tabs,
|
||||
TabPane,
|
||||
Switch,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { useOrgMembers } from '../../hooks/org/useOrgMembers';
|
||||
import { API, selectFilter, getUserIdFromLocalStorage } from '../../helpers';
|
||||
import { renderQuota } from '../../helpers/render';
|
||||
@@ -797,7 +797,7 @@ const OrgMembers = ({
|
||||
);
|
||||
|
||||
return (
|
||||
<div className='p-4 sm:p-6 lg:p-8'>
|
||||
<div className='uc-page'>
|
||||
<OrgPageHeader
|
||||
icon={Users}
|
||||
title={t('员工管理')}
|
||||
|
||||
@@ -17,7 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import React, { useEffect, useMemo, useState } from 'react';
|
||||
import { Button, Empty, Tag } from '@douyinfe/semi-ui';
|
||||
import { Button, Empty, Tag } from '@/components/ui';
|
||||
import { Cable, LockKeyhole } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { API } from '../../helpers/api';
|
||||
@@ -27,6 +27,7 @@ import {
|
||||
PageGuideTrigger,
|
||||
} from '../../components/common/PageGuide';
|
||||
import './org-connectors.css';
|
||||
import OrgBreadcrumb from './components/OrgBreadcrumb';
|
||||
|
||||
const OrgMyConnectors = ({ orgId }) => {
|
||||
const { t } = useTranslation();
|
||||
@@ -111,6 +112,7 @@ const OrgMyConnectors = ({ orgId }) => {
|
||||
<main className='org-connector-page'>
|
||||
<header className='org-connector-hero'>
|
||||
<div>
|
||||
<OrgBreadcrumb current={t('我的业务系统授权')} />
|
||||
<h1>{t('我的业务系统授权')}</h1>
|
||||
<p>{t('查看专家在任务中可代表你调用的业务系统、方法和确认策略。')}</p>
|
||||
</div>
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import { Switch, Toast, Typography } from '@douyinfe/semi-ui';
|
||||
import { Switch, Toast, Typography } from '@/components/ui';
|
||||
import { LockKeyhole } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { API } from '../../helpers';
|
||||
@@ -33,6 +33,7 @@ import {
|
||||
PageGuideTrigger,
|
||||
} from '../../components/common/PageGuide';
|
||||
import './org-skills.css';
|
||||
import OrgBreadcrumb from './components/OrgBreadcrumb';
|
||||
|
||||
const { Title, Paragraph, Text } = Typography;
|
||||
|
||||
@@ -116,6 +117,7 @@ const OrgMySkills = ({ orgId }) => {
|
||||
<main className='org-skills-page'>
|
||||
<header className='org-skills-hero'>
|
||||
<div>
|
||||
<OrgBreadcrumb current={t('我的技能')} />
|
||||
<Title heading={3}>{t('我的技能')}</Title>
|
||||
<Paragraph>
|
||||
{t(
|
||||
|
||||
@@ -25,7 +25,7 @@ import {
|
||||
Tabs,
|
||||
TabPane,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
Bell,
|
||||
Building2,
|
||||
@@ -319,7 +319,7 @@ const OrgPersonalSettings = ({ orgId }) => {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='p-4 sm:p-6 lg:p-8'>
|
||||
<div className='uc-page'>
|
||||
<OrgPageHeader
|
||||
icon={UserCog}
|
||||
title={t('个人设置')}
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
TextArea,
|
||||
Toast,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { Code2, FileCheck2, OctagonX, RotateCcw } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { API, getUserIdFromLocalStorage } from '../../helpers';
|
||||
@@ -40,6 +40,7 @@ import {
|
||||
} from '../../components/common/PageGuide';
|
||||
import OrgPanel from './components/OrgPanel';
|
||||
import './org-skills.css';
|
||||
import OrgBreadcrumb from './components/OrgBreadcrumb';
|
||||
|
||||
const { Title, Text, Paragraph } = Typography;
|
||||
const blankSkill = {
|
||||
@@ -398,6 +399,7 @@ const OrgPrivateSkills = ({ orgId }) => {
|
||||
<div className='org-skills-page'>
|
||||
<header className='org-skills-hero'>
|
||||
<div>
|
||||
<OrgBreadcrumb current={t('企业自研 Skill')} />
|
||||
<Title heading={3}>{t('企业自研 Skill')}</Title>
|
||||
<Text type='tertiary'>
|
||||
{t(
|
||||
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
Popconfirm,
|
||||
Empty,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { RefreshCw, Plus, Pencil } from 'lucide-react';
|
||||
import { API } from '../../helpers/api';
|
||||
import { showError } from '../../helpers';
|
||||
@@ -212,7 +212,7 @@ const OrgProjectManage = ({ orgId }) => {
|
||||
];
|
||||
|
||||
return (
|
||||
<div className='p-4 sm:p-6 lg:p-8'>
|
||||
<div className='uc-page'>
|
||||
<OrgPageHeader
|
||||
title={t('我的项目')}
|
||||
subtitle={t('管理您负责的项目成员')}
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
Popconfirm,
|
||||
Tag,
|
||||
Select,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { RefreshCw, Plus, Users } from 'lucide-react';
|
||||
import { API } from '../../helpers/api';
|
||||
import { showError, collectPagedItems } from '../../helpers';
|
||||
@@ -349,7 +349,7 @@ const OrgProjects = ({ orgId }) => {
|
||||
];
|
||||
|
||||
return (
|
||||
<div className='p-4 sm:p-6 lg:p-8'>
|
||||
<div className='uc-page'>
|
||||
<OrgPageHeader
|
||||
title={t('项目管理')}
|
||||
subtitle={t('项目成员与项目预算')}
|
||||
|
||||
@@ -35,7 +35,7 @@ import {
|
||||
Tag,
|
||||
Tooltip,
|
||||
DatePicker,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { copy, getQuotaPerUnit, showError, showSuccess } from '../../helpers';
|
||||
import { API } from '../../helpers/api';
|
||||
import { useOrgPromptRecords } from '../../hooks/org/useOrgData';
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Typography } from '@douyinfe/semi-ui';
|
||||
import { Typography } from '@/components/ui';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import {
|
||||
usePageGuide,
|
||||
@@ -27,6 +27,7 @@ import {
|
||||
} from '../../components/common/PageGuide';
|
||||
import QualityDashboard from '../../components/quality/QualityDashboard';
|
||||
import './org-quality.css';
|
||||
import OrgBreadcrumb from './components/OrgBreadcrumb';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
|
||||
@@ -78,6 +79,7 @@ const OrgQuality = ({ orgId }) => {
|
||||
<div className='org-quality-page'>
|
||||
<header className='org-quality-hero'>
|
||||
<div className='min-w-0'>
|
||||
<OrgBreadcrumb />
|
||||
<div className='org-quality-eyebrow'>{t('调用质量')}</div>
|
||||
<Title heading={3}>{t('企业调用质量')}</Title>
|
||||
<Text type='tertiary'>
|
||||
|
||||
@@ -27,7 +27,7 @@ import {
|
||||
Tag,
|
||||
InputNumber,
|
||||
Select,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
CreditCard,
|
||||
Wallet,
|
||||
@@ -516,7 +516,7 @@ const OrgRecharge = ({ orgId }) => {
|
||||
enableWechatTopUp || enableAlipayTopUp || enablePayPalTopUp;
|
||||
|
||||
return (
|
||||
<div className='p-4 sm:p-6 lg:p-8 space-y-6'>
|
||||
<div className='uc-page space-y-6'>
|
||||
<OrgPageHeader title={t('企业充值')} subtitle={t('为企业账户充值额度')} />
|
||||
|
||||
{/* 签名时刻:余额展示区(本页唯一的品牌渐变区,渐变走 --brand-* token 随预设切换) */}
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
Input,
|
||||
Empty,
|
||||
Popconfirm,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { RefreshCw, Check, X } from 'lucide-react';
|
||||
import { API } from '../../helpers/api';
|
||||
import { showError, collectPagedItems } from '../../helpers';
|
||||
@@ -234,7 +234,7 @@ const OrgRequests = ({ orgId, orgRole, featureFlags }) => {
|
||||
const filters = ['pending', 'approved', 'rejected', ''];
|
||||
|
||||
return (
|
||||
<div className='p-4 sm:p-6 lg:p-8'>
|
||||
<div className='uc-page'>
|
||||
<OrgPageHeader
|
||||
title={isApprover ? t('审批中心') : t('我的申请')}
|
||||
subtitle={t('提额申请与审批')}
|
||||
|
||||
@@ -46,7 +46,7 @@ import {
|
||||
Tabs,
|
||||
TabPane,
|
||||
Switch,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import NotifyChannelForm from '../../components/settings/NotifyChannelForm';
|
||||
import { API } from '../../helpers/api';
|
||||
import {
|
||||
@@ -509,7 +509,7 @@ const OrgSettings = ({ orgId, orgRole }) => {
|
||||
const orgLoginLink = `${getServerAddress()}/org/${orgInfo.code}/login`;
|
||||
|
||||
return (
|
||||
<div className='p-4 sm:p-6 lg:p-8'>
|
||||
<div className='uc-page'>
|
||||
<OrgPageHeader
|
||||
title={t('企业设置')}
|
||||
subtitle={t(isAdmin ? '配置企业数据安全策略' : '管理企业基本信息')}
|
||||
|
||||
@@ -541,7 +541,7 @@ const OrgSidebar = ({
|
||||
relative flex flex-col h-full transition-all duration-300 ease-out
|
||||
bg-[var(--surface-sidebar)]
|
||||
border-r border-[var(--border-subtle)]
|
||||
${collapsed ? 'w-[68px]' : 'w-[240px]'}
|
||||
${collapsed ? 'w-[64px]' : 'w-[216px]'}
|
||||
`}
|
||||
>
|
||||
{/* 标题区域 */}
|
||||
@@ -583,7 +583,7 @@ const OrgSidebar = ({
|
||||
}}
|
||||
placeholder={t('搜索菜单')}
|
||||
aria-label={t('搜索菜单')}
|
||||
className='h-8 w-full rounded-lg border border-transparent bg-[var(--semi-color-fill-0)] pl-8 pr-7 text-sm text-[var(--text-primary)] outline-none transition-colors duration-200 placeholder:text-gray-400 focus:border-brand/40 focus:bg-[var(--surface-card)] dark:placeholder:text-gray-500'
|
||||
className='h-8 w-full rounded-lg border border-transparent bg-[var(--ui-color-fill-0)] pl-8 pr-7 text-sm text-[var(--text-primary)] outline-none transition-colors duration-200 placeholder:text-gray-400 focus:border-brand/40 focus:bg-[var(--surface-card)] dark:placeholder:text-gray-500'
|
||||
/>
|
||||
{searchText && (
|
||||
<button
|
||||
@@ -634,7 +634,7 @@ const OrgSidebar = ({
|
||||
type='button'
|
||||
onClick={() => toggleGroup(group.key)}
|
||||
aria-expanded={!folded}
|
||||
className='mb-1 flex w-full select-none items-center gap-1.5 rounded-md px-2 py-1 text-[11px] font-semibold uppercase tracking-wider text-gray-400 transition-colors duration-200 hover:bg-[var(--semi-color-fill-0)] hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300'
|
||||
className='mb-1 flex w-full select-none items-center gap-1.5 rounded-md px-2 py-1 text-[11px] font-semibold uppercase tracking-wider text-gray-400 transition-colors duration-200 hover:bg-[var(--ui-color-fill-0)] hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300'
|
||||
>
|
||||
<span className='truncate'>{group.label}</span>
|
||||
<span className='ml-auto text-[10px] font-normal tabular-nums opacity-70'>
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
Table,
|
||||
Toast,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { API } from '../../helpers';
|
||||
import {
|
||||
@@ -43,6 +43,7 @@ import {
|
||||
} from '../../components/common/PageGuide';
|
||||
import OrgPanel from './components/OrgPanel';
|
||||
import './org-skills.css';
|
||||
import OrgBreadcrumb from './components/OrgBreadcrumb';
|
||||
|
||||
const { Title, Paragraph, Text } = Typography;
|
||||
|
||||
@@ -276,6 +277,7 @@ const OrgSkillAssignments = ({ orgId, orgRole = '' }) => {
|
||||
<main className='org-skills-page'>
|
||||
<header className='org-skills-hero'>
|
||||
<div>
|
||||
<OrgBreadcrumb />
|
||||
<Title heading={3}>{t('分发与锁定')}</Title>
|
||||
<Paragraph>
|
||||
{t(
|
||||
|
||||
@@ -37,7 +37,7 @@ import {
|
||||
TextArea,
|
||||
Toast,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { Search } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
@@ -57,6 +57,7 @@ import OrgPanel from './components/OrgPanel';
|
||||
import { StatusContext } from '../../context/Status';
|
||||
import { normalizeSidebarModulesAdmin } from '../../constants/sidebarModules';
|
||||
import './org-skills.css';
|
||||
import OrgBreadcrumb from './components/OrgBreadcrumb';
|
||||
|
||||
const { Title, Text, Paragraph } = Typography;
|
||||
|
||||
@@ -456,6 +457,7 @@ const OrgSkillLibrary = ({ orgId, orgRole, canAssignSkills = false }) => {
|
||||
<main className='org-skills-page'>
|
||||
<header className='org-skills-hero'>
|
||||
<div>
|
||||
<OrgBreadcrumb current={t('企业技能库')} />
|
||||
<Title heading={3}>{t('企业技能库')}</Title>
|
||||
<Paragraph>
|
||||
{t('控制启用状态、版本锁定、紧急停用和企业展示定制。')}
|
||||
|
||||
@@ -55,7 +55,7 @@ import {
|
||||
Select,
|
||||
Switch,
|
||||
TextArea,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { useOrgTokens } from '../../hooks/org/useOrgData';
|
||||
import {
|
||||
API,
|
||||
@@ -412,7 +412,7 @@ const OrgTokens = ({ orgId, orgRole }) => {
|
||||
];
|
||||
|
||||
return (
|
||||
<div className='p-4 sm:p-6 lg:p-8'>
|
||||
<div className='uc-page'>
|
||||
<OrgPageHeader
|
||||
title={t('令牌管理')}
|
||||
subtitle={isAdmin ? t('管理企业所有API令牌') : t('管理您创建的API令牌')}
|
||||
@@ -1511,8 +1511,8 @@ const ModelsSideSheet = ({ visible, onClose, token, orgId, t }) => {
|
||||
onCancel={onClose}
|
||||
placement='right'
|
||||
width={400}
|
||||
bodyStyle={{ background: 'var(--semi-color-bg-0)' }}
|
||||
style={{ background: 'var(--semi-color-bg-0)' }}
|
||||
bodyStyle={{ background: 'var(--ui-color-bg-0)' }}
|
||||
style={{ background: 'var(--ui-color-bg-0)' }}
|
||||
mask={true}
|
||||
maskClosable={true}
|
||||
maskStyle={{
|
||||
|
||||
@@ -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 React, { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import { Breadcrumb } from 'antd';
|
||||
import { timestamp2string } from '../../helpers/utils';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
@@ -29,7 +30,7 @@ import {
|
||||
Empty,
|
||||
Spin,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
Wallet,
|
||||
Key,
|
||||
@@ -128,7 +129,7 @@ const isFeatureEnabled = (flags, key) => {
|
||||
|
||||
// 用量趋势小块:窗口标题 + 消耗 + 请求数
|
||||
const UsageBlock = ({ t, title, data }) => (
|
||||
<div className='flex-1 min-w-[140px] rounded-lg border border-[var(--border-subtle)] bg-[var(--surface-card)] px-4 py-3'>
|
||||
<div className='org-workbench-usage-block'>
|
||||
<div className='text-xs font-medium text-gray-500 dark:text-gray-400 mb-1'>
|
||||
{title}
|
||||
</div>
|
||||
@@ -385,8 +386,11 @@ const OrgWorkbench = ({ orgId, orgRole, featureFlags }) => {
|
||||
summary?.member?.display_name || summary?.member?.username || '';
|
||||
|
||||
return (
|
||||
<div className='org-stagger p-4 sm:p-6 lg:p-8 space-y-5'>
|
||||
{/* 签名时刻:hero 问候区(每页至多一个签名渐变区,见方案 A+ 冲击力护栏) */}
|
||||
<div className='org-stagger org-workbench'>
|
||||
<Breadcrumb
|
||||
className='org-workbench-breadcrumb'
|
||||
items={[{ title: t('企业中心') }, { title: t('工作台') }]}
|
||||
/>
|
||||
<OrgHero
|
||||
eyebrow={`${getGreeting(t)}${memberName ? ',' + memberName : ''}`}
|
||||
title={summary?.organization?.name || t('企业工作台')}
|
||||
@@ -423,7 +427,7 @@ const OrgWorkbench = ({ orgId, orgRole, featureFlags }) => {
|
||||
/>
|
||||
|
||||
{/* 关键指标卡组 */}
|
||||
<div className='grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-4'>
|
||||
<div className='org-workbench-stats'>
|
||||
<StatCard
|
||||
icon={Coins}
|
||||
label={quotaUsageLabel}
|
||||
@@ -451,8 +455,8 @@ const OrgWorkbench = ({ orgId, orgRole, featureFlags }) => {
|
||||
</div>
|
||||
|
||||
{/* 我的额度进度 + 我的令牌 */}
|
||||
<div className='grid grid-cols-1 md:grid-cols-3 gap-4'>
|
||||
<OrgPanel className='md:col-span-2'>
|
||||
<div className='org-workbench-middle'>
|
||||
<OrgPanel className='org-workbench-quota'>
|
||||
<div className='flex items-center gap-2 mb-3'>
|
||||
<Wallet size={18} className='text-brand-deep' />
|
||||
<Text strong>{t('我的额度')}</Text>
|
||||
@@ -462,7 +466,7 @@ const OrgWorkbench = ({ orgId, orgRole, featureFlags }) => {
|
||||
<Progress
|
||||
percent={quotaPercent}
|
||||
stroke={
|
||||
quotaPercent >= 90 ? 'var(--semi-color-danger)' : undefined
|
||||
quotaPercent >= 90 ? 'var(--ui-color-danger)' : undefined
|
||||
}
|
||||
style={{ marginBottom: 8 }}
|
||||
/>
|
||||
@@ -496,7 +500,7 @@ const OrgWorkbench = ({ orgId, orgRole, featureFlags }) => {
|
||||
</div>
|
||||
</OrgPanel>
|
||||
|
||||
<OrgPanel>
|
||||
<OrgPanel className='org-workbench-tokens'>
|
||||
<div className='flex items-center gap-2 mb-3'>
|
||||
<Key size={18} className='text-brand-deep' />
|
||||
<Text strong>{t('我的令牌')}</Text>
|
||||
@@ -515,12 +519,12 @@ const OrgWorkbench = ({ orgId, orgRole, featureFlags }) => {
|
||||
</div>
|
||||
|
||||
{/* 个人用量趋势 */}
|
||||
<OrgPanel>
|
||||
<OrgPanel className='org-workbench-usage'>
|
||||
<div className='flex items-center gap-2 mb-3'>
|
||||
<TrendingUp size={18} className='text-brand-deep' />
|
||||
<Text strong>{t('个人用量趋势')}</Text>
|
||||
</div>
|
||||
<div className='flex flex-wrap gap-4'>
|
||||
<div className='org-workbench-usage-grid'>
|
||||
<UsageBlock t={t} title={t('今日')} data={usage.today} />
|
||||
<UsageBlock t={t} title={t('近 7 天')} data={usage.last7d} />
|
||||
<UsageBlock t={t} title={t('近 30 天')} data={usage.last30d} />
|
||||
@@ -535,7 +539,7 @@ const OrgWorkbench = ({ orgId, orgRole, featureFlags }) => {
|
||||
<Text strong>{t('最近申请')}</Text>
|
||||
</div>
|
||||
{summary?.recent_requests?.length ? (
|
||||
<div className='flex flex-col divide-y divide-[var(--semi-color-border)]'>
|
||||
<div className='flex flex-col divide-y divide-[var(--ui-color-border)]'>
|
||||
{summary.recent_requests.map((r) => (
|
||||
<div
|
||||
key={r.id}
|
||||
|
||||
@@ -22,10 +22,10 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
colorMode(容器上的 .dark/.light 类,与全局主题一致)。 */
|
||||
|
||||
.dept-flow-cinema {
|
||||
--dfc-glow: color-mix(in srgb, var(--semi-color-primary) 16%, transparent);
|
||||
--dfc-glow: color-mix(in srgb, var(--ui-color-primary) 16%, transparent);
|
||||
--dfc-glow-soft: color-mix(
|
||||
in srgb,
|
||||
var(--semi-color-primary) 9%,
|
||||
var(--ui-color-primary) 9%,
|
||||
transparent
|
||||
);
|
||||
/* 不支持 color-mix 的旧内核退化为纯渐变底 */
|
||||
@@ -47,7 +47,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
background: linear-gradient(180deg, #0b1020 0%, #0d1329 55%, #090e1c 100%);
|
||||
background: radial-gradient(
|
||||
1100px 520px at 50% -8%,
|
||||
color-mix(in srgb, var(--semi-color-primary) 24%, transparent),
|
||||
color-mix(in srgb, var(--ui-color-primary) 24%, transparent),
|
||||
transparent 62%
|
||||
),
|
||||
radial-gradient(
|
||||
@@ -84,18 +84,18 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
.dept-flow-cinema .react-flow__edge-path {
|
||||
stroke: color-mix(
|
||||
in srgb,
|
||||
var(--semi-color-primary) 55%,
|
||||
var(--ui-color-primary) 55%,
|
||||
rgba(148, 163, 184, 0.45)
|
||||
);
|
||||
filter: drop-shadow(0 0 3px var(--dfc-glow));
|
||||
}
|
||||
|
||||
.dept-flow-cinema .react-flow__edge.selected .react-flow__edge-path {
|
||||
stroke: var(--semi-color-primary);
|
||||
stroke: var(--ui-color-primary);
|
||||
}
|
||||
|
||||
.dept-flow-cinema .react-flow__connection-path {
|
||||
stroke: var(--semi-color-primary);
|
||||
stroke: var(--ui-color-primary);
|
||||
}
|
||||
|
||||
/* 缩放控件:磨玻璃 */
|
||||
|
||||
@@ -49,7 +49,7 @@ import {
|
||||
Tag,
|
||||
Tooltip,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
Plus,
|
||||
Pencil,
|
||||
@@ -150,19 +150,19 @@ const DeptNode = memo(({ data, selected }) => {
|
||||
<div
|
||||
className={`relative rounded-xl border bg-white/75 backdrop-blur-xl transition-all duration-150 dark:bg-[#0e1430]/65 ${
|
||||
selected
|
||||
? 'border-[var(--semi-color-primary)] shadow-lg ring-2 ring-[var(--semi-color-primary-light-default)]'
|
||||
: 'border-white/60 shadow-[0_10px_30px_-14px_rgba(15,23,42,0.35)] hover:border-[var(--semi-color-primary-light-active)] hover:shadow-lg dark:border-white/10'
|
||||
? 'border-[var(--ui-color-primary)] shadow-lg ring-2 ring-[var(--ui-color-primary-light-default)]'
|
||||
: 'border-white/60 shadow-[0_10px_30px_-14px_rgba(15,23,42,0.35)] hover:border-[var(--ui-color-primary-light-active)] hover:shadow-lg dark:border-white/10'
|
||||
} ${active ? '' : 'opacity-70'}`}
|
||||
style={{ width: NODE_WIDTH }}
|
||||
>
|
||||
{/* 根节点渐变顶条:一眼区分树的入口 */}
|
||||
{isRoot && (
|
||||
<div className='absolute inset-x-0 top-0 h-[3px] rounded-t-xl bg-gradient-to-r from-[var(--semi-color-primary)] to-[var(--semi-color-primary-light-active)]' />
|
||||
<div className='absolute inset-x-0 top-0 h-[3px] rounded-t-xl bg-gradient-to-r from-[var(--ui-color-primary)] to-[var(--ui-color-primary-light-active)]' />
|
||||
)}
|
||||
<Handle
|
||||
type='target'
|
||||
position={targetPos}
|
||||
className='!w-2.5 !h-2.5 !bg-[var(--semi-color-primary)] !border-2 !border-[var(--surface-card)]'
|
||||
className='!w-2.5 !h-2.5 !bg-[var(--ui-color-primary)] !border-2 !border-[var(--surface-card)]'
|
||||
/>
|
||||
<div className='px-3.5 pt-3'>
|
||||
<div className='flex items-center justify-between gap-2'>
|
||||
@@ -248,7 +248,7 @@ const DeptNode = memo(({ data, selected }) => {
|
||||
);
|
||||
const danger = pct >= 90;
|
||||
return (
|
||||
<div className='mt-2 rounded-md bg-[var(--semi-color-fill-0)] px-2 py-1'>
|
||||
<div className='mt-2 rounded-md bg-[var(--ui-color-fill-0)] px-2 py-1'>
|
||||
<div className='flex items-center justify-between gap-2 text-[11px] leading-4'>
|
||||
<span className='text-gray-500 dark:text-gray-400 flex-shrink-0'>
|
||||
{t('预算')} · {budgetInfo.label}
|
||||
@@ -256,7 +256,7 @@ const DeptNode = memo(({ data, selected }) => {
|
||||
<span
|
||||
className={
|
||||
danger
|
||||
? 'font-medium text-[var(--semi-color-danger)] truncate'
|
||||
? 'font-medium text-[var(--ui-color-danger)] truncate'
|
||||
: 'text-gray-600 dark:text-gray-300 truncate'
|
||||
}
|
||||
title={`${renderQuota(budgetInfo.used, 2)} / ${renderQuota(budgetInfo.cap, 2)}`}
|
||||
@@ -271,8 +271,8 @@ const DeptNode = memo(({ data, selected }) => {
|
||||
style={{
|
||||
width: `${pct}%`,
|
||||
background: danger
|
||||
? 'var(--semi-color-danger)'
|
||||
: 'var(--semi-color-primary)',
|
||||
? 'var(--ui-color-danger)'
|
||||
: 'var(--ui-color-primary)',
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
@@ -329,7 +329,7 @@ const DeptNode = memo(({ data, selected }) => {
|
||||
<Handle
|
||||
type='source'
|
||||
position={sourcePos}
|
||||
className='!w-2.5 !h-2.5 !bg-[var(--semi-color-primary)] !border-2 !border-[var(--surface-card)]'
|
||||
className='!w-2.5 !h-2.5 !bg-[var(--ui-color-primary)] !border-2 !border-[var(--surface-card)]'
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
@@ -697,8 +697,8 @@ const FlowInner = ({
|
||||
nodeColor={(n) => {
|
||||
const dept = deptMap[parseInt(n.id, 10)];
|
||||
return dept && dept.status === 1
|
||||
? 'var(--semi-color-primary-light-active)'
|
||||
: 'var(--semi-color-fill-2)';
|
||||
? 'var(--ui-color-primary-light-active)'
|
||||
: 'var(--ui-color-fill-2)';
|
||||
}}
|
||||
maskColor={
|
||||
colorMode === 'dark'
|
||||
@@ -774,7 +774,7 @@ const FlowInner = ({
|
||||
return (
|
||||
<div
|
||||
key={m.user_id}
|
||||
className='flex items-center gap-3 rounded-lg px-2 py-1.5 hover:bg-[var(--semi-color-fill-0)]'
|
||||
className='flex items-center gap-3 rounded-lg px-2 py-1.5 hover:bg-[var(--ui-color-fill-0)]'
|
||||
>
|
||||
<Avatar size='extra-small' color='blue'>
|
||||
{name.slice(0, 1).toUpperCase()}
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import React, { useMemo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { TreeSelect } from '@douyinfe/semi-ui';
|
||||
import { TreeSelect } from '@/components/ui';
|
||||
import { buildDeptTreeData } from './deptTree';
|
||||
|
||||
// 部门树选择(受控):按组织架构展示层级,默认只允许选末级部门(成员主归属
|
||||
|
||||
@@ -26,10 +26,10 @@ import {
|
||||
Spin,
|
||||
Progress,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import OrgPanel from './OrgPanel';
|
||||
import { VChart } from '@visactor/react-vchart';
|
||||
import { initVChartSemiTheme } from '@visactor/vchart-semi-theme';
|
||||
import { initVChartTheme } from '@/components/ui/chartTheme';
|
||||
import {
|
||||
RefreshCw,
|
||||
PieChart,
|
||||
@@ -107,7 +107,7 @@ const DeltaBadge = ({ cur, prev, t }) => {
|
||||
<span
|
||||
className='text-xs font-medium'
|
||||
style={{
|
||||
color: up ? 'var(--semi-color-success)' : 'var(--semi-color-danger)',
|
||||
color: up ? 'var(--ui-color-success)' : 'var(--ui-color-danger)',
|
||||
}}
|
||||
>
|
||||
{up ? '▲' : '▼'} {Math.abs(pct).toFixed(1)}%
|
||||
@@ -117,7 +117,7 @@ const DeltaBadge = ({ cur, prev, t }) => {
|
||||
};
|
||||
|
||||
const KpiCard = ({ label, value, sub }) => (
|
||||
<div className='px-4 py-3 rounded-xl bg-[var(--semi-color-fill-0)]'>
|
||||
<div className='px-4 py-3 rounded-xl bg-[var(--ui-color-fill-0)]'>
|
||||
<div className='text-xs text-gray-500 mb-1'>{label}</div>
|
||||
<div className='text-lg font-semibold text-gray-900 dark:text-white truncate'>
|
||||
{value}
|
||||
@@ -191,7 +191,7 @@ const OrgAnalyticsPanel = ({ orgId }) => {
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
initVChartSemiTheme({ isWatchingThemeSwitch: true });
|
||||
initVChartTheme({ isWatchingThemeSwitch: true });
|
||||
}, []);
|
||||
|
||||
const dimensions = useMemo(
|
||||
|
||||
@@ -17,7 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import React from 'react';
|
||||
import { Button, Input, Radio, RadioGroup } from '@douyinfe/semi-ui';
|
||||
import { Button, Input, Radio, RadioGroup } from '@/components/ui';
|
||||
import { Check, Image as ImageIcon, Palette, Type, UserRound } from 'lucide-react';
|
||||
import OrgPanel from './OrgPanel';
|
||||
import {
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
Copyright (C) 2025 QuantumNous
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Breadcrumb } from 'antd';
|
||||
import { useLocation } from 'react-router-dom';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
// 路径末段 → 侧栏菜单名;随角色变化的页面(审批中心/消耗明细等)不登记,由页头标题兜底。
|
||||
const orgPageTitles = {
|
||||
workbench: '工作台',
|
||||
'cloud-brain': '云端大脑',
|
||||
knowledge: '企业知识',
|
||||
'my-capabilities': '我的 AI 能力',
|
||||
'skill-center': '技能中心',
|
||||
'skill-assignments': '分发与锁定',
|
||||
experts: '企业专家工坊',
|
||||
connectors: 'Connector 管理',
|
||||
effectiveness: '效能分析',
|
||||
quality: '调用质量',
|
||||
'agent-audit': 'Agent 任务审计',
|
||||
dashboard: '数据看板',
|
||||
departments: '部门管理',
|
||||
'dept-manage': '部门管理',
|
||||
'project-manage': '我的项目',
|
||||
projects: '项目管理',
|
||||
budgets: '预算中心',
|
||||
tokens: '令牌管理',
|
||||
recharge: '企业充值',
|
||||
audit: '审计日志',
|
||||
'personal-settings': '个人设置',
|
||||
settings: '企业设置',
|
||||
};
|
||||
|
||||
/** 企业端统一面包屑:“企业中心 / 当前页面”,样式与用户中心一致。current 仅在路径未登记时兜底。 */
|
||||
export default function OrgBreadcrumb({ current }) {
|
||||
const { pathname } = useLocation();
|
||||
const { t } = useTranslation();
|
||||
const key = pathname.split('/').filter(Boolean)[1];
|
||||
const mapped = orgPageTitles[key];
|
||||
const title = mapped ? t(mapped) : current;
|
||||
if (!title) return null;
|
||||
return (
|
||||
<Breadcrumb
|
||||
className='ui-dashboard-breadcrumb ui-user-center-breadcrumb'
|
||||
items={[{ title: t('企业中心') }, { title }]}
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -19,11 +19,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
import React from 'react';
|
||||
|
||||
/**
|
||||
* 企业中心签名渐变区(方案 A+ 签名层的核心组件)。
|
||||
*
|
||||
* 冲击力护栏:每页至多使用一次;品牌渐变全部走 --brand-* token,
|
||||
* 随主题预设整套切换。亮色 = 品牌渐变实底;暗色 = midnight glow
|
||||
* (深底 + 渐变辉光边缘),两套模式各有性格。
|
||||
* 企业工作台横幅,背景与轮廓来自原型 .ew-hero。
|
||||
*
|
||||
* @param {React.ReactNode} eyebrow 顶部小字(如时段问候/版块名)
|
||||
* @param {React.ReactNode} title 大标题
|
||||
@@ -32,29 +28,29 @@ import React from 'react';
|
||||
* @param {React.ReactNode} [children] 底部扩展槽(如 KPI 行)
|
||||
* @param {string} [className]
|
||||
*/
|
||||
const OrgHero = ({ eyebrow, title, subtitle, actions, children, className = '' }) => (
|
||||
<div
|
||||
className={`relative overflow-hidden rounded-xl border border-brand/20 bg-gradient-to-br from-brand-from via-brand-via to-brand-to text-white shadow-[var(--elevation-md)] dark:border-white/10 dark:from-brand-via/30 dark:via-neutral-950 dark:to-neutral-950 ${className}`}
|
||||
>
|
||||
{/* 暗色 midnight glow:左上角品牌辉光,亮色下渐变实底本身就是签名,不再叠加 */}
|
||||
<div className='pointer-events-none absolute -left-16 -top-24 hidden h-56 w-56 rounded-full bg-brand-from/25 blur-3xl dark:block' />
|
||||
<div className='pointer-events-none absolute inset-x-0 top-0 hidden h-px bg-gradient-to-r from-transparent via-white/25 to-transparent dark:block' />
|
||||
|
||||
<div className='relative px-5 py-5 sm:px-6 sm:py-6'>
|
||||
<div className='flex items-start justify-between gap-4 flex-wrap'>
|
||||
const OrgHero = ({
|
||||
eyebrow,
|
||||
title,
|
||||
subtitle,
|
||||
actions,
|
||||
children,
|
||||
className = '',
|
||||
}) => (
|
||||
<div className={`org-workbench-hero ${className}`}>
|
||||
<div className='org-workbench-hero-art' aria-hidden='true'>
|
||||
<i />
|
||||
<i />
|
||||
<i />
|
||||
</div>
|
||||
<div className='org-workbench-hero-content'>
|
||||
<div className='org-workbench-hero-heading'>
|
||||
<div className='min-w-0'>
|
||||
{eyebrow && (
|
||||
<div className='mb-1 text-xs font-medium text-white/75 dark:text-brand-from/90'>
|
||||
{eyebrow}
|
||||
</div>
|
||||
<div className='org-workbench-hero-greeting'>{eyebrow}</div>
|
||||
)}
|
||||
<h1 className='text-xl sm:text-2xl font-bold tracking-tight truncate'>
|
||||
{title}
|
||||
</h1>
|
||||
<h1>{title}</h1>
|
||||
{subtitle && (
|
||||
<p className='mt-1 max-w-2xl text-sm text-white/70 dark:text-gray-400'>
|
||||
{subtitle}
|
||||
</p>
|
||||
<p className='org-workbench-hero-subtitle'>{subtitle}</p>
|
||||
)}
|
||||
</div>
|
||||
{actions && (
|
||||
|
||||
@@ -17,7 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import React from 'react';
|
||||
import { Modal } from '@douyinfe/semi-ui';
|
||||
import { Modal } from '@/components/ui';
|
||||
|
||||
/*
|
||||
* 企业中心统一弹窗包装。
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Input, Toast, Typography } from '@douyinfe/semi-ui';
|
||||
import { Input, Toast, Typography } from '@/components/ui';
|
||||
import { API } from '../../../helpers/api';
|
||||
import { showError } from '../../../helpers';
|
||||
import OrgModal from './OrgModal';
|
||||
|
||||
@@ -17,41 +17,26 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import React from 'react';
|
||||
import UserCenterPageHeader from '../../../components/common/UserCenterPageHeader';
|
||||
import OrgBreadcrumb from './OrgBreadcrumb';
|
||||
|
||||
/**
|
||||
* 企业中心统一页面标题区。
|
||||
* 所有企业页(/org/*)共用,保证标题字号、副标题、右侧操作区写法一致。
|
||||
* 企业中心统一页面标题区(/org/*):与个人端共用 UserCenterPageHeader 的样式,
|
||||
* 面包屑为“企业中心 / 当前页面”,标题 28px、副标题 14px。
|
||||
*
|
||||
* @param {React.ComponentType} [icon] 可选的 lucide 图标组件(如 Wallet)
|
||||
* @param {React.ReactNode} title 主标题
|
||||
* @param {React.ReactNode} [subtitle] 副标题(一句话说明本页用途)
|
||||
* @param {React.ReactNode} [actions] 右侧操作区(刷新/新建等按钮)
|
||||
*/
|
||||
const OrgPageHeader = ({ icon: Icon, title, subtitle, actions }) => (
|
||||
<div className='mb-5 flex items-start justify-between gap-4 flex-wrap'>
|
||||
<div className='flex items-center gap-3 min-w-0'>
|
||||
{Icon && (
|
||||
<div className='flex-shrink-0 inline-flex h-9 w-9 items-center justify-center rounded-lg bg-brand/10 text-brand'>
|
||||
<Icon size={18} />
|
||||
</div>
|
||||
)}
|
||||
<div className='min-w-0'>
|
||||
<h1 className='text-lg sm:text-xl font-semibold tracking-tight text-[var(--text-primary)] truncate'>
|
||||
{title}
|
||||
</h1>
|
||||
{subtitle && (
|
||||
<p className='text-[13px] text-gray-500 dark:text-gray-400 mt-0.5 max-w-3xl'>
|
||||
{subtitle}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
{actions && (
|
||||
<div className='flex items-center gap-2 flex-wrap justify-end'>
|
||||
{actions}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
const OrgPageHeader = ({ title, subtitle, actions }) => (
|
||||
<UserCenterPageHeader
|
||||
breadcrumb={
|
||||
<OrgBreadcrumb current={typeof title === 'string' ? title : undefined} />
|
||||
}
|
||||
title={title}
|
||||
subtitle={subtitle}
|
||||
extra={actions}
|
||||
/>
|
||||
);
|
||||
|
||||
export default OrgPageHeader;
|
||||
|
||||
@@ -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 React from 'react';
|
||||
import { Card } from 'antd';
|
||||
|
||||
/**
|
||||
* 企业中心统一卡片容器(方案 A+ 底盘层)。
|
||||
@@ -43,9 +44,7 @@ const OrgPanel = ({
|
||||
}) => {
|
||||
const hasHeader = title || actions;
|
||||
return (
|
||||
<div
|
||||
className={`relative overflow-hidden rounded-xl border border-[var(--border-subtle)] bg-[var(--surface-card)] shadow-[var(--elevation-xs)] ${className}`}
|
||||
>
|
||||
<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'>
|
||||
@@ -76,7 +75,7 @@ const OrgPanel = ({
|
||||
)}
|
||||
|
||||
<div className={`${padding} ${bodyClassName}`}>{children}</div>
|
||||
</div>
|
||||
</Card>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Input, Toast, Typography } from '@douyinfe/semi-ui';
|
||||
import { Input, Toast, Typography } from '@/components/ui';
|
||||
import { API } from '../../../helpers/api';
|
||||
import { showError } from '../../../helpers';
|
||||
import OrgModal from './OrgModal';
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import React, { useCallback, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Button, Select, Toast, Tooltip } from '@douyinfe/semi-ui';
|
||||
import { Button, Select, Toast, Tooltip } from '@/components/ui';
|
||||
import { Layers } from 'lucide-react';
|
||||
import { API } from '../../../helpers/api';
|
||||
import { showError } from '../../../helpers';
|
||||
|
||||
@@ -17,7 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import React from 'react';
|
||||
import { SideSheet } from '@douyinfe/semi-ui';
|
||||
import { SideSheet } from '@/components/ui';
|
||||
|
||||
/*
|
||||
* 企业中心统一侧滑面板包装。与 OrgModal 同理:SideSheet 走 portal,
|
||||
@@ -25,7 +25,7 @@ import { SideSheet } from '@douyinfe/semi-ui';
|
||||
* 企业中心所有 <SideSheet> 一律使用本组件。
|
||||
*
|
||||
* 移动端适配:调用方普遍传固定像素宽(如技能详情的 720),在手机上会超出视口——
|
||||
* Semi 把 width 作为内联样式打在 .semi-sidesheet-inner 上,面板 right:0 定位,
|
||||
* Semi 把 width 作为内联样式打在 .ant-drawer-content 上,面板 right:0 定位,
|
||||
* 超出的部分被推到屏幕左侧外并裁掉。这里统一把像素宽钳到视口内。
|
||||
*
|
||||
* 用 min() 钳制而不是「窄屏一律 100%」:企业中心的移动端导航抽屉是
|
||||
|
||||
@@ -90,18 +90,22 @@ const OrgStatCard = ({
|
||||
const hasCountUp = typeof countTo === 'number';
|
||||
const animated = useCountUp(hasCountUp ? countTo : 0, { decimals });
|
||||
const displayValue = hasCountUp
|
||||
? (formatter ? formatter(animated) : animated.toLocaleString())
|
||||
? formatter
|
||||
? formatter(animated)
|
||||
: animated.toLocaleString()
|
||||
: value;
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`rounded-xl border border-[var(--border-subtle)] bg-[var(--surface-card)] shadow-[var(--elevation-xs)] ${compact ? 'p-3' : 'p-4'} ${className}`}
|
||||
className={`org-stat-card rounded-xl border border-[var(--border-subtle)] bg-[var(--surface-card)] shadow-[var(--elevation-xs)] ${compact ? 'p-3' : 'p-4'} ${className}`}
|
||||
>
|
||||
<div className={`flex ${compact ? 'items-center gap-3' : 'flex-col'}`}>
|
||||
<div className={`flex items-center gap-2.5 ${compact ? '' : 'mb-2.5'}`}>
|
||||
<div
|
||||
className={`org-stat-label flex items-center gap-2.5 ${compact ? '' : 'mb-2.5'}`}
|
||||
>
|
||||
{Icon && (
|
||||
<span
|
||||
className={`inline-flex flex-shrink-0 items-center justify-center rounded-lg ${palette.icon} ${compact ? 'h-8 w-8' : 'h-9 w-9'}`}
|
||||
className={`org-stat-icon inline-flex flex-shrink-0 items-center justify-center rounded-lg ${palette.icon} ${compact ? 'h-8 w-8' : 'h-9 w-9'}`}
|
||||
>
|
||||
<Icon size={compact ? 15 : 17} />
|
||||
</span>
|
||||
@@ -140,12 +144,12 @@ const OrgStatCard = ({
|
||||
) : (
|
||||
<>
|
||||
<div
|
||||
className={`text-2xl font-semibold tracking-tight tabular-nums ${palette.value}`}
|
||||
className={`org-stat-value text-2xl font-semibold tracking-tight tabular-nums ${palette.value}`}
|
||||
>
|
||||
{displayValue}
|
||||
</div>
|
||||
{sub && (
|
||||
<div className='mt-1 text-xs text-gray-500 dark:text-gray-400'>
|
||||
<div className='org-stat-hint mt-1 text-xs text-gray-500 dark:text-gray-400'>
|
||||
{sub}
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -17,7 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import React from 'react';
|
||||
import { Spin } from '@douyinfe/semi-ui';
|
||||
import { Spin } from '@/components/ui';
|
||||
import { Inbox } from 'lucide-react';
|
||||
|
||||
/**
|
||||
|
||||
@@ -17,7 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import React, { useEffect } from 'react';
|
||||
import { TabPane, Tabs } from '@douyinfe/semi-ui';
|
||||
import { TabPane, Tabs } from '@/components/ui';
|
||||
import { useSearchParams } from 'react-router-dom';
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,7 +19,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { History } from 'lucide-react';
|
||||
import { Button, Spin, Table, Tag, Typography } from '@douyinfe/semi-ui';
|
||||
import { Button, Spin, Table, Tag, Typography } from '@/components/ui';
|
||||
import { API } from '../../../helpers/api';
|
||||
import { showError } from '../../../helpers';
|
||||
import OrgPanel from '../components/OrgPanel';
|
||||
|
||||
@@ -25,7 +25,7 @@ import React, {
|
||||
} from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Activity } from 'lucide-react';
|
||||
import { Button, Select, Spin, Switch, Table, Tag } from '@douyinfe/semi-ui';
|
||||
import { Button, Select, Spin, Switch, Table, Tag } from '@/components/ui';
|
||||
import { API } from '../../../helpers/api';
|
||||
import { showError } from '../../../helpers';
|
||||
import OrgPanel from '../components/OrgPanel';
|
||||
|
||||
@@ -25,7 +25,7 @@ import React, {
|
||||
} from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { ShieldCheck } from 'lucide-react';
|
||||
import { Button, Select, Toast } from '@douyinfe/semi-ui';
|
||||
import { Button, Select, Toast } from '@/components/ui';
|
||||
import { API } from '../../../helpers/api';
|
||||
import { showError } from '../../../helpers';
|
||||
import OrgPanel from '../components/OrgPanel';
|
||||
|
||||
@@ -36,7 +36,7 @@ import {
|
||||
Tag,
|
||||
Toast,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { API } from '../../../helpers/api';
|
||||
import { showError } from '../../../helpers';
|
||||
import OrgPanel from '../components/OrgPanel';
|
||||
|
||||
@@ -19,7 +19,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
import React, { useMemo, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { FlaskConical } from 'lucide-react';
|
||||
import { Button, Tag, TextArea, Typography } from '@douyinfe/semi-ui';
|
||||
import { Button, Tag, TextArea, Typography } from '@/components/ui';
|
||||
import { API } from '../../../helpers/api';
|
||||
import { showError } from '../../../helpers';
|
||||
import OrgPanel from '../components/OrgPanel';
|
||||
@@ -108,7 +108,7 @@ const OrgDsTest = ({ orgId }) => {
|
||||
<Typography.Paragraph
|
||||
copyable
|
||||
className='rounded-lg px-3 py-2 break-all'
|
||||
style={{ background: 'var(--semi-color-fill-0)' }}
|
||||
style={{ background: 'var(--ui-color-fill-0)' }}
|
||||
>
|
||||
{result.desensitized}
|
||||
</Typography.Paragraph>
|
||||
|
||||
@@ -26,10 +26,11 @@ import React, {
|
||||
} from 'react';
|
||||
import { Routes, Route, Navigate, useNavigate } from 'react-router-dom';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Button } from '@douyinfe/semi-ui';
|
||||
import { Button } from '@/components/ui';
|
||||
import OrgSideSheet from './components/OrgSideSheet';
|
||||
import { Menu } from 'lucide-react';
|
||||
import { StatusContext } from '../../context/Status';
|
||||
import { useMarquee } from '../../hooks/common/useMarquee';
|
||||
import { UserContext } from '../../context/User';
|
||||
import { API } from '../../helpers/api';
|
||||
import { showError } from '../../helpers';
|
||||
@@ -140,7 +141,7 @@ const Organization = () => {
|
||||
const [isProjectManager, setIsProjectManager] = useState(false);
|
||||
const [projectScopeLoaded, setProjectScopeLoaded] = useState(false);
|
||||
|
||||
const hasMarquee = !!statusState?.status?.marquee_content?.trim();
|
||||
const { visible: hasMarquee } = useMarquee();
|
||||
const isAdmin =
|
||||
orgRole === 'owner' || orgRole === 'admin' || orgRole === 'super_admin';
|
||||
const orgConfig = useMemo(
|
||||
@@ -407,14 +408,14 @@ const Organization = () => {
|
||||
</p>
|
||||
<div className='flex gap-3 justify-center'>
|
||||
<button
|
||||
className='px-4 py-2 rounded-md border border-[var(--semi-color-border)]'
|
||||
className='px-4 py-2 rounded-md border border-[var(--ui-color-border)]'
|
||||
onClick={() => fetchOrgInfo()}
|
||||
>
|
||||
{t('刷新状态')}
|
||||
</button>
|
||||
{!isOrgUser && (
|
||||
<button
|
||||
className='px-4 py-2 rounded-md bg-[var(--semi-color-primary)] text-white'
|
||||
className='px-4 py-2 rounded-md bg-[var(--ui-color-primary)] text-white'
|
||||
onClick={() =>
|
||||
navigateRef.current('/user-center/dashboard', {
|
||||
replace: true,
|
||||
@@ -437,7 +438,7 @@ const Organization = () => {
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`org-center flex flex-col md:flex-row h-screen overflow-hidden bg-[var(--surface-bg-base)] transition-colors duration-300 ${hasMarquee ? 'pt-[96px] sm:pt-[104px]' : 'pt-14 sm:pt-16'}`}
|
||||
className={`org-center flex flex-col md:flex-row h-screen overflow-hidden bg-[var(--surface-bg-base)] ${hasMarquee ? 'pt-[91px] md:pt-[107px]' : 'pt-14 md:pt-[72px]'}`}
|
||||
>
|
||||
{/* Sidebar - desktop only */}
|
||||
<div className='hidden md:block flex-shrink-0 h-full'>
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
box-shadow 0.2s ease;
|
||||
}
|
||||
.org-connector-card:hover {
|
||||
border-color: color-mix(in srgb, var(--semi-color-primary) 35%, transparent);
|
||||
border-color: color-mix(in srgb, var(--ui-color-primary) 35%, transparent);
|
||||
box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
.org-connector-card-top,
|
||||
@@ -91,8 +91,8 @@
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 10px;
|
||||
color: var(--semi-color-primary);
|
||||
background: color-mix(in srgb, var(--semi-color-primary) 12%, transparent);
|
||||
color: var(--ui-color-primary);
|
||||
background: color-mix(in srgb, var(--ui-color-primary) 12%, transparent);
|
||||
}
|
||||
.org-connector-card h3 {
|
||||
margin: 14px 0 4px;
|
||||
@@ -112,7 +112,7 @@
|
||||
gap: 8px;
|
||||
padding: 12px;
|
||||
border-radius: 8px;
|
||||
background: var(--semi-color-fill-0);
|
||||
background: var(--ui-color-fill-0);
|
||||
font-size: 13px;
|
||||
}
|
||||
.org-connector-card dl div {
|
||||
@@ -173,7 +173,7 @@
|
||||
.org-connector-form label {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
color: var(--semi-color-text-1);
|
||||
color: var(--ui-color-text-1);
|
||||
font-weight: 600;
|
||||
}
|
||||
.org-connector-form .org-connector-switch {
|
||||
@@ -184,14 +184,14 @@
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
border-radius: 12px;
|
||||
background: var(--semi-color-fill-0);
|
||||
background: var(--ui-color-fill-0);
|
||||
}
|
||||
.org-connector-note {
|
||||
padding: 10px 12px;
|
||||
border-left: 3px solid var(--semi-color-warning);
|
||||
border-left: 3px solid var(--ui-color-warning);
|
||||
border-radius: 0 8px 8px 0;
|
||||
color: var(--semi-color-text-2);
|
||||
background: color-mix(in srgb, var(--semi-color-warning) 10%, transparent);
|
||||
color: var(--ui-color-text-2);
|
||||
background: color-mix(in srgb, var(--ui-color-warning) 10%, transparent);
|
||||
}
|
||||
@media (max-width: 1000px) {
|
||||
.org-connector-grid {
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
box-shadow 0.2s ease;
|
||||
}
|
||||
.org-effect-card:hover {
|
||||
border-color: color-mix(in srgb, var(--semi-color-primary) 30%, transparent);
|
||||
border-color: color-mix(in srgb, var(--ui-color-primary) 30%, transparent);
|
||||
box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
}
|
||||
|
||||
.org-effect-card small {
|
||||
color: var(--semi-color-text-2);
|
||||
color: var(--ui-color-text-2);
|
||||
}
|
||||
|
||||
.org-effect-columns {
|
||||
@@ -102,10 +102,10 @@
|
||||
}
|
||||
|
||||
.org-effect-reconcile .is-ok {
|
||||
color: var(--semi-color-success);
|
||||
color: var(--ui-color-success);
|
||||
}
|
||||
.org-effect-reconcile .is-risk {
|
||||
color: var(--semi-color-danger);
|
||||
color: var(--ui-color-danger);
|
||||
}
|
||||
|
||||
.org-effect-samples {
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
.org-audit-hero > div {
|
||||
max-width: 760px;
|
||||
}
|
||||
/* 页头标题统一 20px/600(Semi Title 默认字号偏大) */
|
||||
.org-expert-hero h1,
|
||||
.org-expert-hero h2,
|
||||
.org-expert-hero h3,
|
||||
@@ -41,10 +40,6 @@
|
||||
font-weight: 600;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.org-expert-hero .semi-typography-paragraph,
|
||||
.org-audit-hero .semi-typography-paragraph {
|
||||
font-size: 13px;
|
||||
}
|
||||
/* 页头右侧动作区:使用指引入口与既有按钮并排 */
|
||||
.org-expert-hero-actions {
|
||||
display: flex;
|
||||
@@ -93,14 +88,14 @@
|
||||
.org-expert-form-grid label {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
color: var(--semi-color-text-1);
|
||||
color: var(--ui-color-text-1);
|
||||
}
|
||||
.org-expert-form-grid .wide {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
.org-expert-help {
|
||||
margin: 0;
|
||||
color: var(--semi-color-text-2);
|
||||
color: var(--ui-color-text-2);
|
||||
font-size: 12px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
@@ -149,7 +144,7 @@
|
||||
.org-audit-metrics span {
|
||||
padding-right: 12px;
|
||||
border-right: 1px solid var(--border-subtle);
|
||||
color: var(--semi-color-text-1);
|
||||
color: var(--ui-color-text-1);
|
||||
}
|
||||
.org-policy-grid {
|
||||
display: grid;
|
||||
@@ -175,7 +170,7 @@
|
||||
white-space: pre-wrap;
|
||||
padding: 14px;
|
||||
border-radius: 10px;
|
||||
background: var(--semi-color-fill-0);
|
||||
background: var(--ui-color-fill-0);
|
||||
}
|
||||
@media (max-width: 760px) {
|
||||
.org-expert-grid,
|
||||
|
||||
@@ -5,20 +5,20 @@
|
||||
--knowledge-ink: var(--text-primary);
|
||||
--knowledge-muted: var(--text-secondary);
|
||||
--knowledge-line: var(--border-subtle);
|
||||
--knowledge-green: var(--semi-color-primary);
|
||||
--knowledge-green: var(--ui-color-primary);
|
||||
--knowledge-green-deep: var(
|
||||
--semi-color-primary-active,
|
||||
var(--semi-color-primary)
|
||||
--ui-color-primary-active,
|
||||
var(--ui-color-primary)
|
||||
);
|
||||
--knowledge-mint: color-mix(
|
||||
in srgb,
|
||||
var(--semi-color-primary) 10%,
|
||||
var(--ui-color-primary) 10%,
|
||||
transparent
|
||||
);
|
||||
min-height: 100%;
|
||||
/* 页面留白对齐企业中心标准页(p-4 sm:p-6 lg:p-8),不做整页居中收窄 */
|
||||
padding: 16px;
|
||||
color: var(--semi-color-text-0);
|
||||
color: var(--ui-color-text-0);
|
||||
}
|
||||
@media (min-width: 640px) {
|
||||
.knowledge-page {
|
||||
@@ -62,7 +62,7 @@
|
||||
.knowledge-beta {
|
||||
padding: 2px 7px;
|
||||
border: 1px solid
|
||||
color-mix(in srgb, var(--semi-color-primary) 30%, transparent);
|
||||
color-mix(in srgb, var(--ui-color-primary) 30%, transparent);
|
||||
border-radius: 999px;
|
||||
background: var(--knowledge-mint);
|
||||
font-size: 9px;
|
||||
@@ -93,7 +93,7 @@
|
||||
.knowledge-page textarea:focus-visible,
|
||||
.knowledge-page input:focus-visible {
|
||||
outline: 2px solid
|
||||
color-mix(in srgb, var(--semi-color-primary) 55%, transparent);
|
||||
color-mix(in srgb, var(--ui-color-primary) 55%, transparent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
}
|
||||
30% {
|
||||
box-shadow: 0 0 0 4px
|
||||
color-mix(in srgb, var(--semi-color-primary) 45%, transparent);
|
||||
color-mix(in srgb, var(--ui-color-primary) 45%, transparent);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -152,16 +152,16 @@
|
||||
/* 每张指标卡一个维度色:知识库=品牌绿、文档=蓝、片段=紫、存储=琥珀。
|
||||
仅作低饱和度点缀(12% 混合),两种主题下都成立。 */
|
||||
.knowledge-metric:nth-child(1) {
|
||||
--metric-accent: var(--semi-color-primary);
|
||||
--metric-accent: var(--ui-color-primary);
|
||||
}
|
||||
.knowledge-metric:nth-child(2) {
|
||||
--metric-accent: var(--semi-color-info, #3370ff);
|
||||
--metric-accent: var(--ui-color-info, #3370ff);
|
||||
}
|
||||
.knowledge-metric:nth-child(3) {
|
||||
--metric-accent: #8b5cf6;
|
||||
}
|
||||
.knowledge-metric:nth-child(4) {
|
||||
--metric-accent: var(--semi-color-warning, #f59e0b);
|
||||
--metric-accent: var(--ui-color-warning, #f59e0b);
|
||||
}
|
||||
|
||||
.knowledge-metric::before {
|
||||
@@ -193,7 +193,7 @@
|
||||
color: var(--metric-accent, var(--knowledge-green));
|
||||
background: color-mix(
|
||||
in srgb,
|
||||
var(--metric-accent, var(--semi-color-primary)) 12%,
|
||||
var(--metric-accent, var(--ui-color-primary)) 12%,
|
||||
transparent
|
||||
);
|
||||
}
|
||||
@@ -231,7 +231,7 @@
|
||||
.knowledge-library-rail {
|
||||
padding: 18px 14px;
|
||||
border-right: 1px solid var(--knowledge-line);
|
||||
background: var(--semi-color-fill-0);
|
||||
background: var(--ui-color-fill-0);
|
||||
}
|
||||
|
||||
.knowledge-section-heading {
|
||||
@@ -284,7 +284,7 @@
|
||||
transform: translateY(-1px);
|
||||
background: color-mix(
|
||||
in srgb,
|
||||
var(--semi-color-primary) 6%,
|
||||
var(--ui-color-primary) 6%,
|
||||
var(--surface-card)
|
||||
);
|
||||
}
|
||||
@@ -294,10 +294,10 @@
|
||||
}
|
||||
|
||||
.knowledge-library-card.is-active {
|
||||
border-color: color-mix(in srgb, var(--semi-color-primary) 30%, transparent);
|
||||
border-color: color-mix(in srgb, var(--ui-color-primary) 30%, transparent);
|
||||
background: color-mix(
|
||||
in srgb,
|
||||
var(--semi-color-primary) 4%,
|
||||
var(--ui-color-primary) 4%,
|
||||
var(--surface-card)
|
||||
);
|
||||
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
|
||||
@@ -382,10 +382,6 @@
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.knowledge-main-panel .semi-empty {
|
||||
padding: 56px 0;
|
||||
}
|
||||
|
||||
.knowledge-upload-progress {
|
||||
display: grid;
|
||||
/* 注意:下方移动端媒体查询需一并重置本轨道,否则 390px 下进度条只剩 ~72px
|
||||
@@ -420,7 +416,7 @@
|
||||
gap: 12px;
|
||||
padding: 14px 18px;
|
||||
border-bottom: 1px solid var(--knowledge-line);
|
||||
background: color-mix(in srgb, var(--semi-color-fill-0) 55%, transparent);
|
||||
background: color-mix(in srgb, var(--ui-color-fill-0) 55%, transparent);
|
||||
}
|
||||
|
||||
.knowledge-card-heading h3 {
|
||||
@@ -477,7 +473,7 @@
|
||||
}
|
||||
|
||||
.knowledge-document-row:hover {
|
||||
background: var(--semi-color-fill-0);
|
||||
background: var(--ui-color-fill-0);
|
||||
}
|
||||
|
||||
.knowledge-document-copy {
|
||||
@@ -533,29 +529,29 @@
|
||||
}
|
||||
|
||||
.knowledge-pipeline-step.is-done {
|
||||
border-color: color-mix(in srgb, var(--semi-color-primary) 30%, transparent);
|
||||
border-color: color-mix(in srgb, var(--ui-color-primary) 30%, transparent);
|
||||
color: var(--knowledge-green-deep);
|
||||
background: var(--knowledge-mint);
|
||||
}
|
||||
|
||||
.knowledge-pipeline-step.is-active {
|
||||
border-color: color-mix(in srgb, var(--semi-color-info) 40%, transparent);
|
||||
color: var(--semi-color-info);
|
||||
background: color-mix(in srgb, var(--semi-color-info) 10%, transparent);
|
||||
border-color: color-mix(in srgb, var(--ui-color-info) 40%, transparent);
|
||||
color: var(--ui-color-info);
|
||||
background: color-mix(in srgb, var(--ui-color-info) 10%, transparent);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.knowledge-pipeline-step.is-waiting {
|
||||
border-color: color-mix(in srgb, var(--semi-color-warning) 45%, transparent);
|
||||
color: var(--semi-color-warning);
|
||||
background: color-mix(in srgb, var(--semi-color-warning) 12%, transparent);
|
||||
border-color: color-mix(in srgb, var(--ui-color-warning) 45%, transparent);
|
||||
color: var(--ui-color-warning);
|
||||
background: color-mix(in srgb, var(--ui-color-warning) 12%, transparent);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.knowledge-pipeline-step.is-failed {
|
||||
border-color: color-mix(in srgb, var(--semi-color-danger) 45%, transparent);
|
||||
color: var(--semi-color-danger);
|
||||
background: color-mix(in srgb, var(--semi-color-danger) 10%, transparent);
|
||||
border-color: color-mix(in srgb, var(--ui-color-danger) 45%, transparent);
|
||||
color: var(--ui-color-danger);
|
||||
background: color-mix(in srgb, var(--ui-color-danger) 10%, transparent);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@@ -567,7 +563,7 @@
|
||||
}
|
||||
|
||||
.knowledge-pipeline-arrow.is-passed {
|
||||
background: color-mix(in srgb, var(--semi-color-primary) 45%, transparent);
|
||||
background: color-mix(in srgb, var(--ui-color-primary) 45%, transparent);
|
||||
}
|
||||
|
||||
.knowledge-pipeline-dot {
|
||||
@@ -595,11 +591,11 @@
|
||||
}
|
||||
|
||||
.knowledge-pipeline-note.is-waiting {
|
||||
color: var(--semi-color-warning);
|
||||
color: var(--ui-color-warning);
|
||||
}
|
||||
|
||||
.knowledge-pipeline-note.is-failed {
|
||||
color: var(--semi-color-danger);
|
||||
color: var(--ui-color-danger);
|
||||
}
|
||||
|
||||
/* 失败/等待详情:中文摘要 + 原始错误(等宽、可换行),配合"复制状态"排障 */
|
||||
@@ -621,16 +617,16 @@
|
||||
|
||||
.knowledge-doc-error.is-failed {
|
||||
border: 1px solid
|
||||
color-mix(in srgb, var(--semi-color-danger) 30%, transparent);
|
||||
color: var(--semi-color-danger);
|
||||
background: color-mix(in srgb, var(--semi-color-danger) 7%, transparent);
|
||||
color-mix(in srgb, var(--ui-color-danger) 30%, transparent);
|
||||
color: var(--ui-color-danger);
|
||||
background: color-mix(in srgb, var(--ui-color-danger) 7%, transparent);
|
||||
}
|
||||
|
||||
.knowledge-doc-error.is-waiting {
|
||||
border: 1px solid
|
||||
color-mix(in srgb, var(--semi-color-warning) 35%, transparent);
|
||||
color: var(--semi-color-warning);
|
||||
background: color-mix(in srgb, var(--semi-color-warning) 8%, transparent);
|
||||
color-mix(in srgb, var(--ui-color-warning) 35%, transparent);
|
||||
color: var(--ui-color-warning);
|
||||
background: color-mix(in srgb, var(--ui-color-warning) 8%, transparent);
|
||||
}
|
||||
|
||||
.knowledge-doc-error code {
|
||||
@@ -658,16 +654,16 @@
|
||||
}
|
||||
|
||||
.knowledge-reindex-status.is-active {
|
||||
border: 1px solid color-mix(in srgb, var(--semi-color-info) 30%, transparent);
|
||||
color: var(--semi-color-info);
|
||||
background: color-mix(in srgb, var(--semi-color-info) 8%, transparent);
|
||||
border: 1px solid color-mix(in srgb, var(--ui-color-info) 30%, transparent);
|
||||
color: var(--ui-color-info);
|
||||
background: color-mix(in srgb, var(--ui-color-info) 8%, transparent);
|
||||
}
|
||||
|
||||
.knowledge-reindex-status.is-failed {
|
||||
border: 1px solid
|
||||
color-mix(in srgb, var(--semi-color-danger) 30%, transparent);
|
||||
color: var(--semi-color-danger);
|
||||
background: color-mix(in srgb, var(--semi-color-danger) 7%, transparent);
|
||||
color-mix(in srgb, var(--ui-color-danger) 30%, transparent);
|
||||
color: var(--ui-color-danger);
|
||||
background: color-mix(in srgb, var(--ui-color-danger) 7%, transparent);
|
||||
}
|
||||
|
||||
.knowledge-expert-list {
|
||||
@@ -694,13 +690,13 @@
|
||||
}
|
||||
|
||||
.knowledge-expert:hover {
|
||||
border-color: color-mix(in srgb, var(--semi-color-primary) 35%, transparent);
|
||||
background: color-mix(in srgb, var(--semi-color-primary) 5%, transparent);
|
||||
border-color: color-mix(in srgb, var(--ui-color-primary) 35%, transparent);
|
||||
background: color-mix(in srgb, var(--ui-color-primary) 5%, transparent);
|
||||
transform: translateX(2px);
|
||||
}
|
||||
|
||||
.knowledge-expert.is-bound {
|
||||
border-color: color-mix(in srgb, var(--semi-color-primary) 32%, transparent);
|
||||
border-color: color-mix(in srgb, var(--ui-color-primary) 32%, transparent);
|
||||
color: var(--knowledge-green-deep);
|
||||
background: var(--knowledge-mint);
|
||||
}
|
||||
@@ -730,7 +726,7 @@
|
||||
|
||||
.knowledge-search-controls {
|
||||
padding: 15px 18px;
|
||||
background: color-mix(in srgb, var(--semi-color-fill-0) 55%, transparent);
|
||||
background: color-mix(in srgb, var(--ui-color-fill-0) 55%, transparent);
|
||||
}
|
||||
|
||||
.knowledge-search-controls textarea,
|
||||
@@ -740,8 +736,8 @@
|
||||
border: 1px solid var(--knowledge-line);
|
||||
border-radius: 11px;
|
||||
outline: none;
|
||||
color: var(--semi-color-text-0);
|
||||
background: var(--semi-color-bg-0);
|
||||
color: var(--ui-color-text-0);
|
||||
background: var(--ui-color-bg-0);
|
||||
}
|
||||
|
||||
.knowledge-search-controls textarea {
|
||||
@@ -753,7 +749,7 @@
|
||||
.knowledge-audit-reason:focus {
|
||||
border-color: var(--knowledge-green);
|
||||
box-shadow: 0 0 0 3px
|
||||
color-mix(in srgb, var(--semi-color-primary) 12%, transparent);
|
||||
color-mix(in srgb, var(--ui-color-primary) 12%, transparent);
|
||||
}
|
||||
|
||||
.knowledge-search-options {
|
||||
@@ -762,14 +758,6 @@
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.knowledge-search-options .semi-select {
|
||||
min-width: 180px;
|
||||
}
|
||||
|
||||
.knowledge-search-options .semi-select:first-child {
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.knowledge-audit-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -825,18 +813,18 @@
|
||||
.knowledge-hit-flag {
|
||||
padding: 1px 8px;
|
||||
border: 1px solid
|
||||
color-mix(in srgb, var(--semi-color-warning) 40%, transparent);
|
||||
color-mix(in srgb, var(--ui-color-warning) 40%, transparent);
|
||||
border-radius: 999px;
|
||||
color: var(--semi-color-warning);
|
||||
color: var(--ui-color-warning);
|
||||
}
|
||||
|
||||
.knowledge-hit-tip {
|
||||
padding: 10px 12px;
|
||||
border: 1px dashed
|
||||
color-mix(in srgb, var(--semi-color-warning) 40%, transparent);
|
||||
color-mix(in srgb, var(--ui-color-warning) 40%, transparent);
|
||||
border-radius: 10px;
|
||||
color: var(--semi-color-warning);
|
||||
background: color-mix(in srgb, var(--semi-color-warning) 7%, transparent);
|
||||
color: var(--ui-color-warning);
|
||||
background: color-mix(in srgb, var(--ui-color-warning) 7%, transparent);
|
||||
font-size: 11.5px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
@@ -850,7 +838,7 @@
|
||||
.knowledge-hit:hover {
|
||||
border-color: color-mix(
|
||||
in srgb,
|
||||
var(--semi-color-primary) 30%,
|
||||
var(--ui-color-primary) 30%,
|
||||
var(--knowledge-line)
|
||||
);
|
||||
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
|
||||
@@ -869,7 +857,7 @@
|
||||
var(--knowledge-green-deep)
|
||||
);
|
||||
box-shadow: 0 2px 8px
|
||||
color-mix(in srgb, var(--semi-color-primary) 35%, transparent);
|
||||
color-mix(in srgb, var(--ui-color-primary) 35%, transparent);
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
}
|
||||
@@ -942,7 +930,7 @@
|
||||
gap: 12px;
|
||||
padding: 11px 12px;
|
||||
border: 1px solid
|
||||
color-mix(in srgb, var(--semi-color-danger) 30%, transparent);
|
||||
color-mix(in srgb, var(--ui-color-danger) 30%, transparent);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
@@ -967,7 +955,7 @@
|
||||
}
|
||||
|
||||
.knowledge-loading-text {
|
||||
color: var(--semi-color-primary);
|
||||
color: var(--ui-color-primary);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@@ -1000,9 +988,6 @@
|
||||
.knowledge-hero-actions {
|
||||
width: 100%;
|
||||
}
|
||||
.knowledge-hero-actions .semi-button {
|
||||
flex: 1;
|
||||
}
|
||||
.knowledge-metrics {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
@@ -1031,10 +1016,6 @@
|
||||
.knowledge-base-header {
|
||||
flex-direction: column;
|
||||
}
|
||||
.knowledge-base-actions,
|
||||
.knowledge-base-actions .semi-button {
|
||||
width: 100%;
|
||||
}
|
||||
.knowledge-document-row {
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
}
|
||||
@@ -1045,10 +1026,6 @@
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
.knowledge-search-options .semi-select {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
.knowledge-form-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
@@ -44,5 +44,5 @@
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--semi-color-primary);
|
||||
color: var(--ui-color-primary);
|
||||
}
|
||||
|
||||
@@ -19,9 +19,6 @@
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
.org-private-skill-form .semi-textarea-wrapper {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
.org-skill-mobile-list {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
@@ -80,7 +77,6 @@
|
||||
.org-skills-page .page-guide-pill {
|
||||
justify-self: start;
|
||||
}
|
||||
/* 页头标题统一 20px/600(Semi Title 默认字号偏大) */
|
||||
.org-skills-hero h1,
|
||||
.org-skills-hero h2,
|
||||
.org-skills-hero h3 {
|
||||
@@ -88,10 +84,6 @@
|
||||
font-weight: 600;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.org-skills-hero .semi-typography-paragraph,
|
||||
.org-skills-hero .semi-typography-tertiary {
|
||||
font-size: 13px;
|
||||
}
|
||||
.org-skills-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
|
||||
Reference in New Issue
Block a user