回复管理
+ +| 回复内容 | +作者 | +帖子 | +赞 | +回复时间 | +操作 | +
|---|---|---|---|---|---|
| 加载中... | |||||
From cd087e993187c79b5ee2e30e965b3dde92aa0eaa Mon Sep 17 00:00:00 2001 From: hubian <908234780@qq.com> Date: Sun, 12 Apr 2026 18:16:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=8E=E5=8F=B0=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=A2=9E=E5=BC=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 前端用户下拉菜单优化 - 改用CSS动画,解决鼠标移动问题 2. 帖子管理增加显示/隐藏开关 3. 帖子详情页可直接删除回复 4. 新增回复管理页面(列表、删除) 5. 用户管理增加编辑功能(用户名、邮箱、手机、简介) 6. 用户管理增加查看帖子按钮 7. 所有页面侧边栏添加回复管理入口 8. 数据库增加 is_hidden 字段 --- admin/templates/index.html | 3 + admin/templates/login.html | 2 +- admin/templates/posts.html | 81 ++++++++++++++------ admin/templates/replies.html | 140 ++++++++++++++++++++++++++++++++++ admin/templates/topics.html | 3 + admin/templates/users.html | 141 ++++++++++++++++++++++++++++++----- backend/app.py | 91 ++++++++++++++++++++++ frontend/index.html | 26 +++++-- models.py | 19 +++++ 9 files changed, 458 insertions(+), 48 deletions(-) create mode 100644 admin/templates/replies.html diff --git a/admin/templates/index.html b/admin/templates/index.html index 3f2e2c8..b4f73a4 100644 --- a/admin/templates/index.html +++ b/admin/templates/index.html @@ -31,6 +31,9 @@ 帖子管理 + + 回复管理 + 主题管理 diff --git a/admin/templates/login.html b/admin/templates/login.html index 3d009e4..3ceaea6 100644 --- a/admin/templates/login.html +++ b/admin/templates/login.html @@ -19,7 +19,7 @@
管理员账号: admin / admin123
+用户管理员账号: admin / admin123
+| 回复内容 | +作者 | +帖子 | +赞 | +回复时间 | +操作 | +
|---|---|---|---|---|---|
| 加载中... | |||||
diff --git a/admin/templates/replies.html b/admin/templates/replies.html new file mode 100644 index 0000000..c7f723d --- /dev/null +++ b/admin/templates/replies.html @@ -0,0 +1,140 @@ + + +
+ + + +
+ + + +
+