inl-ui 0.1.62 → 0.1.64
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/README.md +49 -49
- package/dist/components/index.cjs +26 -65
- package/dist/components/index.js +26 -65
- package/dist/hooks/index.cjs +2 -50
- package/dist/hooks/index.js +2 -50
- package/dist/iconfont.js +1 -1
- package/dist/index.cjs +27 -66
- package/dist/index.d.ts +1 -1
- package/dist/index.js +27 -66
- package/dist/style.css +1 -1
- package/dist/theme/index.js +70 -70
- package/dist/theme/scripts/dark-vars.js +21 -21
- package/dist/theme/scripts/default-vars.js +25 -25
- package/dist/theme/scripts/light-vars.js +22 -22
- package/dist/theme/style/color/bezierEasing.less +110 -110
- package/dist/theme/style/color/colorPalette.less +81 -81
- package/dist/theme/style/color/colors.less +162 -162
- package/dist/theme/style/color/tinyColor.less +1184 -1184
- package/dist/theme/style/compact.less +4 -4
- package/dist/theme/style/dark.less +4 -4
- package/dist/theme/style/default.less +4 -4
- package/dist/theme/style/index.less +2 -2
- package/dist/theme/style/index.tsx +2 -2
- package/dist/theme/style/themes/compact.less +295 -295
- package/dist/theme/style/themes/dark.less +790 -790
- package/dist/theme/style/themes/default.less +1067 -1067
- package/dist/theme/style/themes/index.less +7 -7
- package/dist/theme/style/themes/var-dark.less +343 -343
- package/dist/theme/style/themes/var-default.less +184 -184
- package/dist/theme/style/themes/variable.less +1122 -1122
- package/dist/theme/style/variable.less +4 -4
- package/dist/tplib/index.cjs +2 -50
- package/dist/tplib/index.js +2 -50
- package/dist/video/index.cjs +5 -58
- package/dist/video/index.js +5 -58
- package/dist/videoMobile/index.cjs +2 -50
- package/dist/videoMobile/index.js +2 -50
- package/package.json +87 -87
- package/.babelrc +0 -3
- package/.gitignore +0 -17
- package/conf/build.ts +0 -69
- package/conf/buildDocs.ts +0 -27
- package/conf/buildtp.ts +0 -54
- package/conf/cp1.js +0 -85
- package/conf/modules.ts +0 -44
- package/conf/rollup.config.ts +0 -131
- package/conf/utils.ts +0 -19
- package/global.d.ts +0 -2
- package/rollup.config.js +0 -2
- package/siteTp/index.html +0 -13
- package/siteTp/lay.tsx +0 -53
- package/siteTp/main.ts +0 -11
- package/siteTp/tsconfig.json +0 -19
- package/siteTp/vite.config.ts +0 -36
- package/src/assets/iconfont/index.js +0 -1
- package/src/assets/style/common/const.less +0 -48
- package/src/assets/style/common/font.less +0 -72
- package/src/assets/style/components/changeThemeSelect.less +0 -25
- package/src/assets/style/components/childLayout.less +0 -92
- package/src/assets/style/components/cloudVideo.less +0 -9
- package/src/assets/style/components/collapseTitle.less +0 -24
- package/src/assets/style/components/demo.less +0 -5
- package/src/assets/style/components/detailContainer.less +0 -7
- package/src/assets/style/components/headerMenu.less +0 -123
- package/src/assets/style/components/iconfonts.less +0 -56
- package/src/assets/style/components/index.less +0 -18
- package/src/assets/style/components/layout.less +0 -429
- package/src/assets/style/components/layoutSider.less +0 -68
- package/src/assets/style/components/llmChatBox.less +0 -309
- package/src/assets/style/components/login.less +0 -430
- package/src/assets/style/components/param-manager.less +0 -56
- package/src/assets/style/components/paramManagerV2.less +0 -58
- package/src/assets/style/components/peopleSelectCpn.less +0 -78
- package/src/assets/style/components/sszComment.less +0 -18
- package/src/assets/style/components/table.less +0 -10
- package/src/assets/style/components/video.less +0 -304
- package/src/assets/style/components/videoAlarm.less +0 -278
- package/src/assets/style/index.less +0 -14
- package/src/assets/style/reset.less +0 -38
- package/src/components/README.md +0 -251
- package/src/components/changeThemeSelect/README.md +0 -5
- package/src/components/changeThemeSelect/index.tsx +0 -71
- package/src/components/collapseTitle/README.md +0 -12
- package/src/components/collapseTitle/index.tsx +0 -71
- package/src/components/demo/README.md +0 -3
- package/src/components/demo/index.tsx +0 -17
- package/src/components/detailContainer/README.md +0 -36
- package/src/components/detailContainer/index.tsx +0 -212
- package/src/components/fontSelect/README.md +0 -33
- package/src/components/fontSelect/fonts.ts +0 -22
- package/src/components/fontSelect/index.tsx +0 -41
- package/src/components/gridForm/README.md +0 -34
- package/src/components/gridForm/helper.ts +0 -45
- package/src/components/gridForm/index.tsx +0 -98
- package/src/components/headerMenu/headerMenuItem.tsx +0 -50
- package/src/components/headerMenu/headerMenuTitle.tsx +0 -32
- package/src/components/headerMenu/index.tsx +0 -142
- package/src/components/iconFont/README.md +0 -17
- package/src/components/iconFont/icons.tsx +0 -110
- package/src/components/iconFont/index.tsx +0 -6
- package/src/components/importModal/README.md +0 -15
- package/src/components/importModal/index.tsx +0 -141
- package/src/components/index.ts +0 -64
- package/src/components/largeLanguageModel/answerStyle.ts +0 -36
- package/src/components/largeLanguageModel/chatBox.tsx +0 -54
- package/src/components/largeLanguageModel/components/answerBubble.tsx +0 -213
- package/src/components/largeLanguageModel/components/avatar.tsx +0 -32
- package/src/components/largeLanguageModel/components/input.tsx +0 -95
- package/src/components/largeLanguageModel/components/questionBubble.tsx +0 -30
- package/src/components/largeLanguageModel/components/speechRecognition.tsx +0 -127
- package/src/components/largeLanguageModel/device.ts +0 -21
- package/src/components/largeLanguageModel/index.ts +0 -10
- package/src/components/largeLanguageModel/layouts/bottom.tsx +0 -36
- package/src/components/largeLanguageModel/layouts/qaContext.tsx +0 -82
- package/src/components/largeLanguageModel/request.ts +0 -29
- package/src/components/largeLanguageModel/useQA.ts +0 -146
- package/src/components/layout/childLayout.tsx +0 -302
- package/src/components/layout/components/childHeader.tsx +0 -84
- package/src/components/layout/components/childHeaderDev.tsx +0 -143
- package/src/components/layout/components/childSideMenu.tsx +0 -119
- package/src/components/layout/components/header.tsx +0 -199
- package/src/components/layout/components/pageContent.tsx +0 -448
- package/src/components/layout/components/sideMenu.tsx +0 -101
- package/src/components/layout/components/tabList.tsx +0 -445
- package/src/components/layout/hooks/onAddExtraTabs.ts +0 -31
- package/src/components/layout/hooks/useActiveApp.ts +0 -14
- package/src/components/layout/hooks/useActiveMenu.ts +0 -86
- package/src/components/layout/hooks/useMicroApp.ts +0 -67
- package/src/components/layout/index.tsx +0 -277
- package/src/components/layout/table.tsx +0 -33
- package/src/components/layout/utils/menu.ts +0 -126
- package/src/components/login/README.md +0 -19
- package/src/components/login/box.tsx +0 -295
- package/src/components/login/index.tsx +0 -117
- package/src/components/login/leftImg.tsx +0 -23
- package/src/components/login/top-title.tsx +0 -17
- package/src/components/menuDetail/index.tsx +0 -116
- package/src/components/paramManager/README.md +0 -3
- package/src/components/paramManager/collapseContainer.tsx +0 -54
- package/src/components/paramManager/dynamicForm.tsx +0 -134
- package/src/components/paramManager/index.tsx +0 -141
- package/src/components/paramManager/proFormItem.tsx +0 -197
- package/src/components/paramManager/request.ts +0 -42
- package/src/components/paramManager/tabItem.tsx +0 -194
- package/src/components/paramManagerV2/README.md +0 -23
- package/src/components/paramManagerV2/fetch.ts +0 -42
- package/src/components/paramManagerV2/index.tsx +0 -124
- package/src/components/paramManagerV2/paramItem.tsx +0 -203
- package/src/components/paramManagerV2/tabLevel.tsx +0 -238
- package/src/components/peopleSelect/depBreadcrumb.tsx +0 -50
- package/src/components/peopleSelect/index.tsx +0 -300
- package/src/components/peopleSelect/searchPeopleInput.tsx +0 -69
- package/src/components/peopleSelect/utils.ts +0 -156
- package/src/components/queryFormContainer/README.md +0 -3
- package/src/components/queryFormContainer/index.tsx +0 -59
- package/src/components/sszComment/http.ts +0 -32
- package/src/components/sszComment/index.tsx +0 -147
- package/src/components/undeveloped/index.tsx +0 -17
- package/src/components/video/README.md +0 -53
- package/src/components/video/alarmVideo.tsx +0 -385
- package/src/components/video/cloudVideo.tsx +0 -98
- package/src/components/video/index.ts +0 -16
- package/src/components/video/indexMobile.ts +0 -2
- package/src/components/video/pollingPlay.tsx +0 -218
- package/src/components/video/tree.tsx +0 -342
- package/src/components/video/videoBox.tsx +0 -410
- package/src/components/video/videoBoxV2.tsx +0 -686
- package/src/components/video/videoPlayerV1.tsx +0 -133
- package/src/components/video/videoPlayerV2.tsx +0 -194
- package/src/config/index.ts +0 -7
- package/src/directives/autoScroll.ts +0 -87
- package/src/directives/focus.ts +0 -14
- package/src/directives/index.ts +0 -7
- package/src/hooks/README.md +0 -107
- package/src/hooks/index.ts +0 -18
- package/src/hooks/useCacheExclude.ts +0 -71
- package/src/hooks/useEvent.ts +0 -25
- package/src/hooks/useModalVisible.ts +0 -34
- package/src/hooks/useNow.ts +0 -25
- package/src/hooks/usePoolingReq.ts +0 -34
- package/src/hooks/useQiankunState.ts +0 -36
- package/src/hooks/useQiankunStateValue.ts +0 -29
- package/src/hooks/useRouteActive.ts +0 -12
- package/src/hooks/useTableList.ts +0 -87
- package/src/hooks/useTableSelec.ts +0 -65
- package/src/hooks/useZoomAdaptation.ts +0 -25
- package/src/hooks/videoV1.ts +0 -241
- package/src/hooks/videoV2.ts +0 -307
- package/src/index.ts +0 -27
- package/src/priviteUtils/className.ts +0 -16
- package/src/priviteUtils/getIconFonts.ts +0 -16
- package/src/priviteUtils/installComponent.ts +0 -24
- package/src/priviteUtils/route.ts +0 -49
- package/src/tp-lib/README.md +0 -240
- package/src/tp-lib/TP3D.md +0 -144
- package/src/tp-lib/findAlarmDeviceById.ts +0 -35
- package/src/tp-lib/getAlarmingCamera.ts +0 -132
- package/src/tp-lib/getDeviceDetail.ts +0 -467
- package/src/tp-lib/index.ts +0 -4
- package/src/tp-lib/package.json +0 -13
- package/src/tpInit/index.ts +0 -130
- package/src/tpInit/utils.ts +0 -1
- package/src/types/gl.d.ts +0 -24
- package/src/types/global.d.ts +0 -41
- package/src/types/ht/ht-widget.d.ts +0 -11327
- package/src/types/ht/ht.d.ts +0 -11410
- package/src/types/ht/index.d.ts +0 -4
- package/src/types/shims-vue.d.ts +0 -1
- package/src/utils/README.md +0 -175
- package/src/utils/ZLMRTCClient.js +0 -9075
- package/src/utils/apiInstance.ts +0 -128
- package/src/utils/base64.ts +0 -22
- package/src/utils/changeTheme.ts +0 -37
- package/src/utils/file.ts +0 -35
- package/src/utils/format.ts +0 -268
- package/src/utils/index.ts +0 -38
- package/src/utils/login.ts +0 -105
- package/src/utils/microApp.ts +0 -120
- package/src/utils/ramdom.ts +0 -43
- package/src/utils/setRem.ts +0 -16
- package/src/utils/upload.ts +0 -26
- package/theme/index.html +0 -14
- package/theme/src/Layouts/index.tsx +0 -14
- package/theme/src/assets/iconfont/iconfont.css +0 -771
- package/theme/src/assets/iconfont/iconfont.js +0 -1
- package/theme/src/assets/iconfont/iconfont.json +0 -1332
- package/theme/src/assets/iconfont/iconfont.ttf +0 -0
- package/theme/src/assets/iconfont/iconfont.woff +0 -0
- package/theme/src/assets/iconfont/iconfont.woff2 +0 -0
- package/theme/src/assets/img/1.png +0 -0
- package/theme/src/assets/img/loginBackground.png +0 -0
- package/theme/src/assets/img/loginPicBig.png +0 -0
- package/theme/src/assets/img/logo.png +0 -0
- package/theme/src/assets/img/logoBig.png +0 -0
- package/theme/src/assets/img/ms.png +0 -0
- package/theme/src/assets/img/platformLogo.png +0 -0
- package/theme/src/assets/img/selected-menu.svg +0 -18
- package/theme/src/assets/logo.png +0 -0
- package/theme/src/assets/styles/const.less +0 -1
- package/theme/src/assets/styles/constant/antd.less +0 -1
- package/theme/src/assets/styles/index.less +0 -22
- package/theme/src/assets/styles/layout.less +0 -99
- package/theme/src/assets/styles/login.less +0 -111
- package/theme/src/assets/styles/loginBox.less +0 -181
- package/theme/src/assets/styles/pages/modelManager/index.less +0 -3
- package/theme/src/assets/styles/reset.less +0 -36
- package/theme/src/assets/test.less +0 -4
- package/theme/src/assets/zh-cn.js +0 -134
- package/theme/src/main.ts +0 -14
- package/theme/src/router/index.ts +0 -15
- package/theme/src/views/index.tsx +0 -98
- package/theme/src/views/login.tsx +0 -25
- package/theme/theme/index.js +0 -70
- package/theme/theme/scripts/dark-vars.js +0 -21
- package/theme/theme/scripts/default-vars.js +0 -25
- package/theme/theme/scripts/light-vars.js +0 -22
- package/theme/theme/style/color/bezierEasing.less +0 -110
- package/theme/theme/style/color/colorPalette.less +0 -81
- package/theme/theme/style/color/colors.less +0 -162
- package/theme/theme/style/color/tinyColor.less +0 -1184
- package/theme/theme/style/compact.less +0 -4
- package/theme/theme/style/dark.less +0 -4
- package/theme/theme/style/default.less +0 -4
- package/theme/theme/style/index.less +0 -2
- package/theme/theme/style/index.tsx +0 -2
- package/theme/theme/style/themes/compact.less +0 -295
- package/theme/theme/style/themes/dark.less +0 -790
- package/theme/theme/style/themes/default.less +0 -1067
- package/theme/theme/style/themes/index.less +0 -7
- package/theme/theme/style/themes/var-dark.less +0 -343
- package/theme/theme/style/themes/var-default.less +0 -184
- package/theme/theme/style/themes/variable.less +0 -1122
- package/theme/theme/style/variable.less +0 -4
- package/theme/tsconfig.json +0 -27
- package/theme/vite.config.ts +0 -32
- package/tp-bundle/README.md +0 -240
- package/tp-bundle/TP3D.md +0 -144
- package/tp-bundle/index.c.js +0 -73
- package/tp-bundle/index.d.ts +0 -272
- package/tp-bundle/index.es.js +0 -73
- package/tp-bundle/index.iife.js +0 -73
- package/tp-bundle/package.json +0 -13
- package/tp-bundle.rar +0 -0
- package/tsconfig.json +0 -27
- package/yarn-error.log +0 -4499
- package/yarn.lock +0 -4073
package/README.md
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
# 工业PC ui库
|
|
2
|
-
|
|
3
|
-
前端通用库,包括组件、hooks、utils等。
|
|
4
|
-
|
|
5
|
-
### 运行
|
|
6
|
-
|
|
7
|
-
+ 开发模式 yarn dev
|
|
8
|
-
+ 生产打包 yarn build
|
|
9
|
-
+ 生成文档 yarn build:docs
|
|
10
|
-
+ 打包图扑工具 yarn buildtp
|
|
11
|
-
|
|
12
|
-
### 使用方法
|
|
13
|
-
|
|
14
|
-
```javascript
|
|
15
|
-
import inl from 'inl-ui';
|
|
16
|
-
import 'inl-ui/dist/style.css';
|
|
17
|
-
|
|
18
|
-
vue.use(inl)
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
### 激活主题
|
|
24
|
-
|
|
25
|
-
**vite.config.ts**
|
|
26
|
-
|
|
27
|
-
```javascript
|
|
28
|
-
const additionalData = require("inl-ui/dist/theme").default;
|
|
29
|
-
|
|
30
|
-
...
|
|
31
|
-
|
|
32
|
-
css: {
|
|
33
|
-
preprocessorOptions: {
|
|
34
|
-
less: {
|
|
35
|
-
javascriptEnabled: true,
|
|
36
|
-
additionalData,
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
### 文档链接
|
|
43
|
-
|
|
44
|
-
##### [组件文档](./src/components/README.md)
|
|
45
|
-
|
|
46
|
-
##### [hooks文档](./src/hooks/README.md)
|
|
47
|
-
|
|
48
|
-
##### [Utils文档](./src/utils/README.md)
|
|
49
|
-
|
|
1
|
+
# 工业PC ui库
|
|
2
|
+
|
|
3
|
+
前端通用库,包括组件、hooks、utils等。
|
|
4
|
+
|
|
5
|
+
### 运行
|
|
6
|
+
|
|
7
|
+
+ 开发模式 yarn dev
|
|
8
|
+
+ 生产打包 yarn build
|
|
9
|
+
+ 生成文档 yarn build:docs
|
|
10
|
+
+ 打包图扑工具 yarn buildtp
|
|
11
|
+
|
|
12
|
+
### 使用方法
|
|
13
|
+
|
|
14
|
+
```javascript
|
|
15
|
+
import inl from 'inl-ui';
|
|
16
|
+
import 'inl-ui/dist/style.css';
|
|
17
|
+
|
|
18
|
+
vue.use(inl)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### 激活主题
|
|
24
|
+
|
|
25
|
+
**vite.config.ts**
|
|
26
|
+
|
|
27
|
+
```javascript
|
|
28
|
+
const additionalData = require("inl-ui/dist/theme").default;
|
|
29
|
+
|
|
30
|
+
...
|
|
31
|
+
|
|
32
|
+
css: {
|
|
33
|
+
preprocessorOptions: {
|
|
34
|
+
less: {
|
|
35
|
+
javascriptEnabled: true,
|
|
36
|
+
additionalData,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### 文档链接
|
|
43
|
+
|
|
44
|
+
##### [组件文档](./src/components/README.md)
|
|
45
|
+
|
|
46
|
+
##### [hooks文档](./src/hooks/README.md)
|
|
47
|
+
|
|
48
|
+
##### [Utils文档](./src/utils/README.md)
|
|
49
|
+
|
|
@@ -599,8 +599,6 @@ const Events$1 = {
|
|
|
599
599
|
WEBRTC_ON_DATA_CHANNEL_MSG: "WEBRTC_ON_DATA_CHANNEL_MSG",
|
|
600
600
|
CAPTURE_STREAM_FAILED: "CAPTURE_STREAM_FAILED"
|
|
601
601
|
};
|
|
602
|
-
const VERSION$1 = "1.0.1";
|
|
603
|
-
const BUILD_DATE = "Sat Mar 30 2024 13:57:14 GMT+0800 (\u4E2D\u56FD\u6807\u51C6\u65F6\u95F4)";
|
|
604
602
|
function isFirefox() {
|
|
605
603
|
return window.navigator.userAgent.match("Firefox") !== null;
|
|
606
604
|
}
|
|
@@ -630,7 +628,6 @@ class Resolution {
|
|
|
630
628
|
}
|
|
631
629
|
}
|
|
632
630
|
let logDisabled_ = true;
|
|
633
|
-
let deprecationWarnings_ = true;
|
|
634
631
|
function extractVersion(uastring, expr, pos) {
|
|
635
632
|
const match = uastring.match(expr);
|
|
636
633
|
return match && match.length >= pos && parseInt(match[pos], 10);
|
|
@@ -708,7 +705,6 @@ function disableWarnings(bool) {
|
|
|
708
705
|
if (typeof bool !== "boolean") {
|
|
709
706
|
return new Error("Argument type: " + typeof bool + ". Please use a boolean.");
|
|
710
707
|
}
|
|
711
|
-
deprecationWarnings_ = !bool;
|
|
712
708
|
return "adapter.js deprecation warnings " + (bool ? "disabled" : "enabled");
|
|
713
709
|
}
|
|
714
710
|
function log$1() {
|
|
@@ -716,17 +712,8 @@ function log$1() {
|
|
|
716
712
|
if (logDisabled_) {
|
|
717
713
|
return;
|
|
718
714
|
}
|
|
719
|
-
if (typeof console !== "undefined" && typeof console.log === "function") {
|
|
720
|
-
console.log.apply(console, arguments);
|
|
721
|
-
}
|
|
722
715
|
}
|
|
723
716
|
}
|
|
724
|
-
function deprecated(oldMethod, newMethod) {
|
|
725
|
-
if (!deprecationWarnings_) {
|
|
726
|
-
return;
|
|
727
|
-
}
|
|
728
|
-
console.warn(oldMethod + " is deprecated, please use " + newMethod + " instead.");
|
|
729
|
-
}
|
|
730
717
|
function detectBrowser(window2) {
|
|
731
718
|
const result = {
|
|
732
719
|
browser: null,
|
|
@@ -985,7 +972,6 @@ function shimGetDisplayMedia$2(window2, getSourceId) {
|
|
|
985
972
|
return;
|
|
986
973
|
}
|
|
987
974
|
if (typeof getSourceId !== "function") {
|
|
988
|
-
console.error("shimGetDisplayMedia: getSourceId argument is not a function");
|
|
989
975
|
return;
|
|
990
976
|
}
|
|
991
977
|
window2.navigator.mediaDevices.getDisplayMedia = function getDisplayMedia(constraints) {
|
|
@@ -1571,9 +1557,7 @@ function filterIceServers$1(iceServers, edgeVersion) {
|
|
|
1571
1557
|
return iceServers.filter(server => {
|
|
1572
1558
|
if (server && (server.urls || server.url)) {
|
|
1573
1559
|
let urls = server.urls || server.url;
|
|
1574
|
-
if (server.url && !server.urls)
|
|
1575
|
-
deprecated("RTCIceServer.url", "RTCIceServer.urls");
|
|
1576
|
-
}
|
|
1560
|
+
if (server.url && !server.urls) ;
|
|
1577
1561
|
const isString2 = typeof urls === "string";
|
|
1578
1562
|
if (isString2) {
|
|
1579
1563
|
urls = [urls];
|
|
@@ -2245,9 +2229,7 @@ function filterIceServers(iceServers, edgeVersion) {
|
|
|
2245
2229
|
return iceServers.filter(function (server) {
|
|
2246
2230
|
if (server && (server.urls || server.url)) {
|
|
2247
2231
|
var urls = server.urls || server.url;
|
|
2248
|
-
if (server.url && !server.urls)
|
|
2249
|
-
console.warn("RTCIceServer.url is deprecated! Use urls instead.");
|
|
2250
|
-
}
|
|
2232
|
+
if (server.url && !server.urls) ;
|
|
2251
2233
|
var isString2 = typeof urls === "string";
|
|
2252
2234
|
if (isString2) {
|
|
2253
2235
|
urls = [urls];
|
|
@@ -3106,7 +3088,6 @@ var rtcpeerconnection = function (window2, edgeVersion) {
|
|
|
3106
3088
|
}
|
|
3107
3089
|
pc.transceivers.forEach(function (transceiver) {
|
|
3108
3090
|
if (transceiver.iceTransport && transceiver.iceTransport.state === "new" && transceiver.iceTransport.getRemoteCandidates().length > 0) {
|
|
3109
|
-
console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification");
|
|
3110
3091
|
transceiver.iceTransport.addRemoteCandidate({});
|
|
3111
3092
|
}
|
|
3112
3093
|
});
|
|
@@ -3689,7 +3670,6 @@ function shimGetUserMedia$1(window2, browserDetails) {
|
|
|
3689
3670
|
const navigator2 = window2 && window2.navigator;
|
|
3690
3671
|
const MediaStreamTrack = window2 && window2.MediaStreamTrack;
|
|
3691
3672
|
navigator2.getUserMedia = function (constraints, onSuccess, onError) {
|
|
3692
|
-
deprecated("navigator.getUserMedia", "navigator.mediaDevices.getUserMedia");
|
|
3693
3673
|
navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
|
|
3694
3674
|
};
|
|
3695
3675
|
if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
|
|
@@ -3870,7 +3850,6 @@ function shimRemoveStream(window2) {
|
|
|
3870
3850
|
return;
|
|
3871
3851
|
}
|
|
3872
3852
|
window2.RTCPeerConnection.prototype.removeStream = function removeStream(stream) {
|
|
3873
|
-
deprecated("removeStream", "removeTrack");
|
|
3874
3853
|
this.getSenders().forEach(sender => {
|
|
3875
3854
|
if (sender.track && stream.getTracks().includes(sender.track)) {
|
|
3876
3855
|
this.removeTrack(sender);
|
|
@@ -4202,7 +4181,6 @@ function shimRTCIceServerUrls(window2) {
|
|
|
4202
4181
|
for (let i = 0; i < pcConfig.iceServers.length; i++) {
|
|
4203
4182
|
let server = pcConfig.iceServers[i];
|
|
4204
4183
|
if (!server.hasOwnProperty("urls") && server.hasOwnProperty("url")) {
|
|
4205
|
-
deprecated("RTCIceServer.url", "RTCIceServer.urls");
|
|
4206
4184
|
server = JSON.parse(JSON.stringify(server));
|
|
4207
4185
|
server.urls = server.url;
|
|
4208
4186
|
delete server.url;
|
|
@@ -4582,7 +4560,6 @@ function adapterFactory({
|
|
|
4582
4560
|
shimEdge: true,
|
|
4583
4561
|
shimSafari: true
|
|
4584
4562
|
}) {
|
|
4585
|
-
const logging2 = log$1;
|
|
4586
4563
|
const browserDetails = detectBrowser(window2);
|
|
4587
4564
|
const adapter = {
|
|
4588
4565
|
browserDetails,
|
|
@@ -4594,14 +4571,11 @@ function adapterFactory({
|
|
|
4594
4571
|
switch (browserDetails.browser) {
|
|
4595
4572
|
case "chrome":
|
|
4596
4573
|
if (!chromeShim || !shimPeerConnection$2 || !options.shimChrome) {
|
|
4597
|
-
logging2("Chrome shim is not included in this adapter release.");
|
|
4598
4574
|
return adapter;
|
|
4599
4575
|
}
|
|
4600
4576
|
if (browserDetails.version === null) {
|
|
4601
|
-
logging2("Chrome shim can not determine version, not shimming.");
|
|
4602
4577
|
return adapter;
|
|
4603
4578
|
}
|
|
4604
|
-
logging2("adapter.js shimming chrome.");
|
|
4605
4579
|
adapter.browserShim = chromeShim;
|
|
4606
4580
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4607
4581
|
shimGetUserMedia$3(window2, browserDetails);
|
|
@@ -4621,10 +4595,8 @@ function adapterFactory({
|
|
|
4621
4595
|
break;
|
|
4622
4596
|
case "firefox":
|
|
4623
4597
|
if (!firefoxShim || !shimPeerConnection || !options.shimFirefox) {
|
|
4624
|
-
logging2("Firefox shim is not included in this adapter release.");
|
|
4625
4598
|
return adapter;
|
|
4626
4599
|
}
|
|
4627
|
-
logging2("adapter.js shimming firefox.");
|
|
4628
4600
|
adapter.browserShim = firefoxShim;
|
|
4629
4601
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4630
4602
|
shimGetUserMedia$1(window2, browserDetails);
|
|
@@ -4645,10 +4617,8 @@ function adapterFactory({
|
|
|
4645
4617
|
break;
|
|
4646
4618
|
case "edge":
|
|
4647
4619
|
if (!edgeShim || !shimPeerConnection$1 || !options.shimEdge) {
|
|
4648
|
-
logging2("MS edge shim is not included in this adapter release.");
|
|
4649
4620
|
return adapter;
|
|
4650
4621
|
}
|
|
4651
|
-
logging2("adapter.js shimming edge.");
|
|
4652
4622
|
adapter.browserShim = edgeShim;
|
|
4653
4623
|
shimGetUserMedia$2(window2);
|
|
4654
4624
|
shimGetDisplayMedia$1(window2);
|
|
@@ -4659,10 +4629,8 @@ function adapterFactory({
|
|
|
4659
4629
|
break;
|
|
4660
4630
|
case "safari":
|
|
4661
4631
|
if (!safariShim || !options.shimSafari) {
|
|
4662
|
-
logging2("Safari shim is not included in this adapter release.");
|
|
4663
4632
|
return adapter;
|
|
4664
4633
|
}
|
|
4665
|
-
logging2("adapter.js shimming safari.");
|
|
4666
4634
|
adapter.browserShim = safariShim;
|
|
4667
4635
|
shimAddIceCandidateNullOrEmpty(window2, browserDetails);
|
|
4668
4636
|
shimRTCIceServerUrls(window2);
|
|
@@ -4678,9 +4646,6 @@ function adapterFactory({
|
|
|
4678
4646
|
shimSendThrowTypeError(window2);
|
|
4679
4647
|
removeExtmapAllowMixed(window2, browserDetails);
|
|
4680
4648
|
break;
|
|
4681
|
-
default:
|
|
4682
|
-
logging2("Unsupported browser!");
|
|
4683
|
-
break;
|
|
4684
4649
|
}
|
|
4685
4650
|
return adapter;
|
|
4686
4651
|
}
|
|
@@ -5759,7 +5724,6 @@ validators$1.transitional = function transitional2(validator2, version, message)
|
|
|
5759
5724
|
}
|
|
5760
5725
|
if (version && !deprecatedWarnings[opt]) {
|
|
5761
5726
|
deprecatedWarnings[opt] = true;
|
|
5762
|
-
console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
|
|
5763
5727
|
}
|
|
5764
5728
|
return validator2 ? validator2(value, opt, opts) : true;
|
|
5765
5729
|
};
|
|
@@ -6291,8 +6255,6 @@ class RTCEndpoint extends Event$1 {
|
|
|
6291
6255
|
return this._localStream;
|
|
6292
6256
|
}
|
|
6293
6257
|
}
|
|
6294
|
-
console.log("build date:", BUILD_DATE);
|
|
6295
|
-
console.log("version:", VERSION$1);
|
|
6296
6258
|
const Events = Events$1;
|
|
6297
6259
|
const Endpoint = RTCEndpoint;
|
|
6298
6260
|
|
|
@@ -6360,7 +6322,6 @@ class WebRtcMt$1 {
|
|
|
6360
6322
|
if (res.code === 0) {
|
|
6361
6323
|
this.startPlay(plays);
|
|
6362
6324
|
} else {
|
|
6363
|
-
console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
|
|
6364
6325
|
setTimeout(() => {
|
|
6365
6326
|
this.rePlay();
|
|
6366
6327
|
}, 3 * 60 * 1e3);
|
|
@@ -6368,7 +6329,6 @@ class WebRtcMt$1 {
|
|
|
6368
6329
|
resolve(res);
|
|
6369
6330
|
});
|
|
6370
6331
|
}).catch(err => {
|
|
6371
|
-
console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
|
|
6372
6332
|
setTimeout(() => {
|
|
6373
6333
|
this.rePlay();
|
|
6374
6334
|
}, 3 * 60 * 1e3);
|
|
@@ -6379,11 +6339,6 @@ class WebRtcMt$1 {
|
|
|
6379
6339
|
switch (type) {
|
|
6380
6340
|
case "err":
|
|
6381
6341
|
throw new Error(text);
|
|
6382
|
-
case "warn":
|
|
6383
|
-
console.log(text);
|
|
6384
|
-
break;
|
|
6385
|
-
default:
|
|
6386
|
-
console.log(text);
|
|
6387
6342
|
}
|
|
6388
6343
|
}
|
|
6389
6344
|
// 停止播放0
|
|
@@ -6427,7 +6382,6 @@ class WebRtcMt$1 {
|
|
|
6427
6382
|
this.rePlay(videoElm);
|
|
6428
6383
|
});
|
|
6429
6384
|
player.on(Events.WEBRTC_ON_CONNECTION_STATE_CHANGE, state => {
|
|
6430
|
-
console.log("webrtc:" + state);
|
|
6431
6385
|
if (state === "disconnected" || state === "failed") {
|
|
6432
6386
|
this.rePlay(videoElm);
|
|
6433
6387
|
}
|
|
@@ -6435,10 +6389,8 @@ class WebRtcMt$1 {
|
|
|
6435
6389
|
}
|
|
6436
6390
|
// 重播
|
|
6437
6391
|
rePlay(videoElm) {
|
|
6438
|
-
console.log("\u5E95\u90E8\u505C\u6B62\u64AD\u653E");
|
|
6439
6392
|
this.stopPlay();
|
|
6440
6393
|
setTimeout(() => {
|
|
6441
|
-
console.log("\u5E95\u90E8\u91CD\u64AD");
|
|
6442
6394
|
this.init(this.opt);
|
|
6443
6395
|
}, 5 * 1e3);
|
|
6444
6396
|
}
|
|
@@ -7094,8 +7046,21 @@ const PageContent = vue.defineComponent({
|
|
|
7094
7046
|
}
|
|
7095
7047
|
};
|
|
7096
7048
|
const activeMenu = useActiveMenu(() => props.menu, props.extraPages, false, false, extraIframeList);
|
|
7097
|
-
vue.watch(activeMenu, val => {
|
|
7049
|
+
vue.watch(activeMenu, (val, oldVal) => {
|
|
7098
7050
|
handleMenuChange(val);
|
|
7051
|
+
function postIframeActive(id, active) {
|
|
7052
|
+
const iframeEl = document.querySelector(`#iframe${id}`);
|
|
7053
|
+
if (iframeEl) {
|
|
7054
|
+
iframeEl.contentWindow.postMessage({
|
|
7055
|
+
type: "activeChange",
|
|
7056
|
+
data: active
|
|
7057
|
+
}, "*");
|
|
7058
|
+
}
|
|
7059
|
+
}
|
|
7060
|
+
vue.nextTick(() => {
|
|
7061
|
+
if (val && val.mode === 2) postIframeActive(val.id, true);
|
|
7062
|
+
if (oldVal && oldVal.mode === 2) postIframeActive(oldVal.id, false);
|
|
7063
|
+
});
|
|
7099
7064
|
}, {
|
|
7100
7065
|
immediate: true
|
|
7101
7066
|
});
|
|
@@ -7247,7 +7212,7 @@ const PageContent = vue.defineComponent({
|
|
|
7247
7212
|
return vue.createVNode("iframe", {
|
|
7248
7213
|
"class": "menu-iframe",
|
|
7249
7214
|
"key": item.id + item.refreshKey,
|
|
7250
|
-
"id": item.id,
|
|
7215
|
+
"id": "iframe" + item.id,
|
|
7251
7216
|
"style": {
|
|
7252
7217
|
zIndex: show ? "" : "-100"
|
|
7253
7218
|
},
|
|
@@ -7589,6 +7554,7 @@ var topTitle = vue.defineComponent({
|
|
|
7589
7554
|
"class": "topTitle"
|
|
7590
7555
|
}, [vue.createVNode("img", {
|
|
7591
7556
|
"src": prop.corpLogo,
|
|
7557
|
+
"draggable": false,
|
|
7592
7558
|
"alt": ""
|
|
7593
7559
|
}, null)]);
|
|
7594
7560
|
}
|
|
@@ -7931,7 +7897,7 @@ var loginBox = vue.defineComponent({
|
|
|
7931
7897
|
}, [vue.createVNode("div", null, [renderTitleBox(), renderForm(), imgModel(), vue.createVNode("div", {
|
|
7932
7898
|
"style": {
|
|
7933
7899
|
textAlign: "center",
|
|
7934
|
-
margin: "
|
|
7900
|
+
margin: "32px 0"
|
|
7935
7901
|
}
|
|
7936
7902
|
}, [status === "system" ? vue.createVNode("img", {
|
|
7937
7903
|
"src": ms,
|
|
@@ -8050,6 +8016,7 @@ const Login = vue.defineComponent({
|
|
|
8050
8016
|
"class": "left"
|
|
8051
8017
|
}, [vue.createVNode("img", {
|
|
8052
8018
|
"class": "left_img",
|
|
8019
|
+
"draggable": false,
|
|
8053
8020
|
"src": prop.loginMainImg,
|
|
8054
8021
|
"alt": ""
|
|
8055
8022
|
}, null)]) : vue.createVNode(leftImg, null, null), vue.createVNode(loginBox, {
|
|
@@ -9506,7 +9473,7 @@ var Tree = vue.defineComponent({
|
|
|
9506
9473
|
"onExpand": onExpand,
|
|
9507
9474
|
"checkable": props.checkable,
|
|
9508
9475
|
"fieldNames": {
|
|
9509
|
-
key: "
|
|
9476
|
+
key: "uuid"
|
|
9510
9477
|
}
|
|
9511
9478
|
}, {
|
|
9512
9479
|
title: item => {
|
|
@@ -9814,6 +9781,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9814
9781
|
"class": "changeCameraDialog"
|
|
9815
9782
|
}, [showChangeDialog.value ? vue.createVNode(Tree, {
|
|
9816
9783
|
"checkable": true,
|
|
9784
|
+
"checkedKeys": [camera.value.uuid],
|
|
9817
9785
|
"onCheckChange": checkChange
|
|
9818
9786
|
}, null) : ""])]
|
|
9819
9787
|
});
|
|
@@ -9872,7 +9840,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9872
9840
|
"class": "tool",
|
|
9873
9841
|
"onClick": () => {}
|
|
9874
9842
|
}, [_prop.btns.map(btn => {
|
|
9875
|
-
if (!(camera.value?.brandTypeCode === "MP4" && btn !== "close" && btn !== "fullScreen" && btn !== "look")) {
|
|
9843
|
+
if (!(camera.value?.brandTypeCode === "MP4" && btn !== "close" && btn !== "fullScreen" && btn !== "look" && btn !== "change")) {
|
|
9876
9844
|
switch (btn) {
|
|
9877
9845
|
case "change":
|
|
9878
9846
|
return vue.createVNode("img", {
|
|
@@ -10514,7 +10482,6 @@ const CloudVideo = vue.defineComponent({
|
|
|
10514
10482
|
initVideo();
|
|
10515
10483
|
});
|
|
10516
10484
|
vue.onBeforeUnmount(() => {
|
|
10517
|
-
console.log("\u9500\u6BC1");
|
|
10518
10485
|
player?.stop();
|
|
10519
10486
|
});
|
|
10520
10487
|
return () => vue.createVNode("div", {
|
|
@@ -10604,11 +10571,6 @@ class WebRtcMt {
|
|
|
10604
10571
|
switch (type) {
|
|
10605
10572
|
case "err":
|
|
10606
10573
|
throw new Error(text);
|
|
10607
|
-
case "warn":
|
|
10608
|
-
console.warn(text);
|
|
10609
|
-
break;
|
|
10610
|
-
default:
|
|
10611
|
-
console.info(text);
|
|
10612
10574
|
}
|
|
10613
10575
|
}
|
|
10614
10576
|
// 停止播放0
|
|
@@ -12378,7 +12340,9 @@ async function getParamsDefine({
|
|
|
12378
12340
|
const filterList = (data.paramDefineValueVoList ?? []).filter(item => item.paramDefine && item.paramDefine.valid && item.paramDefine.showed).map(item => ({
|
|
12379
12341
|
...item,
|
|
12380
12342
|
paramDefineValue: item.paramDefineValue || {
|
|
12381
|
-
value: null
|
|
12343
|
+
value: null,
|
|
12344
|
+
defineId: item.paramDefine.id,
|
|
12345
|
+
defineCode: item.paramDefine.code
|
|
12382
12346
|
}
|
|
12383
12347
|
}));
|
|
12384
12348
|
const res = [];
|
|
@@ -13050,7 +13014,6 @@ const SszComment = vue.defineComponent({
|
|
|
13050
13014
|
token,
|
|
13051
13015
|
corpUser
|
|
13052
13016
|
} = await getZxUser(props.zxIp);
|
|
13053
|
-
console.log("corpUser", corpUser);
|
|
13054
13017
|
currentUserId.value = corpUser.id;
|
|
13055
13018
|
mobile.setAxiosOption({
|
|
13056
13019
|
baseURL: props.baseUrl,
|
|
@@ -13068,7 +13031,6 @@ const SszComment = vue.defineComponent({
|
|
|
13068
13031
|
}
|
|
13069
13032
|
});
|
|
13070
13033
|
} catch (e) {
|
|
13071
|
-
console.log(e);
|
|
13072
13034
|
mobile.setAxiosOption({
|
|
13073
13035
|
baseURL: props.baseUrl,
|
|
13074
13036
|
headers: {
|
|
@@ -13725,7 +13687,6 @@ const QaContext = vue.defineComponent({
|
|
|
13725
13687
|
}) {
|
|
13726
13688
|
const containerRef = vue.ref();
|
|
13727
13689
|
const onAnswerRender = text => {
|
|
13728
|
-
console.log("%c%s", "color: #bd08b7;", text);
|
|
13729
13690
|
containerRef.value.scrollTo({
|
|
13730
13691
|
top: containerRef.value.scrollHeight,
|
|
13731
13692
|
behavior: "smooth"
|