Skip to content

Feat/adapt qt web engine - #6

Merged
11cookies11 merged 36 commits into
mainfrom
feat/AdaptQTWebEngine
Jan 26, 2026
Merged

Feat/adapt qt web engine#6
11cookies11 merged 36 commits into
mainfrom
feat/AdaptQTWebEngine

Conversation

@11cookies11

Copy link
Copy Markdown
Owner

No description provided.

[中文]
- 变更:
  - 新增代理监控页面和侧边栏入口。
  - 添加代理总览卡片、筛选与状态样式。
- 影响:
  - 新增代理可视化监控入口。
- 兼容性/行为变更:
  - 无。
- 依赖/环境:
  - 无。
- 验证:
  - 未运行(仅 UI 变更)。

[English]
- Changes:
  - Add proxy monitoring page and navigation entry.
  - Style cards, filters, and status badges for proxy overview.
- Impact:
  - Adds a new UI section for proxy visibility.
- Compatibility/Behavior changes:
  - None.
- Dependencies/Environment:
  - None.
- Verification:
  - Not run (UI-only change).
Refs:
- N/A
[中文]
- 变更:
  - 代理弹窗切换为浅色主题。
  - 弹窗开启时锁定后台交互。
- 影响:
  - 修复焦点闪烁并与应用风格一致。
- 兼容性/行为变更:
  - 无。
- 依赖/环境:
  - 无。
- 验证:
  - 未运行(仅 UI 变更)。

[English]
- Changes:
  - Switch proxy modal to light theme.
  - Lock background interaction when modal opens.
- Impact:
  - Prevents focus flicker and matches app style.
- Compatibility/Behavior changes:
  - None.
- Dependencies/Environment:
  - None.
- Verification:
  - Not run (UI-only change).
Refs:
- N/A
[中文]
- 变更:
  - 全局弹窗开启时锁定后台交互,避免焦点争夺。
- 影响:
  - 防止全局弹窗出现焦点闪烁。
- 兼容性/行为变更:
  - 无。
- 依赖/环境:
  - 无。
- 验证:
  - 未运行(仅 UI 变更)。

[English]
- Changes:
  - Apply global modal lock to prevent focus flicker.
- Impact:
  - Prevents background focus contention across the app.
- Compatibility/Behavior changes:
  - None.
- Dependencies/Environment:
  - None.
- Verification:
  - Not run (UI-only change).
Refs:
- N/A
[中文]
- 变更:
  - 拖动或缩放窗口时锁定页面滚动并在结束后恢复。
- 影响:
  - 避免标题区块因滚动偏移而消失。
- 兼容性/行为变更:
  - 无。
- 依赖/环境:
  - 无。
- 验证:
  - 未运行(仅 UI 变更)。

[English]
- Changes:
  - Lock page scroll during window move/resize and restore afterward.
- Impact:
  - Prevents page header from disappearing due to scroll drift.
- Compatibility/Behavior changes:
  - None.
- Dependencies/Environment:
  - None.
- Verification:
  - Not run (UI-only change).
Refs:
- N/A
[中文]
- 变更:
  - 主滚动容器禁用滚动锚点并限制滚动链。
  - 下拉菜单使用双帧重算位置减少错位。
- 影响:
  - 降低窗口操作与布局变化导致的滚动/定位抖动。
- 兼容性/行为变更:
  - 无。
- 依赖/环境:
  - 无。
- 验证:
  - 未运行(仅 UI 变更)。

[English]
- Changes:
  - Disable scroll anchoring and contain overscroll on main containers.
  - Recompute dropdown position across two frames to reduce drift.
- Impact:
  - Reduces scroll/position jitter during window and layout changes.
- Compatibility/Behavior changes:
  - None.
- Dependencies/Environment:
  - None.
- Verification:
  - Not run (UI-only change).
Refs:
- N/A
[中文]
- Changes:
  - 调整代理监控弹窗与卡片布局,改用自定义下拉并降低渲染负担
  - 增加 WebEngine JS 控制台日志落盘与 unraisable 保护
