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:
@@ -45,7 +45,8 @@ const TopupChannelChart = ({ data, title, icon, t }) => {
|
||||
if (!data || data.length === 0) return null;
|
||||
|
||||
const chartData = data.map((item) => ({
|
||||
name: item.payment_method || t('未知'),
|
||||
name: item.payment_method ? t(item.payment_method) : t('未知'),
|
||||
rawName: item.payment_method,
|
||||
value: item.amount || 0,
|
||||
count: item.count || 0,
|
||||
}));
|
||||
@@ -53,7 +54,7 @@ const TopupChannelChart = ({ data, title, icon, t }) => {
|
||||
// 根据支付渠道名称生成颜色数组
|
||||
const colorList = chartData.map((item, index) => {
|
||||
return (
|
||||
CHANNEL_COLORS[item.name] ||
|
||||
CHANNEL_COLORS[item.rawName] ||
|
||||
DEFAULT_COLORS[index % DEFAULT_COLORS.length]
|
||||
);
|
||||
});
|
||||
@@ -80,7 +81,7 @@ const TopupChannelChart = ({ data, title, icon, t }) => {
|
||||
},
|
||||
{
|
||||
key: () => t('笔数'),
|
||||
value: (datum) => `${datum?.count || 0} ${t('笔')}`,
|
||||
value: (datum) => t('{{n}} 笔', { n: datum?.count || 0, count: datum?.count || 0 }),
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -131,7 +132,7 @@ const TopupChannelChart = ({ data, title, icon, t }) => {
|
||||
className='flex items-center justify-between text-sm py-1 border-b border-gray-100 dark:border-gray-700 last:border-0'
|
||||
>
|
||||
<span className='text-gray-600 dark:text-gray-400'>
|
||||
{item.payment_method}
|
||||
{item.payment_method ? t(item.payment_method) : t('未知')}
|
||||
</span>
|
||||
<div className='text-right'>
|
||||
<span className='font-medium'>
|
||||
|
||||
Reference in New Issue
Block a user