feat(api): 重构 API 调用并优化用户认证流程

- 新增 auth、forum 和 user API 文件夹,重新组织 API 调用结构
- 重构 AuthContext,使用新 API 进行用户认证和信息管理
- 更新 AdminPanel、ForumPage 等组件,使用新的 API 调用
- 删除旧的 authApi.js 文件,清理冗余代码
- 优化用户登录、注册和登出流程,改进错误处理和用户提示

Change-Id: If664193e1bf30036c197f164edc5b10df75f1331
16 files changed
tree: 9d287a156541a86d63b375d675d37d23488936ae
  1. public/
  2. src/
  3. .gitignore
  4. 50x.html
  5. docker
  6. Dockerfile
  7. eslint.config.js
  8. index.html
  9. nginx.conf
  10. package-lock.json
  11. package.json
  12. postcss.config.js
  13. README.md
  14. tailwind.config.js
  15. vite.config.js
  16. vitest.config.js
README.md

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available: