去除配置文件无用字段

This commit is contained in:
fofolee 2025-01-18 01:15:01 +08:00
parent 053e9793c3
commit cf4d38c3b1
18 changed files with 0 additions and 402 deletions

View File

@ -106,7 +106,6 @@ export const audioCommands = {
{ {
value: "quickcomposer.audio.speech.speak", value: "quickcomposer.audio.speech.speak",
label: "文本朗读", label: "文本朗读",
desc: "系统语音朗读",
icon: "record_voice_over", icon: "record_voice_over",
subCommands: [ subCommands: [
{ {
@ -133,7 +132,6 @@ export const audioCommands = {
{ {
value: "quickcomposer.audio.media.play", value: "quickcomposer.audio.media.play",
label: "音频播放", label: "音频播放",
desc: "播放音频文件",
icon: "music_note", icon: "music_note",
isAsync: true, isAsync: true,
subCommands: [ subCommands: [
@ -176,7 +174,6 @@ export const audioCommands = {
{ {
value: "quickcomposer.audio.record", value: "quickcomposer.audio.record",
label: "音频录制", label: "音频录制",
desc: "录制系统音频",
icon: "mic", icon: "mic",
isAsync: true, isAsync: true,
config: [ config: [
@ -214,7 +211,6 @@ export const audioCommands = {
{ {
value: "quickcomposer.audio.media.beep", value: "quickcomposer.audio.media.beep",
label: "系统音效", label: "系统音效",
desc: "播放系统内置音效",
isAsync: true, isAsync: true,
icon: "notifications_active", icon: "notifications_active",
config: [ config: [
@ -241,7 +237,6 @@ export const audioCommands = {
{ {
value: "quickcomposer.audio.media.analyze", value: "quickcomposer.audio.media.analyze",
label: "音频信息", label: "音频信息",
desc: "分析音频文件信息",
icon: "analytics", icon: "analytics",
isAsync: true, isAsync: true,
config: [ config: [

View File

@ -6,7 +6,6 @@ export const codingCommands = {
{ {
value: "quickcomposer.coding.base64Encode", value: "quickcomposer.coding.base64Encode",
label: "编解码", label: "编解码",
desc: "文本编解码",
icon: "code", icon: "code",
outputVariable: "processedText", outputVariable: "processedText",
saveOutput: true, saveOutput: true,
@ -77,7 +76,6 @@ export const codingCommands = {
{ {
value: "quickcomposer.coding.md5Hash", value: "quickcomposer.coding.md5Hash",
label: "哈希计算", label: "哈希计算",
desc: "计算文本的哈希值",
icon: "enhanced_encryption", icon: "enhanced_encryption",
outputVariable: "hashValue", outputVariable: "hashValue",
saveOutput: true, saveOutput: true,

View File

@ -15,7 +15,6 @@ export const controlCommands = {
codeTemplate: "if (${condition}) {", codeTemplate: "if (${condition}) {",
config: [ config: [
{ {
key: "condition",
label: "条件", label: "条件",
component: "ControlInput", component: "ControlInput",
placeholder: "表达式", placeholder: "表达式",
@ -36,7 +35,6 @@ export const controlCommands = {
codeTemplate: "} else if (${condition}) {", codeTemplate: "} else if (${condition}) {",
config: [ config: [
{ {
key: "condition",
label: "条件", label: "条件",
component: "ControlInput", component: "ControlInput",
placeholder: "表达式", placeholder: "表达式",
@ -65,14 +63,12 @@ export const controlCommands = {
"for (let ${indexVar} = ${startValue}; ${indexVar} <= ${endValue}; ${indexVar} += ${stepValue}) {", "for (let ${indexVar} = ${startValue}; ${indexVar} <= ${endValue}; ${indexVar} += ${stepValue}) {",
config: [ config: [
{ {
key: "indexVar",
label: "变量", label: "变量",
component: "ControlInput", component: "ControlInput",
defaultValue: "i", defaultValue: "i",
width: 3, width: 3,
}, },
{ {
key: "startValue",
label: "从", label: "从",
component: "ControlInput", component: "ControlInput",
icon: "first_page", icon: "first_page",
@ -80,7 +76,6 @@ export const controlCommands = {
width: 3, width: 3,
}, },
{ {
key: "endValue",
label: "到", label: "到",
component: "ControlInput", component: "ControlInput",
icon: "last_page", icon: "last_page",
@ -88,7 +83,6 @@ export const controlCommands = {
width: 3, width: 3,
}, },
{ {
key: "stepValue",
label: "步进", label: "步进",
component: "ControlInput", component: "ControlInput",
icon: "trending_up", icon: "trending_up",
@ -131,21 +125,18 @@ export const controlCommands = {
"for (let [${indexVar}, ${itemVar}] of ${arrayVar}.entries()) {", "for (let [${indexVar}, ${itemVar}] of ${arrayVar}.entries()) {",
config: [ config: [
{ {
key: "itemVar",
label: "元素", label: "元素",
component: "ControlInput", component: "ControlInput",
defaultValue: "item", defaultValue: "item",
width: 4, width: 4,
}, },
{ {
key: "indexVar",
label: "索引", label: "索引",
component: "ControlInput", component: "ControlInput",
defaultValue: "i", defaultValue: "i",
width: 4, width: 4,
}, },
{ {
key: "arrayVar",
label: "数组", label: "数组",
component: "ControlInput", component: "ControlInput",
icon: "list", icon: "list",
@ -188,21 +179,18 @@ export const controlCommands = {
"for (const ${keyVar} in ${objectVar}) { const ${valueVar} = ${objectVar}[${keyVar}];", "for (const ${keyVar} in ${objectVar}) { const ${valueVar} = ${objectVar}[${keyVar}];",
config: [ config: [
{ {
key: "keyVar",
label: "键名", label: "键名",
component: "ControlInput", component: "ControlInput",
defaultValue: "key", defaultValue: "key",
width: 4, width: 4,
}, },
{ {
key: "valueVar",
label: "值", label: "值",
component: "ControlInput", component: "ControlInput",
defaultValue: "value", defaultValue: "value",
width: 4, width: 4,
}, },
{ {
key: "objectVar",
label: "对象", label: "对象",
component: "ControlInput", component: "ControlInput",
defaultValue: "object", defaultValue: "object",
@ -243,7 +231,6 @@ export const controlCommands = {
codeTemplate: "while (${condition}) {", codeTemplate: "while (${condition}) {",
config: [ config: [
{ {
key: "condition",
label: "条件", label: "条件",
component: "ControlInput", component: "ControlInput",
placeholder: "表达式", placeholder: "表达式",
@ -284,7 +271,6 @@ export const controlCommands = {
codeTemplate: "switch (${expression}) {", codeTemplate: "switch (${expression}) {",
config: [ config: [
{ {
key: "expression",
label: "变量", label: "变量",
component: "ControlInput", component: "ControlInput",
placeholder: "变量或表达式", placeholder: "变量或表达式",
@ -299,7 +285,6 @@ export const controlCommands = {
codeTemplate: "case ${value}:", codeTemplate: "case ${value}:",
config: [ config: [
{ {
key: "value",
label: "值", label: "值",
component: "ControlInput", component: "ControlInput",
}, },
@ -338,7 +323,6 @@ export const controlCommands = {
codeTemplate: "} catch (${errorVar}) {", codeTemplate: "} catch (${errorVar}) {",
config: [ config: [
{ {
key: "errorVar",
label: "错误", label: "错误",
component: "ControlInput", component: "ControlInput",
defaultValue: "error", defaultValue: "error",

View File

@ -8,7 +8,6 @@ export const dataCommands = {
{ {
value: "quickcomposer.data.string.reverse", value: "quickcomposer.data.string.reverse",
label: "字符串处理", label: "字符串处理",
desc: "字符串处理和转换",
icon: "text_fields", icon: "text_fields",
subCommands: [ subCommands: [
{ {
@ -17,7 +16,6 @@ export const dataCommands = {
icon: "swap_horiz", icon: "swap_horiz",
config: [ config: [
{ {
key: "text",
label: "要反转的文本", label: "要反转的文本",
component: "VariableInput", component: "VariableInput",
icon: "text_fields", icon: "text_fields",
@ -31,21 +29,18 @@ export const dataCommands = {
icon: "find_replace", icon: "find_replace",
config: [ config: [
{ {
key: "text",
label: "原始文本", label: "原始文本",
component: "VariableInput", component: "VariableInput",
icon: "text_fields", icon: "text_fields",
width: 12, width: 12,
}, },
{ {
key: "oldStr",
label: "要替换的文本", label: "要替换的文本",
component: "VariableInput", component: "VariableInput",
icon: "find_replace", icon: "find_replace",
width: 6, width: 6,
}, },
{ {
key: "newStr",
label: "替换为", label: "替换为",
component: "VariableInput", component: "VariableInput",
icon: "text_fields", icon: "text_fields",
@ -59,14 +54,12 @@ export const dataCommands = {
icon: "content_cut", icon: "content_cut",
config: [ config: [
{ {
key: "text",
label: "原始文本", label: "原始文本",
component: "VariableInput", component: "VariableInput",
icon: "text_fields", icon: "text_fields",
width: 12, width: 12,
}, },
{ {
key: "start",
label: "起始位置", label: "起始位置",
component: "NumberInput", component: "NumberInput",
min: 0, min: 0,
@ -75,7 +68,6 @@ export const dataCommands = {
width: 6, width: 6,
}, },
{ {
key: "end",
label: "结束位置", label: "结束位置",
component: "NumberInput", component: "NumberInput",
icon: "last_page", icon: "last_page",
@ -91,14 +83,12 @@ export const dataCommands = {
icon: "format_align_justify", icon: "format_align_justify",
config: [ config: [
{ {
key: "text",
label: "原始文本", label: "原始文本",
component: "VariableInput", component: "VariableInput",
icon: "text_fields", icon: "text_fields",
width: 8, width: 8,
}, },
{ {
key: "mode",
label: "模式", label: "模式",
component: "q-select", component: "q-select",
icon: "settings", icon: "settings",
@ -118,14 +108,12 @@ export const dataCommands = {
icon: "text_fields", icon: "text_fields",
config: [ config: [
{ {
key: "text",
label: "原始文本", label: "原始文本",
component: "VariableInput", component: "VariableInput",
icon: "text_fields", icon: "text_fields",
width: 8, width: 8,
}, },
{ {
key: "mode",
label: "转换为", label: "转换为",
component: "q-select", component: "q-select",
icon: "settings", icon: "settings",
@ -149,14 +137,12 @@ export const dataCommands = {
icon: "format_size", icon: "format_size",
config: [ config: [
{ {
key: "text",
label: "原始文本", label: "原始文本",
component: "VariableInput", component: "VariableInput",
icon: "text_fields", icon: "text_fields",
width: 12, width: 12,
}, },
{ {
key: "length",
label: "目标长度", label: "目标长度",
component: "NumberInput", component: "NumberInput",
min: 0, min: 0,
@ -165,7 +151,6 @@ export const dataCommands = {
width: 4, width: 4,
}, },
{ {
key: "padString",
label: "填充字符", label: "填充字符",
component: "VariableInput", component: "VariableInput",
icon: "space_bar", icon: "space_bar",
@ -173,7 +158,6 @@ export const dataCommands = {
defaultValue: newVarInputVal("str", " "), defaultValue: newVarInputVal("str", " "),
}, },
{ {
key: "mode",
label: "填充位置", label: "填充位置",
component: "q-select", component: "q-select",
icon: "settings", icon: "settings",
@ -193,14 +177,12 @@ export const dataCommands = {
icon: "splitscreen", icon: "splitscreen",
config: [ config: [
{ {
key: "text",
label: "原始文本", label: "原始文本",
component: "VariableInput", component: "VariableInput",
icon: "text_fields", icon: "text_fields",
width: 8, width: 8,
}, },
{ {
key: "separator",
label: "分隔符", label: "分隔符",
component: "VariableInput", component: "VariableInput",
icon: "space_bar", icon: "space_bar",
@ -215,14 +197,12 @@ export const dataCommands = {
icon: "merge", icon: "merge",
config: [ config: [
{ {
key: "array",
label: "字符串数组", label: "字符串数组",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
width: 8, width: 8,
}, },
{ {
key: "separator",
label: "连接符", label: "连接符",
component: "VariableInput", component: "VariableInput",
icon: "space_bar", icon: "space_bar",
@ -237,14 +217,12 @@ export const dataCommands = {
icon: "copy_all", icon: "copy_all",
config: [ config: [
{ {
key: "text",
label: "要重复的文本", label: "要重复的文本",
component: "VariableInput", component: "VariableInput",
icon: "text_fields", icon: "text_fields",
width: 8, width: 8,
}, },
{ {
key: "count",
label: "重复次数", label: "重复次数",
component: "NumberInput", component: "NumberInput",
min: 0, min: 0,
@ -261,14 +239,12 @@ export const dataCommands = {
icon: "content_cut", icon: "content_cut",
config: [ config: [
{ {
key: "text",
label: "原始文本", label: "原始文本",
component: "VariableInput", component: "VariableInput",
icon: "text_fields", icon: "text_fields",
width: 8, width: 8,
}, },
{ {
key: "mode",
label: "提取类型", label: "提取类型",
component: "q-select", component: "q-select",
icon: "settings", icon: "settings",
@ -290,14 +266,12 @@ export const dataCommands = {
icon: "numbers", icon: "numbers",
config: [ config: [
{ {
key: "text",
label: "原始文本", label: "原始文本",
component: "VariableInput", component: "VariableInput",
icon: "text_fields", icon: "text_fields",
width: 8, width: 8,
}, },
{ {
key: "mode",
label: "统计类型", label: "统计类型",
component: "q-select", component: "q-select",
icon: "settings", icon: "settings",
@ -321,14 +295,12 @@ export const dataCommands = {
icon: "wrap_text", icon: "wrap_text",
config: [ config: [
{ {
key: "text",
label: "原始文本", label: "原始文本",
component: "VariableInput", component: "VariableInput",
icon: "text_fields", icon: "text_fields",
width: 8, width: 8,
}, },
{ {
key: "width",
label: "每行字符数", label: "每行字符数",
component: "NumberInput", component: "NumberInput",
min: 1, min: 1,
@ -345,14 +317,12 @@ export const dataCommands = {
icon: "format_align_center", icon: "format_align_center",
config: [ config: [
{ {
key: "text",
label: "原始文本", label: "原始文本",
component: "VariableInput", component: "VariableInput",
icon: "text_fields", icon: "text_fields",
width: 12, width: 12,
}, },
{ {
key: "mode",
label: "对齐方式", label: "对齐方式",
component: "q-select", component: "q-select",
icon: "settings", icon: "settings",
@ -366,7 +336,6 @@ export const dataCommands = {
width: 6, width: 6,
}, },
{ {
key: "width",
label: "总宽度", label: "总宽度",
component: "NumberInput", component: "NumberInput",
min: 1, min: 1,
@ -392,7 +361,6 @@ export const dataCommands = {
{ {
value: "quickcomposer.data.buffer.from", value: "quickcomposer.data.buffer.from",
label: "Buffer操作", label: "Buffer操作",
desc: "Buffer创建、转换和操作",
config: [], config: [],
icon: "memory", icon: "memory",
subCommands: [ subCommands: [
@ -741,7 +709,6 @@ export const dataCommands = {
{ {
value: "quickcomposer.data.zlib", value: "quickcomposer.data.zlib",
label: "数据压缩解压", label: "数据压缩解压",
desc: "使用 zlib 进行数据压缩和解压",
component: "ZlibEditor", component: "ZlibEditor",
icon: "compress", icon: "compress",
isAsync: true, isAsync: true,
@ -749,7 +716,6 @@ export const dataCommands = {
{ {
value: "quickcomposer.data.htmlParser", value: "quickcomposer.data.htmlParser",
label: "HTML解析", label: "HTML解析",
desc: "解析 HTML 字符串",
icon: "html", icon: "html",
config: [ config: [
{ {
@ -787,7 +753,6 @@ export const dataCommands = {
{ {
value: "JSON.stringify", value: "JSON.stringify",
label: "JSON处理", label: "JSON处理",
desc: "JSON处理",
icon: "data_object", icon: "data_object",
subCommands: [ subCommands: [
{ {
@ -840,7 +805,6 @@ export const dataCommands = {
{ {
value: "quickcomposer.data.array.filter", value: "quickcomposer.data.array.filter",
label: "数组处理", label: "数组处理",
desc: "对象数组的常用操作",
icon: "view_list", icon: "view_list",
subCommands: [ subCommands: [
{ {
@ -849,7 +813,6 @@ export const dataCommands = {
icon: "filter_alt", icon: "filter_alt",
config: [ config: [
{ {
key: "array",
label: "原始数组", label: "原始数组",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
@ -860,7 +823,6 @@ export const dataCommands = {
'[{"id":1,"name":"张三","age":20},{"id":2,"name":"李四","age":18}]', '[{"id":1,"name":"张三","age":20},{"id":2,"name":"李四","age":18}]',
}, },
{ {
key: "condition",
label: "过滤条件", label: "过滤条件",
component: "VariableInput", component: "VariableInput",
icon: "code", icon: "code",
@ -875,7 +837,6 @@ export const dataCommands = {
icon: "transform", icon: "transform",
config: [ config: [
{ {
key: "array",
label: "原始数组", label: "原始数组",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
@ -884,7 +845,6 @@ export const dataCommands = {
'[{"id":1,"name":"张三","age":20},{"id":2,"name":"李四","age":18}]', '[{"id":1,"name":"张三","age":20},{"id":2,"name":"李四","age":18}]',
}, },
{ {
key: "transform",
label: "转换函数", label: "转换函数",
component: "VariableInput", component: "VariableInput",
icon: "code", icon: "code",
@ -899,7 +859,6 @@ export const dataCommands = {
icon: "sort", icon: "sort",
config: [ config: [
{ {
key: "array",
label: "原始数组", label: "原始数组",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
@ -908,7 +867,6 @@ export const dataCommands = {
'[{"id":1,"name":"张三","age":20},{"id":2,"name":"李四","age":18}]', '[{"id":1,"name":"张三","age":20},{"id":2,"name":"李四","age":18}]',
}, },
{ {
key: "key",
label: "排序字段", label: "排序字段",
component: "VariableInput", component: "VariableInput",
icon: "key", icon: "key",
@ -916,7 +874,6 @@ export const dataCommands = {
placeholder: "age", placeholder: "age",
}, },
{ {
key: "order",
label: "排序方式", label: "排序方式",
component: "q-select", component: "q-select",
icon: "sort", icon: "sort",
@ -935,7 +892,6 @@ export const dataCommands = {
icon: "group_work", icon: "group_work",
config: [ config: [
{ {
key: "array",
label: "原始数组", label: "原始数组",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
@ -944,7 +900,6 @@ export const dataCommands = {
'[{"id":1,"name":"张三","dept":"技术"},{"id":2,"name":"李四","dept":"技术"}]', '[{"id":1,"name":"张三","dept":"技术"},{"id":2,"name":"李四","dept":"技术"}]',
}, },
{ {
key: "key",
label: "分组字段", label: "分组字段",
component: "VariableInput", component: "VariableInput",
icon: "key", icon: "key",
@ -959,7 +914,6 @@ export const dataCommands = {
icon: "filter_1", icon: "filter_1",
config: [ config: [
{ {
key: "array",
label: "原始数组", label: "原始数组",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
@ -967,7 +921,6 @@ export const dataCommands = {
placeholder: '[{"id":1,"dept":"技术"},{"id":2,"dept":"技术"}]', placeholder: '[{"id":1,"dept":"技术"},{"id":2,"dept":"技术"}]',
}, },
{ {
key: "key",
label: "去重字段", label: "去重字段",
component: "VariableInput", component: "VariableInput",
icon: "key", icon: "key",
@ -982,7 +935,6 @@ export const dataCommands = {
icon: "search", icon: "search",
config: [ config: [
{ {
key: "array",
label: "原始数组", label: "原始数组",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
@ -990,7 +942,6 @@ export const dataCommands = {
placeholder: '[{"id":1,"name":"张三"},{"id":2,"name":"李四"}]', placeholder: '[{"id":1,"name":"张三"},{"id":2,"name":"李四"}]',
}, },
{ {
key: "condition",
label: "查找条件", label: "查找条件",
component: "VariableInput", component: "VariableInput",
icon: "code", icon: "code",
@ -1005,7 +956,6 @@ export const dataCommands = {
icon: "functions", icon: "functions",
config: [ config: [
{ {
key: "array",
label: "原始数组", label: "原始数组",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
@ -1013,7 +963,6 @@ export const dataCommands = {
placeholder: '[{"id":1,"amount":100},{"id":2,"amount":200}]', placeholder: '[{"id":1,"amount":100},{"id":2,"amount":200}]',
}, },
{ {
key: "operation",
label: "聚合操作", label: "聚合操作",
component: "q-select", component: "q-select",
icon: "functions", icon: "functions",
@ -1028,7 +977,6 @@ export const dataCommands = {
width: 6, width: 6,
}, },
{ {
key: "key",
label: "聚合字段", label: "聚合字段",
component: "VariableInput", component: "VariableInput",
icon: "key", icon: "key",
@ -1043,7 +991,6 @@ export const dataCommands = {
icon: "content_cut", icon: "content_cut",
config: [ config: [
{ {
key: "array",
label: "原始数组", label: "原始数组",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
@ -1051,7 +998,6 @@ export const dataCommands = {
placeholder: "[1,2,3,4,5]", placeholder: "[1,2,3,4,5]",
}, },
{ {
key: "start",
label: "起始位置", label: "起始位置",
component: "NumberInput", component: "NumberInput",
icon: "first_page", icon: "first_page",
@ -1061,7 +1007,6 @@ export const dataCommands = {
placeholder: "1", placeholder: "1",
}, },
{ {
key: "end",
label: "结束位置", label: "结束位置",
component: "NumberInput", component: "NumberInput",
icon: "last_page", icon: "last_page",
@ -1078,7 +1023,6 @@ export const dataCommands = {
icon: "unfold_less", icon: "unfold_less",
config: [ config: [
{ {
key: "array",
label: "原始数组", label: "原始数组",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
@ -1086,7 +1030,6 @@ export const dataCommands = {
placeholder: "[[1,2],[3,4],[[5,6]]]", placeholder: "[[1,2],[3,4],[[5,6]]]",
}, },
{ {
key: "depth",
label: "扁平化深度", label: "扁平化深度",
component: "NumberInput", component: "NumberInput",
icon: "format_indent_decrease", icon: "format_indent_decrease",
@ -1103,7 +1046,6 @@ export const dataCommands = {
icon: "difference", icon: "difference",
config: [ config: [
{ {
key: "array1",
label: "数组1", label: "数组1",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
@ -1111,7 +1053,6 @@ export const dataCommands = {
placeholder: "[1,2,3,4]", placeholder: "[1,2,3,4]",
}, },
{ {
key: "array2",
label: "数组2", label: "数组2",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
@ -1119,7 +1060,6 @@ export const dataCommands = {
placeholder: "[3,4,5,6]", placeholder: "[3,4,5,6]",
}, },
{ {
key: "key",
label: "比较字段", label: "比较字段",
component: "VariableInput", component: "VariableInput",
icon: "key", icon: "key",
@ -1134,7 +1074,6 @@ export const dataCommands = {
icon: "join_full", icon: "join_full",
config: [ config: [
{ {
key: "array1",
label: "数组1", label: "数组1",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
@ -1142,7 +1081,6 @@ export const dataCommands = {
placeholder: "[1,2,3,4]", placeholder: "[1,2,3,4]",
}, },
{ {
key: "array2",
label: "数组2", label: "数组2",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
@ -1150,7 +1088,6 @@ export const dataCommands = {
placeholder: "[3,4,5,6]", placeholder: "[3,4,5,6]",
}, },
{ {
key: "key",
label: "比较字段", label: "比较字段",
component: "VariableInput", component: "VariableInput",
icon: "key", icon: "key",
@ -1165,7 +1102,6 @@ export const dataCommands = {
icon: "join_inner", icon: "join_inner",
config: [ config: [
{ {
key: "array1",
label: "数组1", label: "数组1",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
@ -1173,7 +1109,6 @@ export const dataCommands = {
placeholder: "[1,2,3,4]", placeholder: "[1,2,3,4]",
}, },
{ {
key: "array2",
label: "数组2", label: "数组2",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
@ -1181,7 +1116,6 @@ export const dataCommands = {
placeholder: "[3,4,5,6]", placeholder: "[3,4,5,6]",
}, },
{ {
key: "key",
label: "比较字段", label: "比较字段",
component: "VariableInput", component: "VariableInput",
icon: "key", icon: "key",
@ -1196,7 +1130,6 @@ export const dataCommands = {
icon: "grid_view", icon: "grid_view",
config: [ config: [
{ {
key: "array",
label: "原始数组", label: "原始数组",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
@ -1204,7 +1137,6 @@ export const dataCommands = {
placeholder: "[1,2,3,4,5,6]", placeholder: "[1,2,3,4,5,6]",
}, },
{ {
key: "size",
label: "块大小", label: "块大小",
component: "NumberInput", component: "NumberInput",
icon: "straighten", icon: "straighten",
@ -1221,7 +1153,6 @@ export const dataCommands = {
icon: "shuffle", icon: "shuffle",
config: [ config: [
{ {
key: "array",
label: "原始数组", label: "原始数组",
component: "VariableInput", component: "VariableInput",
icon: "view_list", icon: "view_list",
@ -1235,7 +1166,6 @@ export const dataCommands = {
{ {
value: "quickcomposer.data.time.format", value: "quickcomposer.data.time.format",
label: "时间处理", label: "时间处理",
desc: "时间日期的常用操作",
icon: "schedule", icon: "schedule",
subCommands: [ subCommands: [
{ {
@ -1244,7 +1174,6 @@ export const dataCommands = {
icon: "event", icon: "event",
config: [ config: [
{ {
key: "time",
label: "时间", label: "时间",
component: "VariableInput", component: "VariableInput",
icon: "schedule", icon: "schedule",
@ -1252,7 +1181,6 @@ export const dataCommands = {
placeholder: "2024-01-01 或 now 或 timestamp", placeholder: "2024-01-01 或 now 或 timestamp",
}, },
{ {
key: "format",
label: "格式", label: "格式",
component: "q-select", component: "q-select",
icon: "format_shapes", icon: "format_shapes",
@ -1279,7 +1207,6 @@ export const dataCommands = {
icon: "input", icon: "input",
config: [ config: [
{ {
key: "time",
label: "时间字符串", label: "时间字符串",
component: "VariableInput", component: "VariableInput",
icon: "schedule", icon: "schedule",
@ -1287,7 +1214,6 @@ export const dataCommands = {
placeholder: "2024-01-01 12:00:00", placeholder: "2024-01-01 12:00:00",
}, },
{ {
key: "format",
label: "原格式", label: "原格式",
component: "q-select", component: "q-select",
icon: "format_shapes", icon: "format_shapes",
@ -1311,7 +1237,6 @@ export const dataCommands = {
icon: "add", icon: "add",
config: [ config: [
{ {
key: "time",
label: "基准时间", label: "基准时间",
component: "VariableInput", component: "VariableInput",
icon: "schedule", icon: "schedule",
@ -1319,7 +1244,6 @@ export const dataCommands = {
placeholder: "2024-01-01 或 now", placeholder: "2024-01-01 或 now",
}, },
{ {
key: "value",
label: "数值", label: "数值",
component: "NumberInput", component: "NumberInput",
icon: "exposure", icon: "exposure",
@ -1327,7 +1251,6 @@ export const dataCommands = {
defaultValue: 1, defaultValue: 1,
}, },
{ {
key: "unit",
label: "单位", label: "单位",
component: "q-select", component: "q-select",
icon: "straighten", icon: "straighten",
@ -1351,7 +1274,6 @@ export const dataCommands = {
icon: "difference", icon: "difference",
config: [ config: [
{ {
key: "time1",
label: "时间1", label: "时间1",
component: "VariableInput", component: "VariableInput",
icon: "schedule", icon: "schedule",
@ -1359,7 +1281,6 @@ export const dataCommands = {
placeholder: "2024-01-01", placeholder: "2024-01-01",
}, },
{ {
key: "time2",
label: "时间2", label: "时间2",
component: "VariableInput", component: "VariableInput",
icon: "schedule", icon: "schedule",
@ -1367,7 +1288,6 @@ export const dataCommands = {
placeholder: "2024-02-01", placeholder: "2024-02-01",
}, },
{ {
key: "unit",
label: "返回单位", label: "返回单位",
component: "q-select", component: "q-select",
icon: "straighten", icon: "straighten",
@ -1385,7 +1305,6 @@ export const dataCommands = {
defaultValue: "days", defaultValue: "days",
}, },
{ {
key: "absolute",
label: "绝对值", label: "绝对值",
component: "CheckButton", component: "CheckButton",
width: 6, width: 6,
@ -1399,7 +1318,6 @@ export const dataCommands = {
icon: "first_page", icon: "first_page",
config: [ config: [
{ {
key: "time",
label: "时间", label: "时间",
component: "VariableInput", component: "VariableInput",
icon: "schedule", icon: "schedule",
@ -1407,7 +1325,6 @@ export const dataCommands = {
placeholder: "2024-01-01 或 now", placeholder: "2024-01-01 或 now",
}, },
{ {
key: "unit",
label: "单位", label: "单位",
component: "q-select", component: "q-select",
icon: "straighten", icon: "straighten",
@ -1424,7 +1341,6 @@ export const dataCommands = {
defaultValue: "day", defaultValue: "day",
}, },
{ {
key: "type",
label: "类型", label: "类型",
component: "q-select", component: "q-select",
icon: "settings", icon: "settings",
@ -1443,7 +1359,6 @@ export const dataCommands = {
icon: "check_circle", icon: "check_circle",
config: [ config: [
{ {
key: "time",
label: "时间", label: "时间",
component: "VariableInput", component: "VariableInput",
icon: "schedule", icon: "schedule",
@ -1451,7 +1366,6 @@ export const dataCommands = {
placeholder: "2024-01-01", placeholder: "2024-01-01",
}, },
{ {
key: "format",
label: "格式", label: "格式",
component: "q-select", component: "q-select",
icon: "format_shapes", icon: "format_shapes",
@ -1473,7 +1387,6 @@ export const dataCommands = {
icon: "calendar_month", icon: "calendar_month",
config: [ config: [
{ {
key: "time",
label: "时间", label: "时间",
component: "VariableInput", component: "VariableInput",
icon: "schedule", icon: "schedule",
@ -1488,7 +1401,6 @@ export const dataCommands = {
icon: "work", icon: "work",
config: [ config: [
{ {
key: "startTime",
label: "开始时间", label: "开始时间",
component: "VariableInput", component: "VariableInput",
icon: "schedule", icon: "schedule",
@ -1496,7 +1408,6 @@ export const dataCommands = {
placeholder: "2024-01-01", placeholder: "2024-01-01",
}, },
{ {
key: "days",
label: "工作日天数", label: "工作日天数",
component: "NumberInput", component: "NumberInput",
icon: "exposure", icon: "exposure",
@ -1504,14 +1415,12 @@ export const dataCommands = {
defaultValue: 1, defaultValue: 1,
}, },
{ {
key: "weekends",
label: "包含周末", label: "包含周末",
component: "CheckButton", component: "CheckButton",
width: 4, width: 4,
defaultValue: false, defaultValue: false,
}, },
{ {
key: "holidays",
label: "节假日", label: "节假日",
component: "ArrayEditor", component: "ArrayEditor",
icon: "event_busy", icon: "event_busy",
@ -1526,7 +1435,6 @@ export const dataCommands = {
icon: "date_range", icon: "date_range",
config: [ config: [
{ {
key: "time",
label: "判断时间", label: "判断时间",
component: "VariableInput", component: "VariableInput",
icon: "schedule", icon: "schedule",
@ -1534,7 +1442,6 @@ export const dataCommands = {
placeholder: "2024-01-01 或 now", placeholder: "2024-01-01 或 now",
}, },
{ {
key: "startTime",
label: "开始时间", label: "开始时间",
component: "VariableInput", component: "VariableInput",
icon: "schedule", icon: "schedule",
@ -1542,7 +1449,6 @@ export const dataCommands = {
placeholder: "2024-01-01", placeholder: "2024-01-01",
}, },
{ {
key: "endTime",
label: "结束时间", label: "结束时间",
component: "VariableInput", component: "VariableInput",
icon: "schedule", icon: "schedule",
@ -1550,7 +1456,6 @@ export const dataCommands = {
placeholder: "2024-02-01", placeholder: "2024-02-01",
}, },
{ {
key: "inclusive",
label: "包含边界", label: "包含边界",
component: "CheckButton", component: "CheckButton",
width: 4, width: 4,

View File

@ -7,7 +7,6 @@ export const fileCommands = {
value: "quickcomposer.file.operation", value: "quickcomposer.file.operation",
label: "文件/文件夹操作", label: "文件/文件夹操作",
component: "FileOperationEditor", component: "FileOperationEditor",
desc: "文件和文件夹的读写、删除、重命名等操作",
isAsync: true, isAsync: true,
}, },
{ {
@ -15,7 +14,6 @@ export const fileCommands = {
label: "默认程序打开", label: "默认程序打开",
config: [ config: [
{ {
key: "path",
label: "文件、文件夹或软件的绝对路径", label: "文件、文件夹或软件的绝对路径",
component: "VariableInput", component: "VariableInput",
icon: "folder_open", icon: "folder_open",
@ -33,7 +31,6 @@ export const fileCommands = {
label: "文件管理器中显示", label: "文件管理器中显示",
config: [ config: [
{ {
key: "path",
label: "文件、文件夹或软件的绝对路径", label: "文件、文件夹或软件的绝对路径",
component: "VariableInput", component: "VariableInput",
icon: "location_on", icon: "location_on",
@ -51,7 +48,6 @@ export const fileCommands = {
label: "获取文件图标", label: "获取文件图标",
config: [ config: [
{ {
key: "path",
label: "文件或软件的绝对路径", label: "文件或软件的绝对路径",
component: "VariableInput", component: "VariableInput",
icon: "folder_open", icon: "folder_open",
@ -70,12 +66,10 @@ export const fileCommands = {
{ {
value: "quickcomposer.file.archive", value: "quickcomposer.file.archive",
label: "文件归档", label: "文件归档",
desc: "压缩和解压文件",
icon: "archive", icon: "archive",
isAsync: true, isAsync: true,
config: [ config: [
{ {
key: "operation",
label: "操作类型", label: "操作类型",
component: "q-select", component: "q-select",
icon: "settings", icon: "settings",
@ -87,7 +81,6 @@ export const fileCommands = {
], ],
}, },
{ {
key: "format",
label: "归档格式", label: "归档格式",
component: "q-select", component: "q-select",
icon: "format_shapes", icon: "format_shapes",
@ -100,7 +93,6 @@ export const fileCommands = {
], ],
}, },
{ {
key: "source",
label: "源文件/文件夹", label: "源文件/文件夹",
component: "VariableInput", component: "VariableInput",
icon: "folder_open", icon: "folder_open",
@ -115,7 +107,6 @@ export const fileCommands = {
}, },
}, },
{ {
key: "destination",
label: "目标路径", label: "目标路径",
component: "VariableInput", component: "VariableInput",
icon: "save", icon: "save",
@ -135,7 +126,6 @@ export const fileCommands = {
icon: "delete", icon: "delete",
config: [ config: [
{ {
key: "path",
label: "文件或文件夹的绝对路径", label: "文件或文件夹的绝对路径",
component: "VariableInput", component: "VariableInput",
icon: "folder_open", icon: "folder_open",

View File

@ -24,12 +24,10 @@ export const imageCommands = {
{ {
value: "quickcomposer.image.analyze", value: "quickcomposer.image.analyze",
label: "图片信息", label: "图片信息",
desc: "分析图片基本信息",
icon: "analytics", icon: "analytics",
isAsync: true, isAsync: true,
config: [ config: [
{ {
key: "file",
label: "图片文件", label: "图片文件",
component: "VariableInput", component: "VariableInput",
icon: "image", icon: "image",
@ -55,12 +53,10 @@ export const imageCommands = {
{ {
value: "quickcomposer.image.resize", value: "quickcomposer.image.resize",
label: "调整大小", label: "调整大小",
desc: "调整图片尺寸",
icon: "aspect_ratio", icon: "aspect_ratio",
isAsync: true, isAsync: true,
config: [ config: [
{ {
key: "inputFile",
label: "输入文件", label: "输入文件",
component: "VariableInput", component: "VariableInput",
icon: "image", icon: "image",
@ -82,7 +78,6 @@ export const imageCommands = {
}, },
}, },
{ {
key: "outputFile",
label: "输出文件", label: "输出文件",
component: "VariableInput", component: "VariableInput",
icon: "save", icon: "save",
@ -103,7 +98,6 @@ export const imageCommands = {
}, },
}, },
{ {
key: "width",
label: "宽度(像素)", label: "宽度(像素)",
component: "NumberInput", component: "NumberInput",
icon: "compare_arrows", icon: "compare_arrows",
@ -113,7 +107,6 @@ export const imageCommands = {
defaultValue: "", defaultValue: "",
}, },
{ {
key: "height",
label: "高度(像素)", label: "高度(像素)",
component: "NumberInput", component: "NumberInput",
icon: "height", icon: "height",
@ -123,7 +116,6 @@ export const imageCommands = {
defaultValue: "", defaultValue: "",
}, },
{ {
key: "keepAspectRatio",
label: "保持宽高比", label: "保持宽高比",
component: "q-select", component: "q-select",
icon: "aspect_ratio", icon: "aspect_ratio",
@ -135,7 +127,6 @@ export const imageCommands = {
], ],
}, },
{ {
key: "quality",
label: "图片质量(0-1)", label: "图片质量(0-1)",
component: "NumberInput", component: "NumberInput",
icon: "high_quality", icon: "high_quality",
@ -150,12 +141,10 @@ export const imageCommands = {
{ {
value: "quickcomposer.image.rotate", value: "quickcomposer.image.rotate",
label: "旋转图片", label: "旋转图片",
desc: "旋转图片角度",
icon: "rotate_right", icon: "rotate_right",
isAsync: true, isAsync: true,
config: [ config: [
{ {
key: "inputFile",
label: "输入文件", label: "输入文件",
component: "VariableInput", component: "VariableInput",
icon: "image", icon: "image",
@ -177,7 +166,6 @@ export const imageCommands = {
}, },
}, },
{ {
key: "outputFile",
label: "输出文件", label: "输出文件",
component: "VariableInput", component: "VariableInput",
icon: "save", icon: "save",
@ -198,7 +186,6 @@ export const imageCommands = {
}, },
}, },
{ {
key: "angle",
label: "旋转角度", label: "旋转角度",
component: "NumberInput", component: "NumberInput",
icon: "rotate_right", icon: "rotate_right",
@ -207,7 +194,6 @@ export const imageCommands = {
defaultValue: 90, defaultValue: 90,
}, },
{ {
key: "quality",
label: "图片质量(0-1)", label: "图片质量(0-1)",
component: "NumberInput", component: "NumberInput",
icon: "high_quality", icon: "high_quality",
@ -222,12 +208,10 @@ export const imageCommands = {
{ {
value: "quickcomposer.image.crop", value: "quickcomposer.image.crop",
label: "裁剪图片", label: "裁剪图片",
desc: "裁剪图片区域",
icon: "crop", icon: "crop",
isAsync: true, isAsync: true,
config: [ config: [
{ {
key: "inputFile",
label: "输入文件", label: "输入文件",
component: "VariableInput", component: "VariableInput",
icon: "image", icon: "image",
@ -249,7 +233,6 @@ export const imageCommands = {
}, },
}, },
{ {
key: "outputFile",
label: "输出文件", label: "输出文件",
component: "VariableInput", component: "VariableInput",
icon: "save", icon: "save",
@ -270,7 +253,6 @@ export const imageCommands = {
}, },
}, },
{ {
key: "x",
label: "起始X坐标", label: "起始X坐标",
component: "NumberInput", component: "NumberInput",
icon: "arrow_right", icon: "arrow_right",
@ -280,7 +262,6 @@ export const imageCommands = {
defaultValue: 0, defaultValue: 0,
}, },
{ {
key: "y",
label: "起始Y坐标", label: "起始Y坐标",
component: "NumberInput", component: "NumberInput",
icon: "arrow_downward", icon: "arrow_downward",
@ -290,7 +271,6 @@ export const imageCommands = {
defaultValue: 0, defaultValue: 0,
}, },
{ {
key: "width",
label: "裁剪宽度", label: "裁剪宽度",
component: "NumberInput", component: "NumberInput",
icon: "compare_arrows", icon: "compare_arrows",
@ -300,7 +280,6 @@ export const imageCommands = {
defaultValue: "", defaultValue: "",
}, },
{ {
key: "height",
label: "裁剪高度", label: "裁剪高度",
component: "NumberInput", component: "NumberInput",
icon: "height", icon: "height",
@ -310,7 +289,6 @@ export const imageCommands = {
defaultValue: "", defaultValue: "",
}, },
{ {
key: "quality",
label: "图片质量(0-1)", label: "图片质量(0-1)",
component: "NumberInput", component: "NumberInput",
icon: "high_quality", icon: "high_quality",
@ -325,12 +303,10 @@ export const imageCommands = {
{ {
value: "quickcomposer.image.watermark", value: "quickcomposer.image.watermark",
label: "添加水印", label: "添加水印",
desc: "添加文字水印",
icon: "format_color_text", icon: "format_color_text",
isAsync: true, isAsync: true,
config: [ config: [
{ {
key: "inputFile",
label: "输入文件", label: "输入文件",
component: "VariableInput", component: "VariableInput",
icon: "image", icon: "image",
@ -352,7 +328,6 @@ export const imageCommands = {
}, },
}, },
{ {
key: "outputFile",
label: "输出文件", label: "输出文件",
component: "VariableInput", component: "VariableInput",
icon: "save", icon: "save",
@ -373,7 +348,6 @@ export const imageCommands = {
}, },
}, },
{ {
key: "text",
label: "水印文字", label: "水印文字",
component: "VariableInput", component: "VariableInput",
icon: "text_fields", icon: "text_fields",
@ -381,7 +355,6 @@ export const imageCommands = {
defaultValue: newVarInputVal("str", "水印文字"), defaultValue: newVarInputVal("str", "水印文字"),
}, },
{ {
key: "font",
label: "字体设置", label: "字体设置",
component: "VariableInput", component: "VariableInput",
icon: "font_download", icon: "font_download",
@ -389,7 +362,6 @@ export const imageCommands = {
defaultValue: newVarInputVal("str", "24px Arial"), defaultValue: newVarInputVal("str", "24px Arial"),
}, },
{ {
key: "color",
label: "文字颜色", label: "文字颜色",
component: "VariableInput", component: "VariableInput",
icon: "format_color_text", icon: "format_color_text",
@ -397,7 +369,6 @@ export const imageCommands = {
defaultValue: newVarInputVal("str", "rgba(255, 255, 255, 0.5)"), defaultValue: newVarInputVal("str", "rgba(255, 255, 255, 0.5)"),
}, },
{ {
key: "position",
label: "位置", label: "位置",
component: "q-select", component: "q-select",
icon: "place", icon: "place",
@ -406,7 +377,6 @@ export const imageCommands = {
options: WATERMARK_POSITIONS, options: WATERMARK_POSITIONS,
}, },
{ {
key: "margin",
label: "边距", label: "边距",
component: "NumberInput", component: "NumberInput",
icon: "space_bar", icon: "space_bar",
@ -416,7 +386,6 @@ export const imageCommands = {
defaultValue: 20, defaultValue: 20,
}, },
{ {
key: "opacity",
label: "不透明度(0-1)", label: "不透明度(0-1)",
component: "NumberInput", component: "NumberInput",
icon: "opacity", icon: "opacity",
@ -427,7 +396,6 @@ export const imageCommands = {
defaultValue: 0.5, defaultValue: 0.5,
}, },
{ {
key: "quality",
label: "图片质量(0-1)", label: "图片质量(0-1)",
component: "NumberInput", component: "NumberInput",
icon: "high_quality", icon: "high_quality",
@ -442,12 +410,10 @@ export const imageCommands = {
{ {
value: "quickcomposer.image.convert", value: "quickcomposer.image.convert",
label: "格式转换", label: "格式转换",
desc: "转换图片格式",
icon: "transform", icon: "transform",
isAsync: true, isAsync: true,
config: [ config: [
{ {
key: "inputFile",
label: "输入文件", label: "输入文件",
component: "VariableInput", component: "VariableInput",
icon: "image", icon: "image",
@ -469,7 +435,6 @@ export const imageCommands = {
}, },
}, },
{ {
key: "outputFile",
label: "输出文件", label: "输出文件",
component: "VariableInput", component: "VariableInput",
icon: "save", icon: "save",
@ -490,7 +455,6 @@ export const imageCommands = {
}, },
}, },
{ {
key: "format",
label: "输出格式", label: "输出格式",
component: "q-select", component: "q-select",
icon: "transform", icon: "transform",
@ -499,7 +463,6 @@ export const imageCommands = {
options: IMAGE_FORMATS, options: IMAGE_FORMATS,
}, },
{ {
key: "quality",
label: "图片质量(0-1)", label: "图片质量(0-1)",
component: "NumberInput", component: "NumberInput",
icon: "high_quality", icon: "high_quality",
@ -514,11 +477,9 @@ export const imageCommands = {
{ {
value: "quickcomposer.image.pngToIcon", value: "quickcomposer.image.pngToIcon",
label: "PNG转图标", label: "PNG转图标",
desc: "将PNG图片转换为图标",
icon: "transform", icon: "transform",
config: [ config: [
{ {
key: "inputFile",
label: "PNG路径/Base64", label: "PNG路径/Base64",
component: "VariableInput", component: "VariableInput",
icon: "image", icon: "image",
@ -540,7 +501,6 @@ export const imageCommands = {
}, },
}, },
{ {
key: "outputDir",
label: "输出目录", label: "输出目录",
component: "VariableInput", component: "VariableInput",
icon: "save", icon: "save",
@ -558,7 +518,6 @@ export const imageCommands = {
}, },
}, },
{ {
key: "type",
label: "输出格式", label: "输出格式",
component: "q-select", component: "q-select",
icon: "transform", icon: "transform",

View File

@ -8,30 +8,25 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.app.getFrontmost", value: "quickcomposer.macos.app.getFrontmost",
label: "应用及窗口控制", label: "应用及窗口控制",
desc: "应用程序管理功能",
icon: "apps", icon: "apps",
isAsync: true, isAsync: true,
subCommands: [ subCommands: [
{ {
value: "quickcomposer.macos.app.getFrontmost", value: "quickcomposer.macos.app.getFrontmost",
label: "获取前台应用", label: "获取前台应用",
desc: "获取当前前台运行的应用信息",
icon: "front_hand", icon: "front_hand",
}, },
{ {
value: "quickcomposer.macos.app.getRunningApps", value: "quickcomposer.macos.app.getRunningApps",
label: "获取活动应用", label: "获取活动应用",
desc: "获取所有正在运行的应用列表",
icon: "list", icon: "list",
}, },
{ {
value: "quickcomposer.macos.app.launch", value: "quickcomposer.macos.app.launch",
label: "启动应用", label: "启动应用",
desc: "启动指定的应用程序",
icon: "launch", icon: "launch",
config: [ config: [
{ {
key: "appName",
label: "应用名称", label: "应用名称",
component: "VariableInput", component: "VariableInput",
icon: "apps", icon: "apps",
@ -43,11 +38,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.app.quit", value: "quickcomposer.macos.app.quit",
label: "退出应用", label: "退出应用",
desc: "退出指定的应用程序",
icon: "close", icon: "close",
config: [ config: [
{ {
key: "appName",
label: "应用名称", label: "应用名称",
component: "VariableInput", component: "VariableInput",
icon: "apps", icon: "apps",
@ -59,11 +52,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.app.hide", value: "quickcomposer.macos.app.hide",
label: "隐藏应用", label: "隐藏应用",
desc: "隐藏指定的应用程序",
icon: "visibility_off", icon: "visibility_off",
config: [ config: [
{ {
key: "appName",
label: "应用名称", label: "应用名称",
component: "VariableInput", component: "VariableInput",
icon: "apps", icon: "apps",
@ -75,11 +66,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.app.show", value: "quickcomposer.macos.app.show",
label: "显示应用", label: "显示应用",
desc: "显示指定的应用程序",
icon: "visibility", icon: "visibility",
config: [ config: [
{ {
key: "appName",
label: "应用名称", label: "应用名称",
component: "VariableInput", component: "VariableInput",
icon: "apps", icon: "apps",
@ -91,11 +80,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.app.minimize", value: "quickcomposer.macos.app.minimize",
label: "最小化窗口", label: "最小化窗口",
desc: "最小化指定应用的窗口",
icon: "minimize", icon: "minimize",
config: [ config: [
{ {
key: "appName",
label: "应用名称", label: "应用名称",
component: "VariableInput", component: "VariableInput",
icon: "apps", icon: "apps",
@ -107,11 +94,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.app.maximize", value: "quickcomposer.macos.app.maximize",
label: "最大化窗口", label: "最大化窗口",
desc: "最大化指定应用的窗口",
icon: "maximize", icon: "maximize",
config: [ config: [
{ {
key: "appName",
label: "应用名称", label: "应用名称",
component: "VariableInput", component: "VariableInput",
icon: "apps", icon: "apps",
@ -123,11 +108,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.app.getWindows", value: "quickcomposer.macos.app.getWindows",
label: "获取窗口信息", label: "获取窗口信息",
desc: "获取指定应用的所有窗口信息",
icon: "window", icon: "window",
config: [ config: [
{ {
key: "appName",
label: "应用名称", label: "应用名称",
component: "VariableInput", component: "VariableInput",
icon: "apps", icon: "apps",
@ -139,11 +122,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.app.getScriptDictionary", value: "quickcomposer.macos.app.getScriptDictionary",
label: "获取应用脚本字典", label: "获取应用脚本字典",
desc: "获取应用程序的AppleScript字典内容",
icon: "code", icon: "code",
config: [ config: [
{ {
key: "appName",
label: "应用名称", label: "应用名称",
component: "VariableInput", component: "VariableInput",
icon: "apps", icon: "apps",
@ -157,18 +138,15 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.system.setVolume", value: "quickcomposer.macos.system.setVolume",
label: "系统管理", label: "系统管理",
desc: "系统级别的控制功能",
icon: "settings", icon: "settings",
isAsync: true, isAsync: true,
subCommands: [ subCommands: [
{ {
value: "quickcomposer.macos.system.setVolume", value: "quickcomposer.macos.system.setVolume",
label: "系统音量", label: "系统音量",
desc: "调整系统音量",
icon: "volume_up", icon: "volume_up",
config: [ config: [
{ {
key: "volume",
label: "音量", label: "音量",
component: "NumberInput", component: "NumberInput",
icon: "volume_up", icon: "volume_up",
@ -183,23 +161,19 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.system.lockScreen", value: "quickcomposer.macos.system.lockScreen",
label: "锁定屏幕", label: "锁定屏幕",
desc: "锁定系统屏幕",
icon: "lock", icon: "lock",
}, },
{ {
value: "quickcomposer.macos.system.sleep", value: "quickcomposer.macos.system.sleep",
label: "进入睡眠", label: "进入睡眠",
desc: "使系统进入睡眠状态",
icon: "bedtime", icon: "bedtime",
}, },
{ {
value: "quickcomposer.macos.system.setDockPosition", value: "quickcomposer.macos.system.setDockPosition",
label: "设置Dock位置", label: "设置Dock位置",
desc: "设置Dock栏的显示位置",
icon: "dock", icon: "dock",
config: [ config: [
{ {
key: "position",
label: "位置", label: "位置",
component: "ButtonGroup", component: "ButtonGroup",
defaultValue: "bottom", defaultValue: "bottom",
@ -224,11 +198,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.system.setDockSize", value: "quickcomposer.macos.system.setDockSize",
label: "设置Dock大小", label: "设置Dock大小",
desc: "设置Dock栏的图标大小",
icon: "dock", icon: "dock",
config: [ config: [
{ {
key: "size",
label: "大小", label: "大小",
component: "NumberInput", component: "NumberInput",
icon: "dock", icon: "dock",
@ -242,11 +214,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.system.toggleDockAutohide", value: "quickcomposer.macos.system.toggleDockAutohide",
label: "Dock自动隐藏", label: "Dock自动隐藏",
desc: "设置Dock栏是否自动隐藏",
icon: "dock", icon: "dock",
config: [ config: [
{ {
key: "enabled",
label: "启用", label: "启用",
component: "CheckButton", component: "CheckButton",
defaultValue: false, defaultValue: false,
@ -258,11 +228,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.system.toggleMenuBarAutohide", value: "quickcomposer.macos.system.toggleMenuBarAutohide",
label: "菜单栏自动隐藏", label: "菜单栏自动隐藏",
desc: "设置菜单栏是否自动隐藏",
icon: "menu", icon: "menu",
config: [ config: [
{ {
key: "enabled",
label: "启用", label: "启用",
component: "CheckButton", component: "CheckButton",
defaultValue: false, defaultValue: false,
@ -274,11 +242,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.system.toggleDarkMode", value: "quickcomposer.macos.system.toggleDarkMode",
label: "深色模式", label: "深色模式",
desc: "切换系统深色模式",
icon: "dark_mode", icon: "dark_mode",
config: [ config: [
{ {
key: "enabled",
label: "启用", label: "启用",
component: "CheckButton", component: "CheckButton",
defaultValue: true, defaultValue: true,
@ -292,7 +258,6 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.finder.getSelection", value: "quickcomposer.macos.finder.getSelection",
label: "访达管理", label: "访达管理",
desc: "访达操作和文件管理功能",
icon: "folder", icon: "folder",
isAsync: true, isAsync: true,
subCommands: [ subCommands: [
@ -312,7 +277,6 @@ export const macosCommands = {
icon: "visibility", icon: "visibility",
config: [ config: [
{ {
key: "show",
label: "显示", label: "显示",
component: "CheckButton", component: "CheckButton",
width: 12, width: 12,
@ -323,17 +287,14 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.finder.getWindows", value: "quickcomposer.macos.finder.getWindows",
label: "获取窗口列表", label: "获取窗口列表",
desc: "获取所有访达窗口信息",
icon: "window", icon: "window",
}, },
{ {
value: "quickcomposer.macos.finder.activateWindow", value: "quickcomposer.macos.finder.activateWindow",
label: "激活窗口", label: "激活窗口",
desc: "激活指定的访达窗口",
icon: "open_in_new", icon: "open_in_new",
config: [ config: [
{ {
key: "index",
label: "窗口索引", label: "窗口索引",
component: "NumberInput", component: "NumberInput",
icon: "window", icon: "window",
@ -348,18 +309,15 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.browser.getUrl", value: "quickcomposer.macos.browser.getUrl",
label: "浏览器控制", label: "浏览器控制",
desc: "浏览器管理功能",
icon: "web", icon: "web",
isAsync: true, isAsync: true,
subCommands: [ subCommands: [
{ {
value: "quickcomposer.macos.browser.getUrl", value: "quickcomposer.macos.browser.getUrl",
label: "获取当前地址", label: "获取当前地址",
desc: "获取当前标签页的URL地址",
icon: "link", icon: "link",
config: [ config: [
{ {
key: "browser",
component: "ButtonGroup", component: "ButtonGroup",
defaultValue: "Microsoft Edge", defaultValue: "Microsoft Edge",
options: [ options: [
@ -379,11 +337,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.browser.setUrl", value: "quickcomposer.macos.browser.setUrl",
label: "设置当前地址", label: "设置当前地址",
desc: "设置当前标签页的URL地址",
icon: "link", icon: "link",
config: [ config: [
{ {
key: "browser",
component: "ButtonGroup", component: "ButtonGroup",
defaultValue: "Microsoft Edge", defaultValue: "Microsoft Edge",
options: [ options: [
@ -399,7 +355,6 @@ export const macosCommands = {
width: 12, width: 12,
}, },
{ {
key: "url",
label: "网址", label: "网址",
component: "VariableInput", component: "VariableInput",
icon: "link", icon: "link",
@ -411,11 +366,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.browser.getTabs", value: "quickcomposer.macos.browser.getTabs",
label: "获取标签列表", label: "获取标签列表",
desc: "获取所有打开的标签页信息",
icon: "tab", icon: "tab",
config: [ config: [
{ {
key: "browser",
component: "ButtonGroup", component: "ButtonGroup",
defaultValue: "Microsoft Edge", defaultValue: "Microsoft Edge",
options: [ options: [
@ -435,11 +388,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.browser.activateTab", value: "quickcomposer.macos.browser.activateTab",
label: "切换标签", label: "切换标签",
desc: "切换到指定的标签页",
icon: "tab_unselected", icon: "tab_unselected",
config: [ config: [
{ {
key: "browser",
component: "ButtonGroup", component: "ButtonGroup",
defaultValue: "Microsoft Edge", defaultValue: "Microsoft Edge",
options: [ options: [
@ -455,7 +406,6 @@ export const macosCommands = {
width: 12, width: 12,
}, },
{ {
key: "index",
label: "标签索引", label: "标签索引",
component: "NumberInput", component: "NumberInput",
icon: "tab", icon: "tab",
@ -468,11 +418,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.browser.executeScript", value: "quickcomposer.macos.browser.executeScript",
label: "执行脚本", label: "执行脚本",
desc: "在当前标签页执行JavaScript脚本",
icon: "code", icon: "code",
config: [ config: [
{ {
key: "browser",
component: "ButtonGroup", component: "ButtonGroup",
defaultValue: "Microsoft Edge", defaultValue: "Microsoft Edge",
options: [ options: [
@ -488,7 +436,6 @@ export const macosCommands = {
width: 12, width: 12,
}, },
{ {
key: "script",
label: "脚本内容", label: "脚本内容",
component: "CodeEditor", component: "CodeEditor",
icon: "code", icon: "code",
@ -496,7 +443,6 @@ export const macosCommands = {
placeholder: "输入JavaScript代码", placeholder: "输入JavaScript代码",
}, },
{ {
key: "args",
topLabel: "要传递的参数", topLabel: "要传递的参数",
component: "DictEditor", component: "DictEditor",
icon: "data_array", icon: "data_array",
@ -507,11 +453,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.browser.clickElement", value: "quickcomposer.macos.browser.clickElement",
label: "点击元素", label: "点击元素",
desc: "点击指定的页面元素",
icon: "mouse", icon: "mouse",
config: [ config: [
{ {
key: "browser",
component: "ButtonGroup", component: "ButtonGroup",
defaultValue: "Microsoft Edge", defaultValue: "Microsoft Edge",
options: [ options: [
@ -527,7 +471,6 @@ export const macosCommands = {
width: 12, width: 12,
}, },
{ {
key: "selector",
label: "选择器", label: "选择器",
component: "VariableInput", component: "VariableInput",
icon: "code", icon: "code",
@ -539,11 +482,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.browser.inputText", value: "quickcomposer.macos.browser.inputText",
label: "输入文本", label: "输入文本",
desc: "在指定输入框中输入文本",
icon: "edit", icon: "edit",
config: [ config: [
{ {
key: "browser",
component: "ButtonGroup", component: "ButtonGroup",
defaultValue: "Microsoft Edge", defaultValue: "Microsoft Edge",
options: [ options: [
@ -559,7 +500,6 @@ export const macosCommands = {
width: 12, width: 12,
}, },
{ {
key: "selector",
label: "选择器", label: "选择器",
component: "VariableInput", component: "VariableInput",
icon: "code", icon: "code",
@ -567,7 +507,6 @@ export const macosCommands = {
placeholder: "输入CSS选择器", placeholder: "输入CSS选择器",
}, },
{ {
key: "text",
label: "文本内容", label: "文本内容",
component: "VariableInput", component: "VariableInput",
icon: "edit", icon: "edit",
@ -579,11 +518,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.browser.getText", value: "quickcomposer.macos.browser.getText",
label: "获取文本", label: "获取文本",
desc: "获取指定元素的文本内容",
icon: "text_fields", icon: "text_fields",
config: [ config: [
{ {
key: "browser",
component: "ButtonGroup", component: "ButtonGroup",
defaultValue: "Microsoft Edge", defaultValue: "Microsoft Edge",
options: [ options: [
@ -599,7 +536,6 @@ export const macosCommands = {
width: 12, width: 12,
}, },
{ {
key: "selector",
label: "选择器", label: "选择器",
component: "VariableInput", component: "VariableInput",
icon: "code", icon: "code",
@ -611,11 +547,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.browser.hideElement", value: "quickcomposer.macos.browser.hideElement",
label: "隐藏元素", label: "隐藏元素",
desc: "隐藏指定的页面元素",
icon: "visibility_off", icon: "visibility_off",
config: [ config: [
{ {
key: "browser",
component: "ButtonGroup", component: "ButtonGroup",
defaultValue: "Microsoft Edge", defaultValue: "Microsoft Edge",
options: [ options: [
@ -631,7 +565,6 @@ export const macosCommands = {
width: 12, width: 12,
}, },
{ {
key: "selector",
label: "选择器", label: "选择器",
component: "VariableInput", component: "VariableInput",
icon: "code", icon: "code",
@ -643,11 +576,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.browser.showElement", value: "quickcomposer.macos.browser.showElement",
label: "显示元素", label: "显示元素",
desc: "显示指定的页面元素",
icon: "visibility", icon: "visibility",
config: [ config: [
{ {
key: "browser",
component: "ButtonGroup", component: "ButtonGroup",
defaultValue: "Microsoft Edge", defaultValue: "Microsoft Edge",
options: [ options: [
@ -663,7 +594,6 @@ export const macosCommands = {
width: 12, width: 12,
}, },
{ {
key: "selector",
label: "选择器", label: "选择器",
component: "VariableInput", component: "VariableInput",
icon: "code", icon: "code",
@ -675,11 +605,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.browser.injectCSS", value: "quickcomposer.macos.browser.injectCSS",
label: "注入CSS", label: "注入CSS",
desc: "向页面注入CSS样式",
icon: "style", icon: "style",
config: [ config: [
{ {
key: "browser",
component: "ButtonGroup", component: "ButtonGroup",
defaultValue: "Microsoft Edge", defaultValue: "Microsoft Edge",
options: [ options: [
@ -695,7 +623,6 @@ export const macosCommands = {
width: 12, width: 12,
}, },
{ {
key: "css",
label: "CSS内容", label: "CSS内容",
component: "CodeEditor", component: "CodeEditor",
icon: "style", icon: "style",
@ -707,11 +634,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.browser.setCookie", value: "quickcomposer.macos.browser.setCookie",
label: "设置Cookie", label: "设置Cookie",
desc: "设置浏览器Cookie",
icon: "cookie", icon: "cookie",
config: [ config: [
{ {
key: "browser",
component: "ButtonGroup", component: "ButtonGroup",
defaultValue: "Microsoft Edge", defaultValue: "Microsoft Edge",
options: [ options: [
@ -791,11 +716,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.browser.getCookie", value: "quickcomposer.macos.browser.getCookie",
label: "获取Cookie", label: "获取Cookie",
desc: "获取指定的Cookie值",
icon: "cookie", icon: "cookie",
config: [ config: [
{ {
key: "browser",
component: "ButtonGroup", component: "ButtonGroup",
defaultValue: "Microsoft Edge", defaultValue: "Microsoft Edge",
options: [ options: [
@ -811,7 +734,6 @@ export const macosCommands = {
width: 12, width: 12,
}, },
{ {
key: "name",
label: "名称", label: "名称",
component: "VariableInput", component: "VariableInput",
icon: "label", icon: "label",
@ -823,11 +745,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.browser.scrollTo", value: "quickcomposer.macos.browser.scrollTo",
label: "滚动到位置", label: "滚动到位置",
desc: "滚动到指定坐标位置",
icon: "open_in_full", icon: "open_in_full",
config: [ config: [
{ {
key: "browser",
component: "ButtonGroup", component: "ButtonGroup",
defaultValue: "Microsoft Edge", defaultValue: "Microsoft Edge",
options: [ options: [
@ -843,7 +763,6 @@ export const macosCommands = {
width: 12, width: 12,
}, },
{ {
key: "x",
label: "X坐标", label: "X坐标",
component: "NumberInput", component: "NumberInput",
icon: "arrow_right", icon: "arrow_right",
@ -851,7 +770,6 @@ export const macosCommands = {
defaultValue: 0, defaultValue: 0,
}, },
{ {
key: "y",
label: "Y坐标", label: "Y坐标",
component: "NumberInput", component: "NumberInput",
icon: "arrow_drop_down", icon: "arrow_drop_down",
@ -863,11 +781,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.browser.scrollToElement", value: "quickcomposer.macos.browser.scrollToElement",
label: "滚动到元素", label: "滚动到元素",
desc: "滚动到指定元素位置",
icon: "open_in_full", icon: "open_in_full",
config: [ config: [
{ {
key: "browser",
component: "ButtonGroup", component: "ButtonGroup",
defaultValue: "Microsoft Edge", defaultValue: "Microsoft Edge",
options: [ options: [
@ -883,7 +799,6 @@ export const macosCommands = {
width: 12, width: 12,
}, },
{ {
key: "selector",
label: "选择器", label: "选择器",
component: "VariableInput", component: "VariableInput",
icon: "code", icon: "code",
@ -895,11 +810,9 @@ export const macosCommands = {
{ {
value: "quickcomposer.macos.browser.waitForElement", value: "quickcomposer.macos.browser.waitForElement",
label: "等待元素", label: "等待元素",
desc: "等待指定元素出现",
icon: "hourglass_empty", icon: "hourglass_empty",
config: [ config: [
{ {
key: "browser",
component: "ButtonGroup", component: "ButtonGroup",
defaultValue: "Microsoft Edge", defaultValue: "Microsoft Edge",
options: [ options: [
@ -915,7 +828,6 @@ export const macosCommands = {
width: 12, width: 12,
}, },
{ {
key: "selector",
label: "选择器", label: "选择器",
component: "VariableInput", component: "VariableInput",
icon: "code", icon: "code",
@ -923,7 +835,6 @@ export const macosCommands = {
placeholder: "输入CSS选择器", placeholder: "输入CSS选择器",
}, },
{ {
key: "timeout",
label: "超时时间", label: "超时时间",
component: "NumberInput", component: "NumberInput",
icon: "timer", icon: "timer",

View File

@ -8,11 +8,9 @@ export const mathCommands = {
{ {
value: "quickcomposer.math.basic.evaluate", value: "quickcomposer.math.basic.evaluate",
label: "基础运算", label: "基础运算",
desc: "基础数学运算",
icon: "exposure", icon: "exposure",
config: [ config: [
{ {
key: "expression",
label: "表达式", label: "表达式",
component: "VariableInput", component: "VariableInput",
icon: "functions", icon: "functions",
@ -33,7 +31,6 @@ export const mathCommands = {
icon: "exposure", icon: "exposure",
config: [ config: [
{ {
key: "decimals",
label: "小数位数", label: "小数位数",
component: "NumberInput", component: "NumberInput",
icon: "pin", icon: "pin",
@ -68,11 +65,9 @@ export const mathCommands = {
{ {
value: "quickcomposer.math.random.number", value: "quickcomposer.math.random.number",
label: "随机数", label: "随机数",
desc: "生成随机数",
icon: "casino", icon: "casino",
config: [ config: [
{ {
key: "min",
label: "最小值", label: "最小值",
component: "NumberInput", component: "NumberInput",
icon: "arrow_downward", icon: "arrow_downward",
@ -80,7 +75,6 @@ export const mathCommands = {
defaultValue: 0, defaultValue: 0,
}, },
{ {
key: "max",
label: "最大值", label: "最大值",
component: "NumberInput", component: "NumberInput",
icon: "arrow_upward", icon: "arrow_upward",
@ -88,7 +82,6 @@ export const mathCommands = {
defaultValue: 100, defaultValue: 100,
}, },
{ {
key: "count",
label: "生成数量", label: "生成数量",
component: "NumberInput", component: "NumberInput",
icon: "format_list_numbered", icon: "format_list_numbered",
@ -97,7 +90,6 @@ export const mathCommands = {
defaultValue: 1, defaultValue: 1,
}, },
{ {
key: "decimals",
label: "小数位数", label: "小数位数",
component: "NumberInput", component: "NumberInput",
icon: "pin", icon: "pin",
@ -122,11 +114,9 @@ export const mathCommands = {
{ {
value: "quickcomposer.math.statistics.mean", value: "quickcomposer.math.statistics.mean",
label: "统计计算", label: "统计计算",
desc: "统计学相关计算",
icon: "bar_chart", icon: "bar_chart",
config: [ config: [
{ {
key: "numbers",
label: "数据集合", label: "数据集合",
component: "VariableInput", component: "VariableInput",
icon: "dataset", icon: "dataset",
@ -192,7 +182,6 @@ export const mathCommands = {
{ {
value: "quickcomposer.math.geometry.circle", value: "quickcomposer.math.geometry.circle",
label: "几何计算", label: "几何计算",
desc: "几何图形计算",
icon: "architecture", icon: "architecture",
subCommands: [ subCommands: [
{ {
@ -201,7 +190,6 @@ export const mathCommands = {
icon: "circle", icon: "circle",
config: [ config: [
{ {
key: "radius",
label: "半径", label: "半径",
component: "NumberInput", component: "NumberInput",
icon: "radio_button_checked", icon: "radio_button_checked",
@ -216,7 +204,6 @@ export const mathCommands = {
icon: "rectangle", icon: "rectangle",
config: [ config: [
{ {
key: "width",
label: "宽度", label: "宽度",
component: "NumberInput", component: "NumberInput",
icon: "swap_horiz", icon: "swap_horiz",
@ -224,7 +211,6 @@ export const mathCommands = {
min: 0, min: 0,
}, },
{ {
key: "height",
label: "高度", label: "高度",
component: "NumberInput", component: "NumberInput",
icon: "height", icon: "height",
@ -239,7 +225,6 @@ export const mathCommands = {
icon: "change_history", icon: "change_history",
config: [ config: [
{ {
key: "a",
label: "边长a", label: "边长a",
component: "NumberInput", component: "NumberInput",
icon: "straighten", icon: "straighten",
@ -247,7 +232,6 @@ export const mathCommands = {
min: 0, min: 0,
}, },
{ {
key: "b",
label: "边长b", label: "边长b",
component: "NumberInput", component: "NumberInput",
icon: "straighten", icon: "straighten",
@ -255,7 +239,6 @@ export const mathCommands = {
min: 0, min: 0,
}, },
{ {
key: "c",
label: "边长c", label: "边长c",
component: "NumberInput", component: "NumberInput",
icon: "straighten", icon: "straighten",
@ -269,11 +252,9 @@ export const mathCommands = {
{ {
value: "quickcomposer.math.trigonometry.sin", value: "quickcomposer.math.trigonometry.sin",
label: "三角函数", label: "三角函数",
desc: "三角函数计算",
icon: "show_chart", icon: "show_chart",
config: [ config: [
{ {
key: "angle",
label: "角度值", label: "角度值",
component: "NumberInput", component: "NumberInput",
icon: "rotate_right", icon: "rotate_right",
@ -316,11 +297,9 @@ export const mathCommands = {
{ {
value: "quickcomposer.math.conversion.base", value: "quickcomposer.math.conversion.base",
label: "进制转换", label: "进制转换",
desc: "数字进制转换",
icon: "swap_horiz", icon: "swap_horiz",
config: [ config: [
{ {
key: "value",
label: "数值", label: "数值",
component: "VariableInput", component: "VariableInput",
icon: "pin", icon: "pin",
@ -328,7 +307,6 @@ export const mathCommands = {
defaultValue: newVarInputVal("var", ""), defaultValue: newVarInputVal("var", ""),
}, },
{ {
key: "from",
label: "从", label: "从",
component: "ButtonGroup", component: "ButtonGroup",
icon: "input", icon: "input",
@ -342,7 +320,6 @@ export const mathCommands = {
defaultValue: "decimal", defaultValue: "decimal",
}, },
{ {
key: "to",
label: "到", label: "到",
component: "ButtonGroup", component: "ButtonGroup",
icon: "output", icon: "output",

View File

@ -10,7 +10,6 @@ export const networkCommands = {
label: "默认浏览器打开网址", label: "默认浏览器打开网址",
config: [ config: [
{ {
key: "visit",
label: "要访问的网址链接", label: "要访问的网址链接",
component: "VariableInput", component: "VariableInput",
icon: "language", icon: "language",
@ -22,7 +21,6 @@ export const networkCommands = {
label: "ubrowser打开网址", label: "ubrowser打开网址",
config: [ config: [
{ {
key: "url",
label: "要访问的网址链接", label: "要访问的网址链接",
component: "VariableInput", component: "VariableInput",
icon: "public", icon: "public",
@ -51,7 +49,6 @@ export const networkCommands = {
{ {
value: "quickcomposer.network.url.parse", value: "quickcomposer.network.url.parse",
label: "URL操作", label: "URL操作",
desc: "URL解析、格式化和参数处理",
icon: "link", icon: "link",
config: [], config: [],
subCommands: [ subCommands: [
@ -250,7 +247,6 @@ export const networkCommands = {
{ {
value: "quickcomposer.network.dns.lookupHost", value: "quickcomposer.network.dns.lookupHost",
label: "DNS操作", label: "DNS操作",
desc: "DNS解析和查询",
icon: "dns", icon: "dns",
isAsync: true, isAsync: true,
config: [], config: [],
@ -394,7 +390,6 @@ export const networkCommands = {
{ {
value: "quickcommand.downloadFile", value: "quickcommand.downloadFile",
label: "下载文件", label: "下载文件",
desc: "下载文件",
icon: "file_download", icon: "file_download",
isAsync: true, isAsync: true,
config: [ config: [
@ -417,7 +412,6 @@ export const networkCommands = {
{ {
value: "quickcommand.uploadFile", value: "quickcommand.uploadFile",
label: "上传文件", label: "上传文件",
desc: "上传文件",
icon: "file_upload", icon: "file_upload",
isAsync: true, isAsync: true,
config: [ config: [

View File

@ -8,7 +8,6 @@ export const notifyCommands = {
label: "显示消息", label: "显示消息",
config: [ config: [
{ {
key: "log",
label: "要打印的消息文本", label: "要打印的消息文本",
component: "VariableInput", component: "VariableInput",
icon: "info", icon: "info",
@ -20,7 +19,6 @@ export const notifyCommands = {
label: "发送系统消息", label: "发送系统消息",
config: [ config: [
{ {
key: "notification",
label: "要发送的系统消息文本", label: "要发送的系统消息文本",
component: "VariableInput", component: "VariableInput",
icon: "message", icon: "message",

View File

@ -8,7 +8,6 @@ export const otherCommands = {
label: "添加延时", label: "添加延时",
config: [ config: [
{ {
key: "ms",
label: "延迟的毫秒数", label: "延迟的毫秒数",
component: "NumberInput", component: "NumberInput",
min: 0, min: 0,

View File

@ -72,7 +72,6 @@ export const screenCommands = {
{ {
value: "utools.getPrimaryDisplay", value: "utools.getPrimaryDisplay",
label: "获取显示器信息", label: "获取显示器信息",
desc: "获取显示器信息",
icon: "monitor", icon: "monitor",
outputVariable: "display", outputVariable: "display",
saveOutput: true, saveOutput: true,
@ -104,7 +103,6 @@ export const screenCommands = {
{ {
value: "utools.screenToDipPoint", value: "utools.screenToDipPoint",
label: "物理/DIP坐标转换", label: "物理/DIP坐标转换",
desc: "屏幕物理坐标和 DIP 坐标转换",
icon: "transform", icon: "transform",
outputVariable: "{x,y}", outputVariable: "{x,y}",
saveOutput: true, saveOutput: true,
@ -125,7 +123,6 @@ export const screenCommands = {
{ {
value: "utools.screenToDipRect", value: "utools.screenToDipRect",
label: "物理/DIP区域转换", label: "物理/DIP区域转换",
desc: "屏幕物理区域和 DIP 区域转换",
icon: "transform", icon: "transform",
outputVariable: "{x,y,width,height}", outputVariable: "{x,y,width,height}",
saveOutput: true, saveOutput: true,
@ -134,13 +131,11 @@ export const screenCommands = {
{ {
value: "utools.screenToDipRect", value: "utools.screenToDipRect",
label: "物理区域转DIP区域", label: "物理区域转DIP区域",
desc: "屏幕物理区域转 DIP 区域",
icon: "transform", icon: "transform",
}, },
{ {
value: "utools.dipToScreenRect", value: "utools.dipToScreenRect",
label: "DIP区域转物理区域", label: "DIP区域转物理区域",
desc: "DIP 区域转屏幕物理区域",
icon: "transform", icon: "transform",
}, },
], ],

View File

@ -14,7 +14,6 @@ export const simulateCommands = {
{ {
value: "quickcomposer.simulate.keySequence", value: "quickcomposer.simulate.keySequence",
label: "按键序列", label: "按键序列",
description: "按顺序执行多个按键操作",
component: "KeySequenceEditor", component: "KeySequenceEditor",
}, },
{ {
@ -39,7 +38,6 @@ export const simulateCommands = {
label: "发送文本", label: "发送文本",
config: [ config: [
{ {
key: "text",
label: "要发送的文本内容", label: "要发送的文本内容",
component: "VariableInput", component: "VariableInput",
icon: "send", icon: "send",
@ -70,7 +68,6 @@ export const simulateCommands = {
icon: "file_copy", icon: "file_copy",
config: [ config: [
{ {
key: "file",
label: "文件路径", label: "文件路径",
component: "VariableInput", component: "VariableInput",
icon: "description", icon: "description",
@ -97,7 +94,6 @@ export const simulateCommands = {
icon: "image", icon: "image",
config: [ config: [
{ {
key: "image",
label: "图片路径/base64", label: "图片路径/base64",
component: "VariableInput", component: "VariableInput",
icon: "image", icon: "image",
@ -198,7 +194,6 @@ export const simulateCommands = {
{ {
value: "quickcomposer.simulate.screenColorPick", value: "quickcomposer.simulate.screenColorPick",
label: "屏幕取色", label: "屏幕取色",
desc: "获取用户选择的颜色,会弹出一个系统取色器",
icon: "colorize", icon: "colorize",
isAsync: true, isAsync: true,
outputVariable: "{hex,rgb}", outputVariable: "{hex,rgb}",
@ -207,14 +202,12 @@ export const simulateCommands = {
{ {
value: "quickcomposer.simulate.captureScreen", value: "quickcomposer.simulate.captureScreen",
label: "屏幕截图", label: "屏幕截图",
desc: "屏幕截图,进行区域截图或全屏截图",
icon: "screenshot_monitor", icon: "screenshot_monitor",
isAsync: true, isAsync: true,
outputVariable: "base64Data", outputVariable: "base64Data",
saveOutput: true, saveOutput: true,
config: [ config: [
{ {
key: "range",
label: "截图范围", label: "截图范围",
component: "ButtonGroup", component: "ButtonGroup",
options: [ options: [
@ -243,7 +236,6 @@ export const simulateCommands = {
icon: "file_copy", icon: "file_copy",
config: [ config: [
{ {
key: "path",
label: "截图保存路径", label: "截图保存路径",
component: "VariableInput", component: "VariableInput",
defaultValue: newVarInputVal( defaultValue: newVarInputVal(

View File

@ -5,7 +5,6 @@ export const statusCommands = {
{ {
value: "utools.readCurrentFolderPath", value: "utools.readCurrentFolderPath",
label: "获取当前文件管理器路径", label: "获取当前文件管理器路径",
desc: "获取当前文件管理器窗口路径",
icon: "folder", icon: "folder",
isAsync: true, isAsync: true,
outputVariable: "currentFolderPath", outputVariable: "currentFolderPath",
@ -14,7 +13,6 @@ export const statusCommands = {
{ {
value: "utools.readCurrentBrowserUrl", value: "utools.readCurrentBrowserUrl",
label: "获取当前浏览器地址", label: "获取当前浏览器地址",
desc: "获取当前浏览器窗口URL",
icon: "language", icon: "language",
isAsync: true, isAsync: true,
outputVariable: "currentBrowserUrl", outputVariable: "currentBrowserUrl",
@ -23,7 +21,6 @@ export const statusCommands = {
{ {
value: "quickcomposer.status.getSelectedText", value: "quickcomposer.status.getSelectedText",
label: "获取选中文本", label: "获取选中文本",
desc: "获取选中的文本",
icon: "text_fields", icon: "text_fields",
isAsync: true, isAsync: true,
outputVariable: "selectedText", outputVariable: "selectedText",
@ -32,7 +29,6 @@ export const statusCommands = {
{ {
value: "quickcomposer.status.getSelectedImage", value: "quickcomposer.status.getSelectedImage",
label: "获取选中的图片", label: "获取选中的图片",
desc: "获取选中的图片",
icon: "image", icon: "image",
isAsync: true, isAsync: true,
outputVariable: "selectedImage", outputVariable: "selectedImage",
@ -41,7 +37,6 @@ export const statusCommands = {
{ {
value: "quickcomposer.status.getSelectedFiles", value: "quickcomposer.status.getSelectedFiles",
label: "获取选中的文件", label: "获取选中的文件",
desc: "获取选中的文件",
icon: "file_present", icon: "file_present",
isAsync: true, isAsync: true,
outputVariable: "selectedFiles", outputVariable: "selectedFiles",

View File

@ -15,7 +15,6 @@ export const systemCommands = {
icon: "content_copy", icon: "content_copy",
config: [ config: [
{ {
key: "content",
label: "要写入剪切板的内容", label: "要写入剪切板的内容",
component: "VariableInput", component: "VariableInput",
icon: "content_copy", icon: "content_copy",
@ -28,7 +27,6 @@ export const systemCommands = {
icon: "image", icon: "image",
config: [ config: [
{ {
key: "image",
label: "图片路径/base64", label: "图片路径/base64",
component: "VariableInput", component: "VariableInput",
icon: "image", icon: "image",
@ -50,7 +48,6 @@ export const systemCommands = {
icon: "file_copy", icon: "file_copy",
config: [ config: [
{ {
key: "file",
label: "文件路径", label: "文件路径",
component: "VariableInput", component: "VariableInput",
icon: "file_copy", icon: "file_copy",
@ -108,7 +105,6 @@ export const systemCommands = {
{ {
value: "quickcomposer.system.exec", value: "quickcomposer.system.exec",
label: "执行系统命令", label: "执行系统命令",
desc: "执行系统命令并返回输出结果",
component: "SystemCommandEditor", component: "SystemCommandEditor",
icon: "terminal", icon: "terminal",
isAsync: true, isAsync: true,
@ -116,7 +112,6 @@ export const systemCommands = {
{ {
value: "utools.getPath", value: "utools.getPath",
label: "获取系统路径", label: "获取系统路径",
desc: "获取系统路径",
outputVariable: "systemPath", outputVariable: "systemPath",
saveOutput: true, saveOutput: true,
defaultValue: "home", defaultValue: "home",
@ -188,7 +183,6 @@ export const systemCommands = {
{ {
value: "utools.isMacOS", value: "utools.isMacOS",
label: "判断系统类型", label: "判断系统类型",
desc: "判断系统类型",
subCommands: [ subCommands: [
{ {
value: "utools.isMacOS", value: "utools.isMacOS",
@ -210,7 +204,6 @@ export const systemCommands = {
{ {
value: "quickcomposer.system.os.arch", value: "quickcomposer.system.os.arch",
label: "系统信息", label: "系统信息",
desc: "获取操作系统相关信息",
icon: "computer", icon: "computer",
config: [], config: [],
subCommands: [ subCommands: [
@ -306,7 +299,6 @@ export const systemCommands = {
{ {
value: "quickcomposer.system.path.normalize", value: "quickcomposer.system.path.normalize",
label: "路径操作", label: "路径操作",
desc: "路径解析和处理",
icon: "folder", icon: "folder",
config: [], config: [],
subCommands: [ subCommands: [
@ -493,7 +485,6 @@ export const systemCommands = {
{ {
value: "quickcommand.kill", value: "quickcommand.kill",
label: "关闭进程", label: "关闭进程",
desc: "关闭指定进程",
icon: "dangerous", icon: "dangerous",
config: [ config: [
{ {

View File

@ -111,7 +111,6 @@ export const uiCommands = {
{ {
value: "quickcommand.showMessageBox", value: "quickcommand.showMessageBox",
label: "消息提示", label: "消息提示",
desc: "显示一个自动消失的提示框",
isAsync: true, isAsync: true,
config: [ config: [
{ {
@ -169,7 +168,6 @@ export const uiCommands = {
{ {
value: "quickcommand.showConfirmBox", value: "quickcommand.showConfirmBox",
label: "确认框", label: "确认框",
desc: "显示一个确认框,返回是否点击了确认",
isAsync: true, isAsync: true,
outputVariable: "confirmed", outputVariable: "confirmed",
saveOutput: true, saveOutput: true,
@ -310,14 +308,12 @@ export const uiCommands = {
{ {
value: "quickcommand.showSelectList", value: "quickcommand.showSelectList",
label: "选择列表", label: "选择列表",
desc: "显示一个支持搜索的选项列表,可以动态更新选项",
component: "SelectListEditor", component: "SelectListEditor",
isAsync: true, isAsync: true,
}, },
{ {
value: "quickcommand.showTextArea", value: "quickcommand.showTextArea",
label: "文本框", label: "文本框",
desc: "显示一个文本框,可以输入多行文本",
isAsync: true, isAsync: true,
outputVariable: "textareaValue", outputVariable: "textareaValue",
saveOutput: true, saveOutput: true,
@ -365,14 +361,12 @@ export const uiCommands = {
{ {
value: "utools.showOpenDialog", value: "utools.showOpenDialog",
label: "文件选择框", label: "文件选择框",
desc: "显示一个文件选择框,返回选择的文件路径",
outputVariable: "filePaths", outputVariable: "filePaths",
saveOutput: true, saveOutput: true,
subCommands: [ subCommands: [
{ {
value: "utools.showOpenDialog", value: "utools.showOpenDialog",
label: "打开文件对话框", label: "打开文件对话框",
desc: "打开文件对话框",
icon: "folder_open", icon: "folder_open",
config: [ config: [
{ {
@ -389,7 +383,6 @@ export const uiCommands = {
{ {
value: "utools.showSaveDialog", value: "utools.showSaveDialog",
label: "保存文件对话框", label: "保存文件对话框",
desc: "保存文件对话框",
icon: "save", icon: "save",
config: [ config: [
{ {

View File

@ -5,23 +5,19 @@ export const utoolsCommands = {
{ {
value: "utools.hideMainWindow", value: "utools.hideMainWindow",
label: "隐藏主窗口", label: "隐藏主窗口",
desc: "隐藏主窗口",
icon: "visibility_off", icon: "visibility_off",
}, },
{ {
value: "quickcommand.wakeUtools", value: "quickcommand.wakeUtools",
label: "唤醒uTools", label: "唤醒uTools",
desc: "唤醒uTools",
icon: "visibility", icon: "visibility",
}, },
{ {
value: "utools.setExpendHeight", value: "utools.setExpendHeight",
label: "设置uTools高度", label: "设置uTools高度",
desc: "设置uTools高度",
icon: "height", icon: "height",
config: [ config: [
{ {
key: "height",
label: "高度", label: "高度",
component: "NumberInput", component: "NumberInput",
min: 0, min: 0,
@ -34,11 +30,9 @@ export const utoolsCommands = {
{ {
value: "utools.outPlugin", value: "utools.outPlugin",
label: "退出插件", label: "退出插件",
desc: "退出插件",
icon: "exit_to_app", icon: "exit_to_app",
config: [ config: [
{ {
key: "isKill",
component: "q-select", component: "q-select",
options: [ options: [
{ label: "杀死插件进程", value: true }, { label: "杀死插件进程", value: true },
@ -52,7 +46,6 @@ export const utoolsCommands = {
{ {
value: "utools.isDarkColors", value: "utools.isDarkColors",
label: "是否深色模式", label: "是否深色模式",
desc: "是否深色模式",
icon: "dark_mode", icon: "dark_mode",
outputVariable: "isDark", outputVariable: "isDark",
saveOutput: true, saveOutput: true,
@ -60,7 +53,6 @@ export const utoolsCommands = {
{ {
value: "utools.getUser", value: "utools.getUser",
label: "获取用户信息", label: "获取用户信息",
desc: "获取用户信息",
icon: "person", icon: "person",
outputVariable: "{avatar,nickname,type}", outputVariable: "{avatar,nickname,type}",
saveOutput: true, saveOutput: true,
@ -70,14 +62,12 @@ export const utoolsCommands = {
label: "转至指定插件", label: "转至指定插件",
config: [ config: [
{ {
key: "pluginName",
label: "要跳转至的插件名称", label: "要跳转至的插件名称",
component: "VariableInput", component: "VariableInput",
icon: "alt_route", icon: "alt_route",
width: 6, width: 6,
}, },
{ {
key: "payload",
label: "传递给插件的文本", label: "传递给插件的文本",
component: "VariableInput", component: "VariableInput",
icon: "alt_route", icon: "alt_route",
@ -88,24 +78,20 @@ export const utoolsCommands = {
{ {
value: "utools.findInPage", value: "utools.findInPage",
label: "插件内查找", label: "插件内查找",
desc: "插件内查找",
icon: "search", icon: "search",
subCommands: [ subCommands: [
{ {
value: "utools.findInPage", value: "utools.findInPage",
label: "查找文本", label: "查找文本",
desc: "查找文本",
icon: "search", icon: "search",
config: [ config: [
{ {
key: "text",
label: "文本", label: "文本",
component: "VariableInput", component: "VariableInput",
icon: "search", icon: "search",
width: 12, width: 12,
}, },
{ {
key: "options",
label: "选项", label: "选项",
component: "OptionEditor", component: "OptionEditor",
icon: "settings", icon: "settings",
@ -155,11 +141,9 @@ export const utoolsCommands = {
{ {
value: "utools.stopFindInPage", value: "utools.stopFindInPage",
label: "停止查找", label: "停止查找",
desc: "停止查找",
icon: "stop", icon: "stop",
config: [ config: [
{ {
key: "action",
label: "动作", label: "动作",
component: "ButtonGroup", component: "ButtonGroup",
icon: "settings", icon: "settings",
@ -178,7 +162,6 @@ export const utoolsCommands = {
{ {
value: "utools.getWindowType", value: "utools.getWindowType",
label: "获取当前窗口类型", label: "获取当前窗口类型",
desc: "获取当前窗口类型",
icon: "window", icon: "window",
outputVariable: "windowType", outputVariable: "windowType",
saveOutput: true, saveOutput: true,
@ -186,14 +169,12 @@ export const utoolsCommands = {
{ {
value: "utools.getNativeId", value: "utools.getNativeId",
label: "获取本地ID", label: "获取本地ID",
desc: "获取本地ID",
outputVariable: "nativeId", outputVariable: "nativeId",
saveOutput: true, saveOutput: true,
}, },
{ {
value: "utools.getAppVersion", value: "utools.getAppVersion",
label: "获取uTools版本", label: "获取uTools版本",
desc: "获取uTools版本",
outputVariable: "appVersion", outputVariable: "appVersion",
saveOutput: true, saveOutput: true,
}, },

View File

@ -155,7 +155,6 @@ const registryPaths = [
const searchWindowConfig = [ const searchWindowConfig = [
{ {
key: "method",
label: "窗口查找方式", label: "窗口查找方式",
component: "q-select", component: "q-select",
icon: "search", icon: "search",
@ -170,7 +169,6 @@ const searchWindowConfig = [
defaultValue: "title", defaultValue: "title",
}, },
{ {
key: "value",
label: "窗口标题/类名/句柄/进程名/活动窗口", label: "窗口标题/类名/句柄/进程名/活动窗口",
component: "VariableInput", component: "VariableInput",
icon: "title", icon: "title",
@ -219,7 +217,6 @@ export const windowsCommands = {
{ {
value: "quickcomposer.windows.window.getWindowInfo", value: "quickcomposer.windows.window.getWindowInfo",
label: "搜索/选择窗口", label: "搜索/选择窗口",
desc: "搜索/选择窗口",
icon: "window", icon: "window",
isAsync: true, isAsync: true,
config: [], config: [],
@ -269,7 +266,6 @@ export const windowsCommands = {
{ {
value: "quickcomposer.windows.window.setTopMost", value: "quickcomposer.windows.window.setTopMost",
label: "窗口控制", label: "窗口控制",
desc: "Windows窗口操作",
icon: "window", icon: "window",
config: searchWindowConfig, config: searchWindowConfig,
subCommands: [ subCommands: [
@ -279,7 +275,6 @@ export const windowsCommands = {
icon: "vertical_align_top", icon: "vertical_align_top",
config: [ config: [
{ {
key: "isTopMost",
component: "ButtonGroup", component: "ButtonGroup",
icon: "push_pin", icon: "push_pin",
width: 12, width: 12,
@ -297,7 +292,6 @@ export const windowsCommands = {
icon: "opacity", icon: "opacity",
config: [ config: [
{ {
key: "opacity",
label: "透明度", label: "透明度",
component: "NumberInput", component: "NumberInput",
icon: "opacity", icon: "opacity",
@ -314,7 +308,6 @@ export const windowsCommands = {
icon: "aspect_ratio", icon: "aspect_ratio",
config: [ config: [
{ {
key: "x",
label: "X坐标", label: "X坐标",
component: "NumberInput", component: "NumberInput",
icon: "arrow_right", icon: "arrow_right",
@ -322,7 +315,6 @@ export const windowsCommands = {
defaultValue: 0, defaultValue: 0,
}, },
{ {
key: "y",
label: "Y坐标", label: "Y坐标",
component: "NumberInput", component: "NumberInput",
icon: "arrow_drop_down", icon: "arrow_drop_down",
@ -330,7 +322,6 @@ export const windowsCommands = {
defaultValue: 0, defaultValue: 0,
}, },
{ {
key: "width",
label: "宽度", label: "宽度",
component: "NumberInput", component: "NumberInput",
icon: "swap_horiz", icon: "swap_horiz",
@ -339,7 +330,6 @@ export const windowsCommands = {
defaultValue: 800, defaultValue: 800,
}, },
{ {
key: "height",
label: "高度", label: "高度",
component: "NumberInput", component: "NumberInput",
icon: "height", icon: "height",
@ -355,7 +345,6 @@ export const windowsCommands = {
icon: "open_in_full", icon: "open_in_full",
config: [ config: [
{ {
key: "state",
component: "ButtonGroup", component: "ButtonGroup",
icon: "aspect_ratio", icon: "aspect_ratio",
width: 12, width: 12,
@ -384,7 +373,6 @@ export const windowsCommands = {
icon: "border_style", icon: "border_style",
config: [ config: [
{ {
key: "hasBorder",
component: "ButtonGroup", component: "ButtonGroup",
icon: "border_style", icon: "border_style",
width: 12, width: 12,
@ -402,7 +390,6 @@ export const windowsCommands = {
icon: "touch_app", icon: "touch_app",
config: [ config: [
{ {
key: "isTransparent",
component: "ButtonGroup", component: "ButtonGroup",
icon: "touch_app", icon: "touch_app",
width: 12, width: 12,
@ -421,7 +408,6 @@ export const windowsCommands = {
{ {
value: "quickcomposer.windows.automation.click", value: "quickcomposer.windows.automation.click",
label: "界面自动化", label: "界面自动化",
desc: "Windows界面自动化操作",
icon: "smart_button", icon: "smart_button",
isAsync: true, isAsync: true,
config: searchElementConfig, config: searchElementConfig,
@ -631,7 +617,6 @@ export const windowsCommands = {
{ {
value: "quickcomposer.windows.sendmessage.inspectWindow", value: "quickcomposer.windows.sendmessage.inspectWindow",
label: "发送控制消息", label: "发送控制消息",
desc: "Windows界面自动化操作",
icon: "smart_button", icon: "smart_button",
isAsync: true, isAsync: true,
config: searchWindowConfig, config: searchWindowConfig,
@ -644,7 +629,6 @@ export const windowsCommands = {
saveOutput: true, saveOutput: true,
config: [ config: [
{ {
key: "options",
component: "OptionEditor", component: "OptionEditor",
width: 12, width: 12,
options: { options: {
@ -677,7 +661,6 @@ export const windowsCommands = {
icon: "mouse", icon: "mouse",
config: [ config: [
{ {
key: "action",
component: "ButtonGroup", component: "ButtonGroup",
width: 12, width: 12,
options: [ options: [
@ -688,7 +671,6 @@ export const windowsCommands = {
defaultValue: "click", defaultValue: "click",
}, },
{ {
key: "options",
component: "OptionEditor", component: "OptionEditor",
width: 12, width: 12,
options: { options: {
@ -735,7 +717,6 @@ export const windowsCommands = {
icon: "keyboard", icon: "keyboard",
config: [ config: [
{ {
key: "text",
label: "文本内容", label: "文本内容",
component: "VariableInput", component: "VariableInput",
icon: "text_fields", icon: "text_fields",
@ -743,7 +724,6 @@ export const windowsCommands = {
placeholder: "要发送的文本内容", placeholder: "要发送的文本内容",
}, },
{ {
key: "options",
component: "OptionEditor", component: "OptionEditor",
width: 12, width: 12,
options: { options: {
@ -776,7 +756,6 @@ export const windowsCommands = {
icon: "keyboard_alt", icon: "keyboard_alt",
config: [ config: [
{ {
key: "keys",
label: "按键序列", label: "按键序列",
component: "VariableInput", component: "VariableInput",
icon: "keyboard", icon: "keyboard",
@ -788,7 +767,6 @@ export const windowsCommands = {
}, },
}, },
{ {
key: "options",
component: "OptionEditor", component: "OptionEditor",
width: 12, width: 12,
options: { options: {
@ -821,7 +799,6 @@ export const windowsCommands = {
{ {
value: "quickcomposer.windows.monitor.watchClipboard", value: "quickcomposer.windows.monitor.watchClipboard",
label: "剪贴板/文件监控", label: "剪贴板/文件监控",
desc: "监控系统变化",
icon: "monitor_heart", icon: "monitor_heart",
isAsync: true, isAsync: true,
outputVariable: "monitorEvent", outputVariable: "monitorEvent",
@ -856,7 +833,6 @@ export const windowsCommands = {
required: true, required: true,
}, },
{ {
key: "options",
component: "OptionEditor", component: "OptionEditor",
width: 12, width: 12,
options: { options: {
@ -887,7 +863,6 @@ export const windowsCommands = {
{ {
value: "quickcomposer.windows.process.listProcesses", value: "quickcomposer.windows.process.listProcesses",
label: "进程管理", label: "进程管理",
desc: "Windows进程操作",
icon: "memory", icon: "memory",
isAsync: true, isAsync: true,
subCommands: [ subCommands: [
@ -904,7 +879,6 @@ export const windowsCommands = {
icon: "stop_circle", icon: "stop_circle",
config: [ config: [
{ {
key: "target",
label: "进程ID/名称", label: "进程ID/名称",
component: "VariableInput", component: "VariableInput",
icon: "tag", icon: "tag",
@ -920,7 +894,6 @@ export const windowsCommands = {
icon: "play_circle", icon: "play_circle",
config: [ config: [
{ {
key: "path",
label: "程序路径", label: "程序路径",
component: "VariableInput", component: "VariableInput",
icon: "folder", icon: "folder",
@ -940,7 +913,6 @@ export const windowsCommands = {
required: true, required: true,
}, },
{ {
key: "arguments",
label: "启动参数", label: "启动参数",
component: "VariableInput", component: "VariableInput",
icon: "code", icon: "code",
@ -955,12 +927,10 @@ export const windowsCommands = {
{ {
value: "quickcomposer.windows.registry.listKeys", value: "quickcomposer.windows.registry.listKeys",
label: "注册表管理", label: "注册表管理",
desc: "Windows注册表操作",
icon: "settings", icon: "settings",
isAsync: true, isAsync: true,
config: [ config: [
{ {
key: "path",
label: "注册表路径", label: "注册表路径",
component: "VariableInput", component: "VariableInput",
icon: "folder", icon: "folder",
@ -986,7 +956,6 @@ export const windowsCommands = {
icon: "search", icon: "search",
config: [ config: [
{ {
key: "path",
label: "注册表路径", label: "注册表路径",
component: "VariableInput", component: "VariableInput",
icon: "folder", icon: "folder",
@ -998,7 +967,6 @@ export const windowsCommands = {
required: true, required: true,
}, },
{ {
key: "name",
label: "值名称", label: "值名称",
component: "VariableInput", component: "VariableInput",
icon: "label", icon: "label",
@ -1015,7 +983,6 @@ export const windowsCommands = {
icon: "edit", icon: "edit",
config: [ config: [
{ {
key: "path",
label: "注册表路径", label: "注册表路径",
component: "VariableInput", component: "VariableInput",
icon: "folder", icon: "folder",
@ -1027,7 +994,6 @@ export const windowsCommands = {
required: true, required: true,
}, },
{ {
key: "name",
label: "值名称", label: "值名称",
component: "VariableInput", component: "VariableInput",
icon: "label", icon: "label",
@ -1036,7 +1002,6 @@ export const windowsCommands = {
required: true, required: true,
}, },
{ {
key: "value",
label: "值内容", label: "值内容",
component: "VariableInput", component: "VariableInput",
icon: "text_fields", icon: "text_fields",
@ -1044,7 +1009,6 @@ export const windowsCommands = {
required: true, required: true,
}, },
{ {
key: "valueType",
label: "值类型", label: "值类型",
component: "q-select", component: "q-select",
icon: "category", icon: "category",
@ -1067,7 +1031,6 @@ export const windowsCommands = {
icon: "delete", icon: "delete",
config: [ config: [
{ {
key: "path",
label: "注册表路径", label: "注册表路径",
component: "VariableInput", component: "VariableInput",
icon: "folder", icon: "folder",
@ -1079,7 +1042,6 @@ export const windowsCommands = {
required: true, required: true,
}, },
{ {
key: "name",
label: "值名称", label: "值名称",
component: "VariableInput", component: "VariableInput",
icon: "label", icon: "label",
@ -1094,7 +1056,6 @@ export const windowsCommands = {
{ {
value: "quickcomposer.windows.service.listServices", value: "quickcomposer.windows.service.listServices",
label: "服务管理", label: "服务管理",
desc: "Windows服务操作",
icon: "miscellaneous_services", icon: "miscellaneous_services",
isAsync: true, isAsync: true,
subCommands: [ subCommands: [
@ -1111,7 +1072,6 @@ export const windowsCommands = {
icon: "settings", icon: "settings",
config: [ config: [
{ {
key: "name",
label: "服务名称", label: "服务名称",
component: "VariableInput", component: "VariableInput",
icon: "label", icon: "label",
@ -1120,7 +1080,6 @@ export const windowsCommands = {
required: true, required: true,
}, },
{ {
key: "operation",
label: "操作", label: "操作",
component: "ButtonGroup", component: "ButtonGroup",
icon: "play_circle", icon: "play_circle",
@ -1141,7 +1100,6 @@ export const windowsCommands = {
{ {
value: "quickcomposer.windows.software.listSoftware", value: "quickcomposer.windows.software.listSoftware",
label: "软件管理", label: "软件管理",
desc: "Windows软件操作",
icon: "apps", icon: "apps",
isAsync: true, isAsync: true,
subCommands: [ subCommands: [
@ -1158,7 +1116,6 @@ export const windowsCommands = {
icon: "delete", icon: "delete",
config: [ config: [
{ {
key: "target",
label: "软件ID", label: "软件ID",
component: "VariableInput", component: "VariableInput",
icon: "tag", icon: "tag",
@ -1174,7 +1131,6 @@ export const windowsCommands = {
{ {
value: "quickcomposer.windows.utils.setWallpaper", value: "quickcomposer.windows.utils.setWallpaper",
label: "系统工具", label: "系统工具",
desc: "Windows系统工具",
icon: "build", icon: "build",
isAsync: true, isAsync: true,
subCommands: [ subCommands: [
@ -1184,7 +1140,6 @@ export const windowsCommands = {
icon: "wallpaper", icon: "wallpaper",
config: [ config: [
{ {
key: "path",
label: "壁纸路径", label: "壁纸路径",
component: "VariableInput", component: "VariableInput",
icon: "image", icon: "image",
@ -1213,7 +1168,6 @@ export const windowsCommands = {
icon: "desktop_windows", icon: "desktop_windows",
config: [ config: [
{ {
key: "action",
component: "ButtonGroup", component: "ButtonGroup",
icon: "power_settings_new", icon: "power_settings_new",
width: 12, width: 12,
@ -1231,7 +1185,6 @@ export const windowsCommands = {
icon: "power", icon: "power",
config: [ config: [
{ {
key: "mode",
component: "ButtonGroup", component: "ButtonGroup",
icon: "power_settings_new", icon: "power_settings_new",
width: 12, width: 12,
@ -1251,7 +1204,6 @@ export const windowsCommands = {
icon: "network_check", icon: "network_check",
config: [ config: [
{ {
key: "interfaceName",
label: "网卡名称", label: "网卡名称",
component: "VariableInput", component: "VariableInput",
icon: "settings_ethernet", icon: "settings_ethernet",
@ -1260,7 +1212,6 @@ export const windowsCommands = {
required: true, required: true,
}, },
{ {
key: "ip",
label: "IP地址", label: "IP地址",
component: "VariableInput", component: "VariableInput",
icon: "router", icon: "router",
@ -1269,7 +1220,6 @@ export const windowsCommands = {
required: true, required: true,
}, },
{ {
key: "mask",
label: "子网掩码", label: "子网掩码",
component: "VariableInput", component: "VariableInput",
icon: "filter_alt", icon: "filter_alt",
@ -1278,7 +1228,6 @@ export const windowsCommands = {
required: true, required: true,
}, },
{ {
key: "gateway",
label: "默认网关", label: "默认网关",
component: "VariableInput", component: "VariableInput",
icon: "dns", icon: "dns",
@ -1286,7 +1235,6 @@ export const windowsCommands = {
placeholder: "可选", placeholder: "可选",
}, },
{ {
key: "dns",
label: "DNS服务器", label: "DNS服务器",
component: "VariableInput", component: "VariableInput",
icon: "dns", icon: "dns",
@ -1301,7 +1249,6 @@ export const windowsCommands = {
icon: "power", icon: "power",
config: [ config: [
{ {
key: "path",
label: "程序路径", label: "程序路径",
component: "VariableInput", component: "VariableInput",
icon: "folder", icon: "folder",
@ -1321,7 +1268,6 @@ export const windowsCommands = {
required: true, required: true,
}, },
{ {
key: "name",
label: "启动项名称", label: "启动项名称",
component: "VariableInput", component: "VariableInput",
icon: "label", icon: "label",
@ -1329,7 +1275,6 @@ export const windowsCommands = {
required: true, required: true,
}, },
{ {
key: "remove",
label: "移除", label: "移除",
component: "CheckButton", component: "CheckButton",
icon: "delete", icon: "delete",
@ -1343,7 +1288,6 @@ export const windowsCommands = {
icon: "link", icon: "link",
config: [ config: [
{ {
key: "targetPath",
label: "目标路径", label: "目标路径",
component: "VariableInput", component: "VariableInput",
icon: "folder", icon: "folder",
@ -1360,7 +1304,6 @@ export const windowsCommands = {
required: true, required: true,
}, },
{ {
key: "shortcutPath",
label: "快捷方式路径", label: "快捷方式路径",
component: "VariableInput", component: "VariableInput",
icon: "save", icon: "save",
@ -1377,7 +1320,6 @@ export const windowsCommands = {
required: true, required: true,
}, },
{ {
key: "args",
label: "启动参数", label: "启动参数",
component: "VariableInput", component: "VariableInput",
icon: "code", icon: "code",
@ -1392,7 +1334,6 @@ export const windowsCommands = {
icon: "brightness_medium", icon: "brightness_medium",
config: [ config: [
{ {
key: "level",
label: "亮度级别", label: "亮度级别",
component: "NumberInput", component: "NumberInput",
icon: "brightness_medium", icon: "brightness_medium",