feat(shared,tests): add error boundaries, lib utils, i18n messages, and integration tests
Some checks failed
CI / scheduled-backup (push) Has been skipped
CI / backup-verify (push) Has been skipped
CI / weekly-dr-drill (push) Failing after 0s
CI / build-deploy (push) Has been cancelled
CI / security-scan (push) Has been cancelled

shared:

- Add class-filter, error-state, route-error, section-error-boundary, widget-boundary components

- Add ui/alert component

- Add constants directory

- Add breached-password, export-utils, permission-bitmap, rate-limit, resolve-action-error, route-permissions, route-resolver, type-guards lib

- Add i18n messages (en, zh-CN) for invitation-codes, parent, questions, rbac

tests:

- Add integration tests for elective

- Add tests/setup/empty-stub

scripts:

- Add update-md.cjs, tmp_append_en.ps1, tmp_merge_en.ps1 utilities
This commit is contained in:
SpecialX
2026-07-03 10:26:38 +08:00
parent 21142f9b99
commit 0e63c24ed9
97 changed files with 9753 additions and 819 deletions

View File

@@ -34,7 +34,10 @@
"unsaved": "未保存",
"saved": "已保存",
"draft": "草稿",
"submitted": "待审核",
"approved": "审核通过",
"published": "已发布",
"rejected": "已驳回",
"archived": "已归档",
"publishedAsHomework": "已发布为作业"
},
@@ -235,6 +238,7 @@
"typeLabel": "题型",
"stemLabel": "题干",
"optionsLabel": "选项(勾选正确答案)",
"optionLabel": "选项 {index}",
"addOption": "+ 添加选项",
"correctAnswer": "正确答案",
"correct": "正确",
@@ -395,5 +399,198 @@
"confirm": {
"archive": "确认归档此课案?",
"archiveTitle": "确认归档"
},
"calendar": {
"title": "备课日历",
"description": "按日期查看备课活动",
"weekView": "周视图",
"monthView": "月视图",
"today": "今天",
"prev": "上一页",
"next": "下一页",
"noEvents": "当日无备课活动",
"loading": "加载中...",
"loadFailed": "加载日历失败",
"eventType": {
"created": "创建",
"updated": "更新",
"version_saved": "保存版本",
"submitted": "提交审核",
"published": "发布",
"reviewed": "审核"
},
"eventMeta": "v{versionNo}",
"weekDays": {
"sun": "周日",
"mon": "周一",
"tue": "周二",
"wed": "周三",
"thu": "周四",
"fri": "周五",
"sat": "周六"
}
},
"review": {
"title": "审核工作流",
"submit": "提交审核",
"withdraw": "撤回提交",
"approve": "通过",
"reject": "驳回",
"submitConfirm": "确认提交审核?提交后不可编辑,等待教研组长审核。",
"withdrawConfirm": "确认撤回提交?撤回后将回到草稿状态。",
"approveConfirm": "确认通过此课案审核?",
"rejectConfirm": "确认驳回此课案?教师可修改后重新提交。",
"commentLabel": "审核意见",
"commentPlaceholder": "请输入审核意见(可选)",
"submitted": "已提交审核",
"approved": "审核通过",
"rejected": "审核驳回",
"withdrawn": "已撤回",
"reviewerLabel": "审核人:{name}",
"reviewAt": "审核时间:{time}",
"records": "审核记录",
"noRecords": "暂无审核记录",
"pendingTitle": "待审核课案",
"pendingEmpty": "暂无待审核课案",
"invalidTransition": "状态变更不合法",
"notSubmitted": "当前状态不可提交审核",
"notReviewable": "当前状态不可审核",
"submitSuccess": "已提交审核",
"withdrawSuccess": "已撤回提交",
"approveSuccess": "审核已通过",
"rejectSuccess": "已驳回"
},
"comment": {
"title": "协同评论",
"add": "发表评论",
"reply": "回复",
"placeholder": "输入评论内容...",
"empty": "暂无评论",
"resolve": "标记已解决",
"reopen": "重新打开",
"resolved": "已解决",
"unresolved": "未解决",
"delete": "删除",
"deleteConfirm": "确认删除此评论?子回复将一并删除。",
"edit": "编辑",
"unresolvedCount": "{count} 条未解决",
"blockLabel": "节点:{title}",
"createSuccess": "评论已发表",
"deleteSuccess": "已删除",
"resolveSuccess": "已标记为解决",
"createFailed": "发表评论失败",
"deleteFailed": "删除评论失败"
},
"formative": {
"title": "形成性评价",
"add": "添加互动组件",
"empty": "暂无互动组件",
"interactionType": {
"poll": "投票",
"quiz": "随堂测",
"exit_ticket": "出口票"
},
"promptLabel": "题目",
"promptPlaceholder": "输入互动题目...",
"optionsLabel": "选项",
"addOption": "+ 添加选项",
"correctAnswer": "正确答案",
"durationLabel": "时长(秒)",
"responses": "学生作答",
"noResponses": "暂无作答",
"stats": "统计",
"totalResponses": "{count} 人作答",
"correctRate": "正确率 {rate}%",
"avgDuration": "平均用时 {sec} 秒",
"createSuccess": "已添加",
"updateSuccess": "已更新",
"deleteSuccess": "已删除"
},
"attachment": {
"title": "资源附件",
"add": "添加附件",
"empty": "暂无附件",
"type": {
"reference": "参考资料",
"material": "教学素材",
"supplementary": "补充材料"
},
"nameLabel": "名称",
"urlLabel": "链接",
"typeLabel": "类型",
"createSuccess": "附件已添加",
"deleteSuccess": "附件已删除",
"updateSuccess": "附件已更新"
},
"substitute": {
"title": "代课教师",
"add": "添加代课",
"empty": "暂无代课记录",
"originalTeacher": "原任教师",
"substituteTeacher": "代课教师",
"startDate": "开始日期",
"endDate": "结束日期",
"status": {
"active": "生效中",
"expired": "已过期",
"cancelled": "已取消"
},
"createSuccess": "代课已安排",
"updateSuccess": "代课状态已更新",
"deleteSuccess": "代课已删除",
"cancelConfirm": "确认取消此代课安排?"
},
"evaluation": {
"title": "AI 课案评估",
"run": "开始评估",
"running": "评估中...",
"empty": "暂无评估记录",
"overallScore": "综合评分",
"dimensions": {
"clarity": "目标清晰度",
"alignment": "课标对齐",
"engagement": "学生参与",
"differentiation": "分层设计",
"assessment": "评估设计"
},
"suggestions": "改进建议",
"noSuggestions": "暂无改进建议",
"createSuccess": "评估完成",
"suggestion": {
"addMoreNodeDetails": "建议在教学节点中补充更多细节",
"linkMoreStandards": "建议关联更多课标条目",
"addFormativeItems": "建议增加课堂互动组件",
"addPracticeBlock": "建议增加课堂练习环节",
"addHomeworkBlock": "建议明确课后作业要求"
}
},
"analytics": {
"title": "备课分析",
"teacherInvestment": "教师投入",
"templateUsage": "模板使用",
"standardsCoverage": "课标覆盖",
"globalStats": "概览",
"totalTeachers": "参与教师",
"totalPlans": "课案总数",
"totalPublished": "已发布",
"totalSubmitted": "待审核",
"totalStandardsLinked": "已关联课标",
"noData": "暂无数据",
"loadFailed": "加载分析数据失败"
},
"standards": {
"title": "课标对标",
"link": "关联课标",
"unlink": "取消关联",
"linked": "已关联 {count} 条",
"empty": "暂无关联课标",
"searchPlaceholder": "搜索课标...",
"level": {
"national": "国家标准",
"curriculum": "课程标准",
"custom": "校本标准"
},
"linkSuccess": "已关联课标",
"unlinkSuccess": "已取消关联"
}
}