Commit Graph
44 Commits
Author SHA1 Message Date
CodexandClaude Opus 4.7 cea3aced73 feat(web_gui): WebUI 启动时自动重连上次 WiFi 设备 + 智能匹配
新增 /api/wifi/auto-reconnect 端点,把桌面 GUI 的 _try_reconnect_last_wifi
逻辑搬到服务端:先 verify_adb_target 上次的 target → 失败则 discover_adb_devices
扫描 + pick_best_match 智能匹配。返回结构化 JSON 让前端渲染:

  action: noop | already_online | reconnected | matched | failed
  target / model / message / devices

webui/app.js DOMContentLoaded 末尾调用 tryAutoReconnectLastWifi(),
不阻塞页面加载。命中后自动刷新设备下拉并选中。

至此桌面 GUI 和 WebUI 在 WiFi 重连体验上完全对齐:换网段也能找回手机。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 20:53:23 +08:00
CodexandClaude Opus 4.7 3d91764f56 feat(webui): WebUI 加"扫描 WiFi"按钮,对齐桌面 GUI
- index.html:WiFi ADB 操作行加"扫描 WiFi"按钮 + 扫描结果区域
- app.js:wifiScan() 调 /api/wifi/scan
  - 单个 connected:自动填回 IP,刷新设备
  - 多个候选:渲染列表,点击就填回 IP
  - unauthorized:提示需手机端授权
- 单击列表项 → 填 wifi_ip 输入框 + 刷新设备下拉

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 20:40:54 +08:00
Codex 9c3cf86f41 精修 WebUI v31:运行状态指示 / tab burst / 截图入场 / 数字千分隔符
logHeader 状态 pill
- logTitle ::before 圆点改 6px 渐变(粉→青)+ 6px primary halo
- ::after 加状态 chip:默认 "PAUSED" muted;body.is-running 时切 "● LIVE"(success 色 + glow border)

侧边导航 burst 反馈
- tab 切换时 sideNav 加 isBurst 类 380ms,触发 ::before 横/纵向 scaleY 1.3 / scaleX 1.6 的脉冲 + 光晕加强(10→18px)
- 同 tab 二次点击不触发;prefers-reduced-motion 下不动

截图入场动画
- preview img 从 opacity 0 + scale(0.985) → opacity 1 + scale(1),280ms 缓出
- 删除一处旧的重复规则

数字千分隔符
- 新增 fmtNum() 工具函数(toLocaleString en-US 千分隔,PID/Trace 不走)
- statLogLen / 9 个福袋统计 / 跳过 / 切换直播间 / 粉丝团等字段全部 fmt 化
- 大数字现在显示 "12,345" 风格,配合 JetBrains Mono tabular-nums 更易读

cache-bust v30 → v31
2026-05-21 12:11:09 +08:00
Codex 7001919642 精修 WebUI v30:进程心跳 / 滚动条 / 骨架 / 取景器 hover / SVG glow
全局 running 信号
- body.is-running 在视口顶部 fixed 2px 粉→青→粉横向 sweep glow line
- 2.8s 横向滚动 + 4px primary drop-shadow,进程"心跳"信号

滚动条
- 全局 webkit-scrollbar-thumb 改 180deg 粉→青渐变(55% mix)
- hover 升级为纯色 primary→secondary 渐变

骨架屏
- shimmer 渐变改为粉/青双色横扫(35% / 65% 节点 22% mix)
- 节奏 1.6s → 1.8s 更柔和

截图区取景器
- previewBracket hover 时 18→22px + drop-shadow 6→10px primary 75%
- 尺寸 + glow 同步过渡

Timeline 折线
- SVG defs 加 feGaussianBlur (1.6) + feMerge glow filter
- 折线 stroke-width 1.5→1.8 并应用 filter,霓虹光晕
- 与 chart hover 渐变协同