- Impact:
  - 弹窗交互稳定性提升,默认移除模糊效果
- Compatibility/Behavior changes:
  - 弹窗交互与样式更新;移除页面/旧弹窗 blur
- Dependencies/Environment:
  - None
- Verification:
  - Not run (manual)
Refs:
- None

[English]
- Changes:
  - Refined proxy monitor modal/layout, switched to custom dropdowns, reduced heavy rendering
  - Added WebEngine JS console logging and unraisable guard
- Impact:
  - Improved modal stability; blur effects removed by default
- Compatibility/Behavior changes:
  - Modal interaction/style updates; blur removed for page/legacy modal
- Dependencies/Environment:
  - None
- Verification:
  - Not run (manual)
Refs:
- None
[中文]
- Changes:
  - 移除“通道”入口与对应页面区块
- Impact:
  - 简化前端导航,避免无用页面
- Compatibility/Behavior changes:
  - 通道页面不再可访问
- Dependencies/Environment:
  - None
- Verification:
  - Not run (manual)
Refs:
- None

[English]
- Changes:
  - Removed channels entry and its view
- Impact:
  - Simplified navigation; unused page hidden
- Compatibility/Behavior changes:
  - Channels view no longer accessible
- Dependencies/Environment:
  - None
- Verification:
  - Not run (manual)
Refs:
- None
[中文]
- 变更:
  - 将 ui/ 目录重命名为 desktop/
  - 将 web-ui/ 目录重命名为 frontend/
  - 同步更新入口、桥接、打包与构建脚本中的路径
- 影响:
  - 目录结构更清晰,桌面宿主与前端区分明确
- 兼容/行为变化:
  - 运行与构建路径更新;功能逻辑不变
- 依赖/环境:
  - 无
- 验证:
  - 未运行(仅结构调整)
Refs:
-

[English]
- Changes:
  - Rename ui/ to desktop/
  - Rename web-ui/ to frontend/
  - Update entrypoints, bridge imports, and build/package paths
- Impact:
  - Clearer separation between desktop host and frontend
- Compatibility/Behavior changes:
  - Path updates for runtime/build; no behavior change
- Dependencies/Environment:
  - None
- Verification:
  - Not run (structure-only change)
Refs:
-
[中文]
- 变更:
  - 修复 main.py 入口注释乱码导致的语法错误
  - 修复桌面端 WebWindow/WebBridge 中的乱码字符串
  - 将保存/选择对话框标题改为 ASCII,避免编码异常
- 影响:
  - 桌面端可正常启动与加载
- 兼容/行为变化:
  - 仅文案修正,无逻辑变化
- 依赖/环境:
  - 无
- 验证:
  - python -m py_compile main.py main_web.py desktop/web_window.py desktop/web_bridge.py
Refs:
-

[English]
- Changes:
  - Fix garbled docstring in main.py that caused a syntax error
  - Fix garbled UI strings in WebWindow/WebBridge
  - Use ASCII dialog titles to avoid encoding issues
- Impact:
  - Desktop host starts and loads normally
- Compatibility/Behavior changes:
  - Text-only changes; no behavior change
- Dependencies/Environment:
  - None
- Verification:
  - python -m py_compile main.py main_web.py desktop/web_window.py desktop/web_bridge.py
Refs:
-
[中文]
- 变更:
  - 代理监控页面改为中文文案
  - 抓包弹窗与按钮文案同步中文化
  - 保持原有布局与交互
- 影响:
  - UI 文案更符合中文场景
- 兼容/行为变化:
  - 仅文案调整,无行为变化
- 依赖/环境:
  - 无
- 验证:
  - 未运行
Refs:
-

[English]
- Changes:
  - Localize proxy monitor page copy to Chinese
  - Localize capture modal and action labels
  - Preserve layout and interactions
- Impact:
  - UI copy fits Chinese locale
