feat: SSR 个人闭环(profile / user / favorites)

登录用户可改资料与头像、浏览收藏;公开主页不含邮箱;改密吊销并重建本端 session。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-29 05:53:56 +08:00
parent fde5f628ec
commit 126e3bae98
19 changed files with 599 additions and 20 deletions

View File

@@ -35,9 +35,9 @@
- [ ] 忘记密码:邮箱验证码 + 重置
- [x] 注册配置:邮件就绪时强制验证码;安装后开放注册(不依赖 SMTP
- [x] ~~首个用户自动成为管理员~~ → 改为仅 `/install` 创建管理员
- [ ] 个人中心:改昵称、签名、密码、上传头像(可裁剪
- [ ] 个人活动统计:帖数、评数、收藏数、获赞
- [ ] 公开用户主页 `/user/:id`(无邮箱)
- [x] 个人中心:改昵称、签名、密码、上传头像 — SSR `/profile`(裁剪未做
- [x] 个人活动统计:帖数、评数、收藏数、获赞`/profile` + `/user/:id`
- [x] 公开用户主页 `/user/:id`(无邮箱)
- [x] 禁言用户无法使用需登录写接口(中间件 + compose 门控)
---
@@ -60,7 +60,7 @@
- [x] 编辑帖子(时限、锁帖约束)— SSR `/post/:id/edit`
- [ ] 删除帖子 → 软删进回收站
- [ ] 修订历史列表与单条详情(可做 diff
- [x] 点赞切换;收藏切换;收藏列表页未迁)
- [x] 点赞切换;收藏切换;收藏列表 — SSR `/favorites`
- [x] 浏览量 — 详情页计数
- [ ] 举报帖子
- [ ] 内容审核状态展示(作者可见待审/被拒)

View File

@@ -29,9 +29,9 @@
| `/post/:id` | 帖详情 + 评论/赞/藏 | 已迁 |
| `/compose` | 发帖normalMarkdown textarea + 图片上传) | 已迁 |
| `/post/:id/edit` | 编辑帖 | 已迁 |
| `/profile` | 个人中心 | pending |
| `/user/:id` | 公开用户页 | 未注册 |
| `/favorites` | 收藏 | pending |
| `/profile` | 个人中心(资料/密码/头像;无钱包/裁剪) | 已迁 |
| `/user/:id` | 公开用户页 | 已迁 |
| `/favorites` | 收藏 | 已迁 |
| `/projects` | Gitea 码桶 | 后置 |
| `/links` | 友链 | pending |
| `/messages` | 私信 | pending |
@@ -157,10 +157,10 @@
## 6. 个人中心 / 公开主页
- 资料编辑、头像裁剪、密码
- 积分钱包面板(流水、签到状态
- 徽章与等级徽记展示
- 公开页:签名、徽章、统计、最近帖(按现实现)
- 资料编辑、密码、头像直传(**本迭代无裁剪器**)— SSR `/profile`
- 公开页:签名、等级/积分只读、统计、最近帖 — SSR `/user/:id`(无邮箱
- 收藏列表 — SSR `/favorites`
- 积分钱包面板(流水、签到)、徽章展示:**未迁**
---

View File

@@ -45,7 +45,7 @@ modules/
templates/
install.tmpl
post-install.tmpl
base/ home/ post/ shared/ status/ auth/ admin/
base/ home/ post/ shared/ status/ auth/ admin/ profile/ user/ favorites/
services/
web_src/ → public/assets/
```
@@ -83,4 +83,6 @@ web_src/ → public/assets/
公开写:`/install``/login``/logout``/register``/compose``/post/:id/edit`、帖详情评论/赞/藏。
个人闭环:`/profile`(昵称/签名/密码/头像)、`/user/:id``/favorites`
Admin`/admin/dashboard``/admin/boards``/admin/moderation``/admin/settings`(品牌/限流/敏感词)。