merge: 合入总仓库 weiyuan(bfdfb339) web/ 新功能,保留 ui-optimization 的 UI 重构
来源:luoguang/monkey-ai weiyuan@bfdfb339 的 web/(经 sync/main-weiyuan-web-bfdfb339 同步)
同步基准:总仓库 a2ca13cb = 本仓库初始导入 d8f3aee2
冲突处理原则:保留 ui-optimization 的 UI(样式/结构/组件),嫁接 weiyuan 的功能逻辑。
- i18n:按键三方合并;ours 的「令牌→密钥」改名键上移植 theirs 的术语修订
- task-logs / OrgLogs:ours 已手工移植同一功能(6ad95e2),保留 ours
- 删除:OrgCreate(theirs 下线 /org/create)、旧 image 组件与 VideoRegenerateModal(theirs 体验中心重写)、
OrgAvatarSection / PricingBentoPage / CommissionConsole(ours 重构中已移除)
- 测试:users-pagination 的 i18next mock 补 t();theirs 新增文件补 license header
This commit is contained in:
@@ -70,7 +70,7 @@ const formatImportError = (t, row) => {
|
||||
case 'login_name_reserved':
|
||||
return t('该登录名为系统保留名称,请换一个登录名');
|
||||
case 'email_exists':
|
||||
return t('该邮箱已是平台用户,请使用企业代码加入企业');
|
||||
return t('该邮箱已被平台用户使用,请更换邮箱或留空');
|
||||
case 'member_limit_reached':
|
||||
return t('企业成员数量已达到上限 {{max}}', params);
|
||||
case 'password_generation_failed':
|
||||
@@ -329,9 +329,7 @@ const OrgMemberAccounts = ({
|
||||
<div className='flex items-center gap-2'>
|
||||
<span>{r.display_name || r.username || `#${r.user_id}`}</span>
|
||||
{r.created_by_org_id !== r.organization_id && (
|
||||
<Tooltip
|
||||
content={t('通过企业代码加入的个人平台账号,非本企业托管')}
|
||||
>
|
||||
<Tooltip content={t('个人平台账号(非本企业托管)')}>
|
||||
<Tag size='small' color='blue'>
|
||||
{t('个人账号')}
|
||||
</Tag>
|
||||
@@ -542,7 +540,7 @@ const OrgMemberAccounts = ({
|
||||
<Form.Input
|
||||
field='email'
|
||||
label={t('邮箱(可选)')}
|
||||
placeholder={t('已是平台用户的邮箱请改用企业代码加入')}
|
||||
placeholder={t('已被平台用户使用的邮箱不可填写,可留空')}
|
||||
rules={[
|
||||
{
|
||||
pattern: /^[^\s@]+@[^\s@]+\.[^\s@]+$/,
|
||||
@@ -684,7 +682,14 @@ const OrgMemberAccounts = ({
|
||||
type={importResult.failed > 0 ? 'warning' : 'success'}
|
||||
closeIcon={null}
|
||||
className='mb-3'
|
||||
description={`${t('成功')} ${importResult.success} · ${t('失败')} ${importResult.failed} / ${t('共')} ${importResult.total}`}
|
||||
description={t(
|
||||
'成功 {{success}} · 失败 {{failed}} / 共 {{total}}',
|
||||
{
|
||||
success: importResult.success,
|
||||
failed: importResult.failed,
|
||||
total: importResult.total,
|
||||
},
|
||||
)}
|
||||
/>
|
||||
<Table
|
||||
size='small'
|
||||
|
||||
Reference in New Issue
Block a user