- Compatibility/Behavior changes:
  - Text-only changes; no behavior change
- Dependencies/Environment:
  - None
- Verification:
  - Not run
Refs:
-
[中文]
- 功能
  - 引入 Tailwind/PostCSS 配置用于弹窗样式
  - 采用 Tailwind 结构重构代理监控抓包弹窗
- 影响
  - 弹窗布局与视觉贴近 Stitch 设计
- 兼容/行为变更
  - 弹窗样式依赖 Tailwind 构建产物
- 依赖/环境
  - 新增 tailwindcss/postcss/autoprefixer
- 验证
  - npm run build

[English]
- Changes:
  - Add Tailwind/PostCSS setup for the capture modal UI
  - Rebuild proxy capture modal markup/styles to match the Stitch layout
- Impact:
  - Modal layout and styling now match the reference design
- Compatibility/Behavior changes:
  - Modal styles now rely on Tailwind build output
- Dependencies/Environment:
  - Add tailwindcss, postcss, autoprefixer
- Verification:
  - npm run build
Refs:
-
[中文]
- 功能
  - 抓包弹窗改为使用 mock 数据驱动展示
  - 动态渲染协议徽标、HEX/ASCII、协议树与统计信息
- 影响
  - 弹窗内容不再硬编码,后续可直接替换数据源
- 兼容/行为变更
  - 仅影响抓包弹窗内容展示逻辑
- 依赖/环境
  - 无
- 验证
  - 未运行(仅 UI 数据替换)

[English]
- Changes:
  - Drive the capture modal with mock data instead of hardcoded blocks
  - Render protocol badges, HEX/ASCII, protocol tree, and stats dynamically
- Impact:
  - Modal content is now data-driven and ready for backend replacement
- Compatibility/Behavior changes:
  - UI-only change for the capture modal
- Dependencies/Environment:
  - None
- Verification:
  - Not run (UI data swap only)
Refs:
-
[中文]
- 功能
  - 新增后端报文解析引擎并订阅 RX/TX 流
  - 推送结构化抓包事件到 Web Bridge
  - 前端监听 capture 事件用于联调
- 影响
  - 抓包解析由后端流式驱动
- 兼容/行为变更
  - 新增 capture.frame 事件类型
- 依赖/环境
  - 无
- 验证
  - 未运行(事件联调变更)

[English]
- Changes:
  - Add streaming packet analysis engine for RX/TX
  - Emit structured capture events through the web bridge
  - Listen for capture events in the frontend for diagnostics
- Impact:
  - Capture parsing is now backend-driven
- Compatibility/Behavior changes:
  - Introduce capture.frame event type
- Dependencies/Environment:
  - None
- Verification:
  - Not run (event wiring change)
Refs:
-
[中文]
- 功能
  - 前端接收 capture.frame 并转换为抓包视图数据
  - 代理监控弹窗改为使用后端流式数据
  - WebBridge 直接推送 capture_frame 信号
- 影响
  - 抓包弹窗内容由后端驱动
- 兼容/行为变更
  - 无
- 依赖/环境
  - 无
- 验证
  - 未运行(事件联调变更)

[English]
- Changes:
  - Consume capture.frame and map it into the proxy monitor UI
  - Drive the capture modal with backend stream data
  - Emit capture_frame directly from the bridge
- Impact:
  - Capture modal content is now backend-driven
- Compatibility/Behavior changes:
  - None
- Dependencies/Environment:
  - None
- Verification:
  - Not run (event wiring change)
Refs:
-
[中文]
- 功能
  - 刷新转发对列表
  - 新建/编辑转发对并保存
  - 删除前二次确认并停止
  - 运行状态开关即时更新
- 影响
  - 代理监控交互由占位变为可用逻辑
- 兼容/行为变更
  - 仅前端行为变更
- 依赖/环境
  - 无
- 验证
  - 未运行(前端交互变更)

[English]
- Changes:
  - Refresh relay pairs list
  - Create/edit relay pairs and save
  - Confirm before delete and stop relay
  - Toggle running status immediately
