优化页面

This commit is contained in:
pengxiaolong
2025-06-10 23:06:51 +08:00
parent 8c70c2c850
commit 3c2d7e5959
974 changed files with 353 additions and 87597 deletions

View File

@@ -1,25 +0,0 @@
"use strict";
const Link = {
product: {
label: "产品文档",
url: "https://cloud.tencent.com/document/product/269/1499#.E7.BE.A4.E7.BB.84.E5.8A.9F.E8.83.BD"
},
customMessage: {
label: "自定义消息",
url: "https://web.sdk.qcloud.com/im/doc/v3/zh-cn/SDK.html#createCustomMessage"
},
complaint: {
label: "点此投诉",
url: "https://cloud.tencent.com/apply/p/xc3oaubi98g"
},
implement: {
label: "集成TUICallKit",
url: "https://cloud.tencent.com/document/product/269/79861"
},
purchase: {
label: "开通腾讯实时音视频服务",
url: "https://cloud.tencent.com/document/product/1640/79968"
}
};
exports.Link = Link;
//# sourceMappingURL=../../../.sourcemap/mp-weixin/TUIKit/utils/documentLink.js.map

View File

@@ -1,11 +0,0 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
function enableSampleTaskStatus(taskKey) {
const tasks = common_vendor.Jt.getData(common_vendor.o.APP, "tasks");
if (taskKey in tasks && !tasks[taskKey]) {
tasks[taskKey] = true;
common_vendor.Jt.update(common_vendor.o.APP, "tasks", tasks);
}
}
exports.enableSampleTaskStatus = enableSampleTaskStatus;
//# sourceMappingURL=../../../.sourcemap/mp-weixin/TUIKit/utils/enableSampleTaskStatus.js.map

View File

@@ -1,15 +0,0 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const isPC = common_vendor.g() === "pc";
const isH5 = common_vendor.g() === "h5";
const isWeChat = common_vendor.g() === "wechat";
const isApp = common_vendor.g() === "app";
const isUniFrameWork = typeof common_vendor.index !== "undefined";
const isMobile = isH5 || isWeChat || isApp;
exports.isApp = isApp;
exports.isH5 = isH5;
exports.isMobile = isMobile;
exports.isPC = isPC;
exports.isUniFrameWork = isUniFrameWork;
exports.isWeChat = isWeChat;
//# sourceMappingURL=../../../.sourcemap/mp-weixin/TUIKit/utils/env.js.map

View File

@@ -1,2 +0,0 @@
"use strict";
//# sourceMappingURL=../../../.sourcemap/mp-weixin/TUIKit/utils/index.js.map

View File

@@ -1,105 +0,0 @@
"use strict";
const FUNC_ERROR_TEXT = "Expected a function";
function throttle(func, wait, options) {
let leading = true, trailing = true;
if (typeof func != "function") {
throw new TypeError(FUNC_ERROR_TEXT);
}
if (options && isObject(options)) {
leading = "leading" in options ? !!options.leading : leading;
trailing = "trailing" in options ? !!options.trailing : trailing;
}
return debounce(func, wait, {
leading,
maxWait: wait,
trailing
});
}
function debounce(func, wait, options) {
let lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
if (typeof func != "function") {
throw new TypeError(FUNC_ERROR_TEXT);
}
wait = wait || 0;
if (options && isObject(options)) {
leading = !!options.leading;
maxing = "maxWait" in options;
maxWait = maxing ? Math.max(options.maxWait || 0, wait) : maxWait;
trailing = "trailing" in options ? !!options.trailing : trailing;
}
function invokeFunc(time) {
const args = lastArgs, thisArg = lastThis;
lastArgs = lastThis = void 0;
lastInvokeTime = time;
result = func.apply(thisArg, args);
return result;
}
function leadingEdge(time) {
lastInvokeTime = time;
timerId = setTimeout(timerExpired, wait);
return leading ? invokeFunc(time) : result;
}
function remainingWait(time) {
const timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
return maxing ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
}
function shouldInvoke(time) {
const timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
}
function timerExpired() {
const time = Date.now();
if (shouldInvoke(time)) {
return trailingEdge(time);
}
timerId = setTimeout(timerExpired, remainingWait(time));
}
function trailingEdge(time) {
timerId = void 0;
if (trailing && lastArgs) {
return invokeFunc(time);
}
lastArgs = lastThis = void 0;
return result;
}
function cancel() {
if (timerId !== void 0) {
clearTimeout(timerId);
}
lastInvokeTime = 0;
lastArgs = lastCallTime = lastThis = timerId = void 0;
}
function flush() {
return timerId === void 0 ? result : trailingEdge(Date.now());
}
function debounced() {
const time = Date.now(), isInvoking = shouldInvoke(time);
lastArgs = arguments;
lastThis = this;
lastCallTime = time;
if (isInvoking) {
if (timerId === void 0) {
return leadingEdge(lastCallTime);
}
if (maxing) {
clearTimeout(timerId);
timerId = setTimeout(timerExpired, wait);
return invokeFunc(lastCallTime);
}
}
if (timerId === void 0) {
timerId = setTimeout(timerExpired, wait);
}
return result;
}
debounced.cancel = cancel;
debounced.flush = flush;
return debounced;
}
function isObject(value) {
const type = typeof value;
return value != null && (type == "object" || type == "function");
}
exports.debounce = debounce;
exports.throttle = throttle;
//# sourceMappingURL=../../../.sourcemap/mp-weixin/TUIKit/utils/lodash.js.map

View File

@@ -1,33 +0,0 @@
"use strict";
const isFunction = (val) => typeof val === "function";
const isObject = (val) => val !== null && typeof val === "object";
const isUrl = (url) => {
return /^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(
url
);
};
const isJSON = (str) => {
if (typeof str === "string") {
try {
const data = JSON.parse(str);
if (data) {
return true;
}
return false;
} catch (error) {
return false;
}
}
return false;
};
const JSONToObject = (str) => {
if (!str || !isJSON(str)) {
return str;
}
return JSON.parse(str);
};
exports.JSONToObject = JSONToObject;
exports.isFunction = isFunction;
exports.isObject = isObject;
exports.isUrl = isUrl;
//# sourceMappingURL=../../../.sourcemap/mp-weixin/TUIKit/utils/type-check.js.map