Comparing version
@@ -26,8 +26,12 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.zip = exports.tool = exports.theme = exports.task = exports.storage = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.vue = exports.hasFrame = exports.isImmersion = exports.getPlatform = exports.isNative = exports.getVersion = void 0; | ||
const version = '3.15.9'; | ||
exports.zip = exports.tool = exports.theme = exports.task = exports.storage = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.vue = void 0; | ||
exports.getVersion = getVersion; | ||
exports.isNative = isNative; | ||
exports.getPlatform = getPlatform; | ||
exports.isImmersion = isImmersion; | ||
exports.hasFrame = hasFrame; | ||
const version = '3.15.10'; | ||
function getVersion() { | ||
return version; | ||
} | ||
exports.getVersion = getVersion; | ||
const native = navigator.userAgent.includes('electron') ? true : false; | ||
@@ -37,3 +41,2 @@ function isNative() { | ||
} | ||
exports.isNative = isNative; | ||
let platform = 'web'; | ||
@@ -53,11 +56,8 @@ let immersion = false; | ||
} | ||
exports.getPlatform = getPlatform; | ||
function isImmersion() { | ||
return immersion; | ||
} | ||
exports.isImmersion = isImmersion; | ||
function hasFrame() { | ||
return frame; | ||
} | ||
exports.hasFrame = hasFrame; | ||
exports.vue = window.Vue; | ||
@@ -64,0 +64,0 @@ exports.control = __importStar(require("./lib/control")); |
@@ -16,3 +16,3 @@ /** | ||
*/ | ||
const version = '3.15.9'; | ||
const version = '3.15.10'; | ||
export function getVersion(): string { | ||
@@ -19,0 +19,0 @@ return version; |
@@ -12,23 +12,24 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.launcher = exports.AbstractBoot = exports.hasFrame = exports.isImmersion = exports.getPlatform = exports.isNative = exports.getVersion = exports.vue = exports.zip = exports.tool = exports.theme = exports.task = exports.storage = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.clickgo = void 0; | ||
exports.AbstractBoot = exports.vue = exports.zip = exports.tool = exports.theme = exports.task = exports.storage = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.clickgo = void 0; | ||
exports.getVersion = getVersion; | ||
exports.isNative = isNative; | ||
exports.getPlatform = getPlatform; | ||
exports.isImmersion = isImmersion; | ||
exports.hasFrame = hasFrame; | ||
exports.launcher = launcher; | ||
function getVersion() { | ||
return exports.clickgo.getVersion(); | ||
} | ||
exports.getVersion = getVersion; | ||
function isNative() { | ||
return exports.clickgo.isNative(); | ||
} | ||
exports.isNative = isNative; | ||
function getPlatform() { | ||
return exports.clickgo.getPlatform(); | ||
} | ||
exports.getPlatform = getPlatform; | ||
function isImmersion() { | ||
return exports.clickgo.isImmersion(); | ||
} | ||
exports.isImmersion = isImmersion; | ||
function hasFrame() { | ||
return exports.clickgo.hasFrame(); | ||
} | ||
exports.hasFrame = hasFrame; | ||
class AbstractBoot { | ||
@@ -173,2 +174,1 @@ isDebug() { | ||
} | ||
exports.launcher = launcher; |
@@ -35,3 +35,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.buildComponents = exports.init = exports.read = exports.AbstractControl = void 0; | ||
exports.AbstractControl = void 0; | ||
exports.read = read; | ||
exports.init = init; | ||
exports.buildComponents = buildComponents; | ||
const core = __importStar(require("./core")); | ||
@@ -329,3 +332,2 @@ const zip = __importStar(require("./zip")); | ||
} | ||
exports.read = read; | ||
function init(taskId, invoke, cache) { | ||
@@ -499,3 +501,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.init = init; | ||
function buildComponents(taskId, formId, path) { | ||
@@ -599,2 +600,1 @@ const t = task.list[taskId]; | ||
} | ||
exports.buildComponents = buildComponents; |
@@ -36,3 +36,17 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.open = exports.back = exports.getLocation = exports.location = exports.getHost = exports.getHash = exports.hash = exports.getAvailArea = exports.fetchApp = exports.readApp = exports.trigger = exports.getModule = exports.regModule = exports.boot = exports.getCdn = exports.AbstractApp = exports.global = exports.config = void 0; | ||
exports.boot = exports.AbstractApp = exports.global = exports.config = void 0; | ||
exports.getCdn = getCdn; | ||
exports.regModule = regModule; | ||
exports.getModule = getModule; | ||
exports.trigger = trigger; | ||
exports.readApp = readApp; | ||
exports.fetchApp = fetchApp; | ||
exports.getAvailArea = getAvailArea; | ||
exports.hash = hash; | ||
exports.getHash = getHash; | ||
exports.getHost = getHost; | ||
exports.location = location; | ||
exports.getLocation = getLocation; | ||
exports.back = back; | ||
exports.open = open; | ||
const clickgo = __importStar(require("../clickgo")); | ||
@@ -144,3 +158,2 @@ const fs = __importStar(require("./fs")); | ||
} | ||
exports.getCdn = getCdn; | ||
clickgo.vue.watch(exports.config, function () { | ||
@@ -313,3 +326,2 @@ for (const key in configOrigin) { | ||
} | ||
exports.regModule = regModule; | ||
function getModule(name) { | ||
@@ -356,3 +368,2 @@ return new Promise((resolve) => { | ||
} | ||
exports.getModule = getModule; | ||
const globalEvents = { | ||
@@ -570,3 +581,2 @@ screenResize: function () { | ||
} | ||
exports.trigger = trigger; | ||
function readApp(blob) { | ||
@@ -626,3 +636,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.readApp = readApp; | ||
function fetchApp(url_1) { | ||
@@ -764,3 +773,2 @@ return __awaiter(this, arguments, void 0, function* (url, opt = {}, taskId) { | ||
} | ||
exports.fetchApp = fetchApp; | ||
function getAvailArea() { | ||
@@ -821,3 +829,2 @@ if (Object.keys(form.simpleSystemTaskRoot.forms).length > 0) { | ||
} | ||
exports.getAvailArea = getAvailArea; | ||
function hash(hash, taskId) { | ||
@@ -837,7 +844,5 @@ if (!taskId) { | ||
} | ||
exports.hash = hash; | ||
function getHash() { | ||
return window.location.hash ? decodeURIComponent(window.location.hash.slice(1)) : ''; | ||
} | ||
exports.getHash = getHash; | ||
function getHost() { | ||
@@ -850,3 +855,2 @@ const match = /https?:\/\/([-a-zA-Z0-9:.]+)/.exec(window.location.href); | ||
} | ||
exports.getHost = getHost; | ||
function location(url, taskId) { | ||
@@ -866,7 +870,5 @@ if (!taskId) { | ||
} | ||
exports.location = location; | ||
function getLocation() { | ||
return window.location.href; | ||
} | ||
exports.getLocation = getLocation; | ||
function back(taskId) { | ||
@@ -886,9 +888,7 @@ if (!taskId) { | ||
} | ||
exports.back = back; | ||
function open(url) { | ||
window.open(url); | ||
} | ||
exports.open = open; | ||
window.addEventListener('hashchange', function () { | ||
trigger('hashChanged', window.location.hash ? decodeURIComponent(window.location.hash.slice(1)) : ''); | ||
}); |
@@ -35,3 +35,20 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.copyFile = exports.copyFolder = exports.readDir = exports.rename = exports.chmod = exports.rmdirDeep = exports.rmdir = exports.mkdir = exports.isFile = exports.isDir = exports.stats = exports.unlink = exports.symlink = exports.readLink = exports.putContent = exports.getContent = exports.unmount = exports.mount = void 0; | ||
exports.mount = mount; | ||
exports.unmount = unmount; | ||
exports.getContent = getContent; | ||
exports.putContent = putContent; | ||
exports.readLink = readLink; | ||
exports.symlink = symlink; | ||
exports.unlink = unlink; | ||
exports.stats = stats; | ||
exports.isDir = isDir; | ||
exports.isFile = isFile; | ||
exports.mkdir = mkdir; | ||
exports.rmdir = rmdir; | ||
exports.rmdirDeep = rmdirDeep; | ||
exports.chmod = chmod; | ||
exports.rename = rename; | ||
exports.readDir = readDir; | ||
exports.copyFolder = copyFolder; | ||
exports.copyFile = copyFile; | ||
const tool = __importStar(require("./tool")); | ||
@@ -106,3 +123,2 @@ const task = __importStar(require("./task")); | ||
} | ||
exports.mount = mount; | ||
function unmount(name) { | ||
@@ -122,3 +138,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.unmount = unmount; | ||
function getContent(path, options, taskId) { | ||
@@ -249,3 +264,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.getContent = getContent; | ||
function putContent(path_1, data_1) { | ||
@@ -292,3 +306,2 @@ return __awaiter(this, arguments, void 0, function* (path, data, options = {}, taskId) { | ||
} | ||
exports.putContent = putContent; | ||
function readLink(path, encoding, taskId) { | ||
@@ -331,3 +344,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.readLink = readLink; | ||
function symlink(filePath, linkPath, type, taskId) { | ||
@@ -377,3 +389,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.symlink = symlink; | ||
function unlink(path, taskId) { | ||
@@ -416,3 +427,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.unlink = unlink; | ||
function getClickGoStats(path) { | ||
@@ -709,3 +719,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.stats = stats; | ||
function isDir(path, taskId) { | ||
@@ -720,3 +729,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.isDir = isDir; | ||
function isFile(path, taskId) { | ||
@@ -731,3 +739,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.isFile = isFile; | ||
function mkdir(path_1) { | ||
@@ -773,3 +780,2 @@ return __awaiter(this, arguments, void 0, function* (path, mode = 0o755, taskId) { | ||
} | ||
exports.mkdir = mkdir; | ||
function rmdir(path, taskId) { | ||
@@ -812,3 +818,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.rmdir = rmdir; | ||
function rmdirDeep(path, taskId) { | ||
@@ -842,3 +847,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.rmdirDeep = rmdirDeep; | ||
function chmod(path, mod, taskId) { | ||
@@ -881,3 +885,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.chmod = chmod; | ||
function rename(oldPath, newPath, taskId) { | ||
@@ -933,3 +936,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.rename = rename; | ||
function readDir(path, encoding, taskId) { | ||
@@ -1159,3 +1161,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.readDir = readDir; | ||
function copyFolder(from_1, to_1) { | ||
@@ -1198,3 +1199,2 @@ return __awaiter(this, arguments, void 0, function* (from, to, ignore = [], taskId) { | ||
} | ||
exports.copyFolder = copyFolder; | ||
function copyFile(src, dest, taskId) { | ||
@@ -1250,2 +1250,1 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.copyFile = copyFile; |
@@ -35,3 +35,16 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isMax = exports.ping = exports.maximizable = exports.size = exports.restore = exports.min = exports.max = exports.invoke = exports.getListenerList = exports.clear = exports.off = exports.once = exports.on = exports.getToken = void 0; | ||
exports.getToken = getToken; | ||
exports.on = on; | ||
exports.once = once; | ||
exports.off = off; | ||
exports.clear = clear; | ||
exports.getListenerList = getListenerList; | ||
exports.invoke = invoke; | ||
exports.max = max; | ||
exports.min = min; | ||
exports.restore = restore; | ||
exports.size = size; | ||
exports.maximizable = maximizable; | ||
exports.ping = ping; | ||
exports.isMax = isMax; | ||
const clickgo = __importStar(require("../clickgo")); | ||
@@ -42,3 +55,2 @@ const token = (Math.random() * 100000000000000 * (100 + Math.round(Math.random() * (999 - 100)))).toString(32); | ||
} | ||
exports.getToken = getToken; | ||
const methods = {}; | ||
@@ -75,7 +87,5 @@ window.clickgoNativeWeb = { | ||
} | ||
exports.on = on; | ||
function once(name, handler, formId, taskId) { | ||
on(name, handler, true, formId, taskId); | ||
} | ||
exports.once = once; | ||
function off(name, formId, taskId) { | ||
@@ -94,3 +104,2 @@ if (!taskId) { | ||
} | ||
exports.off = off; | ||
function clear(formId, taskId) { | ||
@@ -114,3 +123,2 @@ if (!taskId) { | ||
} | ||
exports.clear = clear; | ||
function getListenerList(taskId) { | ||
@@ -142,3 +150,2 @@ const rtn = {}; | ||
} | ||
exports.getListenerList = getListenerList; | ||
function invoke(name, ...param) { | ||
@@ -152,3 +159,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.invoke = invoke; | ||
invoke('cg-init', token); | ||
@@ -160,3 +166,2 @@ function max() { | ||
} | ||
exports.max = max; | ||
function min() { | ||
@@ -167,3 +172,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.min = min; | ||
function restore() { | ||
@@ -174,3 +178,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.restore = restore; | ||
function size(width, height) { | ||
@@ -181,3 +184,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.size = size; | ||
function maximizable(val) { | ||
@@ -188,3 +190,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.maximizable = maximizable; | ||
function ping(val) { | ||
@@ -195,3 +196,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.ping = ping; | ||
function isMax() { | ||
@@ -202,2 +202,1 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.isMax = isMax; |
@@ -35,3 +35,8 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.clear = exports.all = exports.list = exports.remove = exports.set = exports.get = void 0; | ||
exports.get = get; | ||
exports.set = set; | ||
exports.remove = remove; | ||
exports.list = list; | ||
exports.all = all; | ||
exports.clear = clear; | ||
const task = __importStar(require("./task")); | ||
@@ -94,3 +99,2 @@ const form = __importStar(require("./form")); | ||
} | ||
exports.get = get; | ||
function set(key, val, taskId) { | ||
@@ -127,3 +131,2 @@ if (!taskId) { | ||
} | ||
exports.set = set; | ||
function remove(key, taskId) { | ||
@@ -155,3 +158,2 @@ if (!taskId) { | ||
} | ||
exports.remove = remove; | ||
function list(taskId) { | ||
@@ -171,3 +173,2 @@ if (!taskId) { | ||
} | ||
exports.list = list; | ||
function all() { | ||
@@ -190,3 +191,2 @@ const rtn = {}; | ||
} | ||
exports.all = all; | ||
function clear(path) { | ||
@@ -216,2 +216,1 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.clear = clear; |
@@ -35,3 +35,9 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.clearGlobal = exports.setGlobal = exports.clear = exports.remove = exports.load = exports.read = exports.global = void 0; | ||
exports.global = void 0; | ||
exports.read = read; | ||
exports.load = load; | ||
exports.remove = remove; | ||
exports.clear = clear; | ||
exports.setGlobal = setGlobal; | ||
exports.clearGlobal = clearGlobal; | ||
const zip = __importStar(require("./zip")); | ||
@@ -83,3 +89,2 @@ const tool = __importStar(require("./tool")); | ||
} | ||
exports.read = read; | ||
function load(theme, taskId) { | ||
@@ -122,3 +127,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.load = load; | ||
function remove(name, taskId) { | ||
@@ -145,3 +149,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.remove = remove; | ||
function clear(taskId) { | ||
@@ -166,3 +169,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.clear = clear; | ||
function setGlobal(theme) { | ||
@@ -176,3 +178,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.setGlobal = setGlobal; | ||
function clearGlobal() { | ||
@@ -191,2 +192,1 @@ if (!exports.global) { | ||
} | ||
exports.clearGlobal = clearGlobal; |
@@ -12,3 +12,44 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.queryParse = exports.queryStringify = exports.formatTime = exports.formatSecond = exports.compar = exports.execCommand = exports.blob2DataUrl = exports.blob2Text = exports.urlAtom = exports.urlResolve = exports.parseUrl = exports.postResponseJson = exports.getResponseJson = exports.post = exports.get = exports.fetch = exports.request = exports.rgb2hsl = exports.escapeHTML = exports.getArray = exports.getNumber = exports.getBoolean = exports.random = exports.RANDOM_LUNS = exports.RANDOM_V = exports.RANDOM_LUN = exports.RANDOM_LU = exports.RANDOM_LN = exports.RANDOM_UN = exports.RANDOM_L = exports.RANDOM_U = exports.RANDOM_N = exports.rand = exports.getMimeByPath = exports.stylePrepend = exports.teleportGlue = exports.eventsAttrWrap = exports.layoutClassPrepend = exports.layoutInsertAttr = exports.layoutAddTagClassAndReTagName = exports.styleUrl2DataUrl = exports.match = exports.purify = exports.sleepFrame = exports.nextFrame = exports.sleep = exports.clone = exports.sizeFormat = exports.blob2ArrayBuffer = exports.getClassPrototype = void 0; | ||
exports.RANDOM_LUNS = exports.RANDOM_V = exports.RANDOM_LUN = exports.RANDOM_LU = exports.RANDOM_LN = exports.RANDOM_UN = exports.RANDOM_L = exports.RANDOM_U = exports.RANDOM_N = void 0; | ||
exports.getClassPrototype = getClassPrototype; | ||
exports.blob2ArrayBuffer = blob2ArrayBuffer; | ||
exports.sizeFormat = sizeFormat; | ||
exports.clone = clone; | ||
exports.sleep = sleep; | ||
exports.nextFrame = nextFrame; | ||
exports.sleepFrame = sleepFrame; | ||
exports.purify = purify; | ||
exports.match = match; | ||
exports.styleUrl2DataUrl = styleUrl2DataUrl; | ||
exports.layoutAddTagClassAndReTagName = layoutAddTagClassAndReTagName; | ||
exports.layoutInsertAttr = layoutInsertAttr; | ||
exports.layoutClassPrepend = layoutClassPrepend; | ||
exports.eventsAttrWrap = eventsAttrWrap; | ||
exports.teleportGlue = teleportGlue; | ||
exports.stylePrepend = stylePrepend; | ||
exports.getMimeByPath = getMimeByPath; | ||
exports.rand = rand; | ||
exports.random = random; | ||
exports.getBoolean = getBoolean; | ||
exports.getNumber = getNumber; | ||
exports.getArray = getArray; | ||
exports.escapeHTML = escapeHTML; | ||
exports.rgb2hsl = rgb2hsl; | ||
exports.request = request; | ||
exports.fetch = fetch; | ||
exports.get = get; | ||
exports.post = post; | ||
exports.getResponseJson = getResponseJson; | ||
exports.postResponseJson = postResponseJson; | ||
exports.parseUrl = parseUrl; | ||
exports.urlResolve = urlResolve; | ||
exports.urlAtom = urlAtom; | ||
exports.blob2Text = blob2Text; | ||
exports.blob2DataUrl = blob2DataUrl; | ||
exports.execCommand = execCommand; | ||
exports.compar = compar; | ||
exports.formatSecond = formatSecond; | ||
exports.formatTime = formatTime; | ||
exports.queryStringify = queryStringify; | ||
exports.queryParse = queryParse; | ||
function getClassPrototype(obj, over = [], level = 0) { | ||
@@ -59,3 +100,2 @@ var _a; | ||
} | ||
exports.getClassPrototype = getClassPrototype; | ||
function blob2ArrayBuffer(blob) { | ||
@@ -70,3 +110,2 @@ return new Promise(function (resove) { | ||
} | ||
exports.blob2ArrayBuffer = blob2ArrayBuffer; | ||
function sizeFormat(size, spliter = ' ') { | ||
@@ -80,3 +119,2 @@ const units = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB']; | ||
} | ||
exports.sizeFormat = sizeFormat; | ||
function clone(obj) { | ||
@@ -133,3 +171,2 @@ let newObj = {}; | ||
} | ||
exports.clone = clone; | ||
function sleep(ms = 0) { | ||
@@ -146,3 +183,2 @@ return new Promise(function (resolve) { | ||
} | ||
exports.sleep = sleep; | ||
function nextFrame() { | ||
@@ -155,3 +191,2 @@ return new Promise(function (resolve) { | ||
} | ||
exports.nextFrame = nextFrame; | ||
function sleepFrame(count) { | ||
@@ -167,3 +202,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.sleepFrame = sleepFrame; | ||
function purify(text) { | ||
@@ -184,3 +218,2 @@ text = '>' + text + '<'; | ||
} | ||
exports.purify = purify; | ||
function match(str, regs) { | ||
@@ -194,3 +227,2 @@ for (const reg of regs) { | ||
} | ||
exports.match = match; | ||
function styleUrl2DataUrl(path, style, files) { | ||
@@ -215,3 +247,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.styleUrl2DataUrl = styleUrl2DataUrl; | ||
function layoutAddTagClassAndReTagName(layout, retagname) { | ||
@@ -258,3 +289,2 @@ const list = []; | ||
} | ||
exports.layoutAddTagClassAndReTagName = layoutAddTagClassAndReTagName; | ||
function layoutInsertAttr(layout, insert, opt = {}) { | ||
@@ -286,3 +316,2 @@ return layout.replace(/<([\w-]+)[\s\S]*?>/g, function (t, t1) { | ||
} | ||
exports.layoutInsertAttr = layoutInsertAttr; | ||
function layoutClassPrependObject(object) { | ||
@@ -341,3 +370,2 @@ object = object.slice(1, -1).trim(); | ||
} | ||
exports.layoutClassPrepend = layoutClassPrepend; | ||
function eventsAttrWrap(layout) { | ||
@@ -353,3 +381,2 @@ const events = ['click', 'dblclick', 'mousedown', 'mouseenter', 'mouseleave', 'mouseup', 'touchstart', 'touchmove', 'touchend', 'keydown', 'keypress', 'keyup', 'contextmenu']; | ||
} | ||
exports.eventsAttrWrap = eventsAttrWrap; | ||
function teleportGlue(layout, formId) { | ||
@@ -367,3 +394,2 @@ if (typeof formId !== 'string') { | ||
} | ||
exports.teleportGlue = teleportGlue; | ||
function stylePrepend(style, prep = '') { | ||
@@ -421,3 +447,2 @@ if (prep === '') { | ||
} | ||
exports.stylePrepend = stylePrepend; | ||
function getMimeByPath(path) { | ||
@@ -443,3 +468,2 @@ var _a; | ||
} | ||
exports.getMimeByPath = getMimeByPath; | ||
function rand(min, max) { | ||
@@ -451,3 +475,2 @@ if (min > max) { | ||
} | ||
exports.rand = rand; | ||
exports.RANDOM_N = '0123456789'; | ||
@@ -479,3 +502,2 @@ exports.RANDOM_U = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; | ||
} | ||
exports.random = random; | ||
function getBoolean(param) { | ||
@@ -491,3 +513,2 @@ const t = typeof param; | ||
} | ||
exports.getBoolean = getBoolean; | ||
function getNumber(param) { | ||
@@ -499,3 +520,2 @@ if (typeof param === 'number') { | ||
} | ||
exports.getNumber = getNumber; | ||
function getArray(param) { | ||
@@ -521,7 +541,5 @@ if (typeof param !== 'string') { | ||
} | ||
exports.getArray = getArray; | ||
function escapeHTML(html) { | ||
return html.replace(/</g, '<').replace(/>/g, '>'); | ||
} | ||
exports.escapeHTML = escapeHTML; | ||
function rgb2hsl(rgb) { | ||
@@ -560,3 +578,2 @@ if (rgb.includes('(')) { | ||
} | ||
exports.rgb2hsl = rgb2hsl; | ||
function request(url, opt) { | ||
@@ -667,15 +684,11 @@ return new Promise(function (resove) { | ||
} | ||
exports.request = request; | ||
function fetch(url, init) { | ||
return loader.fetch(url, init); | ||
} | ||
exports.fetch = fetch; | ||
function get(url, opt) { | ||
return loader.get(url, opt); | ||
} | ||
exports.get = get; | ||
function post(url, data, opt) { | ||
return loader.post(url, data, opt); | ||
} | ||
exports.post = post; | ||
function getResponseJson(url, opt) { | ||
@@ -686,3 +699,2 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.getResponseJson = getResponseJson; | ||
function postResponseJson(url, data, opt) { | ||
@@ -693,23 +705,17 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
exports.postResponseJson = postResponseJson; | ||
function parseUrl(url) { | ||
return loader.parseUrl(url); | ||
} | ||
exports.parseUrl = parseUrl; | ||
function urlResolve(from, to) { | ||
return loader.urlResolve(from, to); | ||
} | ||
exports.urlResolve = urlResolve; | ||
function urlAtom(url) { | ||
return loader.urlAtom(url); | ||
} | ||
exports.urlAtom = urlAtom; | ||
function blob2Text(blob) { | ||
return loader.blob2Text(blob); | ||
} | ||
exports.blob2Text = blob2Text; | ||
function blob2DataUrl(blob) { | ||
return loader.blob2DataUrl(blob); | ||
} | ||
exports.blob2DataUrl = blob2DataUrl; | ||
function execCommand(ac) { | ||
@@ -721,3 +727,2 @@ if (!['copy', 'cut'].includes(ac)) { | ||
} | ||
exports.execCommand = execCommand; | ||
function compar(before, after) { | ||
@@ -750,3 +755,2 @@ const rtn = { | ||
} | ||
exports.compar = compar; | ||
function formatSecond(second) { | ||
@@ -759,3 +763,2 @@ const h = Math.floor(second / 3600); | ||
} | ||
exports.formatSecond = formatSecond; | ||
function formatTime(ts, tz) { | ||
@@ -777,3 +780,2 @@ const rtn = { | ||
} | ||
exports.formatTime = formatTime; | ||
function queryStringify(query) { | ||
@@ -787,3 +789,2 @@ return Object.entries(query).map(([k, v]) => { | ||
} | ||
exports.queryStringify = queryStringify; | ||
function queryParse(query) { | ||
@@ -812,2 +813,1 @@ const ret = {}; | ||
} | ||
exports.queryParse = queryParse; |
@@ -38,3 +38,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.get = exports.Zip = void 0; | ||
exports.Zip = void 0; | ||
exports.get = get; | ||
const jszip_1 = __importDefault(require("jszip")); | ||
@@ -388,2 +389,1 @@ const tool = __importStar(require("./tool")); | ||
} | ||
exports.get = get; |
{ | ||
"name": "clickgo", | ||
"version": "3.15.9", | ||
"version": "3.15.10", | ||
"description": "Background interface, software interface, mobile phone APP interface operation library.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -28,3 +28,3 @@ # ClickGo | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.15.9'}"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.15.10'}"></script> | ||
``` | ||
@@ -31,0 +31,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4568673
-0.1%33810
-0.05%