From cf4d38c3b1534c17c41bd7b0af41b4488d56bad1 Mon Sep 17 00:00:00 2001 From: fofolee Date: Sat, 18 Jan 2025 01:15:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=97=A0=E7=94=A8=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/composer/commands/audioCommands.js | 5 -- src/js/composer/commands/codingCommand.js | 2 - src/js/composer/commands/controlCommands.js | 16 ---- src/js/composer/commands/dataCommands.js | 95 -------------------- src/js/composer/commands/fileCommands.js | 10 --- src/js/composer/commands/imageCommands.js | 41 --------- src/js/composer/commands/macosCommands.js | 89 ------------------ src/js/composer/commands/mathCommands.js | 23 ----- src/js/composer/commands/networkCommands.js | 6 -- src/js/composer/commands/notifyCommands.js | 2 - src/js/composer/commands/otherCommands.js | 1 - src/js/composer/commands/screenCommands.js | 5 -- src/js/composer/commands/simulateCommands.js | 8 -- src/js/composer/commands/statusCommands.js | 5 -- src/js/composer/commands/systemCommands.js | 9 -- src/js/composer/commands/uiCommands.js | 7 -- src/js/composer/commands/utoolsCommand.js | 19 ---- src/js/composer/commands/windowsCommands.js | 59 ------------ 18 files changed, 402 deletions(-) diff --git a/src/js/composer/commands/audioCommands.js b/src/js/composer/commands/audioCommands.js index 3a5ba17..8e04564 100644 --- a/src/js/composer/commands/audioCommands.js +++ b/src/js/composer/commands/audioCommands.js @@ -106,7 +106,6 @@ export const audioCommands = { { value: "quickcomposer.audio.speech.speak", label: "文本朗读", - desc: "系统语音朗读", icon: "record_voice_over", subCommands: [ { @@ -133,7 +132,6 @@ export const audioCommands = { { value: "quickcomposer.audio.media.play", label: "音频播放", - desc: "播放音频文件", icon: "music_note", isAsync: true, subCommands: [ @@ -176,7 +174,6 @@ export const audioCommands = { { value: "quickcomposer.audio.record", label: "音频录制", - desc: "录制系统音频", icon: "mic", isAsync: true, config: [ @@ -214,7 +211,6 @@ export const audioCommands = { { value: "quickcomposer.audio.media.beep", label: "系统音效", - desc: "播放系统内置音效", isAsync: true, icon: "notifications_active", config: [ @@ -241,7 +237,6 @@ export const audioCommands = { { value: "quickcomposer.audio.media.analyze", label: "音频信息", - desc: "分析音频文件信息", icon: "analytics", isAsync: true, config: [ diff --git a/src/js/composer/commands/codingCommand.js b/src/js/composer/commands/codingCommand.js index b020706..caabe85 100644 --- a/src/js/composer/commands/codingCommand.js +++ b/src/js/composer/commands/codingCommand.js @@ -6,7 +6,6 @@ export const codingCommands = { { value: "quickcomposer.coding.base64Encode", label: "编解码", - desc: "文本编解码", icon: "code", outputVariable: "processedText", saveOutput: true, @@ -77,7 +76,6 @@ export const codingCommands = { { value: "quickcomposer.coding.md5Hash", label: "哈希计算", - desc: "计算文本的哈希值", icon: "enhanced_encryption", outputVariable: "hashValue", saveOutput: true, diff --git a/src/js/composer/commands/controlCommands.js b/src/js/composer/commands/controlCommands.js index e54730f..de71d62 100644 --- a/src/js/composer/commands/controlCommands.js +++ b/src/js/composer/commands/controlCommands.js @@ -15,7 +15,6 @@ export const controlCommands = { codeTemplate: "if (${condition}) {", config: [ { - key: "condition", label: "条件", component: "ControlInput", placeholder: "表达式", @@ -36,7 +35,6 @@ export const controlCommands = { codeTemplate: "} else if (${condition}) {", config: [ { - key: "condition", label: "条件", component: "ControlInput", placeholder: "表达式", @@ -65,14 +63,12 @@ export const controlCommands = { "for (let ${indexVar} = ${startValue}; ${indexVar} <= ${endValue}; ${indexVar} += ${stepValue}) {", config: [ { - key: "indexVar", label: "变量", component: "ControlInput", defaultValue: "i", width: 3, }, { - key: "startValue", label: "从", component: "ControlInput", icon: "first_page", @@ -80,7 +76,6 @@ export const controlCommands = { width: 3, }, { - key: "endValue", label: "到", component: "ControlInput", icon: "last_page", @@ -88,7 +83,6 @@ export const controlCommands = { width: 3, }, { - key: "stepValue", label: "步进", component: "ControlInput", icon: "trending_up", @@ -131,21 +125,18 @@ export const controlCommands = { "for (let [${indexVar}, ${itemVar}] of ${arrayVar}.entries()) {", config: [ { - key: "itemVar", label: "元素", component: "ControlInput", defaultValue: "item", width: 4, }, { - key: "indexVar", label: "索引", component: "ControlInput", defaultValue: "i", width: 4, }, { - key: "arrayVar", label: "数组", component: "ControlInput", icon: "list", @@ -188,21 +179,18 @@ export const controlCommands = { "for (const ${keyVar} in ${objectVar}) { const ${valueVar} = ${objectVar}[${keyVar}];", config: [ { - key: "keyVar", label: "键名", component: "ControlInput", defaultValue: "key", width: 4, }, { - key: "valueVar", label: "值", component: "ControlInput", defaultValue: "value", width: 4, }, { - key: "objectVar", label: "对象", component: "ControlInput", defaultValue: "object", @@ -243,7 +231,6 @@ export const controlCommands = { codeTemplate: "while (${condition}) {", config: [ { - key: "condition", label: "条件", component: "ControlInput", placeholder: "表达式", @@ -284,7 +271,6 @@ export const controlCommands = { codeTemplate: "switch (${expression}) {", config: [ { - key: "expression", label: "变量", component: "ControlInput", placeholder: "变量或表达式", @@ -299,7 +285,6 @@ export const controlCommands = { codeTemplate: "case ${value}:", config: [ { - key: "value", label: "值", component: "ControlInput", }, @@ -338,7 +323,6 @@ export const controlCommands = { codeTemplate: "} catch (${errorVar}) {", config: [ { - key: "errorVar", label: "错误", component: "ControlInput", defaultValue: "error", diff --git a/src/js/composer/commands/dataCommands.js b/src/js/composer/commands/dataCommands.js index c8296b1..f2d0ac0 100644 --- a/src/js/composer/commands/dataCommands.js +++ b/src/js/composer/commands/dataCommands.js @@ -8,7 +8,6 @@ export const dataCommands = { { value: "quickcomposer.data.string.reverse", label: "字符串处理", - desc: "字符串处理和转换", icon: "text_fields", subCommands: [ { @@ -17,7 +16,6 @@ export const dataCommands = { icon: "swap_horiz", config: [ { - key: "text", label: "要反转的文本", component: "VariableInput", icon: "text_fields", @@ -31,21 +29,18 @@ export const dataCommands = { icon: "find_replace", config: [ { - key: "text", label: "原始文本", component: "VariableInput", icon: "text_fields", width: 12, }, { - key: "oldStr", label: "要替换的文本", component: "VariableInput", icon: "find_replace", width: 6, }, { - key: "newStr", label: "替换为", component: "VariableInput", icon: "text_fields", @@ -59,14 +54,12 @@ export const dataCommands = { icon: "content_cut", config: [ { - key: "text", label: "原始文本", component: "VariableInput", icon: "text_fields", width: 12, }, { - key: "start", label: "起始位置", component: "NumberInput", min: 0, @@ -75,7 +68,6 @@ export const dataCommands = { width: 6, }, { - key: "end", label: "结束位置", component: "NumberInput", icon: "last_page", @@ -91,14 +83,12 @@ export const dataCommands = { icon: "format_align_justify", config: [ { - key: "text", label: "原始文本", component: "VariableInput", icon: "text_fields", width: 8, }, { - key: "mode", label: "模式", component: "q-select", icon: "settings", @@ -118,14 +108,12 @@ export const dataCommands = { icon: "text_fields", config: [ { - key: "text", label: "原始文本", component: "VariableInput", icon: "text_fields", width: 8, }, { - key: "mode", label: "转换为", component: "q-select", icon: "settings", @@ -149,14 +137,12 @@ export const dataCommands = { icon: "format_size", config: [ { - key: "text", label: "原始文本", component: "VariableInput", icon: "text_fields", width: 12, }, { - key: "length", label: "目标长度", component: "NumberInput", min: 0, @@ -165,7 +151,6 @@ export const dataCommands = { width: 4, }, { - key: "padString", label: "填充字符", component: "VariableInput", icon: "space_bar", @@ -173,7 +158,6 @@ export const dataCommands = { defaultValue: newVarInputVal("str", " "), }, { - key: "mode", label: "填充位置", component: "q-select", icon: "settings", @@ -193,14 +177,12 @@ export const dataCommands = { icon: "splitscreen", config: [ { - key: "text", label: "原始文本", component: "VariableInput", icon: "text_fields", width: 8, }, { - key: "separator", label: "分隔符", component: "VariableInput", icon: "space_bar", @@ -215,14 +197,12 @@ export const dataCommands = { icon: "merge", config: [ { - key: "array", label: "字符串数组", component: "VariableInput", icon: "view_list", width: 8, }, { - key: "separator", label: "连接符", component: "VariableInput", icon: "space_bar", @@ -237,14 +217,12 @@ export const dataCommands = { icon: "copy_all", config: [ { - key: "text", label: "要重复的文本", component: "VariableInput", icon: "text_fields", width: 8, }, { - key: "count", label: "重复次数", component: "NumberInput", min: 0, @@ -261,14 +239,12 @@ export const dataCommands = { icon: "content_cut", config: [ { - key: "text", label: "原始文本", component: "VariableInput", icon: "text_fields", width: 8, }, { - key: "mode", label: "提取类型", component: "q-select", icon: "settings", @@ -290,14 +266,12 @@ export const dataCommands = { icon: "numbers", config: [ { - key: "text", label: "原始文本", component: "VariableInput", icon: "text_fields", width: 8, }, { - key: "mode", label: "统计类型", component: "q-select", icon: "settings", @@ -321,14 +295,12 @@ export const dataCommands = { icon: "wrap_text", config: [ { - key: "text", label: "原始文本", component: "VariableInput", icon: "text_fields", width: 8, }, { - key: "width", label: "每行字符数", component: "NumberInput", min: 1, @@ -345,14 +317,12 @@ export const dataCommands = { icon: "format_align_center", config: [ { - key: "text", label: "原始文本", component: "VariableInput", icon: "text_fields", width: 12, }, { - key: "mode", label: "对齐方式", component: "q-select", icon: "settings", @@ -366,7 +336,6 @@ export const dataCommands = { width: 6, }, { - key: "width", label: "总宽度", component: "NumberInput", min: 1, @@ -392,7 +361,6 @@ export const dataCommands = { { value: "quickcomposer.data.buffer.from", label: "Buffer操作", - desc: "Buffer创建、转换和操作", config: [], icon: "memory", subCommands: [ @@ -741,7 +709,6 @@ export const dataCommands = { { value: "quickcomposer.data.zlib", label: "数据压缩解压", - desc: "使用 zlib 进行数据压缩和解压", component: "ZlibEditor", icon: "compress", isAsync: true, @@ -749,7 +716,6 @@ export const dataCommands = { { value: "quickcomposer.data.htmlParser", label: "HTML解析", - desc: "解析 HTML 字符串", icon: "html", config: [ { @@ -787,7 +753,6 @@ export const dataCommands = { { value: "JSON.stringify", label: "JSON处理", - desc: "JSON处理", icon: "data_object", subCommands: [ { @@ -840,7 +805,6 @@ export const dataCommands = { { value: "quickcomposer.data.array.filter", label: "数组处理", - desc: "对象数组的常用操作", icon: "view_list", subCommands: [ { @@ -849,7 +813,6 @@ export const dataCommands = { icon: "filter_alt", config: [ { - key: "array", label: "原始数组", component: "VariableInput", icon: "view_list", @@ -860,7 +823,6 @@ export const dataCommands = { '[{"id":1,"name":"张三","age":20},{"id":2,"name":"李四","age":18}]', }, { - key: "condition", label: "过滤条件", component: "VariableInput", icon: "code", @@ -875,7 +837,6 @@ export const dataCommands = { icon: "transform", config: [ { - key: "array", label: "原始数组", component: "VariableInput", icon: "view_list", @@ -884,7 +845,6 @@ export const dataCommands = { '[{"id":1,"name":"张三","age":20},{"id":2,"name":"李四","age":18}]', }, { - key: "transform", label: "转换函数", component: "VariableInput", icon: "code", @@ -899,7 +859,6 @@ export const dataCommands = { icon: "sort", config: [ { - key: "array", label: "原始数组", component: "VariableInput", icon: "view_list", @@ -908,7 +867,6 @@ export const dataCommands = { '[{"id":1,"name":"张三","age":20},{"id":2,"name":"李四","age":18}]', }, { - key: "key", label: "排序字段", component: "VariableInput", icon: "key", @@ -916,7 +874,6 @@ export const dataCommands = { placeholder: "age", }, { - key: "order", label: "排序方式", component: "q-select", icon: "sort", @@ -935,7 +892,6 @@ export const dataCommands = { icon: "group_work", config: [ { - key: "array", label: "原始数组", component: "VariableInput", icon: "view_list", @@ -944,7 +900,6 @@ export const dataCommands = { '[{"id":1,"name":"张三","dept":"技术"},{"id":2,"name":"李四","dept":"技术"}]', }, { - key: "key", label: "分组字段", component: "VariableInput", icon: "key", @@ -959,7 +914,6 @@ export const dataCommands = { icon: "filter_1", config: [ { - key: "array", label: "原始数组", component: "VariableInput", icon: "view_list", @@ -967,7 +921,6 @@ export const dataCommands = { placeholder: '[{"id":1,"dept":"技术"},{"id":2,"dept":"技术"}]', }, { - key: "key", label: "去重字段", component: "VariableInput", icon: "key", @@ -982,7 +935,6 @@ export const dataCommands = { icon: "search", config: [ { - key: "array", label: "原始数组", component: "VariableInput", icon: "view_list", @@ -990,7 +942,6 @@ export const dataCommands = { placeholder: '[{"id":1,"name":"张三"},{"id":2,"name":"李四"}]', }, { - key: "condition", label: "查找条件", component: "VariableInput", icon: "code", @@ -1005,7 +956,6 @@ export const dataCommands = { icon: "functions", config: [ { - key: "array", label: "原始数组", component: "VariableInput", icon: "view_list", @@ -1013,7 +963,6 @@ export const dataCommands = { placeholder: '[{"id":1,"amount":100},{"id":2,"amount":200}]', }, { - key: "operation", label: "聚合操作", component: "q-select", icon: "functions", @@ -1028,7 +977,6 @@ export const dataCommands = { width: 6, }, { - key: "key", label: "聚合字段", component: "VariableInput", icon: "key", @@ -1043,7 +991,6 @@ export const dataCommands = { icon: "content_cut", config: [ { - key: "array", label: "原始数组", component: "VariableInput", icon: "view_list", @@ -1051,7 +998,6 @@ export const dataCommands = { placeholder: "[1,2,3,4,5]", }, { - key: "start", label: "起始位置", component: "NumberInput", icon: "first_page", @@ -1061,7 +1007,6 @@ export const dataCommands = { placeholder: "1", }, { - key: "end", label: "结束位置", component: "NumberInput", icon: "last_page", @@ -1078,7 +1023,6 @@ export const dataCommands = { icon: "unfold_less", config: [ { - key: "array", label: "原始数组", component: "VariableInput", icon: "view_list", @@ -1086,7 +1030,6 @@ export const dataCommands = { placeholder: "[[1,2],[3,4],[[5,6]]]", }, { - key: "depth", label: "扁平化深度", component: "NumberInput", icon: "format_indent_decrease", @@ -1103,7 +1046,6 @@ export const dataCommands = { icon: "difference", config: [ { - key: "array1", label: "数组1", component: "VariableInput", icon: "view_list", @@ -1111,7 +1053,6 @@ export const dataCommands = { placeholder: "[1,2,3,4]", }, { - key: "array2", label: "数组2", component: "VariableInput", icon: "view_list", @@ -1119,7 +1060,6 @@ export const dataCommands = { placeholder: "[3,4,5,6]", }, { - key: "key", label: "比较字段", component: "VariableInput", icon: "key", @@ -1134,7 +1074,6 @@ export const dataCommands = { icon: "join_full", config: [ { - key: "array1", label: "数组1", component: "VariableInput", icon: "view_list", @@ -1142,7 +1081,6 @@ export const dataCommands = { placeholder: "[1,2,3,4]", }, { - key: "array2", label: "数组2", component: "VariableInput", icon: "view_list", @@ -1150,7 +1088,6 @@ export const dataCommands = { placeholder: "[3,4,5,6]", }, { - key: "key", label: "比较字段", component: "VariableInput", icon: "key", @@ -1165,7 +1102,6 @@ export const dataCommands = { icon: "join_inner", config: [ { - key: "array1", label: "数组1", component: "VariableInput", icon: "view_list", @@ -1173,7 +1109,6 @@ export const dataCommands = { placeholder: "[1,2,3,4]", }, { - key: "array2", label: "数组2", component: "VariableInput", icon: "view_list", @@ -1181,7 +1116,6 @@ export const dataCommands = { placeholder: "[3,4,5,6]", }, { - key: "key", label: "比较字段", component: "VariableInput", icon: "key", @@ -1196,7 +1130,6 @@ export const dataCommands = { icon: "grid_view", config: [ { - key: "array", label: "原始数组", component: "VariableInput", icon: "view_list", @@ -1204,7 +1137,6 @@ export const dataCommands = { placeholder: "[1,2,3,4,5,6]", }, { - key: "size", label: "块大小", component: "NumberInput", icon: "straighten", @@ -1221,7 +1153,6 @@ export const dataCommands = { icon: "shuffle", config: [ { - key: "array", label: "原始数组", component: "VariableInput", icon: "view_list", @@ -1235,7 +1166,6 @@ export const dataCommands = { { value: "quickcomposer.data.time.format", label: "时间处理", - desc: "时间日期的常用操作", icon: "schedule", subCommands: [ { @@ -1244,7 +1174,6 @@ export const dataCommands = { icon: "event", config: [ { - key: "time", label: "时间", component: "VariableInput", icon: "schedule", @@ -1252,7 +1181,6 @@ export const dataCommands = { placeholder: "2024-01-01 或 now 或 timestamp", }, { - key: "format", label: "格式", component: "q-select", icon: "format_shapes", @@ -1279,7 +1207,6 @@ export const dataCommands = { icon: "input", config: [ { - key: "time", label: "时间字符串", component: "VariableInput", icon: "schedule", @@ -1287,7 +1214,6 @@ export const dataCommands = { placeholder: "2024-01-01 12:00:00", }, { - key: "format", label: "原格式", component: "q-select", icon: "format_shapes", @@ -1311,7 +1237,6 @@ export const dataCommands = { icon: "add", config: [ { - key: "time", label: "基准时间", component: "VariableInput", icon: "schedule", @@ -1319,7 +1244,6 @@ export const dataCommands = { placeholder: "2024-01-01 或 now", }, { - key: "value", label: "数值", component: "NumberInput", icon: "exposure", @@ -1327,7 +1251,6 @@ export const dataCommands = { defaultValue: 1, }, { - key: "unit", label: "单位", component: "q-select", icon: "straighten", @@ -1351,7 +1274,6 @@ export const dataCommands = { icon: "difference", config: [ { - key: "time1", label: "时间1", component: "VariableInput", icon: "schedule", @@ -1359,7 +1281,6 @@ export const dataCommands = { placeholder: "2024-01-01", }, { - key: "time2", label: "时间2", component: "VariableInput", icon: "schedule", @@ -1367,7 +1288,6 @@ export const dataCommands = { placeholder: "2024-02-01", }, { - key: "unit", label: "返回单位", component: "q-select", icon: "straighten", @@ -1385,7 +1305,6 @@ export const dataCommands = { defaultValue: "days", }, { - key: "absolute", label: "绝对值", component: "CheckButton", width: 6, @@ -1399,7 +1318,6 @@ export const dataCommands = { icon: "first_page", config: [ { - key: "time", label: "时间", component: "VariableInput", icon: "schedule", @@ -1407,7 +1325,6 @@ export const dataCommands = { placeholder: "2024-01-01 或 now", }, { - key: "unit", label: "单位", component: "q-select", icon: "straighten", @@ -1424,7 +1341,6 @@ export const dataCommands = { defaultValue: "day", }, { - key: "type", label: "类型", component: "q-select", icon: "settings", @@ -1443,7 +1359,6 @@ export const dataCommands = { icon: "check_circle", config: [ { - key: "time", label: "时间", component: "VariableInput", icon: "schedule", @@ -1451,7 +1366,6 @@ export const dataCommands = { placeholder: "2024-01-01", }, { - key: "format", label: "格式", component: "q-select", icon: "format_shapes", @@ -1473,7 +1387,6 @@ export const dataCommands = { icon: "calendar_month", config: [ { - key: "time", label: "时间", component: "VariableInput", icon: "schedule", @@ -1488,7 +1401,6 @@ export const dataCommands = { icon: "work", config: [ { - key: "startTime", label: "开始时间", component: "VariableInput", icon: "schedule", @@ -1496,7 +1408,6 @@ export const dataCommands = { placeholder: "2024-01-01", }, { - key: "days", label: "工作日天数", component: "NumberInput", icon: "exposure", @@ -1504,14 +1415,12 @@ export const dataCommands = { defaultValue: 1, }, { - key: "weekends", label: "包含周末", component: "CheckButton", width: 4, defaultValue: false, }, { - key: "holidays", label: "节假日", component: "ArrayEditor", icon: "event_busy", @@ -1526,7 +1435,6 @@ export const dataCommands = { icon: "date_range", config: [ { - key: "time", label: "判断时间", component: "VariableInput", icon: "schedule", @@ -1534,7 +1442,6 @@ export const dataCommands = { placeholder: "2024-01-01 或 now", }, { - key: "startTime", label: "开始时间", component: "VariableInput", icon: "schedule", @@ -1542,7 +1449,6 @@ export const dataCommands = { placeholder: "2024-01-01", }, { - key: "endTime", label: "结束时间", component: "VariableInput", icon: "schedule", @@ -1550,7 +1456,6 @@ export const dataCommands = { placeholder: "2024-02-01", }, { - key: "inclusive", label: "包含边界", component: "CheckButton", width: 4, diff --git a/src/js/composer/commands/fileCommands.js b/src/js/composer/commands/fileCommands.js index bd43b78..5fb1fab 100644 --- a/src/js/composer/commands/fileCommands.js +++ b/src/js/composer/commands/fileCommands.js @@ -7,7 +7,6 @@ export const fileCommands = { value: "quickcomposer.file.operation", label: "文件/文件夹操作", component: "FileOperationEditor", - desc: "文件和文件夹的读写、删除、重命名等操作", isAsync: true, }, { @@ -15,7 +14,6 @@ export const fileCommands = { label: "默认程序打开", config: [ { - key: "path", label: "文件、文件夹或软件的绝对路径", component: "VariableInput", icon: "folder_open", @@ -33,7 +31,6 @@ export const fileCommands = { label: "文件管理器中显示", config: [ { - key: "path", label: "文件、文件夹或软件的绝对路径", component: "VariableInput", icon: "location_on", @@ -51,7 +48,6 @@ export const fileCommands = { label: "获取文件图标", config: [ { - key: "path", label: "文件或软件的绝对路径", component: "VariableInput", icon: "folder_open", @@ -70,12 +66,10 @@ export const fileCommands = { { value: "quickcomposer.file.archive", label: "文件归档", - desc: "压缩和解压文件", icon: "archive", isAsync: true, config: [ { - key: "operation", label: "操作类型", component: "q-select", icon: "settings", @@ -87,7 +81,6 @@ export const fileCommands = { ], }, { - key: "format", label: "归档格式", component: "q-select", icon: "format_shapes", @@ -100,7 +93,6 @@ export const fileCommands = { ], }, { - key: "source", label: "源文件/文件夹", component: "VariableInput", icon: "folder_open", @@ -115,7 +107,6 @@ export const fileCommands = { }, }, { - key: "destination", label: "目标路径", component: "VariableInput", icon: "save", @@ -135,7 +126,6 @@ export const fileCommands = { icon: "delete", config: [ { - key: "path", label: "文件或文件夹的绝对路径", component: "VariableInput", icon: "folder_open", diff --git a/src/js/composer/commands/imageCommands.js b/src/js/composer/commands/imageCommands.js index 54de9ae..396e17e 100644 --- a/src/js/composer/commands/imageCommands.js +++ b/src/js/composer/commands/imageCommands.js @@ -24,12 +24,10 @@ export const imageCommands = { { value: "quickcomposer.image.analyze", label: "图片信息", - desc: "分析图片基本信息", icon: "analytics", isAsync: true, config: [ { - key: "file", label: "图片文件", component: "VariableInput", icon: "image", @@ -55,12 +53,10 @@ export const imageCommands = { { value: "quickcomposer.image.resize", label: "调整大小", - desc: "调整图片尺寸", icon: "aspect_ratio", isAsync: true, config: [ { - key: "inputFile", label: "输入文件", component: "VariableInput", icon: "image", @@ -82,7 +78,6 @@ export const imageCommands = { }, }, { - key: "outputFile", label: "输出文件", component: "VariableInput", icon: "save", @@ -103,7 +98,6 @@ export const imageCommands = { }, }, { - key: "width", label: "宽度(像素)", component: "NumberInput", icon: "compare_arrows", @@ -113,7 +107,6 @@ export const imageCommands = { defaultValue: "", }, { - key: "height", label: "高度(像素)", component: "NumberInput", icon: "height", @@ -123,7 +116,6 @@ export const imageCommands = { defaultValue: "", }, { - key: "keepAspectRatio", label: "保持宽高比", component: "q-select", icon: "aspect_ratio", @@ -135,7 +127,6 @@ export const imageCommands = { ], }, { - key: "quality", label: "图片质量(0-1)", component: "NumberInput", icon: "high_quality", @@ -150,12 +141,10 @@ export const imageCommands = { { value: "quickcomposer.image.rotate", label: "旋转图片", - desc: "旋转图片角度", icon: "rotate_right", isAsync: true, config: [ { - key: "inputFile", label: "输入文件", component: "VariableInput", icon: "image", @@ -177,7 +166,6 @@ export const imageCommands = { }, }, { - key: "outputFile", label: "输出文件", component: "VariableInput", icon: "save", @@ -198,7 +186,6 @@ export const imageCommands = { }, }, { - key: "angle", label: "旋转角度", component: "NumberInput", icon: "rotate_right", @@ -207,7 +194,6 @@ export const imageCommands = { defaultValue: 90, }, { - key: "quality", label: "图片质量(0-1)", component: "NumberInput", icon: "high_quality", @@ -222,12 +208,10 @@ export const imageCommands = { { value: "quickcomposer.image.crop", label: "裁剪图片", - desc: "裁剪图片区域", icon: "crop", isAsync: true, config: [ { - key: "inputFile", label: "输入文件", component: "VariableInput", icon: "image", @@ -249,7 +233,6 @@ export const imageCommands = { }, }, { - key: "outputFile", label: "输出文件", component: "VariableInput", icon: "save", @@ -270,7 +253,6 @@ export const imageCommands = { }, }, { - key: "x", label: "起始X坐标", component: "NumberInput", icon: "arrow_right", @@ -280,7 +262,6 @@ export const imageCommands = { defaultValue: 0, }, { - key: "y", label: "起始Y坐标", component: "NumberInput", icon: "arrow_downward", @@ -290,7 +271,6 @@ export const imageCommands = { defaultValue: 0, }, { - key: "width", label: "裁剪宽度", component: "NumberInput", icon: "compare_arrows", @@ -300,7 +280,6 @@ export const imageCommands = { defaultValue: "", }, { - key: "height", label: "裁剪高度", component: "NumberInput", icon: "height", @@ -310,7 +289,6 @@ export const imageCommands = { defaultValue: "", }, { - key: "quality", label: "图片质量(0-1)", component: "NumberInput", icon: "high_quality", @@ -325,12 +303,10 @@ export const imageCommands = { { value: "quickcomposer.image.watermark", label: "添加水印", - desc: "添加文字水印", icon: "format_color_text", isAsync: true, config: [ { - key: "inputFile", label: "输入文件", component: "VariableInput", icon: "image", @@ -352,7 +328,6 @@ export const imageCommands = { }, }, { - key: "outputFile", label: "输出文件", component: "VariableInput", icon: "save", @@ -373,7 +348,6 @@ export const imageCommands = { }, }, { - key: "text", label: "水印文字", component: "VariableInput", icon: "text_fields", @@ -381,7 +355,6 @@ export const imageCommands = { defaultValue: newVarInputVal("str", "水印文字"), }, { - key: "font", label: "字体设置", component: "VariableInput", icon: "font_download", @@ -389,7 +362,6 @@ export const imageCommands = { defaultValue: newVarInputVal("str", "24px Arial"), }, { - key: "color", label: "文字颜色", component: "VariableInput", icon: "format_color_text", @@ -397,7 +369,6 @@ export const imageCommands = { defaultValue: newVarInputVal("str", "rgba(255, 255, 255, 0.5)"), }, { - key: "position", label: "位置", component: "q-select", icon: "place", @@ -406,7 +377,6 @@ export const imageCommands = { options: WATERMARK_POSITIONS, }, { - key: "margin", label: "边距", component: "NumberInput", icon: "space_bar", @@ -416,7 +386,6 @@ export const imageCommands = { defaultValue: 20, }, { - key: "opacity", label: "不透明度(0-1)", component: "NumberInput", icon: "opacity", @@ -427,7 +396,6 @@ export const imageCommands = { defaultValue: 0.5, }, { - key: "quality", label: "图片质量(0-1)", component: "NumberInput", icon: "high_quality", @@ -442,12 +410,10 @@ export const imageCommands = { { value: "quickcomposer.image.convert", label: "格式转换", - desc: "转换图片格式", icon: "transform", isAsync: true, config: [ { - key: "inputFile", label: "输入文件", component: "VariableInput", icon: "image", @@ -469,7 +435,6 @@ export const imageCommands = { }, }, { - key: "outputFile", label: "输出文件", component: "VariableInput", icon: "save", @@ -490,7 +455,6 @@ export const imageCommands = { }, }, { - key: "format", label: "输出格式", component: "q-select", icon: "transform", @@ -499,7 +463,6 @@ export const imageCommands = { options: IMAGE_FORMATS, }, { - key: "quality", label: "图片质量(0-1)", component: "NumberInput", icon: "high_quality", @@ -514,11 +477,9 @@ export const imageCommands = { { value: "quickcomposer.image.pngToIcon", label: "PNG转图标", - desc: "将PNG图片转换为图标", icon: "transform", config: [ { - key: "inputFile", label: "PNG路径/Base64", component: "VariableInput", icon: "image", @@ -540,7 +501,6 @@ export const imageCommands = { }, }, { - key: "outputDir", label: "输出目录", component: "VariableInput", icon: "save", @@ -558,7 +518,6 @@ export const imageCommands = { }, }, { - key: "type", label: "输出格式", component: "q-select", icon: "transform", diff --git a/src/js/composer/commands/macosCommands.js b/src/js/composer/commands/macosCommands.js index 8d54cc2..a72fbf8 100644 --- a/src/js/composer/commands/macosCommands.js +++ b/src/js/composer/commands/macosCommands.js @@ -8,30 +8,25 @@ export const macosCommands = { { value: "quickcomposer.macos.app.getFrontmost", label: "应用及窗口控制", - desc: "应用程序管理功能", icon: "apps", isAsync: true, subCommands: [ { value: "quickcomposer.macos.app.getFrontmost", label: "获取前台应用", - desc: "获取当前前台运行的应用信息", icon: "front_hand", }, { value: "quickcomposer.macos.app.getRunningApps", label: "获取活动应用", - desc: "获取所有正在运行的应用列表", icon: "list", }, { value: "quickcomposer.macos.app.launch", label: "启动应用", - desc: "启动指定的应用程序", icon: "launch", config: [ { - key: "appName", label: "应用名称", component: "VariableInput", icon: "apps", @@ -43,11 +38,9 @@ export const macosCommands = { { value: "quickcomposer.macos.app.quit", label: "退出应用", - desc: "退出指定的应用程序", icon: "close", config: [ { - key: "appName", label: "应用名称", component: "VariableInput", icon: "apps", @@ -59,11 +52,9 @@ export const macosCommands = { { value: "quickcomposer.macos.app.hide", label: "隐藏应用", - desc: "隐藏指定的应用程序", icon: "visibility_off", config: [ { - key: "appName", label: "应用名称", component: "VariableInput", icon: "apps", @@ -75,11 +66,9 @@ export const macosCommands = { { value: "quickcomposer.macos.app.show", label: "显示应用", - desc: "显示指定的应用程序", icon: "visibility", config: [ { - key: "appName", label: "应用名称", component: "VariableInput", icon: "apps", @@ -91,11 +80,9 @@ export const macosCommands = { { value: "quickcomposer.macos.app.minimize", label: "最小化窗口", - desc: "最小化指定应用的窗口", icon: "minimize", config: [ { - key: "appName", label: "应用名称", component: "VariableInput", icon: "apps", @@ -107,11 +94,9 @@ export const macosCommands = { { value: "quickcomposer.macos.app.maximize", label: "最大化窗口", - desc: "最大化指定应用的窗口", icon: "maximize", config: [ { - key: "appName", label: "应用名称", component: "VariableInput", icon: "apps", @@ -123,11 +108,9 @@ export const macosCommands = { { value: "quickcomposer.macos.app.getWindows", label: "获取窗口信息", - desc: "获取指定应用的所有窗口信息", icon: "window", config: [ { - key: "appName", label: "应用名称", component: "VariableInput", icon: "apps", @@ -139,11 +122,9 @@ export const macosCommands = { { value: "quickcomposer.macos.app.getScriptDictionary", label: "获取应用脚本字典", - desc: "获取应用程序的AppleScript字典内容", icon: "code", config: [ { - key: "appName", label: "应用名称", component: "VariableInput", icon: "apps", @@ -157,18 +138,15 @@ export const macosCommands = { { value: "quickcomposer.macos.system.setVolume", label: "系统管理", - desc: "系统级别的控制功能", icon: "settings", isAsync: true, subCommands: [ { value: "quickcomposer.macos.system.setVolume", label: "系统音量", - desc: "调整系统音量", icon: "volume_up", config: [ { - key: "volume", label: "音量", component: "NumberInput", icon: "volume_up", @@ -183,23 +161,19 @@ export const macosCommands = { { value: "quickcomposer.macos.system.lockScreen", label: "锁定屏幕", - desc: "锁定系统屏幕", icon: "lock", }, { value: "quickcomposer.macos.system.sleep", label: "进入睡眠", - desc: "使系统进入睡眠状态", icon: "bedtime", }, { value: "quickcomposer.macos.system.setDockPosition", label: "设置Dock位置", - desc: "设置Dock栏的显示位置", icon: "dock", config: [ { - key: "position", label: "位置", component: "ButtonGroup", defaultValue: "bottom", @@ -224,11 +198,9 @@ export const macosCommands = { { value: "quickcomposer.macos.system.setDockSize", label: "设置Dock大小", - desc: "设置Dock栏的图标大小", icon: "dock", config: [ { - key: "size", label: "大小", component: "NumberInput", icon: "dock", @@ -242,11 +214,9 @@ export const macosCommands = { { value: "quickcomposer.macos.system.toggleDockAutohide", label: "Dock自动隐藏", - desc: "设置Dock栏是否自动隐藏", icon: "dock", config: [ { - key: "enabled", label: "启用", component: "CheckButton", defaultValue: false, @@ -258,11 +228,9 @@ export const macosCommands = { { value: "quickcomposer.macos.system.toggleMenuBarAutohide", label: "菜单栏自动隐藏", - desc: "设置菜单栏是否自动隐藏", icon: "menu", config: [ { - key: "enabled", label: "启用", component: "CheckButton", defaultValue: false, @@ -274,11 +242,9 @@ export const macosCommands = { { value: "quickcomposer.macos.system.toggleDarkMode", label: "深色模式", - desc: "切换系统深色模式", icon: "dark_mode", config: [ { - key: "enabled", label: "启用", component: "CheckButton", defaultValue: true, @@ -292,7 +258,6 @@ export const macosCommands = { { value: "quickcomposer.macos.finder.getSelection", label: "访达管理", - desc: "访达操作和文件管理功能", icon: "folder", isAsync: true, subCommands: [ @@ -312,7 +277,6 @@ export const macosCommands = { icon: "visibility", config: [ { - key: "show", label: "显示", component: "CheckButton", width: 12, @@ -323,17 +287,14 @@ export const macosCommands = { { value: "quickcomposer.macos.finder.getWindows", label: "获取窗口列表", - desc: "获取所有访达窗口信息", icon: "window", }, { value: "quickcomposer.macos.finder.activateWindow", label: "激活窗口", - desc: "激活指定的访达窗口", icon: "open_in_new", config: [ { - key: "index", label: "窗口索引", component: "NumberInput", icon: "window", @@ -348,18 +309,15 @@ export const macosCommands = { { value: "quickcomposer.macos.browser.getUrl", label: "浏览器控制", - desc: "浏览器管理功能", icon: "web", isAsync: true, subCommands: [ { value: "quickcomposer.macos.browser.getUrl", label: "获取当前地址", - desc: "获取当前标签页的URL地址", icon: "link", config: [ { - key: "browser", component: "ButtonGroup", defaultValue: "Microsoft Edge", options: [ @@ -379,11 +337,9 @@ export const macosCommands = { { value: "quickcomposer.macos.browser.setUrl", label: "设置当前地址", - desc: "设置当前标签页的URL地址", icon: "link", config: [ { - key: "browser", component: "ButtonGroup", defaultValue: "Microsoft Edge", options: [ @@ -399,7 +355,6 @@ export const macosCommands = { width: 12, }, { - key: "url", label: "网址", component: "VariableInput", icon: "link", @@ -411,11 +366,9 @@ export const macosCommands = { { value: "quickcomposer.macos.browser.getTabs", label: "获取标签列表", - desc: "获取所有打开的标签页信息", icon: "tab", config: [ { - key: "browser", component: "ButtonGroup", defaultValue: "Microsoft Edge", options: [ @@ -435,11 +388,9 @@ export const macosCommands = { { value: "quickcomposer.macos.browser.activateTab", label: "切换标签", - desc: "切换到指定的标签页", icon: "tab_unselected", config: [ { - key: "browser", component: "ButtonGroup", defaultValue: "Microsoft Edge", options: [ @@ -455,7 +406,6 @@ export const macosCommands = { width: 12, }, { - key: "index", label: "标签索引", component: "NumberInput", icon: "tab", @@ -468,11 +418,9 @@ export const macosCommands = { { value: "quickcomposer.macos.browser.executeScript", label: "执行脚本", - desc: "在当前标签页执行JavaScript脚本", icon: "code", config: [ { - key: "browser", component: "ButtonGroup", defaultValue: "Microsoft Edge", options: [ @@ -488,7 +436,6 @@ export const macosCommands = { width: 12, }, { - key: "script", label: "脚本内容", component: "CodeEditor", icon: "code", @@ -496,7 +443,6 @@ export const macosCommands = { placeholder: "输入JavaScript代码", }, { - key: "args", topLabel: "要传递的参数", component: "DictEditor", icon: "data_array", @@ -507,11 +453,9 @@ export const macosCommands = { { value: "quickcomposer.macos.browser.clickElement", label: "点击元素", - desc: "点击指定的页面元素", icon: "mouse", config: [ { - key: "browser", component: "ButtonGroup", defaultValue: "Microsoft Edge", options: [ @@ -527,7 +471,6 @@ export const macosCommands = { width: 12, }, { - key: "selector", label: "选择器", component: "VariableInput", icon: "code", @@ -539,11 +482,9 @@ export const macosCommands = { { value: "quickcomposer.macos.browser.inputText", label: "输入文本", - desc: "在指定输入框中输入文本", icon: "edit", config: [ { - key: "browser", component: "ButtonGroup", defaultValue: "Microsoft Edge", options: [ @@ -559,7 +500,6 @@ export const macosCommands = { width: 12, }, { - key: "selector", label: "选择器", component: "VariableInput", icon: "code", @@ -567,7 +507,6 @@ export const macosCommands = { placeholder: "输入CSS选择器", }, { - key: "text", label: "文本内容", component: "VariableInput", icon: "edit", @@ -579,11 +518,9 @@ export const macosCommands = { { value: "quickcomposer.macos.browser.getText", label: "获取文本", - desc: "获取指定元素的文本内容", icon: "text_fields", config: [ { - key: "browser", component: "ButtonGroup", defaultValue: "Microsoft Edge", options: [ @@ -599,7 +536,6 @@ export const macosCommands = { width: 12, }, { - key: "selector", label: "选择器", component: "VariableInput", icon: "code", @@ -611,11 +547,9 @@ export const macosCommands = { { value: "quickcomposer.macos.browser.hideElement", label: "隐藏元素", - desc: "隐藏指定的页面元素", icon: "visibility_off", config: [ { - key: "browser", component: "ButtonGroup", defaultValue: "Microsoft Edge", options: [ @@ -631,7 +565,6 @@ export const macosCommands = { width: 12, }, { - key: "selector", label: "选择器", component: "VariableInput", icon: "code", @@ -643,11 +576,9 @@ export const macosCommands = { { value: "quickcomposer.macos.browser.showElement", label: "显示元素", - desc: "显示指定的页面元素", icon: "visibility", config: [ { - key: "browser", component: "ButtonGroup", defaultValue: "Microsoft Edge", options: [ @@ -663,7 +594,6 @@ export const macosCommands = { width: 12, }, { - key: "selector", label: "选择器", component: "VariableInput", icon: "code", @@ -675,11 +605,9 @@ export const macosCommands = { { value: "quickcomposer.macos.browser.injectCSS", label: "注入CSS", - desc: "向页面注入CSS样式", icon: "style", config: [ { - key: "browser", component: "ButtonGroup", defaultValue: "Microsoft Edge", options: [ @@ -695,7 +623,6 @@ export const macosCommands = { width: 12, }, { - key: "css", label: "CSS内容", component: "CodeEditor", icon: "style", @@ -707,11 +634,9 @@ export const macosCommands = { { value: "quickcomposer.macos.browser.setCookie", label: "设置Cookie", - desc: "设置浏览器Cookie", icon: "cookie", config: [ { - key: "browser", component: "ButtonGroup", defaultValue: "Microsoft Edge", options: [ @@ -791,11 +716,9 @@ export const macosCommands = { { value: "quickcomposer.macos.browser.getCookie", label: "获取Cookie", - desc: "获取指定的Cookie值", icon: "cookie", config: [ { - key: "browser", component: "ButtonGroup", defaultValue: "Microsoft Edge", options: [ @@ -811,7 +734,6 @@ export const macosCommands = { width: 12, }, { - key: "name", label: "名称", component: "VariableInput", icon: "label", @@ -823,11 +745,9 @@ export const macosCommands = { { value: "quickcomposer.macos.browser.scrollTo", label: "滚动到位置", - desc: "滚动到指定坐标位置", icon: "open_in_full", config: [ { - key: "browser", component: "ButtonGroup", defaultValue: "Microsoft Edge", options: [ @@ -843,7 +763,6 @@ export const macosCommands = { width: 12, }, { - key: "x", label: "X坐标", component: "NumberInput", icon: "arrow_right", @@ -851,7 +770,6 @@ export const macosCommands = { defaultValue: 0, }, { - key: "y", label: "Y坐标", component: "NumberInput", icon: "arrow_drop_down", @@ -863,11 +781,9 @@ export const macosCommands = { { value: "quickcomposer.macos.browser.scrollToElement", label: "滚动到元素", - desc: "滚动到指定元素位置", icon: "open_in_full", config: [ { - key: "browser", component: "ButtonGroup", defaultValue: "Microsoft Edge", options: [ @@ -883,7 +799,6 @@ export const macosCommands = { width: 12, }, { - key: "selector", label: "选择器", component: "VariableInput", icon: "code", @@ -895,11 +810,9 @@ export const macosCommands = { { value: "quickcomposer.macos.browser.waitForElement", label: "等待元素", - desc: "等待指定元素出现", icon: "hourglass_empty", config: [ { - key: "browser", component: "ButtonGroup", defaultValue: "Microsoft Edge", options: [ @@ -915,7 +828,6 @@ export const macosCommands = { width: 12, }, { - key: "selector", label: "选择器", component: "VariableInput", icon: "code", @@ -923,7 +835,6 @@ export const macosCommands = { placeholder: "输入CSS选择器", }, { - key: "timeout", label: "超时时间", component: "NumberInput", icon: "timer", diff --git a/src/js/composer/commands/mathCommands.js b/src/js/composer/commands/mathCommands.js index 1d121ac..4c45630 100644 --- a/src/js/composer/commands/mathCommands.js +++ b/src/js/composer/commands/mathCommands.js @@ -8,11 +8,9 @@ export const mathCommands = { { value: "quickcomposer.math.basic.evaluate", label: "基础运算", - desc: "基础数学运算", icon: "exposure", config: [ { - key: "expression", label: "表达式", component: "VariableInput", icon: "functions", @@ -33,7 +31,6 @@ export const mathCommands = { icon: "exposure", config: [ { - key: "decimals", label: "小数位数", component: "NumberInput", icon: "pin", @@ -68,11 +65,9 @@ export const mathCommands = { { value: "quickcomposer.math.random.number", label: "随机数", - desc: "生成随机数", icon: "casino", config: [ { - key: "min", label: "最小值", component: "NumberInput", icon: "arrow_downward", @@ -80,7 +75,6 @@ export const mathCommands = { defaultValue: 0, }, { - key: "max", label: "最大值", component: "NumberInput", icon: "arrow_upward", @@ -88,7 +82,6 @@ export const mathCommands = { defaultValue: 100, }, { - key: "count", label: "生成数量", component: "NumberInput", icon: "format_list_numbered", @@ -97,7 +90,6 @@ export const mathCommands = { defaultValue: 1, }, { - key: "decimals", label: "小数位数", component: "NumberInput", icon: "pin", @@ -122,11 +114,9 @@ export const mathCommands = { { value: "quickcomposer.math.statistics.mean", label: "统计计算", - desc: "统计学相关计算", icon: "bar_chart", config: [ { - key: "numbers", label: "数据集合", component: "VariableInput", icon: "dataset", @@ -192,7 +182,6 @@ export const mathCommands = { { value: "quickcomposer.math.geometry.circle", label: "几何计算", - desc: "几何图形计算", icon: "architecture", subCommands: [ { @@ -201,7 +190,6 @@ export const mathCommands = { icon: "circle", config: [ { - key: "radius", label: "半径", component: "NumberInput", icon: "radio_button_checked", @@ -216,7 +204,6 @@ export const mathCommands = { icon: "rectangle", config: [ { - key: "width", label: "宽度", component: "NumberInput", icon: "swap_horiz", @@ -224,7 +211,6 @@ export const mathCommands = { min: 0, }, { - key: "height", label: "高度", component: "NumberInput", icon: "height", @@ -239,7 +225,6 @@ export const mathCommands = { icon: "change_history", config: [ { - key: "a", label: "边长a", component: "NumberInput", icon: "straighten", @@ -247,7 +232,6 @@ export const mathCommands = { min: 0, }, { - key: "b", label: "边长b", component: "NumberInput", icon: "straighten", @@ -255,7 +239,6 @@ export const mathCommands = { min: 0, }, { - key: "c", label: "边长c", component: "NumberInput", icon: "straighten", @@ -269,11 +252,9 @@ export const mathCommands = { { value: "quickcomposer.math.trigonometry.sin", label: "三角函数", - desc: "三角函数计算", icon: "show_chart", config: [ { - key: "angle", label: "角度值", component: "NumberInput", icon: "rotate_right", @@ -316,11 +297,9 @@ export const mathCommands = { { value: "quickcomposer.math.conversion.base", label: "进制转换", - desc: "数字进制转换", icon: "swap_horiz", config: [ { - key: "value", label: "数值", component: "VariableInput", icon: "pin", @@ -328,7 +307,6 @@ export const mathCommands = { defaultValue: newVarInputVal("var", ""), }, { - key: "from", label: "从", component: "ButtonGroup", icon: "input", @@ -342,7 +320,6 @@ export const mathCommands = { defaultValue: "decimal", }, { - key: "to", label: "到", component: "ButtonGroup", icon: "output", diff --git a/src/js/composer/commands/networkCommands.js b/src/js/composer/commands/networkCommands.js index cec7c32..d3cabd3 100644 --- a/src/js/composer/commands/networkCommands.js +++ b/src/js/composer/commands/networkCommands.js @@ -10,7 +10,6 @@ export const networkCommands = { label: "默认浏览器打开网址", config: [ { - key: "visit", label: "要访问的网址链接", component: "VariableInput", icon: "language", @@ -22,7 +21,6 @@ export const networkCommands = { label: "ubrowser打开网址", config: [ { - key: "url", label: "要访问的网址链接", component: "VariableInput", icon: "public", @@ -51,7 +49,6 @@ export const networkCommands = { { value: "quickcomposer.network.url.parse", label: "URL操作", - desc: "URL解析、格式化和参数处理", icon: "link", config: [], subCommands: [ @@ -250,7 +247,6 @@ export const networkCommands = { { value: "quickcomposer.network.dns.lookupHost", label: "DNS操作", - desc: "DNS解析和查询", icon: "dns", isAsync: true, config: [], @@ -394,7 +390,6 @@ export const networkCommands = { { value: "quickcommand.downloadFile", label: "下载文件", - desc: "下载文件", icon: "file_download", isAsync: true, config: [ @@ -417,7 +412,6 @@ export const networkCommands = { { value: "quickcommand.uploadFile", label: "上传文件", - desc: "上传文件", icon: "file_upload", isAsync: true, config: [ diff --git a/src/js/composer/commands/notifyCommands.js b/src/js/composer/commands/notifyCommands.js index 817afb7..718542f 100644 --- a/src/js/composer/commands/notifyCommands.js +++ b/src/js/composer/commands/notifyCommands.js @@ -8,7 +8,6 @@ export const notifyCommands = { label: "显示消息", config: [ { - key: "log", label: "要打印的消息文本", component: "VariableInput", icon: "info", @@ -20,7 +19,6 @@ export const notifyCommands = { label: "发送系统消息", config: [ { - key: "notification", label: "要发送的系统消息文本", component: "VariableInput", icon: "message", diff --git a/src/js/composer/commands/otherCommands.js b/src/js/composer/commands/otherCommands.js index 92c9e96..4268ac3 100644 --- a/src/js/composer/commands/otherCommands.js +++ b/src/js/composer/commands/otherCommands.js @@ -8,7 +8,6 @@ export const otherCommands = { label: "添加延时", config: [ { - key: "ms", label: "延迟的毫秒数", component: "NumberInput", min: 0, diff --git a/src/js/composer/commands/screenCommands.js b/src/js/composer/commands/screenCommands.js index fb90e32..92f6637 100644 --- a/src/js/composer/commands/screenCommands.js +++ b/src/js/composer/commands/screenCommands.js @@ -72,7 +72,6 @@ export const screenCommands = { { value: "utools.getPrimaryDisplay", label: "获取显示器信息", - desc: "获取显示器信息", icon: "monitor", outputVariable: "display", saveOutput: true, @@ -104,7 +103,6 @@ export const screenCommands = { { value: "utools.screenToDipPoint", label: "物理/DIP坐标转换", - desc: "屏幕物理坐标和 DIP 坐标转换", icon: "transform", outputVariable: "{x,y}", saveOutput: true, @@ -125,7 +123,6 @@ export const screenCommands = { { value: "utools.screenToDipRect", label: "物理/DIP区域转换", - desc: "屏幕物理区域和 DIP 区域转换", icon: "transform", outputVariable: "{x,y,width,height}", saveOutput: true, @@ -134,13 +131,11 @@ export const screenCommands = { { value: "utools.screenToDipRect", label: "物理区域转DIP区域", - desc: "屏幕物理区域转 DIP 区域", icon: "transform", }, { value: "utools.dipToScreenRect", label: "DIP区域转物理区域", - desc: "DIP 区域转屏幕物理区域", icon: "transform", }, ], diff --git a/src/js/composer/commands/simulateCommands.js b/src/js/composer/commands/simulateCommands.js index 54d7207..0a0f70d 100644 --- a/src/js/composer/commands/simulateCommands.js +++ b/src/js/composer/commands/simulateCommands.js @@ -14,7 +14,6 @@ export const simulateCommands = { { value: "quickcomposer.simulate.keySequence", label: "按键序列", - description: "按顺序执行多个按键操作", component: "KeySequenceEditor", }, { @@ -39,7 +38,6 @@ export const simulateCommands = { label: "发送文本", config: [ { - key: "text", label: "要发送的文本内容", component: "VariableInput", icon: "send", @@ -70,7 +68,6 @@ export const simulateCommands = { icon: "file_copy", config: [ { - key: "file", label: "文件路径", component: "VariableInput", icon: "description", @@ -97,7 +94,6 @@ export const simulateCommands = { icon: "image", config: [ { - key: "image", label: "图片路径/base64", component: "VariableInput", icon: "image", @@ -198,7 +194,6 @@ export const simulateCommands = { { value: "quickcomposer.simulate.screenColorPick", label: "屏幕取色", - desc: "获取用户选择的颜色,会弹出一个系统取色器", icon: "colorize", isAsync: true, outputVariable: "{hex,rgb}", @@ -207,14 +202,12 @@ export const simulateCommands = { { value: "quickcomposer.simulate.captureScreen", label: "屏幕截图", - desc: "屏幕截图,进行区域截图或全屏截图", icon: "screenshot_monitor", isAsync: true, outputVariable: "base64Data", saveOutput: true, config: [ { - key: "range", label: "截图范围", component: "ButtonGroup", options: [ @@ -243,7 +236,6 @@ export const simulateCommands = { icon: "file_copy", config: [ { - key: "path", label: "截图保存路径", component: "VariableInput", defaultValue: newVarInputVal( diff --git a/src/js/composer/commands/statusCommands.js b/src/js/composer/commands/statusCommands.js index 3d29599..ce2bf11 100644 --- a/src/js/composer/commands/statusCommands.js +++ b/src/js/composer/commands/statusCommands.js @@ -5,7 +5,6 @@ export const statusCommands = { { value: "utools.readCurrentFolderPath", label: "获取当前文件管理器路径", - desc: "获取当前文件管理器窗口路径", icon: "folder", isAsync: true, outputVariable: "currentFolderPath", @@ -14,7 +13,6 @@ export const statusCommands = { { value: "utools.readCurrentBrowserUrl", label: "获取当前浏览器地址", - desc: "获取当前浏览器窗口URL", icon: "language", isAsync: true, outputVariable: "currentBrowserUrl", @@ -23,7 +21,6 @@ export const statusCommands = { { value: "quickcomposer.status.getSelectedText", label: "获取选中文本", - desc: "获取选中的文本", icon: "text_fields", isAsync: true, outputVariable: "selectedText", @@ -32,7 +29,6 @@ export const statusCommands = { { value: "quickcomposer.status.getSelectedImage", label: "获取选中的图片", - desc: "获取选中的图片", icon: "image", isAsync: true, outputVariable: "selectedImage", @@ -41,7 +37,6 @@ export const statusCommands = { { value: "quickcomposer.status.getSelectedFiles", label: "获取选中的文件", - desc: "获取选中的文件", icon: "file_present", isAsync: true, outputVariable: "selectedFiles", diff --git a/src/js/composer/commands/systemCommands.js b/src/js/composer/commands/systemCommands.js index 9d2eb3c..afe9c75 100644 --- a/src/js/composer/commands/systemCommands.js +++ b/src/js/composer/commands/systemCommands.js @@ -15,7 +15,6 @@ export const systemCommands = { icon: "content_copy", config: [ { - key: "content", label: "要写入剪切板的内容", component: "VariableInput", icon: "content_copy", @@ -28,7 +27,6 @@ export const systemCommands = { icon: "image", config: [ { - key: "image", label: "图片路径/base64", component: "VariableInput", icon: "image", @@ -50,7 +48,6 @@ export const systemCommands = { icon: "file_copy", config: [ { - key: "file", label: "文件路径", component: "VariableInput", icon: "file_copy", @@ -108,7 +105,6 @@ export const systemCommands = { { value: "quickcomposer.system.exec", label: "执行系统命令", - desc: "执行系统命令并返回输出结果", component: "SystemCommandEditor", icon: "terminal", isAsync: true, @@ -116,7 +112,6 @@ export const systemCommands = { { value: "utools.getPath", label: "获取系统路径", - desc: "获取系统路径", outputVariable: "systemPath", saveOutput: true, defaultValue: "home", @@ -188,7 +183,6 @@ export const systemCommands = { { value: "utools.isMacOS", label: "判断系统类型", - desc: "判断系统类型", subCommands: [ { value: "utools.isMacOS", @@ -210,7 +204,6 @@ export const systemCommands = { { value: "quickcomposer.system.os.arch", label: "系统信息", - desc: "获取操作系统相关信息", icon: "computer", config: [], subCommands: [ @@ -306,7 +299,6 @@ export const systemCommands = { { value: "quickcomposer.system.path.normalize", label: "路径操作", - desc: "路径解析和处理", icon: "folder", config: [], subCommands: [ @@ -493,7 +485,6 @@ export const systemCommands = { { value: "quickcommand.kill", label: "关闭进程", - desc: "关闭指定进程", icon: "dangerous", config: [ { diff --git a/src/js/composer/commands/uiCommands.js b/src/js/composer/commands/uiCommands.js index ec4d9aa..0254d85 100644 --- a/src/js/composer/commands/uiCommands.js +++ b/src/js/composer/commands/uiCommands.js @@ -111,7 +111,6 @@ export const uiCommands = { { value: "quickcommand.showMessageBox", label: "消息提示", - desc: "显示一个自动消失的提示框", isAsync: true, config: [ { @@ -169,7 +168,6 @@ export const uiCommands = { { value: "quickcommand.showConfirmBox", label: "确认框", - desc: "显示一个确认框,返回是否点击了确认", isAsync: true, outputVariable: "confirmed", saveOutput: true, @@ -310,14 +308,12 @@ export const uiCommands = { { value: "quickcommand.showSelectList", label: "选择列表", - desc: "显示一个支持搜索的选项列表,可以动态更新选项", component: "SelectListEditor", isAsync: true, }, { value: "quickcommand.showTextArea", label: "文本框", - desc: "显示一个文本框,可以输入多行文本", isAsync: true, outputVariable: "textareaValue", saveOutput: true, @@ -365,14 +361,12 @@ export const uiCommands = { { value: "utools.showOpenDialog", label: "文件选择框", - desc: "显示一个文件选择框,返回选择的文件路径", outputVariable: "filePaths", saveOutput: true, subCommands: [ { value: "utools.showOpenDialog", label: "打开文件对话框", - desc: "打开文件对话框", icon: "folder_open", config: [ { @@ -389,7 +383,6 @@ export const uiCommands = { { value: "utools.showSaveDialog", label: "保存文件对话框", - desc: "保存文件对话框", icon: "save", config: [ { diff --git a/src/js/composer/commands/utoolsCommand.js b/src/js/composer/commands/utoolsCommand.js index 961aa56..24e0f48 100644 --- a/src/js/composer/commands/utoolsCommand.js +++ b/src/js/composer/commands/utoolsCommand.js @@ -5,23 +5,19 @@ export const utoolsCommands = { { value: "utools.hideMainWindow", label: "隐藏主窗口", - desc: "隐藏主窗口", icon: "visibility_off", }, { value: "quickcommand.wakeUtools", label: "唤醒uTools", - desc: "唤醒uTools", icon: "visibility", }, { value: "utools.setExpendHeight", label: "设置uTools高度", - desc: "设置uTools高度", icon: "height", config: [ { - key: "height", label: "高度", component: "NumberInput", min: 0, @@ -34,11 +30,9 @@ export const utoolsCommands = { { value: "utools.outPlugin", label: "退出插件", - desc: "退出插件", icon: "exit_to_app", config: [ { - key: "isKill", component: "q-select", options: [ { label: "杀死插件进程", value: true }, @@ -52,7 +46,6 @@ export const utoolsCommands = { { value: "utools.isDarkColors", label: "是否深色模式", - desc: "是否深色模式", icon: "dark_mode", outputVariable: "isDark", saveOutput: true, @@ -60,7 +53,6 @@ export const utoolsCommands = { { value: "utools.getUser", label: "获取用户信息", - desc: "获取用户信息", icon: "person", outputVariable: "{avatar,nickname,type}", saveOutput: true, @@ -70,14 +62,12 @@ export const utoolsCommands = { label: "转至指定插件", config: [ { - key: "pluginName", label: "要跳转至的插件名称", component: "VariableInput", icon: "alt_route", width: 6, }, { - key: "payload", label: "传递给插件的文本", component: "VariableInput", icon: "alt_route", @@ -88,24 +78,20 @@ export const utoolsCommands = { { value: "utools.findInPage", label: "插件内查找", - desc: "插件内查找", icon: "search", subCommands: [ { value: "utools.findInPage", label: "查找文本", - desc: "查找文本", icon: "search", config: [ { - key: "text", label: "文本", component: "VariableInput", icon: "search", width: 12, }, { - key: "options", label: "选项", component: "OptionEditor", icon: "settings", @@ -155,11 +141,9 @@ export const utoolsCommands = { { value: "utools.stopFindInPage", label: "停止查找", - desc: "停止查找", icon: "stop", config: [ { - key: "action", label: "动作", component: "ButtonGroup", icon: "settings", @@ -178,7 +162,6 @@ export const utoolsCommands = { { value: "utools.getWindowType", label: "获取当前窗口类型", - desc: "获取当前窗口类型", icon: "window", outputVariable: "windowType", saveOutput: true, @@ -186,14 +169,12 @@ export const utoolsCommands = { { value: "utools.getNativeId", label: "获取本地ID", - desc: "获取本地ID", outputVariable: "nativeId", saveOutput: true, }, { value: "utools.getAppVersion", label: "获取uTools版本", - desc: "获取uTools版本", outputVariable: "appVersion", saveOutput: true, }, diff --git a/src/js/composer/commands/windowsCommands.js b/src/js/composer/commands/windowsCommands.js index f8e5a0f..63a61db 100644 --- a/src/js/composer/commands/windowsCommands.js +++ b/src/js/composer/commands/windowsCommands.js @@ -155,7 +155,6 @@ const registryPaths = [ const searchWindowConfig = [ { - key: "method", label: "窗口查找方式", component: "q-select", icon: "search", @@ -170,7 +169,6 @@ const searchWindowConfig = [ defaultValue: "title", }, { - key: "value", label: "窗口标题/类名/句柄/进程名/活动窗口", component: "VariableInput", icon: "title", @@ -219,7 +217,6 @@ export const windowsCommands = { { value: "quickcomposer.windows.window.getWindowInfo", label: "搜索/选择窗口", - desc: "搜索/选择窗口", icon: "window", isAsync: true, config: [], @@ -269,7 +266,6 @@ export const windowsCommands = { { value: "quickcomposer.windows.window.setTopMost", label: "窗口控制", - desc: "Windows窗口操作", icon: "window", config: searchWindowConfig, subCommands: [ @@ -279,7 +275,6 @@ export const windowsCommands = { icon: "vertical_align_top", config: [ { - key: "isTopMost", component: "ButtonGroup", icon: "push_pin", width: 12, @@ -297,7 +292,6 @@ export const windowsCommands = { icon: "opacity", config: [ { - key: "opacity", label: "透明度", component: "NumberInput", icon: "opacity", @@ -314,7 +308,6 @@ export const windowsCommands = { icon: "aspect_ratio", config: [ { - key: "x", label: "X坐标", component: "NumberInput", icon: "arrow_right", @@ -322,7 +315,6 @@ export const windowsCommands = { defaultValue: 0, }, { - key: "y", label: "Y坐标", component: "NumberInput", icon: "arrow_drop_down", @@ -330,7 +322,6 @@ export const windowsCommands = { defaultValue: 0, }, { - key: "width", label: "宽度", component: "NumberInput", icon: "swap_horiz", @@ -339,7 +330,6 @@ export const windowsCommands = { defaultValue: 800, }, { - key: "height", label: "高度", component: "NumberInput", icon: "height", @@ -355,7 +345,6 @@ export const windowsCommands = { icon: "open_in_full", config: [ { - key: "state", component: "ButtonGroup", icon: "aspect_ratio", width: 12, @@ -384,7 +373,6 @@ export const windowsCommands = { icon: "border_style", config: [ { - key: "hasBorder", component: "ButtonGroup", icon: "border_style", width: 12, @@ -402,7 +390,6 @@ export const windowsCommands = { icon: "touch_app", config: [ { - key: "isTransparent", component: "ButtonGroup", icon: "touch_app", width: 12, @@ -421,7 +408,6 @@ export const windowsCommands = { { value: "quickcomposer.windows.automation.click", label: "界面自动化", - desc: "Windows界面自动化操作", icon: "smart_button", isAsync: true, config: searchElementConfig, @@ -631,7 +617,6 @@ export const windowsCommands = { { value: "quickcomposer.windows.sendmessage.inspectWindow", label: "发送控制消息", - desc: "Windows界面自动化操作", icon: "smart_button", isAsync: true, config: searchWindowConfig, @@ -644,7 +629,6 @@ export const windowsCommands = { saveOutput: true, config: [ { - key: "options", component: "OptionEditor", width: 12, options: { @@ -677,7 +661,6 @@ export const windowsCommands = { icon: "mouse", config: [ { - key: "action", component: "ButtonGroup", width: 12, options: [ @@ -688,7 +671,6 @@ export const windowsCommands = { defaultValue: "click", }, { - key: "options", component: "OptionEditor", width: 12, options: { @@ -735,7 +717,6 @@ export const windowsCommands = { icon: "keyboard", config: [ { - key: "text", label: "文本内容", component: "VariableInput", icon: "text_fields", @@ -743,7 +724,6 @@ export const windowsCommands = { placeholder: "要发送的文本内容", }, { - key: "options", component: "OptionEditor", width: 12, options: { @@ -776,7 +756,6 @@ export const windowsCommands = { icon: "keyboard_alt", config: [ { - key: "keys", label: "按键序列", component: "VariableInput", icon: "keyboard", @@ -788,7 +767,6 @@ export const windowsCommands = { }, }, { - key: "options", component: "OptionEditor", width: 12, options: { @@ -821,7 +799,6 @@ export const windowsCommands = { { value: "quickcomposer.windows.monitor.watchClipboard", label: "剪贴板/文件监控", - desc: "监控系统变化", icon: "monitor_heart", isAsync: true, outputVariable: "monitorEvent", @@ -856,7 +833,6 @@ export const windowsCommands = { required: true, }, { - key: "options", component: "OptionEditor", width: 12, options: { @@ -887,7 +863,6 @@ export const windowsCommands = { { value: "quickcomposer.windows.process.listProcesses", label: "进程管理", - desc: "Windows进程操作", icon: "memory", isAsync: true, subCommands: [ @@ -904,7 +879,6 @@ export const windowsCommands = { icon: "stop_circle", config: [ { - key: "target", label: "进程ID/名称", component: "VariableInput", icon: "tag", @@ -920,7 +894,6 @@ export const windowsCommands = { icon: "play_circle", config: [ { - key: "path", label: "程序路径", component: "VariableInput", icon: "folder", @@ -940,7 +913,6 @@ export const windowsCommands = { required: true, }, { - key: "arguments", label: "启动参数", component: "VariableInput", icon: "code", @@ -955,12 +927,10 @@ export const windowsCommands = { { value: "quickcomposer.windows.registry.listKeys", label: "注册表管理", - desc: "Windows注册表操作", icon: "settings", isAsync: true, config: [ { - key: "path", label: "注册表路径", component: "VariableInput", icon: "folder", @@ -986,7 +956,6 @@ export const windowsCommands = { icon: "search", config: [ { - key: "path", label: "注册表路径", component: "VariableInput", icon: "folder", @@ -998,7 +967,6 @@ export const windowsCommands = { required: true, }, { - key: "name", label: "值名称", component: "VariableInput", icon: "label", @@ -1015,7 +983,6 @@ export const windowsCommands = { icon: "edit", config: [ { - key: "path", label: "注册表路径", component: "VariableInput", icon: "folder", @@ -1027,7 +994,6 @@ export const windowsCommands = { required: true, }, { - key: "name", label: "值名称", component: "VariableInput", icon: "label", @@ -1036,7 +1002,6 @@ export const windowsCommands = { required: true, }, { - key: "value", label: "值内容", component: "VariableInput", icon: "text_fields", @@ -1044,7 +1009,6 @@ export const windowsCommands = { required: true, }, { - key: "valueType", label: "值类型", component: "q-select", icon: "category", @@ -1067,7 +1031,6 @@ export const windowsCommands = { icon: "delete", config: [ { - key: "path", label: "注册表路径", component: "VariableInput", icon: "folder", @@ -1079,7 +1042,6 @@ export const windowsCommands = { required: true, }, { - key: "name", label: "值名称", component: "VariableInput", icon: "label", @@ -1094,7 +1056,6 @@ export const windowsCommands = { { value: "quickcomposer.windows.service.listServices", label: "服务管理", - desc: "Windows服务操作", icon: "miscellaneous_services", isAsync: true, subCommands: [ @@ -1111,7 +1072,6 @@ export const windowsCommands = { icon: "settings", config: [ { - key: "name", label: "服务名称", component: "VariableInput", icon: "label", @@ -1120,7 +1080,6 @@ export const windowsCommands = { required: true, }, { - key: "operation", label: "操作", component: "ButtonGroup", icon: "play_circle", @@ -1141,7 +1100,6 @@ export const windowsCommands = { { value: "quickcomposer.windows.software.listSoftware", label: "软件管理", - desc: "Windows软件操作", icon: "apps", isAsync: true, subCommands: [ @@ -1158,7 +1116,6 @@ export const windowsCommands = { icon: "delete", config: [ { - key: "target", label: "软件ID", component: "VariableInput", icon: "tag", @@ -1174,7 +1131,6 @@ export const windowsCommands = { { value: "quickcomposer.windows.utils.setWallpaper", label: "系统工具", - desc: "Windows系统工具", icon: "build", isAsync: true, subCommands: [ @@ -1184,7 +1140,6 @@ export const windowsCommands = { icon: "wallpaper", config: [ { - key: "path", label: "壁纸路径", component: "VariableInput", icon: "image", @@ -1213,7 +1168,6 @@ export const windowsCommands = { icon: "desktop_windows", config: [ { - key: "action", component: "ButtonGroup", icon: "power_settings_new", width: 12, @@ -1231,7 +1185,6 @@ export const windowsCommands = { icon: "power", config: [ { - key: "mode", component: "ButtonGroup", icon: "power_settings_new", width: 12, @@ -1251,7 +1204,6 @@ export const windowsCommands = { icon: "network_check", config: [ { - key: "interfaceName", label: "网卡名称", component: "VariableInput", icon: "settings_ethernet", @@ -1260,7 +1212,6 @@ export const windowsCommands = { required: true, }, { - key: "ip", label: "IP地址", component: "VariableInput", icon: "router", @@ -1269,7 +1220,6 @@ export const windowsCommands = { required: true, }, { - key: "mask", label: "子网掩码", component: "VariableInput", icon: "filter_alt", @@ -1278,7 +1228,6 @@ export const windowsCommands = { required: true, }, { - key: "gateway", label: "默认网关", component: "VariableInput", icon: "dns", @@ -1286,7 +1235,6 @@ export const windowsCommands = { placeholder: "可选", }, { - key: "dns", label: "DNS服务器", component: "VariableInput", icon: "dns", @@ -1301,7 +1249,6 @@ export const windowsCommands = { icon: "power", config: [ { - key: "path", label: "程序路径", component: "VariableInput", icon: "folder", @@ -1321,7 +1268,6 @@ export const windowsCommands = { required: true, }, { - key: "name", label: "启动项名称", component: "VariableInput", icon: "label", @@ -1329,7 +1275,6 @@ export const windowsCommands = { required: true, }, { - key: "remove", label: "移除", component: "CheckButton", icon: "delete", @@ -1343,7 +1288,6 @@ export const windowsCommands = { icon: "link", config: [ { - key: "targetPath", label: "目标路径", component: "VariableInput", icon: "folder", @@ -1360,7 +1304,6 @@ export const windowsCommands = { required: true, }, { - key: "shortcutPath", label: "快捷方式路径", component: "VariableInput", icon: "save", @@ -1377,7 +1320,6 @@ export const windowsCommands = { required: true, }, { - key: "args", label: "启动参数", component: "VariableInput", icon: "code", @@ -1392,7 +1334,6 @@ export const windowsCommands = { icon: "brightness_medium", config: [ { - key: "level", label: "亮度级别", component: "NumberInput", icon: "brightness_medium",