feat: 重构测试结构并添加动态表单组件

主要更改:
- 重构测试文件结构,删除旧的测试文件并添加新的测试覆盖
- 添加 DynamicForm 组件及其测试
- 更新 Jest 配置以支持新的测试结构
- 更新组件、抽屉和国际化文件

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
imeepos
2026-01-19 14:31:48 +08:00
parent 6e85460b2e
commit 1fc79d29ed
23 changed files with 3425 additions and 1232 deletions

View File

@@ -1,4 +1,7 @@
{
"common": {
"noData": "暂无数据"
},
"my": {
"editProfile": "编辑资料",
"generatedWorks": "生成作品",
@@ -126,8 +129,29 @@
"noTags": "暂无推荐标签"
},
"templateDetail": {
"title": "泥嚎 我是动物城的新居民 👋",
"subtitle": "麻 我们也要去疯狂动物城"
"title": "模板详情",
"subtitle": "填写表单以生成您的作品",
"fillForm": "填写表单",
"startCreating": "开始创作",
"generations": "作品列表",
"generationStarted": "生成已开始"
},
"dynamicForm": {
"uploadFailed": "上传失败,请重试",
"field": "字段",
"required": "不能为空",
"fillRequiredFields": "请填写所有必填项",
"submitFailed": "提交失败",
"enterText": "请输入文本",
"image": "图片",
"uploadImage": "点击上传图片",
"video": "视频",
"videoUploaded": "视频已上传",
"uploadVideo": "点击上传视频",
"select": "选择",
"selectPlaceholder": "请选择",
"noFields": "暂无可填写的表单项",
"submit": "提交"
},
"pointsDrawer": {
"title": "我的积分",
@@ -142,7 +166,9 @@
},
"aiGenerationRecord": {
"title": "AI 生成记录",
"recentUsed": "最近用过"
"recentUsed": "最近用过",
"projectAll": "全部项目",
"projectFace": "人脸项目"
},
"searchBar": {
"placeholder": "搜索",