refactor(modules): 移除资源库模块对接
build / build (push) Successful in 1m56s

- modules.ts / QuickActions.vue / Chat.vue 去掉 resourcelibrary 的标签、落地页、快捷卡与例句
- 模块清单仍完全由后端 /api/agent/tools 下发驱动,前端不硬编码、不自行判权
This commit is contained in:
lijing
2026-10-12 16:10:45 +08:00
parent ab87a4b560
commit 946d953103
3 changed files with 0 additions and 8 deletions
-5
View File
@@ -15,7 +15,6 @@ export const MODULE_CONTEXT: Record<string, string> = {
dormnotice: "dormnotice", dormnotice: "dormnotice",
familyactivity: "familyactivity", familyactivity: "familyactivity",
coursehomework: "coursehomework", coursehomework: "coursehomework",
resourcelibrary: "resourcelibrary",
profession: "profession", profession: "profession",
}; };
@@ -26,7 +25,6 @@ export const MODULE_LABEL: Record<string, string> = {
dormnotice: "宿舍通知", dormnotice: "宿舍通知",
familyactivity: "家校活动", familyactivity: "家校活动",
coursehomework: "课程作业", coursehomework: "课程作业",
resourcelibrary: "资源库",
profession: "教师专业发展", profession: "教师专业发展",
}; };
@@ -46,7 +44,6 @@ export const MODULE_LANDING: Record<string, string> = {
dormnotice: "/par/notices", dormnotice: "/par/notices",
familyactivity: "/par/activities", familyactivity: "/par/activities",
coursehomework: "/stu/today", coursehomework: "/stu/today",
resourcelibrary: "/resource",
profession: "/home", profession: "/home",
}; };
@@ -63,7 +60,6 @@ export const MODULE_META: Record<string, { icon: string; tone: string; sample: s
dormnotice: { icon: "舍", tone: "teal", sample: "宿舍有什么通知需要我回执吗?" }, dormnotice: { icon: "舍", tone: "teal", sample: "宿舍有什么通知需要我回执吗?" },
familyactivity: { icon: "活", tone: "amber", sample: "报名秋季亲子运动会,2 人参加" }, familyactivity: { icon: "活", tone: "amber", sample: "报名秋季亲子运动会,2 人参加" },
coursehomework: { icon: "作", tone: "rose", sample: "看看我还有哪些作业没做" }, coursehomework: { icon: "作", tone: "rose", sample: "看看我还有哪些作业没做" },
resourcelibrary: { icon: "资", tone: "cyan", sample: "帮我找一份语文课件" },
profession: { icon: "分", tone: "indigo", sample: "我的专业发展积分是多少?" }, profession: { icon: "分", tone: "indigo", sample: "我的专业发展积分是多少?" },
}; };
@@ -81,7 +77,6 @@ export const MODULE_ORDER = [
"dormnotice", "dormnotice",
"familyactivity", "familyactivity",
"coursehomework", "coursehomework",
"resourcelibrary",
"profession", "profession",
]; ];
-1
View File
@@ -31,7 +31,6 @@ const PRESET_TEXT: Record<string, { title: string; desc: string; text: string }>
dormnotice: { title: "宿舍通知回执", desc: "查看待回执的宿舍通知", text: "宿舍有什么通知需要我回执吗?" }, dormnotice: { title: "宿舍通知回执", desc: "查看待回执的宿舍通知", text: "宿舍有什么通知需要我回执吗?" },
familyactivity: { title: "报名校园活动", desc: "活动广场报名,一次填清", text: "报名秋季亲子运动会,2 人参加" }, familyactivity: { title: "报名校园活动", desc: "活动广场报名,一次填清", text: "报名秋季亲子运动会,2 人参加" },
coursehomework: { title: "今天有什么作业", desc: "查看待做作业与截止时间", text: "看看我还有哪些作业没做" }, coursehomework: { title: "今天有什么作业", desc: "查看待做作业与截止时间", text: "看看我还有哪些作业没做" },
resourcelibrary: { title: "找教学资源", desc: "按关键词检索资源库", text: "帮我找一份语文课件" },
profession: { title: "我的积分", desc: "查看专业发展积分", text: "我的专业发展积分是多少?" }, profession: { title: "我的积分", desc: "查看专业发展积分", text: "我的专业发展积分是多少?" },
}; };
-2
View File
@@ -48,7 +48,6 @@ const EXAMPLES: { text: string; module: string; tool?: string }[] = [
{ text: "看看我还有哪些作业没做", module: "coursehomework", tool: "homework.myList" }, { text: "看看我还有哪些作业没做", module: "coursehomework", tool: "homework.myList" },
{ text: "宿舍有什么通知需要我回执吗?", module: "dormnotice", tool: "dorm.myNotice" }, { text: "宿舍有什么通知需要我回执吗?", module: "dormnotice", tool: "dorm.myNotice" },
{ text: "报名秋季亲子运动会,2 人参加", module: "familyactivity", tool: "activity.signup" }, { text: "报名秋季亲子运动会,2 人参加", module: "familyactivity", tool: "activity.signup" },
{ text: "帮我找一份语文课件", module: "resourcelibrary", tool: "resource.search" },
{ text: "我的专业发展积分是多少?", module: "profession", tool: "profession.myPoints" }, { text: "我的专业发展积分是多少?", module: "profession", tool: "profession.myPoints" },
]; ];
@@ -78,7 +77,6 @@ const TIPS: { key: RegExp; text: string }[] = [
{ key: /宿舍|回执/, text: "例:宿舍有什么通知需要我回执吗?我会列出通知并给出回执表单" }, { key: /宿舍|回执/, text: "例:宿舍有什么通知需要我回执吗?我会列出通知并给出回执表单" },
{ key: /报名|活动/, text: "例:报名秋季亲子运动会,2 人参加,联系人张伟 13800000000" }, { key: /报名|活动/, text: "例:报名秋季亲子运动会,2 人参加,联系人张伟 13800000000" },
{ key: /审批|通过|驳回/, text: "例:把 101 号请假审批通过,意见「同意」" }, { key: /审批|通过|驳回/, text: "例:把 101 号请假审批通过,意见「同意」" },
{ key: /资源|课件|教案|资料|试题/, text: "例:帮我找一份语文课件;想留存就说「收藏这份课件」" },
{ key: /积分|专业发展|记录|成果/, text: "查积分说「我的专业发展积分是多少」;要留痕说「发布一条听课记录」" }, { key: /积分|专业发展|记录|成果/, text: "查积分说「我的专业发展积分是多少」;要留痕说「发布一条听课记录」" },
]; ];
const activeTip = computed(() => const activeTip = computed(() =>