inl-ui 0.1.77 → 0.1.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.cjs +5 -6
- package/dist/components/index.js +5 -6
- package/dist/index.cjs +8 -66
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -66
- package/package.json +1 -1
|
@@ -549,7 +549,6 @@ function useMicroApp(appList) {
|
|
|
549
549
|
const handleRouteChange = core.useThrottleFn(async () => {
|
|
550
550
|
const microAppName = activeAppName.value;
|
|
551
551
|
let microAppDefine = appList.find(item => item.name === microAppName);
|
|
552
|
-
if (!microAppDefine && !microAppName.startsWith("mtip-")) return;
|
|
553
552
|
const domId = `microApp_${microAppName}`;
|
|
554
553
|
if (!appContainerList.value.some(item => item.id === domId)) {
|
|
555
554
|
appContainerList.value.push({
|
|
@@ -7253,13 +7252,13 @@ const PageContent = vue.defineComponent({
|
|
|
7253
7252
|
"alt": ""
|
|
7254
7253
|
}, null)]), [[vue.vShow, show]]);
|
|
7255
7254
|
};
|
|
7256
|
-
const childTypes = [];
|
|
7257
|
-
childTypes.push(vue.createVNode(vue.Fragment, null, [appDomList.value.map(item => vue.withDirectives(vue.createVNode("div", {
|
|
7255
|
+
const childTypes = vue.ref([]);
|
|
7256
|
+
childTypes.value.push(vue.createVNode(vue.Fragment, null, [appDomList.value.map(item => vue.withDirectives(vue.createVNode("div", {
|
|
7258
7257
|
"key": item.id,
|
|
7259
7258
|
"id": item.id
|
|
7260
7259
|
}, null), [[vue.vShow, item.name === activeAppName.value]]))]));
|
|
7261
|
-
childTypes.push(vue.createVNode(vue.Fragment, null, [iframeList.value.map(iframeRender)]));
|
|
7262
|
-
childTypes.push(vue.createVNode(vue.Fragment, null, [extraPageList.value.map(item => {
|
|
7260
|
+
childTypes.value.push(vue.createVNode(vue.Fragment, null, [iframeList.value.map(iframeRender)]));
|
|
7261
|
+
childTypes.value.push(vue.createVNode(vue.Fragment, null, [extraPageList.value.map(item => {
|
|
7263
7262
|
const extraPageShoe = getTabUniqueKey(item) === activeKey.value;
|
|
7264
7263
|
return vue.withDirectives(vue.createVNode("div", {
|
|
7265
7264
|
"key": item.key + item.refreshKey,
|
|
@@ -7276,7 +7275,7 @@ const PageContent = vue.defineComponent({
|
|
|
7276
7275
|
}, [props.showTabList && tabs, vue.createVNode("div", {
|
|
7277
7276
|
"class": ["page-container", containerCns],
|
|
7278
7277
|
"ref": props.pageContainerRef
|
|
7279
|
-
}, [childTypes])]);
|
|
7278
|
+
}, [childTypes.value])]);
|
|
7280
7279
|
};
|
|
7281
7280
|
}
|
|
7282
7281
|
});
|
package/dist/components/index.js
CHANGED
|
@@ -521,7 +521,6 @@ function useMicroApp(appList) {
|
|
|
521
521
|
const handleRouteChange = useThrottleFn(async () => {
|
|
522
522
|
const microAppName = activeAppName.value;
|
|
523
523
|
let microAppDefine = appList.find(item => item.name === microAppName);
|
|
524
|
-
if (!microAppDefine && !microAppName.startsWith("mtip-")) return;
|
|
525
524
|
const domId = `microApp_${microAppName}`;
|
|
526
525
|
if (!appContainerList.value.some(item => item.id === domId)) {
|
|
527
526
|
appContainerList.value.push({
|
|
@@ -7225,13 +7224,13 @@ const PageContent = defineComponent({
|
|
|
7225
7224
|
"alt": ""
|
|
7226
7225
|
}, null)]), [[vShow, show]]);
|
|
7227
7226
|
};
|
|
7228
|
-
const childTypes = [];
|
|
7229
|
-
childTypes.push(createVNode(Fragment, null, [appDomList.value.map(item => withDirectives(createVNode("div", {
|
|
7227
|
+
const childTypes = ref([]);
|
|
7228
|
+
childTypes.value.push(createVNode(Fragment, null, [appDomList.value.map(item => withDirectives(createVNode("div", {
|
|
7230
7229
|
"key": item.id,
|
|
7231
7230
|
"id": item.id
|
|
7232
7231
|
}, null), [[vShow, item.name === activeAppName.value]]))]));
|
|
7233
|
-
childTypes.push(createVNode(Fragment, null, [iframeList.value.map(iframeRender)]));
|
|
7234
|
-
childTypes.push(createVNode(Fragment, null, [extraPageList.value.map(item => {
|
|
7232
|
+
childTypes.value.push(createVNode(Fragment, null, [iframeList.value.map(iframeRender)]));
|
|
7233
|
+
childTypes.value.push(createVNode(Fragment, null, [extraPageList.value.map(item => {
|
|
7235
7234
|
const extraPageShoe = getTabUniqueKey(item) === activeKey.value;
|
|
7236
7235
|
return withDirectives(createVNode("div", {
|
|
7237
7236
|
"key": item.key + item.refreshKey,
|
|
@@ -7248,7 +7247,7 @@ const PageContent = defineComponent({
|
|
|
7248
7247
|
}, [props.showTabList && tabs, createVNode("div", {
|
|
7249
7248
|
"class": ["page-container", containerCns],
|
|
7250
7249
|
"ref": props.pageContainerRef
|
|
7251
|
-
}, [childTypes])]);
|
|
7250
|
+
}, [childTypes.value])]);
|
|
7252
7251
|
};
|
|
7253
7252
|
}
|
|
7254
7253
|
});
|
package/dist/index.cjs
CHANGED
|
@@ -43,7 +43,7 @@ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios$2);
|
|
|
43
43
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
44
44
|
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
45
45
|
|
|
46
|
-
var version = "0.1.
|
|
46
|
+
var version = "0.1.78";
|
|
47
47
|
|
|
48
48
|
const setTheme = theme => {
|
|
49
49
|
if (theme === "dark") {
|
|
@@ -940,8 +940,6 @@ const Events$1 = {
|
|
|
940
940
|
WEBRTC_ON_DATA_CHANNEL_MSG: "WEBRTC_ON_DATA_CHANNEL_MSG",
|
|
941
941
|
CAPTURE_STREAM_FAILED: "CAPTURE_STREAM_FAILED"
|
|
942
942
|
};
|
|
943
|
-
const VERSION$1 = "1.0.1";
|
|
944
|
-
const BUILD_DATE = "Sat Mar 30 2024 13:57:14 GMT+0800 (\u4E2D\u56FD\u6807\u51C6\u65F6\u95F4)";
|
|
945
943
|
function isFirefox() {
|
|
946
944
|
return window.navigator.userAgent.match("Firefox") !== null;
|
|
947
945
|
}
|
|
@@ -971,7 +969,6 @@ class Resolution {
|
|
|
971
969
|
}
|
|
972
970
|
}
|
|
973
971
|
let logDisabled_ = true;
|
|
974
|
-
let deprecationWarnings_ = true;
|
|
975
972
|
function extractVersion(uastring, expr, pos) {
|
|
976
973
|
const match = uastring.match(expr);
|
|
977
974
|
return match && match.length >= pos && parseInt(match[pos], 10);
|
|
@@ -1049,7 +1046,6 @@ function disableWarnings(bool) {
|
|
|
1049
1046
|
if (typeof bool !== "boolean") {
|
|
1050
1047
|
return new Error("Argument type: " + typeof bool + ". Please use a boolean.");
|
|
1051
1048
|
}
|
|
1052
|
-
deprecationWarnings_ = !bool;
|
|
1053
1049
|
return "adapter.js deprecation warnings " + (bool ? "disabled" : "enabled");
|
|
1054
1050
|
}
|
|
1055
1051
|
function log$1() {
|
|
@@ -1057,16 +1053,7 @@ function log$1() {
|
|
|
1057
1053
|
if (logDisabled_) {
|
|
1058
1054
|
return;
|
|
1059
1055
|
}
|
|
1060
|
-
if (typeof console !== "undefined" && typeof console.log === "function") {
|
|
1061
|
-
console.log.apply(console, arguments);
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
function deprecated(oldMethod, newMethod) {
|
|
1066
|
-
if (!deprecationWarnings_) {
|
|
1067
|
-
return;
|
|
1068
1056
|
}
|
|
1069
|
-
console.warn(oldMethod + " is deprecated, please use " + newMethod + " instead.");
|
|
1070
1057
|
}
|
|
1071
1058
|
function detectBrowser(window2) {
|
|
1072
1059
|
const result = {
|
|
@@ -1326,7 +1313,6 @@ function shimGetDisplayMedia$2(window2, getSourceId) {
|
|
|
1326
1313
|
return;
|
|
1327
1314
|
}
|
|
1328
1315
|
if (typeof getSourceId !== "function") {
|
|
1329
|
-
console.error("shimGetDisplayMedia: getSourceId argument is not a function");
|
|
1330
1316
|
return;
|
|
1331
1317
|
}
|
|
1332
1318
|
window2.navigator.mediaDevices.getDisplayMedia = function getDisplayMedia(constraints) {
|
|
@@ -1912,9 +1898,7 @@ function filterIceServers$1(iceServers, edgeVersion) {
|
|
|
1912
1898
|
return iceServers.filter(server => {
|
|
1913
1899
|
if (server && (server.urls || server.url)) {
|
|
1914
1900
|
let urls = server.urls || server.url;
|
|
1915
|
-
if (server.url && !server.urls)
|
|
1916
|
-
deprecated("RTCIceServer.url", "RTCIceServer.urls");
|
|
1917
|
-
}
|
|
1901
|
+
if (server.url && !server.urls) ;
|
|
1918
1902
|
const isString2 = typeof urls === "string";
|
|
1919
1903
|
if (isString2) {
|
|
1920
1904
|
urls = [urls];
|
|
@@ -2586,9 +2570,7 @@ function filterIceServers(iceServers, edgeVersion) {
|
|
|
2586
2570
|
return iceServers.filter(function (server) {
|
|
2587
2571
|
if (server && (server.urls || server.url)) {
|
|
2588
2572
|
var urls = server.urls || server.url;
|
|
2589
|
-
if (server.url && !server.urls)
|
|
2590
|
-
console.warn("RTCIceServer.url is deprecated! Use urls instead.");
|
|
2591
|
-
}
|
|
2573
|
+
if (server.url && !server.urls) ;
|
|
2592
2574
|
var isString2 = typeof urls === "string";
|
|
2593
2575
|
if (isString2) {
|
|
2594
2576
|
urls = [urls];
|
|
@@ -3447,7 +3429,6 @@ var rtcpeerconnection = function (window2, edgeVersion) {
|
|
|
3447
3429
|
}
|
|
3448
3430
|
pc.transceivers.forEach(function (transceiver) {
|
|
3449
3431
|
if (transceiver.iceTransport && transceiver.iceTransport.state === "new" && transceiver.iceTransport.getRemoteCandidates().length > 0) {
|
|
3450
|
-
console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification");
|
|
3451
3432
|
transceiver.iceTransport.addRemoteCandidate({});
|
|
3452
3433
|
}
|
|
3453
3434
|
});
|
|
@@ -4030,7 +4011,6 @@ function shimGetUserMedia$1(window2, browserDetails) {
|
|
|
4030
4011
|
const navigator2 = window2 && window2.navigator;
|
|
4031
4012
|
const MediaStreamTrack = window2 && window2.MediaStreamTrack;
|
|
4032
4013
|
navigator2.getUserMedia = function (constraints, onSuccess, onError) {
|
|
4033
|
-
deprecated("navigator.getUserMedia", "navigator.mediaDevices.getUserMedia");
|
|
4034
4014
|
navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
|
|
4035
4015
|
};
|
|
4036
4016
|
if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
|
|
@@ -4211,7 +4191,6 @@ function shimRemoveStream(window2) {
|
|
|
4211
4191
|
return;
|
|
4212
4192
|
}
|
|
4213
4193
|
window2.RTCPeerConnection.prototype.removeStream = function removeStream(stream) {
|
|
4214
|
-
deprecated("removeStream", "removeTrack");
|
|
4215
4194
|
this.getSenders().forEach(sender => {
|
|
4216
4195
|
if (sender.track && stream.getTracks().includes(sender.track)) {
|
|
4217
4196
|
this.removeTrack(sender);
|
|
@@ -4543,7 +4522,6 @@ function shimRTCIceServerUrls(window2) {
|
|
|
4543
4522
|
for (let i = 0; i < pcConfig.iceServers.length; i++) {
|
|
4544
4523
|
let server = pcConfig.iceServers[i];
|
|
4545
4524
|
if (!server.hasOwnProperty("urls") && server.hasOwnProperty("url")) {
|
|
4546
|
-
deprecated("RTCIceServer.url", "RTCIceServer.urls");
|
|
4547
4525
|
server = JSON.parse(JSON.stringify(server));
|
|
4548
4526
|
server.urls = server.url;
|
|
4549
4527
|
delete server.url;
|
|
@@ -4923,7 +4901,6 @@ function adapterFactory({
|
|
|
4923
4901
|
shimEdge: true,
|
|
4924
4902
|
shimSafari: true
|
|
4925
4903
|
}) {
|
|
4926
|
-
const logging2 = log$1;
|
|
4927
4904
|
const browserDetails = detectBrowser(window2);
|
|
4928
4905
|
const adapter = {
|
|
4929
4906
|
browserDetails,
|
|
@@ -4935,14 +4912,11 @@ function adapterFactory({
|
|
|
4935
4912
|
switch (browserDetails.browser) {
|
|
4936
4913
|
case "chrome":
|
|
4937
4914
|
if (!chromeShim || !shimPeerConnection$2 || !options.shimChrome) {
|
|
4938
|
-
logging2("Chrome shim is not included in this adapter release.");
|
|
4939
4915
|
return adapter;
|
|
4940
4916
|
}
|
|
4941
4917
|
if (browserDetails.version === null) {
|
|
4942
|
-
logging2("Chrome shim can not determine version, not shimming.");
|
|
4943
4918
|
return adapter;
|
|
4944
4919
|
}
|
|
4945
|
-
logging2("adapter.js shimming chrome.");
|
|
4946
4920
|
adapter.browserShim = chromeShim;
|
|
4947
4921
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4948
4922
|
shimGetUserMedia$3(window2, browserDetails);
|
|
@@ -4962,10 +4936,8 @@ function adapterFactory({
|
|
|
4962
4936
|
break;
|
|
4963
4937
|
case "firefox":
|
|
4964
4938
|
if (!firefoxShim || !shimPeerConnection || !options.shimFirefox) {
|
|
4965
|
-
logging2("Firefox shim is not included in this adapter release.");
|
|
4966
4939
|
return adapter;
|
|
4967
4940
|
}
|
|
4968
|
-
logging2("adapter.js shimming firefox.");
|
|
4969
4941
|
adapter.browserShim = firefoxShim;
|
|
4970
4942
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4971
4943
|
shimGetUserMedia$1(window2, browserDetails);
|
|
@@ -4986,10 +4958,8 @@ function adapterFactory({
|
|
|
4986
4958
|
break;
|
|
4987
4959
|
case "edge":
|
|
4988
4960
|
if (!edgeShim || !shimPeerConnection$1 || !options.shimEdge) {
|
|
4989
|
-
logging2("MS edge shim is not included in this adapter release.");
|
|
4990
4961
|
return adapter;
|
|
4991
4962
|
}
|
|
4992
|
-
logging2("adapter.js shimming edge.");
|
|
4993
4963
|
adapter.browserShim = edgeShim;
|
|
4994
4964
|
shimGetUserMedia$2(window2);
|
|
4995
4965
|
shimGetDisplayMedia$1(window2);
|
|
@@ -5000,10 +4970,8 @@ function adapterFactory({
|
|
|
5000
4970
|
break;
|
|
5001
4971
|
case "safari":
|
|
5002
4972
|
if (!safariShim || !options.shimSafari) {
|
|
5003
|
-
logging2("Safari shim is not included in this adapter release.");
|
|
5004
4973
|
return adapter;
|
|
5005
4974
|
}
|
|
5006
|
-
logging2("adapter.js shimming safari.");
|
|
5007
4975
|
adapter.browserShim = safariShim;
|
|
5008
4976
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
5009
4977
|
shimRTCIceServerUrls(window2);
|
|
@@ -5019,9 +4987,6 @@ function adapterFactory({
|
|
|
5019
4987
|
shimSendThrowTypeError(window2);
|
|
5020
4988
|
removeExtmapAllowMixed(window2, browserDetails);
|
|
5021
4989
|
break;
|
|
5022
|
-
default:
|
|
5023
|
-
logging2("Unsupported browser!");
|
|
5024
|
-
break;
|
|
5025
4990
|
}
|
|
5026
4991
|
return adapter;
|
|
5027
4992
|
}
|
|
@@ -6100,7 +6065,6 @@ validators$1.transitional = function transitional2(validator2, version, message)
|
|
|
6100
6065
|
}
|
|
6101
6066
|
if (version && !deprecatedWarnings[opt]) {
|
|
6102
6067
|
deprecatedWarnings[opt] = true;
|
|
6103
|
-
console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
|
|
6104
6068
|
}
|
|
6105
6069
|
return validator2 ? validator2(value, opt, opts) : true;
|
|
6106
6070
|
};
|
|
@@ -6632,8 +6596,6 @@ class RTCEndpoint extends Event$1 {
|
|
|
6632
6596
|
return this._localStream;
|
|
6633
6597
|
}
|
|
6634
6598
|
}
|
|
6635
|
-
console.log("build date:", BUILD_DATE);
|
|
6636
|
-
console.log("version:", VERSION$1);
|
|
6637
6599
|
const Events = Events$1;
|
|
6638
6600
|
const Endpoint = RTCEndpoint;
|
|
6639
6601
|
|
|
@@ -6741,7 +6703,6 @@ class WebRtcMt$1 {
|
|
|
6741
6703
|
if (res.code === 0) {
|
|
6742
6704
|
this.startPlay(plays);
|
|
6743
6705
|
} else {
|
|
6744
|
-
console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
|
|
6745
6706
|
setTimeout(() => {
|
|
6746
6707
|
this.rePlay();
|
|
6747
6708
|
}, 3 * 60 * 1e3);
|
|
@@ -6749,7 +6710,6 @@ class WebRtcMt$1 {
|
|
|
6749
6710
|
resolve(res);
|
|
6750
6711
|
});
|
|
6751
6712
|
}).catch(err => {
|
|
6752
|
-
console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
|
|
6753
6713
|
setTimeout(() => {
|
|
6754
6714
|
this.rePlay();
|
|
6755
6715
|
}, 3 * 60 * 1e3);
|
|
@@ -6760,11 +6720,6 @@ class WebRtcMt$1 {
|
|
|
6760
6720
|
switch (type) {
|
|
6761
6721
|
case "err":
|
|
6762
6722
|
throw new Error(text);
|
|
6763
|
-
case "warn":
|
|
6764
|
-
console.log(text);
|
|
6765
|
-
break;
|
|
6766
|
-
default:
|
|
6767
|
-
console.log(text);
|
|
6768
6723
|
}
|
|
6769
6724
|
}
|
|
6770
6725
|
// 停止播放0
|
|
@@ -6808,7 +6763,6 @@ class WebRtcMt$1 {
|
|
|
6808
6763
|
this.rePlay(videoElm);
|
|
6809
6764
|
});
|
|
6810
6765
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6811
|
-
console.log("webrtc:" + state);
|
|
6812
6766
|
if (state === "disconnected" || state === "failed") {
|
|
6813
6767
|
this.rePlay(videoElm);
|
|
6814
6768
|
}
|
|
@@ -6816,10 +6770,8 @@ class WebRtcMt$1 {
|
|
|
6816
6770
|
}
|
|
6817
6771
|
// 重播
|
|
6818
6772
|
rePlay(videoElm) {
|
|
6819
|
-
console.log("\u5E95\u90E8\u505C\u6B62\u64AD\u653E");
|
|
6820
6773
|
this.stopPlay();
|
|
6821
6774
|
setTimeout(() => {
|
|
6822
|
-
console.log("\u5E95\u90E8\u91CD\u64AD");
|
|
6823
6775
|
this.init(this.opt);
|
|
6824
6776
|
}, 5 * 1e3);
|
|
6825
6777
|
}
|
|
@@ -7659,7 +7611,6 @@ function useMicroApp(appList) {
|
|
|
7659
7611
|
const handleRouteChange = core.useThrottleFn(async () => {
|
|
7660
7612
|
const microAppName = activeAppName.value;
|
|
7661
7613
|
let microAppDefine = appList.find(item => item.name === microAppName);
|
|
7662
|
-
if (!microAppDefine && !microAppName.startsWith("mtip-")) return;
|
|
7663
7614
|
const domId = `microApp_${microAppName}`;
|
|
7664
7615
|
if (!appContainerList.value.some(item => item.id === domId)) {
|
|
7665
7616
|
appContainerList.value.push({
|
|
@@ -8456,13 +8407,13 @@ const PageContent = vue.defineComponent({
|
|
|
8456
8407
|
"alt": ""
|
|
8457
8408
|
}, null)]), [[vue.vShow, show]]);
|
|
8458
8409
|
};
|
|
8459
|
-
const childTypes = [];
|
|
8460
|
-
childTypes.push(vue.createVNode(vue.Fragment, null, [appDomList.value.map(item => vue.withDirectives(vue.createVNode("div", {
|
|
8410
|
+
const childTypes = vue.ref([]);
|
|
8411
|
+
childTypes.value.push(vue.createVNode(vue.Fragment, null, [appDomList.value.map(item => vue.withDirectives(vue.createVNode("div", {
|
|
8461
8412
|
"key": item.id,
|
|
8462
8413
|
"id": item.id
|
|
8463
8414
|
}, null), [[vue.vShow, item.name === activeAppName.value]]))]));
|
|
8464
|
-
childTypes.push(vue.createVNode(vue.Fragment, null, [iframeList.value.map(iframeRender)]));
|
|
8465
|
-
childTypes.push(vue.createVNode(vue.Fragment, null, [extraPageList.value.map(item => {
|
|
8415
|
+
childTypes.value.push(vue.createVNode(vue.Fragment, null, [iframeList.value.map(iframeRender)]));
|
|
8416
|
+
childTypes.value.push(vue.createVNode(vue.Fragment, null, [extraPageList.value.map(item => {
|
|
8466
8417
|
const extraPageShoe = getTabUniqueKey(item) === activeKey.value;
|
|
8467
8418
|
return vue.withDirectives(vue.createVNode("div", {
|
|
8468
8419
|
"key": item.key + item.refreshKey,
|
|
@@ -8479,7 +8430,7 @@ const PageContent = vue.defineComponent({
|
|
|
8479
8430
|
}, [props.showTabList && tabs, vue.createVNode("div", {
|
|
8480
8431
|
"class": ["page-container", containerCns],
|
|
8481
8432
|
"ref": props.pageContainerRef
|
|
8482
|
-
}, [childTypes])]);
|
|
8433
|
+
}, [childTypes.value])]);
|
|
8483
8434
|
};
|
|
8484
8435
|
}
|
|
8485
8436
|
});
|
|
@@ -11593,7 +11544,6 @@ const CloudVideo = vue.defineComponent({
|
|
|
11593
11544
|
initVideo();
|
|
11594
11545
|
});
|
|
11595
11546
|
vue.onBeforeUnmount(() => {
|
|
11596
|
-
console.log("\u9500\u6BC1");
|
|
11597
11547
|
player?.stop();
|
|
11598
11548
|
});
|
|
11599
11549
|
return () => vue.createVNode("div", {
|
|
@@ -11683,11 +11633,6 @@ class WebRtcMt {
|
|
|
11683
11633
|
switch (type) {
|
|
11684
11634
|
case "err":
|
|
11685
11635
|
throw new Error(text);
|
|
11686
|
-
case "warn":
|
|
11687
|
-
console.warn(text);
|
|
11688
|
-
break;
|
|
11689
|
-
default:
|
|
11690
|
-
console.info(text);
|
|
11691
11636
|
}
|
|
11692
11637
|
}
|
|
11693
11638
|
// 停止播放0
|
|
@@ -14157,7 +14102,6 @@ const SszComment = vue.defineComponent({
|
|
|
14157
14102
|
token,
|
|
14158
14103
|
corpUser
|
|
14159
14104
|
} = await getZxUser(props.zxIp);
|
|
14160
|
-
console.log("corpUser", corpUser);
|
|
14161
14105
|
currentUserId.value = corpUser.id;
|
|
14162
14106
|
mobile.setAxiosOption({
|
|
14163
14107
|
baseURL: props.baseUrl,
|
|
@@ -14175,7 +14119,6 @@ const SszComment = vue.defineComponent({
|
|
|
14175
14119
|
}
|
|
14176
14120
|
});
|
|
14177
14121
|
} catch (e) {
|
|
14178
|
-
console.log(e);
|
|
14179
14122
|
mobile.setAxiosOption({
|
|
14180
14123
|
baseURL: props.baseUrl,
|
|
14181
14124
|
headers: {
|
|
@@ -14832,7 +14775,6 @@ const QaContext = vue.defineComponent({
|
|
|
14832
14775
|
}) {
|
|
14833
14776
|
const containerRef = vue.ref();
|
|
14834
14777
|
const onAnswerRender = text => {
|
|
14835
|
-
console.log("%c%s", "color: #bd08b7;", text);
|
|
14836
14778
|
containerRef.value.scrollTo({
|
|
14837
14779
|
top: containerRef.value.scrollHeight,
|
|
14838
14780
|
behavior: "smooth"
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { Key } from 'ant-design-vue/lib/table/interface';
|
|
|
11
11
|
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
12
12
|
import * as _ant_design_icons_vue_lib_components_IconFont from '@ant-design/icons-vue/lib/components/IconFont';
|
|
13
13
|
|
|
14
|
-
var version = "0.1.
|
|
14
|
+
var version = "0.1.78";
|
|
15
15
|
|
|
16
16
|
declare const _default$p: {
|
|
17
17
|
set(theme: string): void;
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { XPopup, CommentBlock, setAxiosOption } from '@sszj-temp/mobile';
|
|
|
13
13
|
import { marked } from 'marked';
|
|
14
14
|
import '@sszj-temp/mobile/style.css';
|
|
15
15
|
|
|
16
|
-
var version = "0.1.
|
|
16
|
+
var version = "0.1.78";
|
|
17
17
|
|
|
18
18
|
const setTheme = theme => {
|
|
19
19
|
if (theme === "dark") {
|
|
@@ -910,8 +910,6 @@ const Events$1 = {
|
|
|
910
910
|
WEBRTC_ON_DATA_CHANNEL_MSG: "WEBRTC_ON_DATA_CHANNEL_MSG",
|
|
911
911
|
CAPTURE_STREAM_FAILED: "CAPTURE_STREAM_FAILED"
|
|
912
912
|
};
|
|
913
|
-
const VERSION$1 = "1.0.1";
|
|
914
|
-
const BUILD_DATE = "Sat Mar 30 2024 13:57:14 GMT+0800 (\u4E2D\u56FD\u6807\u51C6\u65F6\u95F4)";
|
|
915
913
|
function isFirefox() {
|
|
916
914
|
return window.navigator.userAgent.match("Firefox") !== null;
|
|
917
915
|
}
|
|
@@ -941,7 +939,6 @@ class Resolution {
|
|
|
941
939
|
}
|
|
942
940
|
}
|
|
943
941
|
let logDisabled_ = true;
|
|
944
|
-
let deprecationWarnings_ = true;
|
|
945
942
|
function extractVersion(uastring, expr, pos) {
|
|
946
943
|
const match = uastring.match(expr);
|
|
947
944
|
return match && match.length >= pos && parseInt(match[pos], 10);
|
|
@@ -1019,7 +1016,6 @@ function disableWarnings(bool) {
|
|
|
1019
1016
|
if (typeof bool !== "boolean") {
|
|
1020
1017
|
return new Error("Argument type: " + typeof bool + ". Please use a boolean.");
|
|
1021
1018
|
}
|
|
1022
|
-
deprecationWarnings_ = !bool;
|
|
1023
1019
|
return "adapter.js deprecation warnings " + (bool ? "disabled" : "enabled");
|
|
1024
1020
|
}
|
|
1025
1021
|
function log$1() {
|
|
@@ -1027,16 +1023,7 @@ function log$1() {
|
|
|
1027
1023
|
if (logDisabled_) {
|
|
1028
1024
|
return;
|
|
1029
1025
|
}
|
|
1030
|
-
if (typeof console !== "undefined" && typeof console.log === "function") {
|
|
1031
|
-
console.log.apply(console, arguments);
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
function deprecated(oldMethod, newMethod) {
|
|
1036
|
-
if (!deprecationWarnings_) {
|
|
1037
|
-
return;
|
|
1038
1026
|
}
|
|
1039
|
-
console.warn(oldMethod + " is deprecated, please use " + newMethod + " instead.");
|
|
1040
1027
|
}
|
|
1041
1028
|
function detectBrowser(window2) {
|
|
1042
1029
|
const result = {
|
|
@@ -1296,7 +1283,6 @@ function shimGetDisplayMedia$2(window2, getSourceId) {
|
|
|
1296
1283
|
return;
|
|
1297
1284
|
}
|
|
1298
1285
|
if (typeof getSourceId !== "function") {
|
|
1299
|
-
console.error("shimGetDisplayMedia: getSourceId argument is not a function");
|
|
1300
1286
|
return;
|
|
1301
1287
|
}
|
|
1302
1288
|
window2.navigator.mediaDevices.getDisplayMedia = function getDisplayMedia(constraints) {
|
|
@@ -1882,9 +1868,7 @@ function filterIceServers$1(iceServers, edgeVersion) {
|
|
|
1882
1868
|
return iceServers.filter(server => {
|
|
1883
1869
|
if (server && (server.urls || server.url)) {
|
|
1884
1870
|
let urls = server.urls || server.url;
|
|
1885
|
-
if (server.url && !server.urls)
|
|
1886
|
-
deprecated("RTCIceServer.url", "RTCIceServer.urls");
|
|
1887
|
-
}
|
|
1871
|
+
if (server.url && !server.urls) ;
|
|
1888
1872
|
const isString2 = typeof urls === "string";
|
|
1889
1873
|
if (isString2) {
|
|
1890
1874
|
urls = [urls];
|
|
@@ -2556,9 +2540,7 @@ function filterIceServers(iceServers, edgeVersion) {
|
|
|
2556
2540
|
return iceServers.filter(function (server) {
|
|
2557
2541
|
if (server && (server.urls || server.url)) {
|
|
2558
2542
|
var urls = server.urls || server.url;
|
|
2559
|
-
if (server.url && !server.urls)
|
|
2560
|
-
console.warn("RTCIceServer.url is deprecated! Use urls instead.");
|
|
2561
|
-
}
|
|
2543
|
+
if (server.url && !server.urls) ;
|
|
2562
2544
|
var isString2 = typeof urls === "string";
|
|
2563
2545
|
if (isString2) {
|
|
2564
2546
|
urls = [urls];
|
|
@@ -3417,7 +3399,6 @@ var rtcpeerconnection = function (window2, edgeVersion) {
|
|
|
3417
3399
|
}
|
|
3418
3400
|
pc.transceivers.forEach(function (transceiver) {
|
|
3419
3401
|
if (transceiver.iceTransport && transceiver.iceTransport.state === "new" && transceiver.iceTransport.getRemoteCandidates().length > 0) {
|
|
3420
|
-
console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification");
|
|
3421
3402
|
transceiver.iceTransport.addRemoteCandidate({});
|
|
3422
3403
|
}
|
|
3423
3404
|
});
|
|
@@ -4000,7 +3981,6 @@ function shimGetUserMedia$1(window2, browserDetails) {
|
|
|
4000
3981
|
const navigator2 = window2 && window2.navigator;
|
|
4001
3982
|
const MediaStreamTrack = window2 && window2.MediaStreamTrack;
|
|
4002
3983
|
navigator2.getUserMedia = function (constraints, onSuccess, onError) {
|
|
4003
|
-
deprecated("navigator.getUserMedia", "navigator.mediaDevices.getUserMedia");
|
|
4004
3984
|
navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
|
|
4005
3985
|
};
|
|
4006
3986
|
if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
|
|
@@ -4181,7 +4161,6 @@ function shimRemoveStream(window2) {
|
|
|
4181
4161
|
return;
|
|
4182
4162
|
}
|
|
4183
4163
|
window2.RTCPeerConnection.prototype.removeStream = function removeStream(stream) {
|
|
4184
|
-
deprecated("removeStream", "removeTrack");
|
|
4185
4164
|
this.getSenders().forEach(sender => {
|
|
4186
4165
|
if (sender.track && stream.getTracks().includes(sender.track)) {
|
|
4187
4166
|
this.removeTrack(sender);
|
|
@@ -4513,7 +4492,6 @@ function shimRTCIceServerUrls(window2) {
|
|
|
4513
4492
|
for (let i = 0; i < pcConfig.iceServers.length; i++) {
|
|
4514
4493
|
let server = pcConfig.iceServers[i];
|
|
4515
4494
|
if (!server.hasOwnProperty("urls") && server.hasOwnProperty("url")) {
|
|
4516
|
-
deprecated("RTCIceServer.url", "RTCIceServer.urls");
|
|
4517
4495
|
server = JSON.parse(JSON.stringify(server));
|
|
4518
4496
|
server.urls = server.url;
|
|
4519
4497
|
delete server.url;
|
|
@@ -4893,7 +4871,6 @@ function adapterFactory({
|
|
|
4893
4871
|
shimEdge: true,
|
|
4894
4872
|
shimSafari: true
|
|
4895
4873
|
}) {
|
|
4896
|
-
const logging2 = log$1;
|
|
4897
4874
|
const browserDetails = detectBrowser(window2);
|
|
4898
4875
|
const adapter = {
|
|
4899
4876
|
browserDetails,
|
|
@@ -4905,14 +4882,11 @@ function adapterFactory({
|
|
|
4905
4882
|
switch (browserDetails.browser) {
|
|
4906
4883
|
case "chrome":
|
|
4907
4884
|
if (!chromeShim || !shimPeerConnection$2 || !options.shimChrome) {
|
|
4908
|
-
logging2("Chrome shim is not included in this adapter release.");
|
|
4909
4885
|
return adapter;
|
|
4910
4886
|
}
|
|
4911
4887
|
if (browserDetails.version === null) {
|
|
4912
|
-
logging2("Chrome shim can not determine version, not shimming.");
|
|
4913
4888
|
return adapter;
|
|
4914
4889
|
}
|
|
4915
|
-
logging2("adapter.js shimming chrome.");
|
|
4916
4890
|
adapter.browserShim = chromeShim;
|
|
4917
4891
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4918
4892
|
shimGetUserMedia$3(window2, browserDetails);
|
|
@@ -4932,10 +4906,8 @@ function adapterFactory({
|
|
|
4932
4906
|
break;
|
|
4933
4907
|
case "firefox":
|
|
4934
4908
|
if (!firefoxShim || !shimPeerConnection || !options.shimFirefox) {
|
|
4935
|
-
logging2("Firefox shim is not included in this adapter release.");
|
|
4936
4909
|
return adapter;
|
|
4937
4910
|
}
|
|
4938
|
-
logging2("adapter.js shimming firefox.");
|
|
4939
4911
|
adapter.browserShim = firefoxShim;
|
|
4940
4912
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4941
4913
|
shimGetUserMedia$1(window2, browserDetails);
|
|
@@ -4956,10 +4928,8 @@ function adapterFactory({
|
|
|
4956
4928
|
break;
|
|
4957
4929
|
case "edge":
|
|
4958
4930
|
if (!edgeShim || !shimPeerConnection$1 || !options.shimEdge) {
|
|
4959
|
-
logging2("MS edge shim is not included in this adapter release.");
|
|
4960
4931
|
return adapter;
|
|
4961
4932
|
}
|
|
4962
|
-
logging2("adapter.js shimming edge.");
|
|
4963
4933
|
adapter.browserShim = edgeShim;
|
|
4964
4934
|
shimGetUserMedia$2(window2);
|
|
4965
4935
|
shimGetDisplayMedia$1(window2);
|
|
@@ -4970,10 +4940,8 @@ function adapterFactory({
|
|
|
4970
4940
|
break;
|
|
4971
4941
|
case "safari":
|
|
4972
4942
|
if (!safariShim || !options.shimSafari) {
|
|
4973
|
-
logging2("Safari shim is not included in this adapter release.");
|
|
4974
4943
|
return adapter;
|
|
4975
4944
|
}
|
|
4976
|
-
logging2("adapter.js shimming safari.");
|
|
4977
4945
|
adapter.browserShim = safariShim;
|
|
4978
4946
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4979
4947
|
shimRTCIceServerUrls(window2);
|
|
@@ -4989,9 +4957,6 @@ function adapterFactory({
|
|
|
4989
4957
|
shimSendThrowTypeError(window2);
|
|
4990
4958
|
removeExtmapAllowMixed(window2, browserDetails);
|
|
4991
4959
|
break;
|
|
4992
|
-
default:
|
|
4993
|
-
logging2("Unsupported browser!");
|
|
4994
|
-
break;
|
|
4995
4960
|
}
|
|
4996
4961
|
return adapter;
|
|
4997
4962
|
}
|
|
@@ -6070,7 +6035,6 @@ validators$1.transitional = function transitional2(validator2, version, message)
|
|
|
6070
6035
|
}
|
|
6071
6036
|
if (version && !deprecatedWarnings[opt]) {
|
|
6072
6037
|
deprecatedWarnings[opt] = true;
|
|
6073
|
-
console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
|
|
6074
6038
|
}
|
|
6075
6039
|
return validator2 ? validator2(value, opt, opts) : true;
|
|
6076
6040
|
};
|
|
@@ -6602,8 +6566,6 @@ class RTCEndpoint extends Event$1 {
|
|
|
6602
6566
|
return this._localStream;
|
|
6603
6567
|
}
|
|
6604
6568
|
}
|
|
6605
|
-
console.log("build date:", BUILD_DATE);
|
|
6606
|
-
console.log("version:", VERSION$1);
|
|
6607
6569
|
const Events = Events$1;
|
|
6608
6570
|
const Endpoint = RTCEndpoint;
|
|
6609
6571
|
|
|
@@ -6711,7 +6673,6 @@ class WebRtcMt$1 {
|
|
|
6711
6673
|
if (res.code === 0) {
|
|
6712
6674
|
this.startPlay(plays);
|
|
6713
6675
|
} else {
|
|
6714
|
-
console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
|
|
6715
6676
|
setTimeout(() => {
|
|
6716
6677
|
this.rePlay();
|
|
6717
6678
|
}, 3 * 60 * 1e3);
|
|
@@ -6719,7 +6680,6 @@ class WebRtcMt$1 {
|
|
|
6719
6680
|
resolve(res);
|
|
6720
6681
|
});
|
|
6721
6682
|
}).catch(err => {
|
|
6722
|
-
console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
|
|
6723
6683
|
setTimeout(() => {
|
|
6724
6684
|
this.rePlay();
|
|
6725
6685
|
}, 3 * 60 * 1e3);
|
|
@@ -6730,11 +6690,6 @@ class WebRtcMt$1 {
|
|
|
6730
6690
|
switch (type) {
|
|
6731
6691
|
case "err":
|
|
6732
6692
|
throw new Error(text);
|
|
6733
|
-
case "warn":
|
|
6734
|
-
console.log(text);
|
|
6735
|
-
break;
|
|
6736
|
-
default:
|
|
6737
|
-
console.log(text);
|
|
6738
6693
|
}
|
|
6739
6694
|
}
|
|
6740
6695
|
// 停止播放0
|
|
@@ -6778,7 +6733,6 @@ class WebRtcMt$1 {
|
|
|
6778
6733
|
this.rePlay(videoElm);
|
|
6779
6734
|
});
|
|
6780
6735
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6781
|
-
console.log("webrtc:" + state);
|
|
6782
6736
|
if (state === "disconnected" || state === "failed") {
|
|
6783
6737
|
this.rePlay(videoElm);
|
|
6784
6738
|
}
|
|
@@ -6786,10 +6740,8 @@ class WebRtcMt$1 {
|
|
|
6786
6740
|
}
|
|
6787
6741
|
// 重播
|
|
6788
6742
|
rePlay(videoElm) {
|
|
6789
|
-
console.log("\u5E95\u90E8\u505C\u6B62\u64AD\u653E");
|
|
6790
6743
|
this.stopPlay();
|
|
6791
6744
|
setTimeout(() => {
|
|
6792
|
-
console.log("\u5E95\u90E8\u91CD\u64AD");
|
|
6793
6745
|
this.init(this.opt);
|
|
6794
6746
|
}, 5 * 1e3);
|
|
6795
6747
|
}
|
|
@@ -7629,7 +7581,6 @@ function useMicroApp(appList) {
|
|
|
7629
7581
|
const handleRouteChange = useThrottleFn(async () => {
|
|
7630
7582
|
const microAppName = activeAppName.value;
|
|
7631
7583
|
let microAppDefine = appList.find(item => item.name === microAppName);
|
|
7632
|
-
if (!microAppDefine && !microAppName.startsWith("mtip-")) return;
|
|
7633
7584
|
const domId = `microApp_${microAppName}`;
|
|
7634
7585
|
if (!appContainerList.value.some(item => item.id === domId)) {
|
|
7635
7586
|
appContainerList.value.push({
|
|
@@ -8426,13 +8377,13 @@ const PageContent = defineComponent({
|
|
|
8426
8377
|
"alt": ""
|
|
8427
8378
|
}, null)]), [[vShow, show]]);
|
|
8428
8379
|
};
|
|
8429
|
-
const childTypes = [];
|
|
8430
|
-
childTypes.push(createVNode(Fragment, null, [appDomList.value.map(item => withDirectives(createVNode("div", {
|
|
8380
|
+
const childTypes = ref([]);
|
|
8381
|
+
childTypes.value.push(createVNode(Fragment, null, [appDomList.value.map(item => withDirectives(createVNode("div", {
|
|
8431
8382
|
"key": item.id,
|
|
8432
8383
|
"id": item.id
|
|
8433
8384
|
}, null), [[vShow, item.name === activeAppName.value]]))]));
|
|
8434
|
-
childTypes.push(createVNode(Fragment, null, [iframeList.value.map(iframeRender)]));
|
|
8435
|
-
childTypes.push(createVNode(Fragment, null, [extraPageList.value.map(item => {
|
|
8385
|
+
childTypes.value.push(createVNode(Fragment, null, [iframeList.value.map(iframeRender)]));
|
|
8386
|
+
childTypes.value.push(createVNode(Fragment, null, [extraPageList.value.map(item => {
|
|
8436
8387
|
const extraPageShoe = getTabUniqueKey(item) === activeKey.value;
|
|
8437
8388
|
return withDirectives(createVNode("div", {
|
|
8438
8389
|
"key": item.key + item.refreshKey,
|
|
@@ -8449,7 +8400,7 @@ const PageContent = defineComponent({
|
|
|
8449
8400
|
}, [props.showTabList && tabs, createVNode("div", {
|
|
8450
8401
|
"class": ["page-container", containerCns],
|
|
8451
8402
|
"ref": props.pageContainerRef
|
|
8452
|
-
}, [childTypes])]);
|
|
8403
|
+
}, [childTypes.value])]);
|
|
8453
8404
|
};
|
|
8454
8405
|
}
|
|
8455
8406
|
});
|
|
@@ -11563,7 +11514,6 @@ const CloudVideo = defineComponent({
|
|
|
11563
11514
|
initVideo();
|
|
11564
11515
|
});
|
|
11565
11516
|
onBeforeUnmount(() => {
|
|
11566
|
-
console.log("\u9500\u6BC1");
|
|
11567
11517
|
player?.stop();
|
|
11568
11518
|
});
|
|
11569
11519
|
return () => createVNode("div", {
|
|
@@ -11653,11 +11603,6 @@ class WebRtcMt {
|
|
|
11653
11603
|
switch (type) {
|
|
11654
11604
|
case "err":
|
|
11655
11605
|
throw new Error(text);
|
|
11656
|
-
case "warn":
|
|
11657
|
-
console.warn(text);
|
|
11658
|
-
break;
|
|
11659
|
-
default:
|
|
11660
|
-
console.info(text);
|
|
11661
11606
|
}
|
|
11662
11607
|
}
|
|
11663
11608
|
// 停止播放0
|
|
@@ -14127,7 +14072,6 @@ const SszComment = defineComponent({
|
|
|
14127
14072
|
token,
|
|
14128
14073
|
corpUser
|
|
14129
14074
|
} = await getZxUser(props.zxIp);
|
|
14130
|
-
console.log("corpUser", corpUser);
|
|
14131
14075
|
currentUserId.value = corpUser.id;
|
|
14132
14076
|
setAxiosOption({
|
|
14133
14077
|
baseURL: props.baseUrl,
|
|
@@ -14145,7 +14089,6 @@ const SszComment = defineComponent({
|
|
|
14145
14089
|
}
|
|
14146
14090
|
});
|
|
14147
14091
|
} catch (e) {
|
|
14148
|
-
console.log(e);
|
|
14149
14092
|
setAxiosOption({
|
|
14150
14093
|
baseURL: props.baseUrl,
|
|
14151
14094
|
headers: {
|
|
@@ -14802,7 +14745,6 @@ const QaContext = defineComponent({
|
|
|
14802
14745
|
}) {
|
|
14803
14746
|
const containerRef = ref();
|
|
14804
14747
|
const onAnswerRender = text => {
|
|
14805
|
-
console.log("%c%s", "color: #bd08b7;", text);
|
|
14806
14748
|
containerRef.value.scrollTo({
|
|
14807
14749
|
top: containerRef.value.scrollHeight,
|
|
14808
14750
|
behavior: "smooth"
|