mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-19 18:25:44 +08:00
可视化编排添加文本处理,添加堆成和非对称加解密
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user