Rumio
|
6124e217d0
|
♻️ refactor(UI): 重构UI渲染服务为组件化分层架构 (#2025)
检查bot是否运行正常 / bot check (push) Waiting to run
Sequential Lint and Type Check / ruff-call (push) Waiting to run
Sequential Lint and Type Check / pyright-call (push) Blocked by required conditions
Release Drafter / Update Release Draft (push) Waiting to run
Force Sync to Aliyun / sync (push) Waiting to run
Update Version / update-version (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
* ♻️ refactor(UI): 重构UI渲染服务为组件化分层架构
♻️ **架构重构**
- UI渲染服务重构为组件化分层架构
- 解耦主题管理、HTML生成、截图功能
✨ **新增功能**
- `zhenxun.ui` 统一入口,提供 `render`、`markdown`、`vstack` 等API
- `RenderableComponent` 基类和渲染协议抽象
- 新增主题管理器和截图引擎模块
⚙️ **配置优化**
- UI配置迁移至 `superuser/ui_manager.py`
- 新增"重载UI主题"管理指令
🔧 **性能改进**
- 优化渲染缓存,支持组件级透明缓存
- 所有UI组件适配新渲染流程
* 🚨 auto fix by pre-commit hooks
---------
Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
2025-08-18 23:08:22 +08:00 |
|
Rumio
|
b993450a23
|
✨ feat(limit, message): 引入声明式限流系统并增强消息格式化功能 (#1978)
- 新增 Cooldown、RateLimit、ConcurrencyLimit 三种限流依赖
- MessageUtils 支持动态格式化字符串 (format_args 参数)
- 插件CD限制消息显示精确剩余时间
- 重构限流逻辑至 utils/limiters.py,新增时间工具模块
- 整合时间工具函数并优化时区处理
- 新增 limiter_hook 自动释放资源,CooldownError 优化异常处理
- 冷却提示从固定文本改为动态显示剩余时间
- 示例:总结功能冷却中,请等待 1分30秒 后再试~
Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
|
2025-07-15 17:13:33 +08:00 |
|
HibiKier
|
8649aaaa54
|
✨ 引入缓存机制 (#1889)
* 添加全局cache
* ✨ 构建缓存,hook使用缓存
* ✨ 新增数据库Model方法监控
* ✨ 数据库添加semaphore锁
* 🩹 优化webapi返回数据
* ✨ 添加增量缓存与缓存过期
* 🎨 优化检测代码结构
* ⚡ 优化hook权限检测性能
* 🐛 添加新异常判断跳过权限检测
* ✨ 添加插件limit缓存
* 🎨 代码格式优化
* 🐛 修复代码导入
* 🐛 修复刷新时检查
* 👽 Rename exception for missing database URL in initialization
* ♿ Update default database URL to SQLite in configuration
* 🔧 Update tortoise-orm and aiocache dependencies restrictions; add optional redis and asyncpg support
* 🐛 修复ban检测
* 🐛 修复所有插件关闭时缓存更新
* 🐛 尝试迁移至aiocache
* 🐛 完善aiocache缓存
* ⚡ 代码性能优化
* 🐛 移除获取封禁缓存时的日志记录
* 🐛 修复缓存类型声明,优化封禁用户处理逻辑
* 🐛 优化LevelUser权限更新逻辑及数据库迁移
* ✨ cache支持redis连接
* 🚨 auto fix by pre-commit hooks
* ⚡ :增强获取群组的安全性和准确性。同时,优化了缓存管理中的相关逻辑,确保缓存操作的一致性。
* ✨ feat(auth_limit): 将插件初始化逻辑的启动装饰器更改为优先级管理器
* 🔧 修复日志记录级别
* 🔧 更新数据库连接字符串
* 🔧 更新数据库连接字符串为内存数据库,并优化权限检查逻辑
* ✨ feat(cache): 增加缓存功能配置项,并新增数据访问层以支持缓存逻辑
* ♻️ 重构cache
* ✨ feat(cache): 增强缓存管理,新增缓存字典和缓存列表功能,支持过期时间管理
* 🔧 修复Notebook类中的viewport高度设置,将其从1000调整为10
* ✨ 更新插件管理逻辑,替换缓存服务为CacheRoot并优化缓存失效处理
* ✨ 更新RegisterConfig类中的type字段
* ✨ 修复清理重复记录逻辑,确保检查记录的id属性有效性
* ⚡ 超级无敌大优化,解决延迟与卡死问题
* ✨ 更新封禁功能,增加封禁时长参数和描述,优化插件信息返回结构
* ✨ 更新zhenxun_help.py中的viewport高度,将其从453调整为10,以优化页面显示效果
* ✨ 优化插件分类逻辑,增加插件ID排序,并更新插件信息返回结构
---------
Co-authored-by: BalconyJH <balconyjh@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
2025-07-14 22:35:29 +08:00 |
|
HibiKier
|
2921aed248
|
🐛 修复sqlite下的日统计查询和0权限功能调用 (#1943)
|
2025-07-11 10:07:23 +08:00 |
|
molanp
|
e1bf1ba87f
|
修复调用统计性能问题 (#1916)
* 修复调用统计性能问题
* 🚨 auto fix by pre-commit hooks
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
2025-06-10 15:55:47 +08:00 |
|
HibiKier
|
264929e5cb
|
✨ 新增好感度/金币设置和详细帮助 (#1831)
* ✨ 新增好感度/金币设置和详细帮助
* 🔧 修复html帮助
|
2025-01-10 18:39:23 +08:00 |
|
HibiKier
|
e814469b75
|
✨ Compatible with pydantic 2.0 using the pydantic compatibility layer provided by nonebot
|
2025-01-10 12:19:11 +08:00 |
|
BalconyJH
|
bc5a9c4fcc
|
Develop: 完全使用 ruff 替代 isort 与 black (#1757)
* 🚨 完全使用 ruff 替代 isort 与 black
* 🚨 ruff lint&format
|
2024-12-10 19:49:11 +08:00 |
|
HibiKier
|
3856ba09bb
|
🐛 功能调用统计只统计已加载的插件
|
2024-10-13 01:07:19 +08:00 |
|
HibiKier
|
f7b28127e9
|
🐛 修复功能调用统计空白 (#1694)
|
2024-10-12 11:03:24 +08:00 |
|
HibiKier
|
bd50e17c58
|
🐛 修复调用统计异常 (#1674)
|
2024-10-04 00:14:36 +08:00 |
|
HibiKier
|
f08114f6c5
|
✨ 提供新webui api (#1673)
|
2024-10-03 23:56:17 +08:00 |
|
HibiKier
|
910542f2b5
|
✨ 功能调用统计使用html截图
|
2024-08-25 00:02:35 +08:00 |
|
HibiKier
|
28b7415581
|
🐛 修复bug
|
2024-08-24 13:25:34 +08:00 |
|
HibiKier
|
99774adc87
|
✨ 插件商店
|
2024-08-20 21:29:42 +08:00 |
|