终端模块初版
This commit is contained in:
1 parent
f6c1cc250e
commit
b018abd922
63 files changed
+26695
-185
No files matched your search
@@ -18,6 +18,8 @@ export const WINDOWS = {
|
||||
downloadWindow: 'download-window',
|
||||
/** 取词翻译悬浮窗(非激活显示,由 Rust 预创建) */
|
||||
translatePopup: 'translate-popup',
|
||||
/** 单个终端独立窗口,实际 label = `terminal-window-<sessionId>` */
|
||||
terminalWindow: 'terminal-window',
|
||||
} as const
|
||||
|
||||
/** Tauri 事件名(前端 emit / listen 与 Rust constants::events 对应) */
|
||||
@@ -77,6 +79,20 @@ export const EVENTS = {
|
||||
proxyAutoSwitch: 'proxy-auto-switch',
|
||||
// 应用更新进度
|
||||
updateProgress: 'update-progress',
|
||||
// 终端:会话输出批次(按 8~16ms 窗口聚合,前端用 seq 校验连续性)
|
||||
terminalOutput: 'terminal-output',
|
||||
/** 终端:会话结束 */
|
||||
terminalExit: 'terminal-exit',
|
||||
/** 终端:会话状态变更(负载为 SessionInfo) */
|
||||
terminalState: 'terminal-state',
|
||||
/** 终端:工作目录变化(OSC 7 hook 上报) */
|
||||
terminalCwd: 'terminal-cwd',
|
||||
/** 终端:SSH 主机密钥需用户确认(阻塞式,握手在等待回传) */
|
||||
terminalHostKeyPrompt: 'terminal-host-key-prompt',
|
||||
/** 终端:SFTP 传输进度(上传/下载,节流 200ms 推送一次) */
|
||||
terminalTransferProgress: 'terminal-transfer-progress',
|
||||
/** 终端:请求对「关闭仍在运行的会话」二次确认 */
|
||||
terminalConfirmClose: 'terminal-confirm-close',
|
||||
// 监控 OSD
|
||||
osdStateUpdate: 'osd-state-update',
|
||||
/** OSD 数据通道:仅推送显示项 key→value 映射 + 网速(高频,每秒) */
|
||||
|
||||
Reference in new issue
Block a user