- Impact:
  - Proxy monitor interactions are now functional
- Compatibility/Behavior changes:
  - Frontend-only behavior changes
- Dependencies/Environment:
  - None
- Verification:
  - Not run (UI interaction change)
Refs:
-
[中文]
- 功能
  - 本地 JSON 存储转发对配置
  - WebBridge 提供转发对增删改查与启停接口
  - 前端代理监控接入后端接口
- 影响
  - 代理监控动作具备持久化与后端调用
- 兼容/行为变更
  - 新增 proxy_pairs.json 配置文件
- 依赖/环境
  - 无
- 验证
  - 未运行(接口接入)

[English]
- Changes:
  - Persist relay pairs to local JSON
  - Add WebBridge CRUD/start-stop APIs for relay pairs
  - Wire proxy monitor UI to backend APIs
- Impact:
  - Proxy monitor actions are now persisted and backend-driven
- Compatibility/Behavior changes:
  - Introduce proxy_pairs.json config file
- Dependencies/Environment:
  - None
- Verification:
  - Not run (API wiring)
Refs:
-
[中文]
- 功能
  - 抓包按钮触发后端开始捕获
  - 关闭弹窗停止捕获
  - 引擎支持 capture.control 控制开关
- 影响
  - 抓包流程具备后端控制
- 兼容/行为变更
  - 新增 start_capture/stop_capture bridge 接口
- 依赖/环境
  - 无
- 验证
  - 未运行(流程接入)

[English]
- Changes:
  - Start capture on button click and stop on modal close
  - Add capture.control handling in the engine
  - Expose start/stop capture bridge APIs
- Impact:
  - Capture flow is now controlled by backend
- Compatibility/Behavior changes:
  - Add start_capture/stop_capture bridge methods
- Dependencies/Environment:
  - None
- Verification:
  - Not run (flow wiring)
Refs:
-
[中文]
- 功能
  - 删除确认弹窗使用更紧凑的尺寸
  - 缩小标题、内容与底部间距
- 影响
  - 弹窗占用空间更小
- 兼容/行为变更
  - 无
- 依赖/环境
  - 无
- 验证
  - 未运行(样式调整)

[English]
- Changes:
  - Make the delete confirm dialog more compact
  - Reduce header/body/footer spacing
- Impact:
  - Dialog occupies less screen space
- Compatibility/Behavior changes:
  - None
- Dependencies/Environment:
  - None
- Verification:
  - Not run (style tweak)
Refs:
-
[中文]
- 功能
  - 开关切换改为纯按钮样式避免失效
  - 串口参数新增数据位/停止位/流控配置保存
- 影响
  - 开关显示与状态同步更可靠
- 兼容/行为变更
  - 无
- 依赖/环境
  - 无
- 验证
  - 未运行(样式与数据字段调整)

[English]
- Changes:
  - Replace the proxy toggle with a custom clickable control
  - Persist data bits/stop bits/flow control settings
- Impact:
  - Toggle visual state matches data more reliably
- Compatibility/Behavior changes:
  - None
- Dependencies/Environment:
  - None
- Verification:
  - Not run (style/data updates)
Refs:
-
[中文]
- 功能
  - 协议相关区域仅使用后端数据,不再使用本地 mock
  - 无数据时显示空态提示,避免硬编码内容
  - 序号/提示文案改为依赖真实数据
- 影响
  - 抓包弹窗展示更贴近真实协议数据
- 兼容/行为变更
  - 无
- 依赖/环境
  - 无
- 验证
  - 未运行(UI 数据逻辑调整)

[English]
- Changes:
  - Remove local protocol mocks and rely on backend data
  - Show empty states when data is missing
  - Drive sequence/prompt text from live data
- Impact:
  - Capture modal reflects real protocol data
- Compatibility/Behavior changes:
  - None
- Dependencies/Environment:
  - None
