新增教师介绍展示与后台管理#5
Open
ElysiaFollower wants to merge 18 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
本 PR 为官网新增「教师介绍」公开展示与后台维护入口,用于集中展示协会当前重点对接教师的公开资料、研究方向、联系方式和外部主页,并为维护者提供教师资料编辑、同步建议审核和发布工作流。
配套后端 PR:ZJUCSA/csa-backend#2
主要变更
公开教师介绍页
/mentors教师介绍列表页:/teachers/list读取后端公开教师数据。/mentors/:id教师详情页:/teachers/detail?id=...读取单个教师详情。Mentors入口,并将列表页和详情页纳入 active 状态判断。后台教师介绍管理
/admin/mentors教师介绍管理页,并接入后台侧边栏「教师介绍管理」入口。https://person.zju.edu.cn/<slug>格式。工程清理
dist/构建产物,并将dist加入.gitignore。docs/跟踪文件,教师展示数据以配套后端 API 为准。影响范围
/teachers/list、/teachers/detail和/teachers/admin/*接口;后端未部署时页面会进入错误态,不会静默展示过期本地数据。验证
已在本地执行:
结果:
pnpm build构建成功。git diff --check upstream/main...HEAD无 whitespace/error 输出。构建过程中仍有现有工具链提示:
caniuse-lite数据较旧。这些提示未阻断构建,本 PR 未专门处理前端分包和 Browserslist 数据更新问题。
后续注意