1.3 KiB
1.3 KiB
代码导航(改哪里)
按「要改什么」找文件;源码里也有同风格备注。
| 你想改… | 打开 |
|---|---|
| 窗口标题 / 尺寸 / 注册服务 | main.go |
| 设备列表、配对、连接、截帧、点击 | internal/device/service.go |
| ADB 命令封装(找 adb / pair / screencap) | internal/device/adb.go |
| 内置 adb 同步到安装包 | scripts/sync-platform-tools.sh → third_party/platform-tools/ |
| 设备相关数据结构 | internal/device/types.go |
| 无线配对/连接面板 | frontend/src/components/device/ConnectPanel.vue |
| 对话 / 启动 Agent / 协议版本 | internal/agent/service.go |
| Go → Python HTTP 调用 | internal/agent/client.go |
| JSON-RPC 版本与消息字段 | internal/protocol/*.go |
| Python 模型与 method 实现 | agent/main.py |
| 左右分栏总布局 | frontend/src/App.vue |
| 左侧画面 | frontend/src/components/screen/CapturePane.vue |
| 右侧对话 | frontend/src/components/chat/ChatPane.vue |
| 顶部设备栏 | frontend/src/components/device/DeviceBar.vue |
| 设置页 | frontend/src/components/settings/SettingsPane.vue |
| 日志页 | frontend/src/components/logs/LogPane.vue |
| 全局配色 / 字体 | frontend/src/styles/app.css |
改了 Go 的导出方法后执行:
wails3 generate bindings -ts -i ./...