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
+7 -7
View File
@@ -110,14 +110,14 @@ const RemainingTag = ({ endDate, status, t }) => {
if (days < 0) {
return (
<span className='text-xs text-gray-400'>
{t('已过期 {{n}} 天', { n: Math.abs(days) })}
{t('已过期 {{n}} 天', { n: Math.abs(days), count: Math.abs(days) })}
</span>
);
}
let cls = 'text-xs text-gray-500';
if (days <= 3) cls = 'text-xs text-red-500 font-semibold';
else if (days <= 7) cls = 'text-xs text-amber-500 font-medium';
return <span className={cls}>{t('剩余 {{n}} 天', { n: days })}</span>;
return <span className={cls}>{t('剩余 {{n}} 天', { n: days, count: days })}</span>;
};
const Subscription = () => {
@@ -757,7 +757,7 @@ const CreateMembershipModal = ({
const [userId, setUserId] = useState();
const [planId, setPlanId] = useState();
const [days, setDays] = useState(30);
const [reason, setReason] = useState('管理员手动开通会员');
const [reason, setReason] = useState(() => t('管理员手动开通会员'));
const [submitting, setSubmitting] = useState(false);
useEffect(() => {
@@ -765,7 +765,7 @@ const CreateMembershipModal = ({
setUserId(undefined);
setPlanId(undefined);
setDays(30);
setReason('管理员手动开通会员');
setReason(t('管理员手动开通会员'));
}
}, [visible]);
@@ -827,9 +827,9 @@ const CreateMembershipModal = ({
const planOptions = enabledPlans.map((plan) => ({
value: plan.id,
label: `${plan.name} / ${plan.tier || '-'} / ${plan.duration_days} ${t(
'天',
)}`,
label: `${plan.name} / ${plan.tier || '-'} / ${t('{{days}} 天', {
days: plan.duration_days,
})}`,
}));
return (