Commit Graph

12 Commits

Author SHA1 Message Date
8a12744 a4f7050226 fix(navbar): stop token monitor on logout
Add stopMonitoring() call in handleLogout to prevent memory leak
from timer continuing after user logs out.
2026-01-05 23:19:28 +08:00
8a12744 0fd21960e8 fix: message of token expired 2026-01-05 20:04:37 +08:00
8a12744 e192f44d99 feat: add Token refresh button and optimize Navbar 2026-01-04 02:09:51 +08:00
8a12744 528dcbf06d fix: update message format to include duration for better user feedback 2026-01-04 01:07:56 +08:00
8a12744 5cdc8b2144 feat: improve error handling and code quality
后端改进:
- 添加统一异常处理系统 (exceptions.py, response.py)
- 实现自定义异常类 (ValidationError, AuthorizationError, ResourceNotFoundError, BusinessLogicError)
- 配置全局异常处理器,统一 API 错误响应格式
- 迁移业务逻辑错误到自定义异常 (users.py, auth.py)
- 添加 SQL LIKE 通配符转义,防止通配符滥用
- 使用 EmailStr 进行邮箱格式验证
- 移除敏感字段暴露 (jwt_sub)

前端改进:
- 配置 ESLint 9 (flat config) 和 Prettier
- 修复所有 ESLint 错误和警告
- 移除未使用的变量和导入
- 为组件添加 PropTypes 默认值
- 统一代码格式和风格
2026-01-03 19:01:15 +08:00
8a12744 59f111fedb frontend: use composables 2026-01-03 16:15:05 +08:00
8a12744 c98aa73364 style: use united style 2026-01-03 16:09:22 +08:00
8a12744 a05f7ec322 frontend: support more missing dark mode style 2026-01-03 12:58:27 +08:00
8a12744 f46c2a039b frontend: add dark mode support 2026-01-03 12:48:25 +08:00
8a12744 827c9198ae feat: migrate from Element Plus to Ant Design Vue and update Vite configuration for better dependency management
- Updated Vite configuration to manually chunk Ant Design Vue for improved dependency management.
- Added a comprehensive migration testing checklist for transitioning from Element Plus 2.13.0 to Ant Design Vue 4.x, covering various components and functionalities.
2026-01-03 01:38:38 +08:00
8a12744 db54884f0c refactor: remove backup files 2026-01-02 02:28:50 +08:00
8a12744 fdc725b893 refactor: v2
backend & frontend
2026-01-01 18:38:21 +08:00