- Verification:
  - Not run (UI data wiring)
Refs:
-
[中文]
- 功能
  - 协议页面接入后端协议列表并支持刷新
  - 新建/编辑/删除自定义协议并持久化到本地
  - 协议详情弹窗与删除确认弹窗
- 影响
  - 协议管理从占位展示变为可操作流程
- 兼容/行为变更
  - 新增协议配置文件 protocols.json
- 依赖/环境
  - 无
- 验证
  - 未运行(功能与 UI 逻辑调整)

[English]
- Changes:
  - Wire protocol list to backend and add refresh
  - Add create/edit/delete for custom protocols with local persistence
  - Add protocol detail and delete confirmation dialogs
- Impact:
  - Protocols page is now actionable instead of placeholder
- Compatibility/Behavior changes:
  - Add protocols.json config file
- Dependencies/Environment:
  - None
- Verification:
  - Not run (feature/UI wiring)
Refs:
-
[中文]
- 功能
  - 协议详情弹窗优化为双列布局
  - 描述与驱动区域分组展示
  - 文本域与输入控件样式统一
- 影响
  - 协议详情页面信息更清晰易读
- 兼容/行为变更
  - 无
- 依赖/环境
  - 无
- 验证
  - 未运行(样式调整)

[English]
- Changes:
  - Refine protocol detail modal with a two-column layout
  - Group description and driver sections
  - Align textarea/input styling
- Impact:
  - Protocol detail view is clearer and easier to scan
- Compatibility/Behavior changes:
  - None
- Dependencies/Environment:
  - None
- Verification:
  - Not run (style tweaks)
Refs:
-
[中文]
- 功能
  - 引入 Stitch HTML 拆分后的 UI 组件库
  - 新增 inputs/actions/容器与终端面板组件
- 影响
  - 为 DSL 渲染器提供可复用组件基础
- 兼容/行为变更
  - 无
- 依赖/环境
  - 无
- 验证
  - 未运行(仅组件引入)

[English]
- Changes:
  - Add componentized Stitch UI kit
  - Include inputs/actions containers and event log panel
- Impact:
  - Provides reusable components for the DSL renderer
- Compatibility/Behavior changes:
  - None
- Dependencies/Environment:
  - None
- Verification:
  - Not run (component import only)
Refs:
-
[中文]
- 功能
  - 新增 YAML UI 解析/校验与渲染引擎
  - 实时编辑与防抖校验,错误提示保留上次渲染
  - 引入 Pinia 运行时与事件日志/Inspector
  - 增加组件注册表与 Split 容器
- 影响
  - 前端支持基于 YAML 的 UI 实时渲染
- 兼容/行为变更
  - 新增 js-yaml/zod/pinia 依赖与 Vite alias
- 依赖/环境
  - 无
- 验证
  - 未运行(功能接入)

[English]
- Changes:
  - Add YAML UI parse/validate/render pipeline
  - Live editor with debounced validation and error state retention
  - Add Pinia runtime, inspector, and event log
  - Add widget registry and split container
- Impact:
  - Frontend can render YAML-driven UI in real time
- Compatibility/Behavior changes:
  - Add js-yaml/zod/pinia deps and Vite alias
- Dependencies/Environment:
  - None
- Verification:
  - Not run (feature wiring)
Refs:
-
[中文]
- 变更:
  - 通过 WebBridge 解析 YAML 并回传错误位置信息
  - 事件下发/回传接入 ui_event_log,前端绑定桥接日志
  - 侧边栏与设置相关文案修正,动作按钮默认文案修正
- 影响:
  - YAML UI 解析依赖后端 bridge,可实时预览与日志回流
- 兼容/行为变化:
  - 无后端 bridge 时会显示解析错误并保留上一次渲染
- 依赖/环境:
  - 前端新增 pinia/js-yaml/zod(package-lock 已更新)
- 验证:
  - 未运行
Refs:
-

