KenanZhu
|
910e3e3224
|
chore: 统一 __init__.py 许可头为版权声明并改用相对导入
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-28 01:35:55 +08:00 |
|
KenanZhu
|
b279b51b42
|
refactor: 移除旧 operators/ 模块和 base/ 层
operators/ 模块已被 pages/ 模块完全替代,base/ 中的 LibOperator 和 MsgBase
不再被任何新代码引用。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-27 20:05:24 +08:00 |
|
KenanZhu
|
5e898180c7
|
refactor(style): 统一项目代码风格,整理导入顺序、间距规范与方法排列
- GUI 模块统一 QtCore → QtGui → QtWidgets 导入排列,各类独占一行按字母排序
- 统一类间两空行、类内方法间一空行、函数间一空行的间距规范
- 统一方法排列顺序:__init__ → setupUi → connectSignals → public → Slot → private
- 统一 _widgets 中 ConditionRowFrame/ActionStepFrame 方法命名(populate* / toScript / updateValueWidget)
- LibTimeSelector 迁入 operators/abs 抽象层
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-24 13:14:27 +08:00 |
|
KenanZhu
|
e11f696b76
|
style(*): 添加缺失的版权信息,并同一版权年份为文件创建时间的年份
|
2026-05-06 01:01:52 +08:00 |
|
Gogs
|
baa4f23136
|
refactor(config): 新增 ConfigUtils 工具类并优化配置管理逻辑
- 新增 ConfigUtils 工具类,提供配置路径获取等工具方法
- 将 ConfigManager.getValidateAutomationConfigPaths() 重构为 ConfigUtils.getAutomationConfigPaths()
- 优化 MsgBase 中 LogManager 的导入方式,使用模块导入替代函数导入
- 规范化 TimerUtils.py 中 calculate_next_repeat_time() 的文档字符串格式
|
2026-03-23 13:31:06 +08:00 |
|
KenanZhu
|
706fc889f9
|
chore(*): 重构项目结构
- 新增 src/boot 目录,用于存放启动时需要初始化的模块
- 新增 src/managers 目录,用于存放项目中的管理模块
- 新增 src/managers/config 目录,用于存放配置管理模块
- 新增 src/managers/log 目录,用于存放日志管理模块
- 新增 src/managers/driver 目录,用于存放浏览器驱动管理模块
- 修改对应文件中 import 导入路径
|
2026-03-20 19:19:34 +08:00 |
|
KenanZhu
|
02463f087e
|
feat(MsgBase, gui, operators): 增强日志输出功能
- 为 _showTrace 方法添加 no_log 参数,支持控制日志写入
- 在主窗口各关键操作点添加日志输出
- 优化错误信息输出策略,分离 trace 和 log 输出
- 改进配置目录初始化过程的日志记录
|
2026-03-18 12:46:37 +08:00 |
|
KenanZhu
|
160d6a2428
|
refactor(operators): 为 _showTrace 方法添加合适的 TraceLevel 参数
|
2026-03-18 11:02:52 +08:00 |
|
KenanZhu
|
c26f19b6b3
|
feat(LogManager): 新增日志持久化功能
- 新增 LogManager 单例类,支持日志文件按日期滚动
- 创建 CallerInfoFormatter 自定义格式化器,提取真实调用位置
- 为 MsgBase._showTrace 方法添加日志级别参数,集成日志系统
- 新增 initializeLogManager 初始化函数,日志存储于 AppDataLocation/logs/
- 日志输出格式对齐:[时间] - [类名(15)|级别(8)] - [文件:行号(20:4)] - 消息
- 控制台/INFO级别,全量日志 / DEBUG 级别,错误日志 / ERROR级别
- 全量日志保留7天,错误日志保留14天
|
2026-03-17 21:37:24 +08:00 |
|
KenanZhu
|
2f5680c547
|
fix(LibTimeSelector) style(LibReserve): 修复时间转换方法 _timeToMins 并重命名为 _timeStrToMins
- 之前的实现未严格限制传入参数为整形,导致在转换时间字符串时可能出现类型错误。
- 重命名为 _timeStrToMins 以明确表示该方法仅用于时间字符串转换。并更新相关调用。
- 重命名 __selectSeatTime 中的冗长局部变量,便于理解和维护。
- 删除多余的时间格式转换嗲用
|
2026-03-17 20:00:57 +08:00 |
|
KenanZhu
|
7df6a9157d
|
refactor(LibReserve, LibRenew): 提取时间选择公共逻辑到 LibTimeSelector 基类
将 LibReserve 和 LibRenew 中重复的时间转换和选择逻辑提取到
LibTimeSelector 基类,消除代码重复,提升可维护性。
主要变更:
- 新增 LibTimeSelector 基类,提供时间转换和最佳时间选择算法
- LibReserve 和 LibRenew 继承 LibTimeSelector,移除重复代码
- 拆分过长方法,提升代码可读性
- 修正方法命名 __selectNearstTime -> __selectNearestTime
同时修复续约功能业务逻辑漏洞:
- 新增续约时间上限校验,防止续约时间超过图书馆闭馆时间(23:30)
|
2026-03-14 14:48:35 +08:00 |
|
KenanZhu
|
be3942ea2f
|
optimize(MsgBase): 优化消息队列能力基类,增加小数秒精度时间戳,移除无用方法 '_inputMsg'
|
2026-01-20 17:41:34 +08:00 |
|
KenanZhu
|
f1e0334ce3
|
docs(MsgBase, LibOperator): 添加并完善类文档注释
|
2026-01-16 23:41:25 +08:00 |
|
KenanZhu
|
107ed41b58
|
chore(*): 更新 license 和版权信息为 2025 - 2026 年
|
2026-01-09 14:00:25 +08:00 |
|
KenanZhu
|
ad4deae0c6
|
fix(ALMainWindow): 修复停止时的按钮状态重置问题
函数更改于(#9255eec)
|
2025-12-13 14:15:28 +08:00 |
|
KenanZhu
|
c2d53a8b78
|
chore(*): refactor the project structure
|
2025-11-25 08:48:18 +08:00 |
|