优化页面
This commit is contained in:
@@ -1 +1 @@
|
||||
{"version":3,"file":"documentLink.js","sources":["TUIKit/utils/documentLink.ts"],"sourcesContent":["const Link = {\n product: {\n label: '产品文档',\n url: 'https://cloud.tencent.com/document/product/269/1499#.E7.BE.A4.E7.BB.84.E5.8A.9F.E8.83.BD',\n },\n customMessage: {\n label: '自定义消息',\n url: 'https://web.sdk.qcloud.com/im/doc/v3/zh-cn/SDK.html#createCustomMessage',\n },\n complaint: {\n label: '点此投诉',\n url: 'https://cloud.tencent.com/apply/p/xc3oaubi98g',\n },\n implement: {\n label: '集成TUICallKit',\n url: 'https://cloud.tencent.com/document/product/269/79861',\n },\n purchase: {\n label: '开通腾讯实时音视频服务',\n url: 'https://cloud.tencent.com/document/product/1640/79968',\n },\n};\nexport default Link;"],"names":[],"mappings":";AAAA,MAAM,OAAO;AAAA,EACX,SAAS;AAAA,IACP,OAAO;AAAA,IACP,KAAK;AAAA,EACP;AAAA,EACA,eAAe;AAAA,IACb,OAAO;AAAA,IACP,KAAK;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACT,OAAO;AAAA,IACP,KAAK;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACT,OAAO;AAAA,IACP,KAAK;AAAA,EACP;AAAA,EACA,UAAU;AAAA,IACR,OAAO;AAAA,IACP,KAAK;AAAA,EACP;AACF;;"}
|
||||
{"version":3,"file":"documentLink.js","sources":["TUIKit/utils/documentLink.ts"],"sourcesContent":["const Link = {\r\n product: {\r\n label: '产品文档',\r\n url: 'https://cloud.tencent.com/document/product/269/1499#.E7.BE.A4.E7.BB.84.E5.8A.9F.E8.83.BD',\r\n },\r\n customMessage: {\r\n label: '自定义消息',\r\n url: 'https://web.sdk.qcloud.com/im/doc/v3/zh-cn/SDK.html#createCustomMessage',\r\n },\r\n complaint: {\r\n label: '点此投诉',\r\n url: 'https://cloud.tencent.com/apply/p/xc3oaubi98g',\r\n },\r\n implement: {\r\n label: '集成TUICallKit',\r\n url: 'https://cloud.tencent.com/document/product/269/79861',\r\n },\r\n purchase: {\r\n label: '开通腾讯实时音视频服务',\r\n url: 'https://cloud.tencent.com/document/product/1640/79968',\r\n },\r\n};\r\nexport default Link;"],"names":[],"mappings":";AAAA,MAAM,OAAO;AAAA,EACX,SAAS;AAAA,IACP,OAAO;AAAA,IACP,KAAK;AAAA,EACP;AAAA,EACA,eAAe;AAAA,IACb,OAAO;AAAA,IACP,KAAK;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACT,OAAO;AAAA,IACP,KAAK;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACT,OAAO;AAAA,IACP,KAAK;AAAA,EACP;AAAA,EACA,UAAU;AAAA,IACR,OAAO;AAAA,IACP,KAAK;AAAA,EACP;AACF;;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"enableSampleTaskStatus.js","sources":["TUIKit/utils/enableSampleTaskStatus.ts"],"sourcesContent":["import { TUIStore, StoreName } from \"@tencentcloud/chat-uikit-engine\";\nexport function enableSampleTaskStatus(taskKey: string) {\n const tasks = TUIStore.getData(StoreName.APP, \"tasks\");\n if (taskKey in tasks && !tasks[taskKey]) {\n tasks[taskKey] = true;\n TUIStore.update(StoreName.APP, \"tasks\", tasks);\n }\n}\n"],"names":["TUIStore","StoreName"],"mappings":";;AACO,SAAS,uBAAuB,SAAiB;AACtD,QAAM,QAAQA,cAAAA,GAAS,QAAQC,cAAAA,EAAU,KAAK,OAAO;AACrD,MAAI,WAAW,SAAS,CAAC,MAAM,OAAO,GAAG;AACvC,UAAM,OAAO,IAAI;AACjBD,kBAAA,GAAS,OAAOC,cAAA,EAAU,KAAK,SAAS,KAAK;AAAA,EAC/C;AACF;;"}
|
||||
{"version":3,"file":"enableSampleTaskStatus.js","sources":["TUIKit/utils/enableSampleTaskStatus.ts"],"sourcesContent":["import { TUIStore, StoreName } from \"@tencentcloud/chat-uikit-engine\";\r\nexport function enableSampleTaskStatus(taskKey: string) {\r\n const tasks = TUIStore.getData(StoreName.APP, \"tasks\");\r\n if (taskKey in tasks && !tasks[taskKey]) {\r\n tasks[taskKey] = true;\r\n TUIStore.update(StoreName.APP, \"tasks\", tasks);\r\n }\r\n}\r\n"],"names":["TUIStore","StoreName"],"mappings":";;AACO,SAAS,uBAAuB,SAAiB;AACtD,QAAM,QAAQA,cAAAA,GAAS,QAAQC,cAAAA,EAAU,KAAK,OAAO;AACrD,MAAI,WAAW,SAAS,CAAC,MAAM,OAAO,GAAG;AACvC,UAAM,OAAO,IAAI;AACjBD,kBAAA,GAAS,OAAOC,cAAA,EAAU,KAAK,SAAS,KAAK;AAAA,EAC/C;AACF;;"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"env.js","sources":["TUIKit/utils/env.ts"],"sourcesContent":["import { getPlatform } from '@tencentcloud/universal-api';\n\ndeclare const uni: any;\n\nexport const isPC = getPlatform() === 'pc';\n\nexport const isH5 = getPlatform() === 'h5';\n\nexport const isWeChat = getPlatform() === 'wechat';\n\nexport const isApp = getPlatform() === 'app';\n\nexport const isUniFrameWork = typeof uni !== 'undefined';\n\n// H5, mini programs, and apps are all considered mobile.\n// If you need to unify the mobile UI style, you can directly use isMobile to control\nexport const isMobile = isH5 || isWeChat || isApp;\n"],"names":["getPlatform","uni"],"mappings":";;AAIa,MAAA,OAAOA,sBAAkB;AAEzB,MAAA,OAAOA,sBAAkB;AAEzB,MAAA,WAAWA,sBAAkB;AAE7B,MAAA,QAAQA,sBAAkB;AAE1B,MAAA,iBAAiB,OAAOC,cAAAA,UAAQ;AAIhC,MAAA,WAAW,QAAQ,YAAY;;;;;;;"}
|
||||
{"version":3,"file":"env.js","sources":["TUIKit/utils/env.ts"],"sourcesContent":["import { getPlatform } from '@tencentcloud/universal-api';\r\n\r\ndeclare const uni: any;\r\n\r\nexport const isPC = getPlatform() === 'pc';\r\n\r\nexport const isH5 = getPlatform() === 'h5';\r\n\r\nexport const isWeChat = getPlatform() === 'wechat';\r\n\r\nexport const isApp = getPlatform() === 'app';\r\n\r\nexport const isUniFrameWork = typeof uni !== 'undefined';\r\n\r\n// H5, mini programs, and apps are all considered mobile.\r\n// If you need to unify the mobile UI style, you can directly use isMobile to control\r\nexport const isMobile = isH5 || isWeChat || isApp;\r\n"],"names":["getPlatform","uni"],"mappings":";;AAIa,MAAA,OAAOA,sBAAkB;AAEzB,MAAA,OAAOA,sBAAkB;AAEzB,MAAA,WAAWA,sBAAkB;AAE7B,MAAA,QAAQA,sBAAkB;AAE1B,MAAA,iBAAiB,OAAOC,cAAAA,UAAQ;AAIhC,MAAA,WAAW,QAAQ,YAAY;;;;;;;"}
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"file":"type-check.js","sources":["TUIKit/utils/type-check.ts"],"sourcesContent":["const objectToString = Object.prototype.toString;\nconst toTypeString = (value: any) => objectToString.call(value);\n\nexport const { isArray } = Array;\nexport const isMap = (val: any) => toTypeString(val) === '[object Map]';\nexport const isSet = (val: any) => toTypeString(val) === '[object Set]';\nexport const isDate = (val: any) => val instanceof Date;\nexport const isFunction = (val: any) => typeof val === 'function';\nexport const isString = (val: any) => typeof val === 'string';\nexport const isSymbol = (val: any) => typeof val === 'symbol';\nexport const isObject = (val: any) => val !== null && typeof val === 'object';\nexport const isPromise = (val: any) =>\n isObject(val) && isFunction(val.then) && isFunction(val.catch);\n// Determine whether it is url\nexport const isUrl = (url: string) => {\n return /^(https?:\\/\\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\\.)+[a-zA-Z]+)(:\\d+)?(\\/.*)?(\\?.*)?(#.*)?$/.test(\n url,\n );\n};\n\n// Determine if it is a JSON string\nexport const isJSON = (str: string) => {\n // eslint-disable-next-line no-useless-escape\n if (typeof str === 'string') {\n try {\n const data = JSON.parse(str);\n if (data) {\n return true;\n }\n return false;\n } catch (error: any) {\n return false;\n }\n }\n return false;\n};\n\n// Determine if it is a JSON string\nexport const JSONToObject = (str: string) => {\n if (!str || !isJSON(str)) {\n return str;\n }\n return JSON.parse(str);\n};\n"],"names":[],"mappings":";AAOO,MAAM,aAAa,CAAC,QAAa,OAAO,QAAQ;AAGhD,MAAM,WAAW,CAAC,QAAa,QAAQ,QAAQ,OAAO,QAAQ;AAIxD,MAAA,QAAQ,CAAC,QAAgB;AACpC,SAAO,wFAAwF;AAAA,IAC7F;AAAA,EAAA;AAEJ;AAGa,MAAA,SAAS,CAAC,QAAgB;AAEjC,MAAA,OAAO,QAAQ,UAAU;AACvB,QAAA;AACI,YAAA,OAAO,KAAK,MAAM,GAAG;AAC3B,UAAI,MAAM;AACD,eAAA;AAAA,MACT;AACO,aAAA;AAAA,aACA,OAAY;AACZ,aAAA;AAAA,IACT;AAAA,EACF;AACO,SAAA;AACT;AAGa,MAAA,eAAe,CAAC,QAAgB;AAC3C,MAAI,CAAC,OAAO,CAAC,OAAO,GAAG,GAAG;AACjB,WAAA;AAAA,EACT;AACO,SAAA,KAAK,MAAM,GAAG;AACvB;;;;;"}
|
||||
{"version":3,"file":"type-check.js","sources":["TUIKit/utils/type-check.ts"],"sourcesContent":["const objectToString = Object.prototype.toString;\r\nconst toTypeString = (value: any) => objectToString.call(value);\r\n\r\nexport const { isArray } = Array;\r\nexport const isMap = (val: any) => toTypeString(val) === '[object Map]';\r\nexport const isSet = (val: any) => toTypeString(val) === '[object Set]';\r\nexport const isDate = (val: any) => val instanceof Date;\r\nexport const isFunction = (val: any) => typeof val === 'function';\r\nexport const isString = (val: any) => typeof val === 'string';\r\nexport const isSymbol = (val: any) => typeof val === 'symbol';\r\nexport const isObject = (val: any) => val !== null && typeof val === 'object';\r\nexport const isPromise = (val: any) =>\r\n isObject(val) && isFunction(val.then) && isFunction(val.catch);\r\n// Determine whether it is url\r\nexport const isUrl = (url: string) => {\r\n return /^(https?:\\/\\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\\.)+[a-zA-Z]+)(:\\d+)?(\\/.*)?(\\?.*)?(#.*)?$/.test(\r\n url,\r\n );\r\n};\r\n\r\n// Determine if it is a JSON string\r\nexport const isJSON = (str: string) => {\r\n // eslint-disable-next-line no-useless-escape\r\n if (typeof str === 'string') {\r\n try {\r\n const data = JSON.parse(str);\r\n if (data) {\r\n return true;\r\n }\r\n return false;\r\n } catch (error: any) {\r\n return false;\r\n }\r\n }\r\n return false;\r\n};\r\n\r\n// Determine if it is a JSON string\r\nexport const JSONToObject = (str: string) => {\r\n if (!str || !isJSON(str)) {\r\n return str;\r\n }\r\n return JSON.parse(str);\r\n};\r\n"],"names":[],"mappings":";AAOO,MAAM,aAAa,CAAC,QAAa,OAAO,QAAQ;AAGhD,MAAM,WAAW,CAAC,QAAa,QAAQ,QAAQ,OAAO,QAAQ;AAIxD,MAAA,QAAQ,CAAC,QAAgB;AACpC,SAAO,wFAAwF;AAAA,IAC7F;AAAA,EAAA;AAEJ;AAGa,MAAA,SAAS,CAAC,QAAgB;AAEjC,MAAA,OAAO,QAAQ,UAAU;AACvB,QAAA;AACI,YAAA,OAAO,KAAK,MAAM,GAAG;AAC3B,UAAI,MAAM;AACD,eAAA;AAAA,MACT;AACO,aAAA;AAAA,aACA,OAAY;AACZ,aAAA;AAAA,IACT;AAAA,EACF;AACO,SAAA;AACT;AAGa,MAAA,eAAe,CAAC,QAAgB;AAC3C,MAAI,CAAC,OAAO,CAAC,OAAO,GAAG,GAAG;AACjB,WAAA;AAAA,EACT;AACO,SAAA,KAAK,MAAM,GAAG;AACvB;;;;;"}
|
||||
Reference in New Issue
Block a user