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:
@@ -17,7 +17,20 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
export const CHANNEL_OPTIONS = [
|
||||
import i18next from 'i18next';
|
||||
|
||||
// label 以简体中文(或厂商英文名)为 i18n 键;读取 label 时按当前界面语言翻译,
|
||||
// 因此各渲染处直接使用 option.label 即可随语言切换。
|
||||
const withLocalizedLabels = (options) =>
|
||||
options.map((opt) => {
|
||||
const labelKey = opt.label;
|
||||
return Object.defineProperty({ ...opt }, 'label', {
|
||||
get: () => i18next.t(labelKey),
|
||||
enumerable: true,
|
||||
});
|
||||
});
|
||||
|
||||
export const CHANNEL_OPTIONS = withLocalizedLabels([
|
||||
{ value: 1, color: 'green', label: 'OpenAI' },
|
||||
{
|
||||
value: 2,
|
||||
@@ -224,6 +237,6 @@ export const CHANNEL_OPTIONS = [
|
||||
color: 'green',
|
||||
label: '百度 Seedance 视频',
|
||||
},
|
||||
];
|
||||
]);
|
||||
|
||||
export const MODEL_TABLE_PAGE_SIZE = 10;
|
||||
|
||||
Reference in New Issue
Block a user