dsh模块、快捷键调整
This commit is contained in:
1 parent
ff1d5cd517
commit
7e65825d3e
54 files changed
+7082
-109
No files matched your search
@@ -20,6 +20,13 @@ export const WINDOWS = {
|
||||
translatePopup: 'translate-popup',
|
||||
/** 单个终端独立窗口,实际 label = `terminal-window-<sessionId>` */
|
||||
terminalWindow: 'terminal-window',
|
||||
/**
|
||||
* dsh 模块的 Web UI 独立窗口。
|
||||
* 内容为远端 `http://127.0.0.1:<port>`,因此**不登记 capability**——
|
||||
* 远端页面不应获得任何 Tauri 权限(Windows 平台上 label 未命中任何 capability
|
||||
* 时,webview 仍可正常加载与交互,只是拿不到 IPC)。
|
||||
*/
|
||||
dshWeb: 'dsh-web',
|
||||
} as const
|
||||
|
||||
/** Tauri 事件名(前端 emit / listen 与 Rust constants::events 对应) */
|
||||
@@ -49,9 +56,13 @@ export const EVENTS = {
|
||||
// 截图
|
||||
screenshotBegin: 'screenshot-begin',
|
||||
screenshotOverlayReady: 'screenshot-overlay-ready',
|
||||
/** 覆盖层握手请求:主窗口每次发起截图前询问覆盖层是否已注册好 begin 监听(覆盖层以 screenshotOverlayReady 应答) */
|
||||
screenshotOverlayPing: 'screenshot-overlay-ping',
|
||||
screenshotShortcut: 'screenshot-shortcut',
|
||||
screenshotPinShortcut: 'screenshot-pin-shortcut',
|
||||
screenshotPinReady: 'screenshot-pin-ready',
|
||||
/** 贴图窗口握手请求(同覆盖层):贴图窗口以 screenshotPinReady 应答 */
|
||||
screenshotPinPing: 'screenshot-pin-ping',
|
||||
screenshotPinShow: 'screenshot-pin-show',
|
||||
screenshotExported: 'screenshot-exported',
|
||||
/** 滚动截图会话:实时进度 { width, height, auto } */
|
||||
@@ -64,6 +75,8 @@ export const EVENTS = {
|
||||
scrollToEditor: 'screenshot-scroll-to-editor',
|
||||
/** 常驻编辑器窗口挂载完成(store 等待后下发加载事件) */
|
||||
screenshotEditorReady: 'screenshot-editor-ready',
|
||||
/** 编辑器握手请求(同覆盖层):编辑器以 screenshotEditorReady 应答 */
|
||||
screenshotEditorPing: 'screenshot-editor-ping',
|
||||
/** 通知常驻编辑器窗口加载编辑器图片槽中的新图(raw IPC 取出) */
|
||||
screenshotEditorLoad: 'screenshot-editor-load',
|
||||
// 内核安装进度
|
||||
@@ -127,6 +140,13 @@ export const EVENTS = {
|
||||
downloadRemoved: 'download-removed',
|
||||
/** 浏览器扩展通过 HTTP API 新增下载(负载 { id },前端据以为该任务创建专属下载窗口) */
|
||||
downloadExtensionAdded: 'download-extension-added',
|
||||
// dsh 模块
|
||||
/** 安装/下载进度(负载见 src/types/dsh.ts 的 DshInstallProgress) */
|
||||
dshInstallProgress: 'dsh-install-progress',
|
||||
/** 服务进程状态(负载见 src/types/dsh.ts 的 DshServerStatus) */
|
||||
dshServerState: 'dsh-server-state',
|
||||
/** 全局快捷键按下:打开 dsh 独立窗口(无负载) */
|
||||
dshOpenWindow: 'dsh-open-window',
|
||||
} as const
|
||||
|
||||
/** localStorage 存储键 */
|
||||
|
||||
Reference in new issue
Block a user