3 Commits

Author SHA1 Message Date
Pine 81805804c9 feat(admin): 公众号式写文章富文本编辑器(WangEditor) + OSS 上传
- 新增 @wangeditor/editor(+for-react)/dompurify;/article-editor 整页编辑器:左侧封面/标题/新建内容,顶部 WangEditor 工具栏(图片/视频/超链接走 /admin/upload),中央标题(0/64)+作者+富文本正文,底部字数/保存草稿/预览/发表
- contentApi +getOne;后端 GET /content/{id} 回填
- 资讯列表「写文章」header + 每行「编辑文章」跳转编辑器;CrudTable +headerActions/createLabel
- 预览用 DOMPurify 消毒富文本

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-27 14:59:22 +08:00
Pine f03e3a3fed feat(auth): 登录页支持四种登录(账号/短信/微信扫码/小程序扫码)
- 平台登录内嵌四方式Tab,PollingQr 用 @rc-component/qrcode 渲染+轮询
- auth.ts 加 sendCode/phoneLogin/wxQrStart/wxQrPoll/mpQrStart/mpQrPoll;auth.tsx 加 loginWithResponse
- package.json 加 @rc-component/qrcode(锁文件只提交 npm package-lock.json)
2026-08-25 22:47:45 +08:00
Pine 258bccfad3 chore: 初始化云超服运营管理平台(admin-portal)
- 脚手架:Vite6 + React18 + TypeScript(strict) + Tailwind4
- shadcn/ui 基座(依 design/installation.md):components.json + src/components/ui/* + cn(),radix-ui 单片
- 认证:登录(密码+多身份选择 select-identity),lib/auth.tsx(上下文+localStorage)
- RBAC:lib/rbac.tsx 八端口导航过滤 + App.tsx RequireAuth/RoleRoute
- 布局:AppShell(侧边栏+顶栏+身份切换+用户菜单)
- API:client.ts(fetch+token+401登出) + resources.ts(用户/课程/活动/报名/测评/算力/园区)
- 页面:登录/总览 + 用户/课程/活动/报名/测评/算力/园区 7 个管理页(未实现端点优雅降级)
- npm run build 通过;.env.example / README.md / .gitignore
2026-08-24 13:07:09 +08:00