移除 macOS 和 Windows 命令中的浏览器控制相关代码

This commit is contained in:
fofolee 2025-01-22 15:19:26 +08:00
parent 5cce8b001b
commit cc8cabf374
2 changed files with 0 additions and 72 deletions

View File

@ -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."),
})),
},
],
};

View File

@ -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",