mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-07 21:46:12 +08:00
添加quickcomposer声明文件
This commit is contained in:
parent
1d9a675803
commit
2dce359244
@ -27,7 +27,7 @@ const string = {
|
||||
},
|
||||
|
||||
// 大小写转换
|
||||
case: function (text, mode = "upper") {
|
||||
changeCase: function (text, mode = "upper") {
|
||||
switch (mode) {
|
||||
case "upper":
|
||||
return text.toUpperCase();
|
||||
|
@ -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,
|
||||
};
|
||||
|
@ -38,6 +38,7 @@ const typeDefinitions = {
|
||||
"quickcommand.api.d.ts",
|
||||
"utools.api.d.ts",
|
||||
"shortcode.api.d.ts",
|
||||
"quickcomposer.d.ts",
|
||||
],
|
||||
};
|
||||
|
||||
|
@ -103,7 +103,7 @@ export const dataCommands = {
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "quickcomposer.data.string.case",
|
||||
value: "quickcomposer.data.string.changeCase",
|
||||
label: "大小写转换",
|
||||
icon: "text_fields",
|
||||
config: [
|
||||
|
2479
src/plugins/monaco/types/quickcomposer.d.ts
vendored
Normal file
2479
src/plugins/monaco/types/quickcomposer.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user