123 Commits

Author SHA1 Message Date
weli 549738c4a1 fix(front): 练习/课程视频上传后创建 VIDEO_COMPRESSION 任务
上传又拍云并 create_hty_resource 成功后调用 TS create_task,
把任务写入 ref_resource.tasks,供 htyproc 处理与 ref-resource 轮询。

Made-with: Cursor
2026-04-26 22:00:24 +08:00
weli f5b18ae0e1 fix(cdn): upload_assets 默认调用 /usr/local/bin/upyun_tool
可通过环境变量 UPYUN_TOOL 覆盖路径。

Made-with: Cursor
2026-04-26 21:49:13 +08:00
weli 81fe1224df fix(scripts): cp_dist_moicen 用 hostname 与 POSIX 判断,固定 build:moicen
避免 SSH 非登录环境下 HOSTNAME 为空导致 npm run build: 失败;/bin/sh 下 [[ 不可用。

Made-with: Cursor
2026-04-26 21:39:15 +08:00
weli 19fbb53060 fix(front): 打卡/计划提交不再强制课程含图片;选课不限媒体;曲谱文案改为图片
- daka/jihua prepare 去掉仅 Picture+CourseSection 的前端校验
- pick 列表始终可选课,去掉仅按图片判断的警告
- 课程与练习相关界面 ref_name 与提示由「曲谱」改为「图片」等

Made-with: Cursor
2026-04-26 21:38:34 +08:00
weli be211a2638 fix(front): tabbar 首页直达角色工作台路径;路由与类型调整(music-room 欢迎页等)
Made-with: Cursor
2026-04-26 17:09:42 +08:00
weli 31f071ff80 fix(vite): moicen assets_base / for nginx music-room self-host (avoid static 404)
Made-with: Cursor
2026-04-26 16:11:12 +08:00
weli f5451f97f7 feat(dev): add /__dev/session to paste UC JWT + sudo for local browser QA
Production build omits route via import.meta.env.DEV guard.

Made-with: Cursor
2026-04-26 16:08:59 +08:00
weli 9dff5a04b6 fix(index): replace huiwings.cn iframe with in-app role home redirect
Logged-in users on music-room.moicen.com saw a blank center because iframe
targeted huiwings.cn (cross-origin / no session). Redirect to /student/home,
/teacher/home, /admin/teachers, /tester, or supervisor path on same origin.

Made-with: Cursor
2026-04-26 16:06:44 +08:00
weli b1996f3cd1 fix(wx): strip identity from share page_path; guard router unionid switch
- Sanitize page_path before router.push (H5) to prevent cross-user login via shared link
- onShareAppMessage: remove unionid/openid/status and related query keys from shared path
- main.ts: fix login(to.query.toString()) bug; when already logged in, strip foreign unionid from URL instead of logout

Made-with: Cursor
2026-04-26 15:58:56 +08:00
weli 3a6b9b6973 refactor(types): Tongzhi/TongzhiContent from domain; align with commons envelope DTO
Made-with: Cursor
2026-04-24 09:48:47 +08:00
weli 7d4170913b chore: export NotifyTypes from src/domain/notifyTypes
Made-with: Cursor
2026-04-24 09:17:36 +08:00
weli d661413a53 ci: 同级检出 AuthCoreJS 以满足 file:../AuthCoreJS
pnpm 安装时会解析本地 path 依赖,单仓库检出时 ../AuthCoreJS 不存在导致 ENOENT。
与 monorepo 布局一致:huike-front/ 与 AuthCoreJS/ 并列;pnpm/nodejs cache 指向子目录 lockfile。

Made-with: Cursor
2026-04-24 08:38:34 +08:00
weli 091c94b393 chore: private 包标记并重生成 pnpm-lock(对齐 file AuthCoreJS)
pnpm install --frozen-lockfile 需与 package.json 一致。

Made-with: Cursor
2026-04-24 08:35:15 +08:00
weli b7fa0a3d7e feat: 课程模块更名为 clazz(路由 /clazz、store、通知与选型)
对接 AuthCoreJS 通知枚举与 clazz_id;打卡与通知页使用 clazz 字段;补充 package-lock。

Made-with: Cursor
2026-04-24 07:43:06 +08:00
weli a7d09b4f1c docs update frontend ci badges
Point README CI badge to huike-front and remove obsolete release badge with no workflow.

Made-with: Cursor
2026-04-23 21:50:46 +08:00
weli 37ac462b45 refactor remove legacy qumu pick target compatibility
Use only COURSE_SECTION and COURSE_GROUP target keys so frontend strictly matches the new backend naming contract.

Made-with: Cursor
2026-04-23 21:47:55 +08:00
weli 3007c73c80 refactor frontend terminology to course system mapping
Align frontend wording with final domain terms (course system/course/lesson block), keep PickTargets backward compatible with backend values, and fix related import paths.

Made-with: Cursor
2026-04-23 21:47:02 +08:00
weli 3849426ad9 fix frontend route component import paths
Point admin and course route imports to existing qumu page files to resolve missing file errors in Vite build.

Made-with: Cursor
2026-04-23 21:42:45 +08:00
weli 5afb50513a ci add github actions workflow for frontend build
Run pnpm install and build on push/pull_request to ensure huike-front stays buildable in CI.

Made-with: Cursor
2026-04-23 21:40:55 +08:00
weli 88122f8579 refactor frontend course field naming alignment
Align frontend types, stores, pages, and routes to the renamed course/course_section/course_group domain fields for backend compatibility.

Made-with: Cursor
2026-04-23 21:38:49 +08:00
weli 81a838d273 Update README.md 2026-04-23 16:48:35 +08:00
weli 3d7da4d70f chore: ignore and remove local credential files
Remove local deployment credential files and private weapp config from tracking, and add explicit ignore rules to prevent re-adding them.

Made-with: Cursor
2026-04-23 16:37:33 +08:00
weli a661e439a0 chore: initialize frontend repo with teaching terminology updates
Add the current frontend codebase with a baseline .gitignore and update piano-specific UI terms to teaching-oriented terms for the current product context.

Made-with: Cursor
2026-04-23 16:37:14 +08:00