[English]
- Changes:
  - Parse YAML via WebBridge with error line/column support
  - Dispatch/receive UI events through ui_event_log binding
  - Fix sidebar/settings labels and default action label
- Impact:
  - YAML UI preview relies on bridge parsing with log feedback
- Compatibility/Behavior changes:
  - Shows parse error when bridge is unavailable, keeps last render
- Dependencies/Environment:
  - Added pinia/js-yaml/zod (package-lock updated)
- Verification:
  - Not run
Refs:
-
[中文]
- 变更:
  - 移除侧边栏的 YAML UI 入口,改为脚本运行时弹出预览
  - 脚本运行触发 UI YAML 解析与弹窗展示
  - 新增 UI 预览弹窗样式与错误提示
- 影响:
  - UI YAML 作为自动脚本运行期界面展示
- 兼容/行为变化:
  - 运行脚本时自动弹出 UI 预览弹窗
- 依赖/环境:
  - 无
- 验证:
  - 未运行
Refs:
-

[English]
- Changes:
  - Remove YAML UI nav entry and show preview modal during script run
  - Trigger YAML UI parsing and modal open on script run
  - Add modal styling and parse error display
- Impact:
  - YAML UI is now surfaced as a runtime script UI
- Compatibility/Behavior changes:
  - Script run auto-opens the UI preview modal
- Dependencies/Environment:
  - None
- Verification:
  - Not run
Refs:
-
[中文]
- 变更:
  - 新增 `config/ui_yaml_sample.yaml`,包含输入、动作、日志与布局示例
- 影响:
  - 提供 UI 配置参考与测试样例
- 兼容性/行为变更:
  - 无
- 依赖/环境:
  - 无
- 验证:
  - 未运行(仅示例文件)
[English]
- Changes:
  - Add `config/ui_yaml_sample.yaml` covering inputs, actions, logs, and layout.
- Impact:
  - Provides a reference for UI configuration/testing.
- Compatibility/Behavior changes:
  - None.
- Dependencies/Environment:
  - None.
- Verification:
  - Not run (sample file only).
Refs:
- N/A
[中文]
- 变更:
  - 侧边栏“协议”改为“协议管理”
- 影响:
  - 文案更清晰
- 兼容性/行为变更:
  - 无
- 依赖/环境:
  - 无
- 验证:
  - 未运行
[English]
- Changes:
  - Rename sidebar label from "协议" to "协议管理".
- Impact:
  - Clearer wording.
- Compatibility/Behavior changes:
  - None.
- Dependencies/Environment:
  - None.
- Verification:
  - Not run.
Refs:
- N/A
[中文]
- 变更:
  - 代理监控页头改用统一的 page-header 布局
- 影响:
  - 页头高度与“串口终端/自动脚本/协议管理”一致
- 兼容性/行为变更:
  - 无
- 依赖/环境:
  - 无
- 验证:
  - 未运行
[English]
- Changes:
  - Use the shared page-header layout in Proxy Monitor.
- Impact:
  - Header height now matches other pages.
- Compatibility/Behavior changes:
  - None.
- Dependencies/Environment:
  - None.
- Verification:
  - Not run.
Refs:
- N/A
[中文]
- 变更:
  - 代理监控筛选切换改为与协议管理一致的 tab-strip 样式
- 影响:
  - 卡片展示选择样式统一
- 兼容性/行为变更:
  - 无
- 依赖/环境:
  - 无
- 验证:
  - 未运行
[English]
- Changes:
  - Use the shared tab-strip style for Proxy Monitor filters.
- Impact:
  - Filter tabs now match Protocols page.
- Compatibility/Behavior changes:
  - None.
- Dependencies/Environment:
  - None.
- Verification:
  - Not run.
Refs:
- N/A
[中文]
- 变更:
  - 串口终端页头改为统一的 page-header 布局
- 影响:
  - 页头高度与自动脚本/代理监控/协议管理一致
- 兼容性/行为变更:
  - 无
- 依赖/环境:
  - 无
- 验证:
  - 未运行
