可视化编排添加文本处理,添加堆成和非对称加解密

This commit is contained in:
fofolee
2024-12-30 18:37:42 +08:00
parent 97a0ce2f99
commit 5e2994fe6d
15 changed files with 2127 additions and 94 deletions

View File

@@ -39,6 +39,7 @@ window.convertFilePathToUtoolsPayload = convertFilePathToUtoolsPayload;
window.getuToolsLite = require("./lib/utoolsLite");
window.quickcommand = require("./lib/quickcommand");
window.quickcomposer = require("./lib/quickcomposer");
window.getQuickcommandTempFile = require("./lib/getQuickcommandTempFile");
window.imageProcessor = require("./lib/imageprocessor");
window.showUb = require("./lib/showDocs");
@@ -97,6 +98,7 @@ window.removeHtmlTags = (value) => {
return quickcommand.htmlParse(value).querySelector("body").innerText;
};
window.hexEncode = (text) => Buffer.from(text, "utf8").toString("hex");
window.hexDecode = (text) => Buffer.from(text, "hex").toString("utf8");
window.base64Decode = (text) => Buffer.from(text, "base64").toString("utf8");
@@ -123,6 +125,7 @@ let getSandboxFuns = () => {
path,
os,
child_process,
quickcomposer,
};
Object.keys(shortCodes).forEach((f) => {
sandbox[f] = shortCodes[f];