cache-bust v29 → v30
2026-05-21 12:03:44 +08:00
Codex ac55428640 精修 WebUI v26:HUD 细节 — 把 chrome 全部往"控制台"推
侧边导航
- sideNav 加渐变粉头部 + counter-reset 通道编号;浮动指示条改 3px 粉→青渐变 + 10px glow
- tabBtn 左侧加 [01]–[11] mono 计数器(::before 用 counter() 生成);hover 时编号变粉
- tabBtn 右侧加可见性切换的 cyan dot(hover 0.7 / active 1)
- active:左渐变背景 + 1px primary 描边 + 编号高亮 + dot glow
- icon 颜色 hover/active 跟随 primary

章节标题
- sectionTitle 字体改 JetBrains Mono 10px 0.12em;圆点改"§ 01" 编号 chip(mono、leading-zero、primary 描边)
- ::after 加横线延展到右侧,渐变粉→透明
- 配置面板顶层加 counter-reset,每个 panel 内部继承计数

卡片
- cardTitle 加状态 chip(::after):默认 "READY",body.is-running 时切 "● LIVE"(绿色 + glow)
- cardTitle .sectionIcon 升级渐变填充 + primary glow

表格
- tableRow 加左侧 hover 渐变 accent stripe(粉→青)
- hover 背景从 surface-soft 改 primary-soft 30% 混合
- tableHead 改 JetBrains Mono 10px + primary 色 + 1px primary 描边 + 渐变背景
- mono 字段全局加 ss01 + tnum

预约卡
- 头部加 radial gradient 粉光晕(右上角)
- reservationItem hover 时左侧 3px 粉→青渐变 accent + 28px halo + translateY(-1)
- reservationIndex dot 改 radial pink + 8px glow
- reservationValue chip 改 JetBrains Mono 0.12em uppercase 粉色 pill
- isImminent / isDue 状态加 radial 警告/危险光晕底

日志
- log 字体改 JetBrains Mono + ss01;padding 加左侧 18px 留出光标位
- background 加 4px 周期性扫描线(cyan 4% mix)
- ::after 加 6×13 粉色光标 1.2s 闪烁(CRT 风)

Footer HUD
- 加 mono 12px / 0.12em 全大写;border-top 改 primary 22% mix
- 左:连接点 + 文字 + "SYS_OK" chip
- 右:PING <em>—</em>ms(实测 /api/version 响应时间,5s 一次)+ FPS <em>—</em>(每秒 RAF 计数)+ version + build
- em 内文字用 secondary/primary 色,mono 数字突出
- 移动端隐藏 PING/FPS

