重构代码结构、数据传递方式,方便数据存取

This commit is contained in:
fofolee
2025-01-05 00:22:53 +08:00
parent dcaa00823b
commit 827c702e50
42 changed files with 2713 additions and 2143 deletions

View File

@@ -17,8 +17,7 @@ export const fileCommands = {
{
key: "path",
label: "文件、文件夹或软件的绝对路径",
type: "input",
defaultValue: "",
type: "varInput",
icon: "folder_open",
},
],
@@ -30,8 +29,7 @@ export const fileCommands = {
{
key: "path",
label: "文件、文件夹或软件的绝对路径",
type: "input",
defaultValue: "",
type: "varInput",
icon: "location_on",
},
],
@@ -43,8 +41,7 @@ export const fileCommands = {
{
key: "path",
label: "文件或软件的绝对路径",
type: "input",
defaultValue: "",
type: "varInput",
icon: "folder_open",
},
],

View File

@@ -10,8 +10,7 @@ export const networkCommands = {
{
key: "url",
label: "要访问的网址链接",
type: "input",
defaultValue: "",
type: "varInput",
icon: "language",
},
],
@@ -23,8 +22,7 @@ export const networkCommands = {
{
key: "url",
label: "要访问的网址链接",
type: "input",
defaultValue: "",
type: "varInput",
icon: "public",
},
],

View File

@@ -10,8 +10,7 @@ export const notifyCommands = {
{
key: "message",
label: "要打印的消息文本",
type: "input",
defaultValue: "",
type: "varInput",
icon: "info",
},
],
@@ -23,8 +22,7 @@ export const notifyCommands = {
{
key: "message",
label: "要发送的系统消息文本",
type: "input",
defaultValue: "",
type: "varInput",
icon: "message",
},
],
@@ -36,8 +34,7 @@ export const notifyCommands = {
{
key: "text",
label: "要发送到窗口的文本内容",
type: "input",
defaultValue: "",
type: "varInput",
icon: "send",
},
],

View File

@@ -10,8 +10,7 @@ export const otherCommands = {
{
key: "pluginName",
label: "要跳转至的插件名称",
type: "input",
defaultValue: "",
type: "varInput",
icon: "alt_route",
},
],
@@ -23,10 +22,9 @@ export const otherCommands = {
{
key: "ms",
label: "延迟的毫秒数",
type: "input",
inputType: "number",
defaultValue: "",
type: "numInput",
icon: "schedule",
defaultValue: 500,
},
],
},

View File

@@ -17,15 +17,13 @@ export const simulateCommands = {
{
label: "X坐标留空则原地点击",
icon: "drag_handle",
type: "input",
inputType: "number",
type: "numInput",
width: 8,
},
{
label: "Y坐标留空则原地点击",
icon: "drag_handle",
type: "input",
inputType: "number",
type: "numInput",
width: 8,
},
],
@@ -57,16 +55,14 @@ export const simulateCommands = {
label: "X坐标",
icon: "drag_handle",
defaultValue: 0,
type: "input",
inputType: "number",
type: "numInput",
width: 8,
},
{
label: "Y坐标",
icon: "drag_handle",
defaultValue: 0,
type: "input",
inputType: "number",
type: "numInput",
width: 8,
},
],

View File

@@ -10,8 +10,7 @@ export const systemCommands = {
{
key: "command",
label: "要执行的命令行",
type: "input",
defaultValue: "",
type: "varInput",
icon: "terminal",
},
],
@@ -23,8 +22,7 @@ export const systemCommands = {
{
key: "content",
label: "要写入剪切板的内容",
type: "input",
defaultValue: "",
type: "varInput",
icon: "content_copy",
},
],

View File

@@ -12,7 +12,7 @@ export const textProcessorCommands = {
{
label: "要编解码的文本",
icon: "text_fields",
type: "input",
type: "varInput",
width: 8,
},
],
@@ -68,7 +68,7 @@ export const textProcessorCommands = {
{
label: "要计算哈希的文本",
icon: "text_fields",
type: "input",
type: "varInput",
width: 8,
},
],
@@ -91,8 +91,7 @@ export const textProcessorCommands = {
{
key: "text",
label: "要反转的文本",
type: "input",
defaultValue: "",
type: "varInput",
icon: "swap_horiz",
},
],
@@ -104,24 +103,21 @@ export const textProcessorCommands = {
{
key: "text",
label: "原始文本",
type: "input",
defaultValue: "",
type: "varInput",
icon: "text_fields",
width: 4,
},
{
key: "oldStr",
label: "要替换的文本",
type: "input",
defaultValue: "",
type: "varInput",
icon: "find_replace",
width: 4,
},
{
key: "newStr",
label: "替换为",
type: "input",
defaultValue: "",
type: "varInput",
icon: "text_fields",
width: 4,
},
@@ -134,24 +130,21 @@ export const textProcessorCommands = {
{
key: "text",
label: "原始文本",
type: "input",
defaultValue: "",
type: "varInput",
icon: "text_fields",
width: 6,
},
{
key: "start",
label: "起始位置",
type: "input",
inputType: "number",
type: "numInput",
icon: "first_page",
width: 3,
},
{
key: "end",
label: "结束位置",
type: "input",
inputType: "number",
type: "numInput",
icon: "last_page",
width: 3,
},