mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-22 13:05:18 +00:00
refactor: 整合仪表盘功能到监控模块,清理冗余代码
- 移除原监控仪表盘独立模块,将相关功能合并到在线监控模块 - 重构租户配置字段名,统一使用logo_url和name替代tenant_logo/tenant_name - 优化搜索工具函数,移除重复导入 - 调整参数配置模型字段长度限制,移除config_value的max_length约束 - 清理冗余的常量定义和导入语句 - 修复批量状态设置接口的redis依赖注入 - 增强OAuth登录安全性,添加租户默认归属和state一次性消费 - 优化资源目录缓存逻辑,减少重复计算 - 新增API Token模块基础框架 - 完善用户token版本管理,支持主动失效JWT - 调整AI模型配置缓存过期时间 - 修复菜单类型字段索引,提升查询性能 - 简化前端刷新token调用逻辑 - 新增滑块验证完成接口和忘记密码验证码校验 - 调整系统配置默认值,添加操作日志保留天数和接口白名单配置 - 限制Mock支付回调仅在开发环境可用 - 重构websocket认证方式,支持更安全的subprotocol传参
This commit is contained in:
@@ -17,15 +17,6 @@
|
||||
"description": "演示模式下允许访问的IP列表",
|
||||
"tenant_id": 1
|
||||
},
|
||||
{
|
||||
"config_name": "接口白名单",
|
||||
"config_key": "white_api_list_path",
|
||||
"config_value": "[\"/api/v1/system/auth/login\", \"/api/v1/system/auth/token/refresh\", \"/api/v1/system/auth/captcha/get\", \"/api/v1/system/auth/logout\", \"/api/v1/system/config/info\", \"/api/v1/system/user/current/info\", \"/api/v1/system/notice/available\", \"/api/v1/system/auth/auto-login/users\", \"/api/v1/system/auth/auto-login/token\", \"/api/v1/system/auth/auto-login\", \"/common/health\", \"/common/health/ready\", \"/common/health/live\", \"/metrics\"]",
|
||||
"config_type": true,
|
||||
"status": 0,
|
||||
"description": "无需登录即可访问的接口列表",
|
||||
"tenant_id": 1
|
||||
},
|
||||
{
|
||||
"config_name": "访问IP黑名单",
|
||||
"config_key": "ip_black_list",
|
||||
@@ -34,14 +25,5 @@
|
||||
"status": 0,
|
||||
"description": "禁止访问的IP列表(任意请求均拒绝)",
|
||||
"tenant_id": 1
|
||||
},
|
||||
{
|
||||
"config_name": "操作日志保留天数",
|
||||
"config_key": "operation_log_retention_days",
|
||||
"config_value": "90",
|
||||
"config_type": true,
|
||||
"status": 0,
|
||||
"description": "操作日志保留天数,调度器定期清理过期日志",
|
||||
"tenant_id": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user