[English]
- Changes:
  - Use the shared page-header layout in Serial Terminal.
- Impact:
  - Header height now matches other pages.
- Compatibility/Behavior changes:
  - None.
- Dependencies/Environment:
  - None.
- Verification:
  - Not run.
Refs:
- N/A
[中文]
- 变更:
  - 侧边栏版本号改为从后端读取 VERSION/环境变量
- 影响:
  - 版本显示与实际一致
- 兼容性/行为变更:
  - 无
- 依赖/环境:
  - 可选使用 PROTOFLOW_VERSION 环境变量
- 验证:
  - 未运行
[English]
- Changes:
  - Read app version via bridge from VERSION/env.
- Impact:
  - Version label now reflects the actual build.
- Compatibility/Behavior changes:
  - None.
- Dependencies/Environment:
  - Optional PROTOFLOW_VERSION env var.
- Verification:
  - Not run.
Refs:
- N/A
[中文]
- 变更:
  - 新增/完善界面 i18n 词条与语言/主题选项
  - 多页面文本改为 t/tr 输出,包含设置/协议/代理/脚本/终端
  - UI 运行时组件标签统一走 tr
- 影响:
  - 语言切换将影响更多页面文案
- 兼容/行为变化:
  - 旧设置中的中文语言/主题值会被归一化到新枚举
- 依赖/环境:
  - 无
- 验证:
  - 未执行(UI 需手动检查)

[English]
- Changes:
  - Add i18n map and language/theme options with normalize logic
  - Route remaining UI strings through t/tr across main views and ui-kit
  - Localize UI runtime labels during render
- Impact:
  - Language switching affects more UI copy
- Compatibility/Behavior changes:
  - Legacy language/theme values normalize to new enums
- Dependencies/Environment:
  - None
- Verification:
  - Not run (manual UI check recommended)
Refs:
-
[中文]
- 变更:
  - 移除 inject 默认回调里的 TS 注解,避免 SFC 解析报错
  - 修复脚本编辑器折叠按钮的模板属性与点击行为
- 影响:
  - Vite 构建恢复正常
- 兼容/行为变化:
  - 无
- 依赖/环境:
  - 无
- 验证:
  - npm run build
[English]
- Changes:
  - Remove TS-style parameter annotations from inject fallbacks
  - Fix ScriptsView collapse button markup and click handler
- Impact:
  - Vite build succeeds again
- Compatibility/Behavior changes:
  - None
- Dependencies/Environment:
  - None
- Verification:
  - npm run build
Refs:
-
[中文]
- 变更:
  - 过滤代理/抓包列表中的空项,避免模板读取空对象
  - 抓包列表 key 增加兜底 index,避免缺少 id 报错
- 影响:
  - 代理监控页在后端返回空项时不再报错消失
- 兼容/行为变化:
  - 无
- 依赖/环境:
  - 无
- 验证:
  - npm run build
[English]
- Changes:
  - Filter out null items in proxy/capture lists
  - Add fallback key for capture rows when id is missing
- Impact:
  - Proxy monitor page no longer crashes on undefined items
- Compatibility/Behavior changes:
  - None
- Dependencies/Environment:
  - None
- Verification:
  - npm run build
Refs:
-
[中文]
- 变更:
  - 代理监控页默认筛选使用安全读取并兜底为 all
- 影响:
  - 避免初始化阶段读取 undefined.id 导致页面崩溃
- 兼容/行为变化:
  - 无
- 依赖/环境:
  - 无
- 验证:
  - 未运行(请在桌面端重建 dist 后验证)
[English]
- Changes:
  - Initialize proxy filter tab with a safe fallback
- Impact:
  - Prevents undefined.id crash on first render
- Compatibility/Behavior changes:
  - None
- Dependencies/Environment:
  - None
- Verification:
  - Not run (rebuild dist and verify in desktop app)
Refs:
-
@11cookies11
11cookies11 merged commit bc3e725 into main Jan 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant