添加quickcomposer声明文件

This commit is contained in:
fofolee 2025-01-25 14:47:21 +08:00
parent 1d9a675803
commit 2dce359244
5 changed files with 2485 additions and 5 deletions

View File

@ -27,7 +27,7 @@ const string = {
},
// 大小写转换
case: function (text, mode = "upper") {
changeCase: function (text, mode = "upper") {
switch (mode) {
case "upper":
return text.toUpperCase();

View File

@ -84,7 +84,7 @@ async function write(config) {
/**
* 文件删除操作
*/
async function delete_(config) {
async function remove(config) {
const { filePath, recursive, force, targetType } = config;
// 检查文件是否存在
@ -338,7 +338,7 @@ async function operation(config) {
case "stat":
return await stat(config);
case "delete":
return await delete_(config);
return await remove(config);
case "manage":
return await manage(config);
default:
@ -351,7 +351,7 @@ module.exports = {
write,
list,
stat,
delete: delete_,
remove,
manage,
operation,
};

View File

@ -38,6 +38,7 @@ const typeDefinitions = {
"quickcommand.api.d.ts",
"utools.api.d.ts",
"shortcode.api.d.ts",
"quickcomposer.d.ts",
],
};

View File

@ -103,7 +103,7 @@ export const dataCommands = {
],
},
{
value: "quickcomposer.data.string.case",
value: "quickcomposer.data.string.changeCase",
label: "大小写转换",
icon: "text_fields",
config: [

File diff suppressed because it is too large Load Diff