feat: 参考原型图 ui优化提交 企业端-企业中心 相关的页面
This commit is contained in:
@@ -71,7 +71,7 @@ const ChatsSetting = () => {
|
||||
<>
|
||||
<Spin spinning={loading} size='large'>
|
||||
{/* 聊天设置 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsChats options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
</Spin>
|
||||
|
||||
@@ -423,6 +423,7 @@ const CustomerServiceSetting = () => {
|
||||
|
||||
{/* 新建/编辑弹窗 */}
|
||||
<Modal
|
||||
rootClassName='settings-form-dialog'
|
||||
title={editingAgent ? t('编辑客服') : t('添加客服')}
|
||||
visible={modalVisible}
|
||||
onOk={handleSubmit}
|
||||
|
||||
@@ -146,27 +146,27 @@ const DashboardSetting = () => {
|
||||
</Modal>
|
||||
|
||||
{/* 数据看板设置 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsDataDashboard options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
|
||||
{/* 系统公告管理 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsAnnouncements options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
|
||||
{/* API信息管理 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsAPIInfo options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
|
||||
{/* 常见问答管理 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsFAQ options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
|
||||
{/* Uptime Kuma 监控设置 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsUptimeKuma options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
</Spin>
|
||||
|
||||
@@ -73,7 +73,7 @@ const DrawingSetting = () => {
|
||||
<>
|
||||
<Spin spinning={loading} size='large'>
|
||||
{/* 绘图设置 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsDrawing options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
</Spin>
|
||||
|
||||
@@ -113,7 +113,7 @@ const GroupModelDiscountEditor = ({
|
||||
maxTagCount={3}
|
||||
showClear
|
||||
size='small'
|
||||
style={{ minWidth: 320 }}
|
||||
style={{ width: 320, maxWidth: '100%' }}
|
||||
placeholder={t('搜索并选择模型(可多选)')}
|
||||
optionList={selectableModels.map((m) => ({ label: m, value: m }))}
|
||||
value={pendingModels}
|
||||
@@ -954,7 +954,7 @@ const LevelPolicySetting = () => {
|
||||
content={
|
||||
<div style={{ maxWidth: 360 }}>
|
||||
{t(
|
||||
'该等级用户在市场页与令牌创建中看不到这些分组,也无法显式选用',
|
||||
'该等级用户在市场页与密钥创建中看不到这些分组,也无法显式选用',
|
||||
)}
|
||||
{rest > 0 && (
|
||||
<div style={{ marginTop: 4 }}>
|
||||
@@ -1374,7 +1374,7 @@ const LevelPolicySetting = () => {
|
||||
searchPosition='dropdown'
|
||||
maxTagCount={3}
|
||||
showClear
|
||||
style={{ minWidth: 340, flex: 1 }}
|
||||
style={{ minWidth: 0, flex: '1 1 340px' }}
|
||||
placeholder={t('搜索并选择模型(可多选)')}
|
||||
value={overrideModels}
|
||||
onChange={setOverrideModels}
|
||||
@@ -1491,7 +1491,7 @@ const LevelPolicySetting = () => {
|
||||
'折扣系数 <=1 表示打折,在分组倍率基础上相乘,对该个人等级用户计费生效;留空表示该分组不打折。',
|
||||
)}{' '}
|
||||
{t(
|
||||
'「隐藏」开启后:该等级用户在市场页、令牌创建下拉中看不到该分组,显式选用的令牌在调用时会被拒绝(403);auto 路由也会绕开。例外:分组等于用户自身分组(企业为作用域默认分组)的令牌不受影响,避免误配切断存量流量(用户分组事后迁移则豁免随之失效)。',
|
||||
'「隐藏」开启后:该等级用户在市场页、密钥创建下拉中看不到该分组,显式选用的密钥在调用时会被拒绝(403);auto 路由也会绕开。例外:分组等于用户自身分组(企业为作用域默认分组)的密钥不受影响,避免误配切断存量流量(用户分组事后迁移则豁免随之失效)。',
|
||||
)}{' '}
|
||||
{t(
|
||||
'点击「模型折扣」列可展开分组行,为指定模型单独设置折扣系数——命中的模型直接按覆盖系数计费(替换分组折扣,不叠乘)。',
|
||||
|
||||
@@ -106,27 +106,27 @@ const ModelSetting = () => {
|
||||
<>
|
||||
<Spin spinning={loading} size='large'>
|
||||
{/* 模型分类管理 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingModelCategory />
|
||||
</Card>
|
||||
{/* OpenAI */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingGlobalModel options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
{/* Gemini */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingGeminiModel options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
{/* Claude */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingClaudeModel options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
{/* Image pricing */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingImagePricing options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
{/* Video */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingVideoModel options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
</Spin>
|
||||
|
||||
@@ -61,14 +61,13 @@ const NotifyChannelForm = ({
|
||||
const patch = (fields) => onChange?.({ ...v, ...fields });
|
||||
|
||||
const Label = ({ children }) => (
|
||||
<label className='block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1.5'>
|
||||
{children}
|
||||
</label>
|
||||
<label className='oc-notify-label'>{children}</label>
|
||||
);
|
||||
|
||||
// 原型:渠道下拉(≤360px)+ 浅底详情框承载各渠道字段(竖排标签)
|
||||
return (
|
||||
<div className='space-y-4'>
|
||||
<div className='max-w-xs'>
|
||||
<div className='oc-notify-form'>
|
||||
<div className='oc-notify-field oc-notify-channel'>
|
||||
<Label>{t('通知渠道')}</Label>
|
||||
<Select
|
||||
value={type}
|
||||
@@ -84,85 +83,87 @@ const NotifyChannelForm = ({
|
||||
/>
|
||||
</div>
|
||||
|
||||
{type === 'email' && (
|
||||
<div className='max-w-md'>
|
||||
<Label>{t('通知邮箱')}</Label>
|
||||
<Input
|
||||
value={v.notification_email || ''}
|
||||
onChange={(val) => patch({ notification_email: val })}
|
||||
placeholder={emailPlaceholder || t('留空则使用企业联系邮箱')}
|
||||
disabled={disabled}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
<div className='oc-notify-details'>
|
||||
{type === 'email' && (
|
||||
<div className='oc-notify-field'>
|
||||
<Label>{t('通知邮箱')}</Label>
|
||||
<Input
|
||||
value={v.notification_email || ''}
|
||||
onChange={(val) => patch({ notification_email: val })}
|
||||
placeholder={emailPlaceholder || t('留空则使用企业联系邮箱')}
|
||||
disabled={disabled}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{type === 'webhook' && (
|
||||
<div className='max-w-md space-y-3'>
|
||||
<div>
|
||||
<Label>{t('Webhook 地址')}</Label>
|
||||
<Input
|
||||
value={v.webhook_url || ''}
|
||||
onChange={(val) => patch({ webhook_url: val })}
|
||||
placeholder='https://example.com/webhook'
|
||||
disabled={disabled}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<Label>{t('接口凭证')}</Label>
|
||||
<Input
|
||||
value={v.webhook_secret || ''}
|
||||
onChange={(val) => patch({ webhook_secret: val })}
|
||||
placeholder={t('可选,将以 Bearer 方式加入请求头')}
|
||||
disabled={disabled}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{type === 'webhook' && (
|
||||
<>
|
||||
<div className='oc-notify-field'>
|
||||
<Label>{t('Webhook 地址')}</Label>
|
||||
<Input
|
||||
value={v.webhook_url || ''}
|
||||
onChange={(val) => patch({ webhook_url: val })}
|
||||
placeholder='https://example.com/webhook'
|
||||
disabled={disabled}
|
||||
/>
|
||||
</div>
|
||||
<div className='oc-notify-field'>
|
||||
<Label>{t('接口凭证')}</Label>
|
||||
<Input
|
||||
value={v.webhook_secret || ''}
|
||||
onChange={(val) => patch({ webhook_secret: val })}
|
||||
placeholder={t('可选,将以 Bearer 方式加入请求头')}
|
||||
disabled={disabled}
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
|
||||
{type === 'bark' && (
|
||||
<div className='max-w-md'>
|
||||
<Label>{t('Bark 推送地址')}</Label>
|
||||
<Input
|
||||
value={v.bark_url || ''}
|
||||
onChange={(val) => patch({ bark_url: val })}
|
||||
placeholder='https://api.day.app/xxx'
|
||||
disabled={disabled}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
{type === 'bark' && (
|
||||
<div className='oc-notify-field'>
|
||||
<Label>{t('Bark 推送地址')}</Label>
|
||||
<Input
|
||||
value={v.bark_url || ''}
|
||||
onChange={(val) => patch({ bark_url: val })}
|
||||
placeholder='https://api.day.app/xxx'
|
||||
disabled={disabled}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{type === 'gotify' && (
|
||||
<div className='max-w-md space-y-3'>
|
||||
<div>
|
||||
<Label>{t('Gotify 服务器地址')}</Label>
|
||||
<Input
|
||||
value={v.gotify_url || ''}
|
||||
onChange={(val) => patch({ gotify_url: val })}
|
||||
placeholder='https://gotify.example.com'
|
||||
disabled={disabled}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<Label>{t('Gotify 应用令牌')}</Label>
|
||||
<Input
|
||||
value={v.gotify_token || ''}
|
||||
onChange={(val) => patch({ gotify_token: val })}
|
||||
disabled={disabled}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<Label>{t('消息优先级')}</Label>
|
||||
<InputNumber
|
||||
value={v.gotify_priority ?? 0}
|
||||
onChange={(val) => patch({ gotify_priority: val })}
|
||||
min={0}
|
||||
max={10}
|
||||
disabled={disabled}
|
||||
style={{ width: '100%' }}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{type === 'gotify' && (
|
||||
<>
|
||||
<div className='oc-notify-field'>
|
||||
<Label>{t('Gotify 服务器地址')}</Label>
|
||||
<Input
|
||||
value={v.gotify_url || ''}
|
||||
onChange={(val) => patch({ gotify_url: val })}
|
||||
placeholder='https://gotify.example.com'
|
||||
disabled={disabled}
|
||||
/>
|
||||
</div>
|
||||
<div className='oc-notify-field'>
|
||||
<Label>{t('Gotify 应用密钥')}</Label>
|
||||
<Input
|
||||
value={v.gotify_token || ''}
|
||||
onChange={(val) => patch({ gotify_token: val })}
|
||||
disabled={disabled}
|
||||
/>
|
||||
</div>
|
||||
<div className='oc-notify-field'>
|
||||
<Label>{t('消息优先级')}</Label>
|
||||
<InputNumber
|
||||
value={v.gotify_priority ?? 0}
|
||||
onChange={(val) => patch({ gotify_priority: val })}
|
||||
min={0}
|
||||
max={10}
|
||||
disabled={disabled}
|
||||
style={{ width: '100%' }}
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -230,59 +230,59 @@ const OperationSetting = () => {
|
||||
{errorBanner}
|
||||
<ProgressiveSettingsSections loading={loading}>
|
||||
{/* 通用设置 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsGeneral options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
{/* 语言与地区 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsLanguage options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
{/* 主题色配置 */}
|
||||
<div style={{ marginTop: '10px' }}>
|
||||
<div className='settings-section'>
|
||||
<SettingsTheme options={inputs} refresh={onRefresh} />
|
||||
</div>
|
||||
{/* 顶栏模块管理 */}
|
||||
<div style={{ marginTop: '10px' }}>
|
||||
<div className='settings-section'>
|
||||
<SettingsHeaderNavModules options={inputs} refresh={onRefresh} />
|
||||
</div>
|
||||
{/* 企业员工顶栏管理 */}
|
||||
<div style={{ marginTop: '10px' }}>
|
||||
<div className='settings-section'>
|
||||
<SettingsOrgUserNavModules options={inputs} refresh={onRefresh} />
|
||||
</div>
|
||||
{/* 左侧边栏模块管理(管理员) */}
|
||||
<div style={{ marginTop: '10px' }}>
|
||||
<div className='settings-section'>
|
||||
<SettingsSidebarModulesAdmin options={inputs} refresh={onRefresh} />
|
||||
</div>
|
||||
{/* 屏蔽词过滤设置 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsSensitiveWords options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
{/* 日志设置 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsLog options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
{/* 监控设置 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsMonitoring options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
{/* 兜底渠道设置 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsFallback options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
{/* 技能注入(网关直连)设置 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsSkillInject options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
{/* 服务大盘监控设置 */}
|
||||
<div style={{ marginTop: '10px' }}>
|
||||
<div className='settings-section'>
|
||||
<SettingsDashboardMonitor />
|
||||
</div>
|
||||
{/* 额度设置 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsCreditLimit options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
{/* 跑马灯设置 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsMarquee options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
{/* 体验中心设置 */}
|
||||
|
||||
@@ -270,28 +270,28 @@ const PaymentSetting = () => {
|
||||
return (
|
||||
<>
|
||||
<Spin spinning={loading} size='large'>
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsGeneralPayment options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsPaymentGateway options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsPaymentGatewayStripe options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsPaymentGatewayPayPal options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsPaymentGatewayCreem options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsPaymentWechat options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsPaymentAlipay options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<SettingsNuonuoInvoice options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
</Spin>
|
||||
|
||||
@@ -78,7 +78,7 @@ const RateLimitSetting = () => {
|
||||
<>
|
||||
<Spin spinning={loading} size='large'>
|
||||
{/* AI请求速率限制 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<RequestRateLimit options={inputs} refresh={onRefresh} />
|
||||
</Card>
|
||||
</Spin>
|
||||
|
||||
@@ -98,7 +98,7 @@ const RatioSetting = () => {
|
||||
return (
|
||||
<Spin spinning={loading} size='large'>
|
||||
{/* 模型倍率设置以及可视化编辑器 */}
|
||||
<Card style={{ marginTop: '10px' }}>
|
||||
<Card className='settings-section'>
|
||||
<Tabs type='card'>
|
||||
<Tabs.TabPane tab={t('模型倍率设置')} itemKey='model'>
|
||||
<ModelRatioSettings options={inputs} refresh={onRefresh} />
|
||||
|
||||
@@ -1875,7 +1875,7 @@ const SystemSetting = () => {
|
||||
)}
|
||||
{/* WeyAi 账号接入配置:仅超级管理员可见(后端同样按 root-only 校验) */}
|
||||
{isLoaded && isRoot() && (
|
||||
<div style={{ marginTop: '10px' }}>
|
||||
<div className='settings-section'>
|
||||
<SettingsWeyAi />
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user