Commit Graph

45 Commits

Author SHA1 Message Date
8a12744 45f7243bf9 perf(task): optimize task uniqueness validation query
Query only id and payload_config fields instead of loading full Task objects
when checking for duplicate ThreadId. Reduces data transfer by ~50%.
2026-01-05 23:19:18 +08:00
8a12744 f24f21fdc8 chore: logging info 2026-01-05 23:19:05 +08:00
8a12744 a0143e805f perf(admin): optimize token expiry query in stats endpoint
Replace N+1 loop with SQL-level filtering using cast and and_ operators
to count users with expiring tokens. Performance improvement: O(N) → O(1).
2026-01-05 23:18:19 +08:00
8a12744 a9b141fc69 feat: implement JWT auth and optimize token validation
- Separate JWT login (21d) from check-in token
- Unify check-in token validation with verify_checkin_authorization()
- Update API docs for dual-token architecture
2026-01-05 23:02:50 +08:00
8a12744 b32b53853a feat: format frontend codes 2026-01-05 21:06:30 +08:00
8a12744 a5de813c82 feat: 支持创建任务时自定义crontab并清理冗余代码
- 添加创建任务时的crontab编辑控件
- 修复创建任务按钮状态重置问题
- 创建任务后自动加载到调度器
- 删除废弃的手动创建任务API和相关代码
2026-01-05 20:53:25 +08:00
8a12744 0fd21960e8 fix: message of token expired 2026-01-05 20:04:37 +08:00
8a12744 a84d525fa3 fix: update token expiration messages for consistency and reduce duration 2026-01-05 20:02:14 +08:00
8a12744 bc09da5270 fix: update token expiration warning message for clarity 2026-01-05 19:57:41 +08:00
8a12744 75f088b975 fix(style): center align Ant Design tooltip text for better visibility 2026-01-04 12:50:53 +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 4add9bffb1 style: fix login view segmented compoment 2026-01-04 01:03:25 +08:00
8a12744 0543f89e3c chore: remove useless migration srcipts 2026-01-03 19:56:38 +08:00
8a12744 4b6103c638 build: fix deps again
now it should work
2026-01-03 19:55:41 +08:00
8a12744 0dba96d7fe build: fix deps 2026-01-03 19:50:48 +08:00
8a12744 58fe48dfd1 build: update deps 2026-01-03 19:45:21 +08:00
8a12744 01db5639e5 docs: fix \n 2026-01-03 19:40:44 +08:00
8a12744 d71cbd66db chore: update .gitignore 2026-01-03 19:36:03 +08:00
8a12744 c2493841ec docs: update 2026-01-03 19:34:20 +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 523da50123 feat: optimize Token expiration monitor 2026-01-03 17:02:28 +08:00
8a12744 ed8019c14b frontend: prevent starting token monitor more than once 2026-01-03 16:24:11 +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 955b09436e docs: remove some old docs 2026-01-03 13:10:02 +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 42a1046750 fix: wrong import 2026-01-02 14:04:11 +08:00
8a12744 cc2ccb1494 feat: remove useless scheduler config 2026-01-02 13:20:12 +08:00
8a12744 8a90db7c27 deploy: fix service example 2026-01-02 13:13:40 +08:00
8a12744 49fdda6e77 fix: use relative path for api 2026-01-02 12:41:28 +08:00
8a12744 b5845384f3 fix: update axios baseURL to remove default localhost value 2026-01-02 12:38:26 +08:00
8a12744 08e894c9ae build: improve manual chunking for better dependency management 2026-01-02 12:27:53 +08:00
8a12744 434815fd42 frontend: fix import 2026-01-02 03:21:13 +08:00
8a12744 e66ca92aa7 build: fix script help and deploy process 2026-01-02 03:07:21 +08:00
8a12744 7d3d192416 fix: build 2026-01-02 02:56:27 +08:00
8a12744 db54884f0c refactor: remove backup files 2026-01-02 02:28:50 +08:00
8a12744 b2dc88439a build: add deploy for linux 2026-01-02 02:26:07 +08:00
8a12744 5430dc03f4 refactor: see details below
- Fix emailing.
- Updated manage.sh to enhance command handling and service management for backend and frontend.
- Introduced utility functions for better code organization and readability.
- Added support for checking Node.js version and ensuring the virtual environment is set up.
- Implemented improved logging with color-coded output for better visibility.
- Created a new nginx.conf.example file for easy Nginx configuration setup for the application.
2026-01-02 01:57:25 +08:00
8a12744 fdc725b893 refactor: v2
backend & frontend
2026-01-01 18:38:21 +08:00
8a12744 3d201bc497 fix: add token refresh situation 2025-12-12 19:50:31 +08:00
8a12744 8fa0bdd1a1 docs: add tips about config.csv 2025-11-06 23:17:41 +08:00
8a12744 0bf6353839 init 2025-11-06 23:10:20 +08:00