mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-17 17:24:27 +08:00
编排新增url/dns/buffer/zlib,新增arrayEditor组件,优化parseFunction
This commit is contained in:
14
src/js/composer/commands/developerCommands.js
Normal file
14
src/js/composer/commands/developerCommands.js
Normal file
@@ -0,0 +1,14 @@
|
||||
export const developerCommands = {
|
||||
label: "开发相关",
|
||||
icon: "code",
|
||||
defaultOpened: true,
|
||||
commands: [
|
||||
{
|
||||
value: "quickcomposer.developer.buffer",
|
||||
label: "Buffer操作",
|
||||
desc: "Buffer创建、转换和操作",
|
||||
component: "BufferEditor",
|
||||
icon: "memory",
|
||||
},
|
||||
],
|
||||
};
|
||||
@@ -46,5 +46,13 @@ export const fileCommands = {
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "quickcomposer.file.zlib",
|
||||
label: "压缩解压",
|
||||
desc: "使用 zlib 进行数据压缩和解压",
|
||||
component: "ZlibEditor",
|
||||
icon: "compress",
|
||||
isAsync: true,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@@ -6,6 +6,7 @@ import { textCommands } from "./textCommands";
|
||||
import { otherCommands } from "./otherCommands";
|
||||
import { simulateCommands } from "./simulateCommands";
|
||||
import { controlCommands } from "./controlCommands";
|
||||
import { developerCommands } from "./developerCommands";
|
||||
|
||||
export const commandCategories = [
|
||||
fileCommands,
|
||||
@@ -16,4 +17,5 @@ export const commandCategories = [
|
||||
controlCommands,
|
||||
otherCommands,
|
||||
simulateCommands,
|
||||
developerCommands,
|
||||
];
|
||||
|
||||
@@ -44,5 +44,20 @@ export const networkCommands = {
|
||||
isAsync: true,
|
||||
icon: "http",
|
||||
},
|
||||
{
|
||||
value: "quickcomposer.network.url",
|
||||
label: "URL操作",
|
||||
desc: "URL解析、格式化和参数处理",
|
||||
component: "UrlEditor",
|
||||
icon: "link",
|
||||
},
|
||||
{
|
||||
value: "quickcomposer.network.dns",
|
||||
label: "DNS操作",
|
||||
desc: "DNS解析和查询",
|
||||
component: "DnsEditor",
|
||||
icon: "dns",
|
||||
isAsync: true,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@@ -22,28 +22,42 @@ export const textCommands = {
|
||||
{
|
||||
label: "Base64编码",
|
||||
value: "quickcomposer.text.base64Encode",
|
||||
icon: "title",
|
||||
},
|
||||
{
|
||||
label: "Base64解码",
|
||||
value: "quickcomposer.text.base64Decode",
|
||||
icon: "title",
|
||||
},
|
||||
{
|
||||
label: "十六进制编码",
|
||||
value: "quickcomposer.text.hexEncode",
|
||||
icon: "code",
|
||||
},
|
||||
{
|
||||
label: "十六进制解码",
|
||||
value: "quickcomposer.text.hexDecode",
|
||||
icon: "code",
|
||||
},
|
||||
{
|
||||
label: "URL编码",
|
||||
value: "quickcomposer.text.urlEncode",
|
||||
icon: "link",
|
||||
},
|
||||
{
|
||||
label: "URL解码",
|
||||
value: "quickcomposer.text.urlDecode",
|
||||
icon: "link",
|
||||
},
|
||||
{ label: "URL编码", value: "quickcomposer.text.urlEncode" },
|
||||
{ label: "URL解码", value: "quickcomposer.text.urlDecode" },
|
||||
{
|
||||
label: "HTML编码",
|
||||
value: "quickcomposer.text.htmlEncode",
|
||||
icon: "html",
|
||||
},
|
||||
{
|
||||
label: "HTML解码",
|
||||
value: "quickcomposer.text.htmlDecode",
|
||||
icon: "html",
|
||||
},
|
||||
],
|
||||
width: 3,
|
||||
@@ -75,11 +89,31 @@ export const textCommands = {
|
||||
functionSelector: {
|
||||
selectLabel: "哈希算法",
|
||||
options: [
|
||||
{ label: "MD5", value: "quickcomposer.text.md5Hash" },
|
||||
{ label: "SHA1", value: "quickcomposer.text.sha1Hash" },
|
||||
{ label: "SHA256", value: "quickcomposer.text.sha256Hash" },
|
||||
{ label: "SHA512", value: "quickcomposer.text.sha512Hash" },
|
||||
{ label: "SM3", value: "quickcomposer.text.sm3Hash" },
|
||||
{
|
||||
label: "MD5",
|
||||
value: "quickcomposer.text.md5Hash",
|
||||
icon: "functions",
|
||||
},
|
||||
{
|
||||
label: "SHA1",
|
||||
value: "quickcomposer.text.sha1Hash",
|
||||
icon: "functions",
|
||||
},
|
||||
{
|
||||
label: "SHA256",
|
||||
value: "quickcomposer.text.sha256Hash",
|
||||
icon: "functions",
|
||||
},
|
||||
{
|
||||
label: "SHA512",
|
||||
value: "quickcomposer.text.sha512Hash",
|
||||
icon: "functions",
|
||||
},
|
||||
{
|
||||
label: "SM3",
|
||||
value: "quickcomposer.text.sm3Hash",
|
||||
icon: "functions",
|
||||
},
|
||||
],
|
||||
},
|
||||
width: 3,
|
||||
|
||||
Reference in New Issue
Block a user