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:
qiubaishen
2026-11-10 12:01:21 +08:00
266 changed files with 38432 additions and 7570 deletions
@@ -225,7 +225,7 @@ const renderMultiKeyStatus = (status, keySize, enabledKeySize, t) => {
const renderResponseTime = (responseTime, t) => {
let time = responseTime / 1000;
time = time.toFixed(2) + t(' 秒');
time = t('{{value}} 秒', { value: time.toFixed(2) });
if (responseTime === 0) {
return (
<Tag color='grey' shape='circle'>
@@ -497,9 +497,10 @@ export const getChannelsColumns = ({
return (
<div>
<Tooltip
content={
t('原因:') + reason + t(',时间:') + timestamp2string(time)
}
content={t('原因:{{reason}},时间:{{time}}', {
reason,
time: timestamp2string(time),
})}
>
{statusControl}
</Tooltip>
@@ -552,8 +553,10 @@ export const getChannelsColumns = ({
<Tooltip
content={
isRoot()
? t('剩余额度$') + record.balance + t(',点击更新')
: t('剩余额度$') + record.balance
? t('剩余额度${{balance}},点击更新', {
balance: record.balance,
})
: t('剩余额度${{balance}}', { balance: record.balance })
}
>
<Tag
@@ -621,10 +624,9 @@ export const getChannelsColumns = ({
onBlur={(e) => {
Modal.warning({
title: t('修改子渠道优先级'),
content:
t('确定要修改所有子渠道优先级为 ') +
e.target.value +
t(' 吗?'),
content: t('确定要修改所有子渠道优先级为 {{value}} 吗?', {
value: e.target.value,
}),
onOk: () => {
if (e.target.value === '') {
return;
@@ -682,10 +684,9 @@ export const getChannelsColumns = ({
onBlur={(e) => {
Modal.warning({
title: t('修改子渠道权重'),
content:
t('确定要修改所有子渠道权重为 ') +
e.target.value +
t(' 吗?'),
content: t('确定要修改所有子渠道权重为 {{value}} 吗?', {
value: e.target.value,
}),
onOk: () => {
if (e.target.value === '') {
return;