feat: 参考原型图 ui优化提交 企业端-企业中心 相关的页面

This commit is contained in:
zhanjunhao
2026-11-06 20:19:43 +08:00
parent bc6af74e9e
commit d58e468969
147 changed files with 9816 additions and 8768 deletions
@@ -473,7 +473,7 @@ const AccountManagement = ({
<div className='py-4'>
<div className='space-y-6'>
<Space vertical className='w-full'>
{/* 系统访问令牌 */}
{/* 系统访问密钥 */}
<Card className='!rounded-xl w-full'>
<div className='flex flex-col sm:flex-row items-start sm:justify-between gap-4'>
<div className='flex items-start w-full sm:w-auto'>
@@ -482,10 +482,10 @@ const AccountManagement = ({
</div>
<div className='flex-1'>
<Typography.Title heading={6} className='mb-1'>
{t('系统访问令牌')}
{t('系统访问密钥')}
</Typography.Title>
<Typography.Text type='tertiary' className='text-sm'>
{t('用于API调用的身份验证令牌,请妥善保管')}
{t('用于API调用的身份验证密钥,请妥善保管')}
</Typography.Text>
{systemToken && (
<div className='mt-3'>
@@ -508,7 +508,7 @@ const AccountManagement = ({
className='!bg-slate-600 hover:!bg-slate-700 w-full sm:w-auto'
icon={<IconKey />}
>
{systemToken ? t('重新生成') : t('生成令牌')}
{systemToken ? t('重新生成') : t('生成密钥')}
</Button>
</div>
</Card>
@@ -240,7 +240,7 @@ const NotificationSettings = ({
description: t('数据管理和日志查看'),
modules: [
{ key: 'detail', title: t('数据看板'), description: t('系统数据统计') },
{ key: 'token', title: t('令牌管理'), description: t('API令牌管理') },
{ key: 'token', title: t('密钥管理'), description: t('API密钥管理') },
{ key: 'log', title: t('使用日志'), description: t('API使用记录') },
{
key: 'midjourney',
@@ -628,19 +628,19 @@ const NotificationSettings = ({
<Form.Input
field='gotifyToken'
label={t('Gotify应用令牌')}
placeholder={t('请输入Gotify应用令牌')}
label={t('Gotify应用密钥')}
placeholder={t('请输入Gotify应用密钥')}
onChange={(val) => handleFormChange('gotifyToken', val)}
prefix={<IconKey />}
extraText={t(
'在Gotify服务器创建应用后获得的令牌,用于发送通知',
'在Gotify服务器创建应用后获得的密钥,用于发送通知',
)}
showClear
rules={[
{
required:
notificationSettings.warningType === 'gotify',
message: t('请输入Gotify应用令牌'),
message: t('请输入Gotify应用密钥'),
},
]}
/>
@@ -675,7 +675,7 @@ const NotificationSettings = ({
<div>
2.{' '}
{t(
'复制应用的令牌(Token)并填写到上方的应用令牌字段',
'复制应用的密钥(Token)并填写到上方的应用密钥字段',
)}
</div>
<div>3. {t('填写Gotify服务器的完整URL地址')}</div>
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
*/
import React from 'react';
import { Input as AntInput, Segmented } from 'antd';
import { Segmented } from 'antd';
import { Button, Input } from '@/components/ui';
import { Check } from 'lucide-react';
import {
@@ -58,9 +58,6 @@ const AvatarSection = ({
avatarSettings.avatarType === USER_AVATAR_TYPES.CUSTOM &&
!avatarSettings.customAvatarUrl?.trim();
// 与 getInitialAvatarDataUrl 相同的首字取法,仅用于展示,不进入保存载荷
const initialText = username ? username[0].toUpperCase() : '';
return (
<section className='ui-avatar-section'>
<SectionHeader
@@ -135,13 +132,6 @@ const AvatarSection = ({
)}
{avatarSettings.avatarType === USER_AVATAR_TYPES.INITIAL && (
<div className='ui-avatar-field'>
<div className='ui-avatar-field-label'>{t('显示文字')}</div>
<AntInput
readOnly
value={initialText}
className='ui-avatar-text-input'
aria-label={t('显示文字')}
/>
<p className='ui-avatar-help'>
{t('根据用户名自动生成简洁文字头像')}
</p>
@@ -178,7 +178,7 @@ const SidebarSection = ({ t }) => {
gradient: 'from-emerald-500 to-teal-500',
modules: [
{ key: 'detail', title: t('数据看板'), description: t('系统数据统计') },
{ key: 'token', title: t('令牌管理'), description: t('API令牌管理') },
{ key: 'token', title: t('密钥管理'), description: t('API密钥管理') },
{ key: 'log', title: t('使用日志'), description: t('API使用记录') },
{
key: 'midjourney',