From cc8cabf374faf2ca4977bd2a1c4dc2df0c9b4d86 Mon Sep 17 00:00:00 2001 From: fofolee Date: Wed, 22 Jan 2025 15:19:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20macOS=20=E5=92=8C=20Window?= =?UTF-8?q?s=20=E5=91=BD=E4=BB=A4=E4=B8=AD=E7=9A=84=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8=E6=8E=A7=E5=88=B6=E7=9B=B8=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/composer/commands/macosCommands.js | 29 -------------- src/js/composer/commands/windowsCommands.js | 43 --------------------- 2 files changed, 72 deletions(-) diff --git a/src/js/composer/commands/macosCommands.js b/src/js/composer/commands/macosCommands.js index ef08a91..88ed474 100644 --- a/src/js/composer/commands/macosCommands.js +++ b/src/js/composer/commands/macosCommands.js @@ -307,34 +307,5 @@ export const macosCommands = { }, ], }, - { - value: "quickcomposer.macos.browser.getUrl", - label: "浏览器控制", - icon: "web", - isAsync: true, - config: [ - { - component: "ButtonGroup", - defaultValue: "Microsoft Edge", - options: [ - { - label: "Edge 浏览器", - value: "Microsoft Edge", - }, - { - label: "Chrome 浏览器", - value: "Google Chrome", - }, - ], - width: 12, - }, - ], - subCommands: browserCommands.commands.find( - (command) => command.label === "浏览器操作" - ).subCommands.map((command) => ({ - ...command, - value: command.value.replace("quickcomposer.browser.", "quickcomposer.macos.browser."), - })), - }, ], }; diff --git a/src/js/composer/commands/windowsCommands.js b/src/js/composer/commands/windowsCommands.js index a8f30a2..299cbf4 100644 --- a/src/js/composer/commands/windowsCommands.js +++ b/src/js/composer/commands/windowsCommands.js @@ -804,49 +804,6 @@ export const windowsCommands = { }, ], }, - // 浏览器 - { - value: "quickcomposer.windows.browser.getUrl", - label: "浏览器控制", - icon: "language", - isAsync: true, - config: [ - { - component: "ButtonGroup", - width: 12, - options: [ - { label: "Microsoft Edge", value: "msedge" }, - { label: "Google Chrome", value: "chrome" }, - ], - defaultValue: "msedge", - }, - ], - subCommands: browserCommands.commands - .find((command) => command.label === "浏览器操作") - .subCommands.map((command) => ({ - ...command, - value: command.value.replace( - "quickcomposer.browser.", - "quickcomposer.windows.browser." - ), - })) - // 无法获得输出,过滤相关命令 - .filter( - (command) => - ![ - "getTabs", - "activateTab", - "getText", - "getHtml", - "getCookie", - "getScrollPosition", - "getPageSize", - "waitForElement", - ] - .map((func) => `quickcomposer.windows.browser.${func}`) - .includes(command.value) - ), - }, // 监控 { value: "quickcomposer.windows.monitor.watchClipboard",