cache-bust v25 → v26
2026-05-21 12:03:44 +08:00
Codex 16b3bde893 精修 WebUI 第二十一轮:kbd 提示 / 标题反馈 / 趋势箭头
- 关键按钮 kbd 提示:[data-kbd-mod="1"][data-kbd] 自动按平台注入 ⌘ 或 Ctrl 前缀;hover 时不透明度从 0.55 → 1;btnStart 显示 "⌘ ↵",btnSave 显示 "⌘ S";<900px 隐藏
- 页面 title 随运行状态:默认 "抖音挂机控制台",运行中前置 "● ... · 运行中"
- stat 数字趋势箭头:setTextIfExists 检测数值变化方向,向 .statValue 注入 .statTrend ▲/▼ 圆形徽章 (success/danger 色),1100ms 出现 + 淡出再自动移除
- cache-bust v23 → v24
2026-05-21 09:29:38 +08:00
Codex df96f25eba 精修 WebUI 第二十轮:Favicon + 长按连发 + 刷新反馈
- 添加内联 SVG favicon(与 brandMark 同款:紫色渐变圆角方框 + 播放三角 + 圆点),data URL 不增加请求
- number stepper 长按连发:pointerdown 后 500ms 进入 80ms/次的连发;pointerleave/up/cancel/blur 全部取消
- btnRefresh 加 isBusy 状态 + spinner;完成后 toast 反馈"已刷新 · N 台在线"或"无在线设备"或失败提示
- cache-bust v22 → v23
2026-05-21 09:29:38 +08:00
Codex cea5f1df45 精修 WebUI 第十九轮:sticky elevation + toggle switch + 步进按钮
- sectionTitle sticky 真贴顶时(IntersectionObserver + sentinel rootMargin -65px)加 .isStuck 类,浮起 0 6px 12px 阴影
- 关键开关升级为 toggle switch:.check.isToggle 把 input[type=checkbox] 渲染成 32×18 滑块(slider 配 14×14 圆点 + 0.18 阴影);3 个总控开关接入:infinite_loop_enabled / yanghao_enabled / yanghao_enable_actions / yanghao_only
- fmtDuration 改 mono 格式:HH:MM:SS / MM:SS(padStart),适配 tabular-nums
- 自绘 number stepper:所有 .input[type=number] 自动包 .numStepperWrap,hover/focus 时右侧浮现 ▲▼ 微按钮(18×12 双按钮组),调用 stepUp/stepDown + 派发 input/change;inline2 内不加避免连体冲突
- cache-bust v21 → v22
2026-05-21 09:29:38 +08:00
Codex 632951d004 精修 WebUI 第十七轮:sticky 章节 / 语义着色 / 搜索计数 / 空状态升级
- sectionTitle 改 sticky 在长 panel 内吸附顶部,背景渐变 + 6px 模糊;cardTitle/summary 不变
- 福袋统计语义着色:参与成功/中奖 → success;失败 → error;未中奖 → muted;通过 .stateOk/.stateError/.stateWarn/.stateMuted 类切换
- 配置搜索右侧加实时匹配计数徽章("X 项");搜索清空时隐藏
- 空状态占位升级:从单色边框圆点 → 28px 聊天泡 SVG icon (currentColor mask) + 双行布局,更显设计
- cache-bust v19 → v20
2026-05-21 09:29:38 +08:00
Codex 51d8d53a2b 精修 WebUI 第十六轮:滚动顶按钮 / 连体按钮组 / 图表 hover / 徽章
- 滚动 floating 按钮:scrollY > 240 时右下方显示,毛玻璃圆形,平滑滚回顶部;移动端调高避让 toast
- WiFi ADB 操作改 .btnGroup 连体组合:共享圆角、中间无双边、focus z-index 抬起
- timeline 图加 hover 十字线 + tooltip:crosshair 跟随光标 snap 到最近 bin,浮层显示该 bin 的所有系列与时间,无事件显示空状态
- tabBtn[data-badge] 数字徽章:active 时反色 primary;预约数据更新时同步预约 tab 的徽章
- cache-bust v18 → v19
2026-05-21 09:29:38 +08:00
Codex 94e8d37d18 精修 WebUI 第十五轮:设备下拉框状态点
- decorateDeviceSelect: 把 #device select 包裹进 .deviceSelectWrap,在右侧自定义箭头之前插入状态点
- 状态点:选中具体设备或自动模式下有在线设备 → 绿色 ok;无设备 → 灰色 idle;refreshDevices/change 时更新
- cache-bust v17 → v18
2026-05-21 09:29:38 +08:00
Codex 16042d7fd2 精修 WebUI 第十四轮:过渡动画与移动端收敛
- 主题切换平滑:body 加 200ms color/background 过渡;切换时给 :root 临时加 isThemeSwitching,对所有 chrome 表面(header / card / panel / btn 等 18 类)启用 200ms 过渡;260ms 后移除避免长期影响
- 首屏 .app 容器淡入:220ms fadeIn + 微移
- 移动端 (<640) 收敛:subtitle 隐藏(保留 brandMark + title);footer appConnText 隐藏只留状态点
- cache-bust v16 → v17
2026-05-21 09:29:38 +08:00
Codex a40ddc3083 精修 WebUI 第十三轮:动效、语义着色与帮助系统
- panel 切换动画:active 加 fadeIn (220ms) 替换无差别 surfaceIn,tab 切换更有反馈
- statValue 加 stateOk/stateMuted/stateError 语义着色:运行中显示 success 色(hero metric),未运行用 muted
- 预约卡倒计时实时刷新:startReservationsCountdownTick 每秒 tick,更新 .reservationRemain 文字 + isImminent/isDue 类,无需等 stats 轮询
- ? 快捷键弹出帮助 overlay:列出 ⌘K/⌘S/⌘Enter/Esc/?;ESC 或点击遮罩关闭;带毛玻璃 + scale 进出动画;输入框聚焦时不拦截
- cache-bust v15 → v16
2026-05-21 09:29:38 +08:00
Codex 8b8e3129e5 精修 WebUI 第十轮:交互终章
- header 滚动时加 isScrolled 类:阴影提一档显得"浮起",区分内容区
- 键盘快捷键:⌘S/Ctrl+S 保存配置,⌘Enter/Ctrl+Enter 启动运行;尊重按钮 disabled 状态
- 通用 tooltip 系统:[data-tooltip] + 可选 data-tooltip-pos="bottom",带小箭头与毛玻璃;移动端禁用避免触摸浮悬
- btnTheme / btnShotFullscreen / 复制按钮 全部接入 tooltip
- cache-bust v12 → v13
2026-05-21 09:29:38 +08:00
Codex 0a2d67afb4 精修 WebUI 第九轮:overview 福袋卡迷你 sparkline
- 福袋处理卡片底部加入 22px 高 sparkline,合成 fudai_open_detail + fudai_attend_ok 两条序列为一条折线
- 渐变填充 + 折线双层;用 currentColor 保证主题切换自动跟随;数据少于 2 点时隐藏
- pollStats 触发渲染,与主时间轴同源数据
- cache-bust v11 → v12
2026-05-21 09:29:38 +08:00
Codex d1f153b373 精修 WebUI 第八轮:可复制 + 全屏 + 表格细节
- statValue 一键复制:PID 和 TraceId hover 显示复制按钮,点击调用 navigator.clipboard,带 toast 反馈与 fallback (textarea + execCommand)
- setTextIfExists 改为只更新文本节点,保留子元素(如 .copyBtn 不被覆盖)
- 截图区右上角加全屏按钮(hover 显示):调用 requestFullscreen,失败则新窗口打开;左下角浮层显示截图时间戳,毛玻璃背景
- 表格行:默认 ellipsis 截断,hover 时展开为多行换行
- cache-bust v10 → v11
2026-05-21 09:29:38 +08:00
Codex 857b33f413 精修 WebUI 第七轮:底部状态栏 + 实时反馈
- 底部 appFooter:左侧连接状态点(idle/ok/error 3 态 + tooltip)+ 文字;右侧版本号 + 构建标识;移动端纵向排列
- API 连接状态实时指示:apiGet/apiPost 拦截成功失败,连续 2 次失败才标 error,避免抖动
- 版本号:尝试拉 /api/version;失败时回退到 cache-bust tag
- stat 数字变化时短暂闪 primary 色(statFlash 700ms),通过 setTextIfExists 自动触发
- number input 隐藏原生上下箭头 + tabular-nums 数字
- cache-bust v9 → v10
2026-05-21 09:29:38 +08:00
Codex 07700c24d9 精修 WebUI 第六轮:交互精致度
- 配置搜索加 ⌘K / Ctrl+K 快捷键聚焦 + ESC 清空/失焦;右侧带 kbd 提示徽章(输入或聚焦时自动隐藏;移动端不显示);自动按平台显示 ⌘ 或 Ctrl
- 按钮 .isBusy 状态加旋转 spinner(隐藏图标),禁用 pointer-events
- 即将开奖预约(剩余 ≤60s)加 isImminent 类:warning 边框 + 微脉动 + value pill 反白;已到时间加 isDue(danger 边框 + 反白)
- brand logo 重做:圆角方形容器 + 内嵌播放三角 + 装饰圆点,更具品牌识别度
- 侧边导航 active 指示条改为 sideNav::before 浮动滑块,CSS var 控制 Y/H,切换 tab 时 220ms 滑动;resize/字体加载完成自动重算位置;横向布局自动隐藏
- cache-bust v8 → v9
2026-05-21 09:29:38 +08:00
Codex 96cba09c49 精修 WebUI 第五轮:交互能力与功能性升级
- 新增 Toast 通知系统:右下角浮出(移动端横铺底部),4 类(success/error/warn/info)+ 关闭按钮 + 自动消失 + hover 暂停消失
- 关键操作接入 Toast:保存配置 / 加载配置 / 启动失败 / 设备操作(连接/断开/WiFi 启用)成功失败提示
- 日志关键词分类着色:行级 span,自动识别 ERROR/WARN/SUCCESS/DEBUG/INFO(含中英文与 emoji 标记);DocumentFragment 批量渲染保持性能
- 配置面板加跨标签搜索:workspaceHeader 内嵌搜索框,输入即时按 label/hint/key 过滤所有 row 与 sectionTitle,搜索时自动展开所有 panel;空结果显示空状态;带清空按钮
- 首屏统计骨架屏:未到数据前 statValue 显示 shimmer 占位;pollStats 成功后自动移除
- 移动端复查:inline2 在小屏取消连体边框;workspaceHeader 改纵向布局,搜索框占满宽;secondaryActions 分隔线隐藏;btnTheme 推到右侧
- cache-bust v7 → v8
2026-05-21 09:29:38 +08:00
Codex 299ced21c8 精修 WebUI 第二轮:数据表/表格/图表/预约卡
- workspaceHeader 加左侧 2px primary accent + uppercase eyebrow
- stats 卡片:tabular-nums + uppercase 标签 + 字号统一 text-xl
- table:sticky 表头 uppercase + zebra 奇偶行 + hover 高亮 + mono 列灰度
- timeline 图:4 等分水平网格虚线 + Y 轴 0/mid/max 三档 mono 标签
- 空状态:.hint 单独使用时升级为虚线圆框居中占位 + 圆形 dot
- 预约卡片:reservationIndex 加圆点 + reservationValue 改 uppercase pill;hover 去 transform,纯 box-shadow 反馈
- cache-bust v4 → v5
2026-05-21 09:29:38 +08:00
Codex 3ed352ef0e 重构 Web GUI 视觉为深浅双主题大厂风
- 引入 Linear/Vercel 风设计语言:单色 primary、克制阴影、Inter 字体
- 新增深/浅双主题 token 与右上角切换钮,支持系统跟随 + localStorage 记忆
- 字重整体降一档(760→600,720→550,650→500),更轻盈现代
- sectionTitle 改为 11px uppercase 灰色辅助文字 + 细分割线
- 删除 sheen / scan / overviewCard 渐变条等装饰动画与彩色装饰层
- 图表配色单色化:timeline 线统一用 primary + opacity 区分系列
- styles.css/app.js cache-bust 版本升至 theme-v3
2026-05-20 23:09:20 +08:00
CodexandClaude Opus 4.5 9bd10277b2 fix: 前端 apiPost 添加 CSRF token
配合后端 /api/csrf-token 接口获取并自动附加 X-CSRF-Token 请求头,
避免 CSRF 防护启用后所有 POST 请求被 403 拒绝。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-20 23:01:31 +08:00
Codex 6c73f6e414 优化Web端日志导航与GUI配置 2026-05-20 20:23:32 +08:00
Your Name 89128deb0f Complete missing Web GUI controls 2026-05-20 17:54:40 +08:00
Your Name 8368f1f3b7 Fix issues from code review
- Fix project root path in test_webgui.py
- Remove debug console.log from loadConfig in app.js
- Remove duplicate screenshot button event listener in app.js
- Fix redundant directory changes in startup batch script
- Add trailing newlines to files
2026-05-20 09:00:54 +08:00
Your Name 7eb72bd00e Update config, web GUI, and add debug features 2026-05-20 08:12:06 +08:00
Your Name b3011dd9ce feat: Implement high-value room revisit feature and enhance fudai tracking
- Added tracking for previously seen fudai in Runner and ProcRunner classes to avoid duplicate recognition.
- Extracted room title during fudai recognition for better tracking.
- Updated high_value_rooms.json with new room entries and adjusted total count.
- Introduced new GUI elements for configuring icon coordinates in webui.
- Created comprehensive documentation for the high-value room revisit functionality.
- Added tests for delay settings and icon detection logic to ensure functionality.
- Implemented a tool for analyzing step times in logs to identify performance bottlenecks.
2026-01-08 14:27:38 +08:00
Your Name 93d47a16d6 Refactor reservation preemption handling and logging
- Removed the reservation preempt minimum value from the Runner and GUI components.
- Updated logging mechanism to streamline log message handling and improve readability.
- Introduced a new method for appending log lines in the Runner class.
- Cleaned up related GUI elements and configuration options in web interface.
- Deleted obsolete simulation scripts related to reservation preemption checks.
2026-01-07 21:24:10 +08:00
Your Name eb96d6869e feat: 优化日志搜索功能,增强用户体验和性能 2026-01-07 19:31:26 +08:00
Your Name c6b6745e3e feat: 优化日志记录格式,增强循环次数和运行时间限制的可读性 2026-01-07 19:06:10 +08:00
Your Name a3175aaddb feat: 调整配置和逻辑,优化等待开奖和日志显示体验 2026-01-07 07:58:11 +08:00
Your Name 8838b62e61 feat: 调整高价值福袋预约参数,增加提前参与时间和提高最低奖品价值 2026-01-04 15:07:49 +08:00
Your Name c0df59ac26 feat: 优化安全数据处理逻辑,确保 detail 数据的稳定性和类型安全 2026-01-04 10:18:51 +08:00
Your Name 9e08ed3bd0 chore: remove OCR archive, delete collect_ocr_failures, update docs 2026-01-03 03:50:45 +08:00
Your Name 0b5f150691 Refactor and clean up code across multiple scripts
- Removed trailing whitespace and ensured files end with a single newline in cleanup_unused_files.py.
- Added fix_trailing_whitespace.py to batch remove trailing whitespace from Python files.
- Updated install_dependencies.py to improve dependency installation prompts.
- Cleaned up pick_coords.py by removing unnecessary whitespace and improving code readability.
- Enhanced region_selector.py by disabling specific pylint checks for better compatibility with third-party libraries.
- Improved WPS流程图生成工具.py by cleaning up whitespace and enhancing readability.
- Updated __init__.py in typings to remove unnecessary lines.
- Modified app.js to adjust default configuration values and clean up unused code.
2026-01-02 23:57:03 +08:00
Your Name 223c127e11 chore: Clean up and refactor codebase for improved maintainability
- Removed obsolete command-line test parameters from `run_cli.py` to streamline functionality.
- Introduced a new `ocr_preprocess.py` module for unified OCR image preprocessing, enhancing recognition stability.
- Updated various components to utilize the new preprocessing function, improving code organization and readability.
- Adjusted configuration values in `config.json` for better performance and consistency.
- Added comprehensive technical documentation for the Douyin project, detailing code modification standards and operational guidelines.
- Cleaned up excessive blank lines across multiple files to enhance overall readability.
2025-12-30 23:11:34 +08:00
Your Name 499002d3b1 fix: Clean up blank lines and enhance readability across multiple files
- Removed excessive blank lines from various markdown and Python files to improve readability and maintainability.
- Ensured consistent formatting across documentation and code files, enhancing overall project clarity.
- Updated logging mechanisms for better consistency and debugging support.
2025-12-26 21:59:54 +08:00
Your Name 36b39b1fac fix: Update debug image handling and enhance reservation display
- Added a configuration option in `config.json` to enable or disable debug image saving, defaulting to false for improved performance.
- Updated the GUI and web interface to display reservation details in Chinese, enhancing readability and user experience.
- Adjusted the click coordinates for joining the fan club and added logic to close the details page after joining.
- Cleaned up blank lines across multiple files to improve code readability and maintainability.
2025-12-26 15:09:18 +08:00
Your Name 533943620c feat: Optimize OCR performance and enhance debugging features
- Implemented parallel execution for OCR tasks, significantly improving recognition speed for content, countdown, and value detection.
- Updated configuration settings to support automatic cleanup of debug captures, including retention days and maximum file limits.
- Enhanced GUI to include new options for debugging parameters, allowing users to configure debug capture settings directly.
- Improved documentation to reflect changes in OCR functionality and debugging features, ensuring clarity for users.
- Refined error handling and logging across various modules to facilitate better monitoring and troubleshooting.
2025-12-22 03:27:37 +08:00
Your Name e5a510d19b feat: Introduce unified logging system and optimize file management
- Added a new unified logging module to standardize log formatting, including support for traceId and MDC for better tracking.
- Updated `.gitignore` to exclude code analysis reports and temporary files.
- Created cleanup scripts to manage unused files and generate cleanup reports.
- Enhanced existing modules to integrate the new logging system and improve debugging capabilities.
- Removed outdated files and scripts to streamline the project structure.
2025-12-22 01:30:09 +08:00
Your Name 836a31d817 refactor: Remove outdated files and enhance Web GUI functionality
- Deleted obsolete markdown files related to follow tab coordinates testing and results.
- Removed outdated batch scripts for launching the Web GUI.
- Updated `config.json` to improve reservation handling and adjust prize value settings.
- Enhanced logging and error handling in `web_gui.py` and `app.js` for better user experience.
- Added automatic screenshot functionality during Web GUI startup for improved monitoring.
2025-12-19 03:31:08 +08:00
Your Name b0bd7c72c8 refactor: Remove outdated batch script and enhance configuration settings
- Deleted the obsolete batch script for launching the Web GUI.
- Updated `config.json` to increase `webgui_log_capacity` to 2000 and set `reset_after_swipes` to 15.
- Enabled `reset_after_swipes_enabled` for improved functionality.
- Added a new field `reservation_back_swipe_delay` to enhance reservation handling.
- Improved OCR caching and detection mechanisms in `douyin_fudai.py` for better performance.
- Enhanced logging functionality in `web_gui.py` to handle ANSI escape codes and improve error handling.
2025-12-16 16:49:29 +08:00
Your Name ea8d221543 feat: Add runtime overrides for reservation settings and update high value rooms
- Introduced new command-line arguments for runtime configuration:
  - `--reservation-back-swipe-delay`: Adjusts swipe delay after rollback (only effective when rollback verification is disabled).
  - `--reservation-preempt-min-value`: Sets the minimum value for preempting reservations.
  - `--fudai-find-max-attempts`: Limits the maximum attempts to find the 福袋 icon.

- Updated `high_value_rooms.json` to reflect new room entries and updated timestamps.
- Modified `reservations.json` to change the current reservation details and added a new reservation entry.
- Enhanced `web_gui.py` to support new runtime parameters from the GUI.
- Updated `app.js` and `index.html` in the web UI to include new settings for 福袋 attempts, reservation preemption value, and swipe delay.
2025-12-15 20:31:41 +08:00
Your Name 02b2930639 Add styles for web UI and create batch script for launching Web GUI
- Introduced a comprehensive CSS file for styling the web interface, including variables for colors, layout styles, and responsive design adjustments.
- Added a batch script to automate the process of stopping any existing instances of the web GUI and launching the new instance, along with opening the browser to the appropriate URL.
2025-12-15 18:17:16 +08:00