inl-ui 0.1.163 → 0.1.170
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 +27 -11
- package/dist/components/index.js +27 -11
- package/dist/index.cjs +28 -12
- package/dist/index.d.ts +1 -6
- package/dist/index.js +28 -12
- package/dist/utils/index.cjs +8 -8
- package/dist/utils/index.d.ts +0 -5
- package/dist/utils/index.js +8 -8
- package/dist/video/index.cjs +19 -3
- package/dist/video/index.js +19 -3
- package/package.json +1 -1
|
@@ -88,20 +88,20 @@ const getUserinfo = () => {
|
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
const getCommonHeaders = () => {
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
getUserinfo();
|
|
92
|
+
getUserId();
|
|
93
93
|
const token = getToken();
|
|
94
94
|
const appId = getAppId();
|
|
95
|
-
|
|
95
|
+
getCorpId();
|
|
96
96
|
const Authorization = `Bearer ${token}`;
|
|
97
97
|
return {
|
|
98
|
-
userName: userInfo?.userName,
|
|
99
|
-
userId: userInfo?.userId || userId,
|
|
100
|
-
employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
|
|
101
|
-
employeeId: userInfo?.employeeId,
|
|
98
|
+
// userName: userInfo?.userName,
|
|
99
|
+
// userId: userInfo?.userId || userId,
|
|
100
|
+
// employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
|
|
101
|
+
// employeeId: userInfo?.employeeId,
|
|
102
102
|
token,
|
|
103
103
|
appId,
|
|
104
|
-
corpId,
|
|
104
|
+
// corpId,
|
|
105
105
|
Authorization,
|
|
106
106
|
"Content-Type": "application/json;charset=utf-8"
|
|
107
107
|
};
|
|
@@ -17029,9 +17029,25 @@ class WebRtcMt {
|
|
|
17029
17029
|
// 拉流创建播放器
|
|
17030
17030
|
createVideo(plays) {
|
|
17031
17031
|
this.mediaServerAddrMap.set(plays.videoElm, plays);
|
|
17032
|
-
|
|
17033
|
-
|
|
17034
|
-
|
|
17032
|
+
const {
|
|
17033
|
+
addRtspProxyUrl
|
|
17034
|
+
} = this.createRtspUrl(plays);
|
|
17035
|
+
return new Promise((resolve, reject) => {
|
|
17036
|
+
console.log("\u62C9\u6D41");
|
|
17037
|
+
this.instance.get(addRtspProxyUrl).then(res => {
|
|
17038
|
+
console.log("\u62C9\u6D41\u6210\u529F");
|
|
17039
|
+
if (res.data.code === 0) {
|
|
17040
|
+
plays.key = res.data.data?.key;
|
|
17041
|
+
this.startPlay(plays).then(() => {
|
|
17042
|
+
resolve(res.data);
|
|
17043
|
+
});
|
|
17044
|
+
} else {
|
|
17045
|
+
this.mediaServerAddrMap.delete(plays.videoElm);
|
|
17046
|
+
reject();
|
|
17047
|
+
this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
|
|
17048
|
+
}
|
|
17049
|
+
});
|
|
17050
|
+
});
|
|
17035
17051
|
}
|
|
17036
17052
|
log(type, text) {
|
|
17037
17053
|
switch (type) {
|
package/dist/components/index.js
CHANGED
|
@@ -59,20 +59,20 @@ const getUserinfo = () => {
|
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
const getCommonHeaders = () => {
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
getUserinfo();
|
|
63
|
+
getUserId();
|
|
64
64
|
const token = getToken();
|
|
65
65
|
const appId = getAppId();
|
|
66
|
-
|
|
66
|
+
getCorpId();
|
|
67
67
|
const Authorization = `Bearer ${token}`;
|
|
68
68
|
return {
|
|
69
|
-
userName: userInfo?.userName,
|
|
70
|
-
userId: userInfo?.userId || userId,
|
|
71
|
-
employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
|
|
72
|
-
employeeId: userInfo?.employeeId,
|
|
69
|
+
// userName: userInfo?.userName,
|
|
70
|
+
// userId: userInfo?.userId || userId,
|
|
71
|
+
// employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
|
|
72
|
+
// employeeId: userInfo?.employeeId,
|
|
73
73
|
token,
|
|
74
74
|
appId,
|
|
75
|
-
corpId,
|
|
75
|
+
// corpId,
|
|
76
76
|
Authorization,
|
|
77
77
|
"Content-Type": "application/json;charset=utf-8"
|
|
78
78
|
};
|
|
@@ -17000,9 +17000,25 @@ class WebRtcMt {
|
|
|
17000
17000
|
// 拉流创建播放器
|
|
17001
17001
|
createVideo(plays) {
|
|
17002
17002
|
this.mediaServerAddrMap.set(plays.videoElm, plays);
|
|
17003
|
-
|
|
17004
|
-
|
|
17005
|
-
|
|
17003
|
+
const {
|
|
17004
|
+
addRtspProxyUrl
|
|
17005
|
+
} = this.createRtspUrl(plays);
|
|
17006
|
+
return new Promise((resolve, reject) => {
|
|
17007
|
+
console.log("\u62C9\u6D41");
|
|
17008
|
+
this.instance.get(addRtspProxyUrl).then(res => {
|
|
17009
|
+
console.log("\u62C9\u6D41\u6210\u529F");
|
|
17010
|
+
if (res.data.code === 0) {
|
|
17011
|
+
plays.key = res.data.data?.key;
|
|
17012
|
+
this.startPlay(plays).then(() => {
|
|
17013
|
+
resolve(res.data);
|
|
17014
|
+
});
|
|
17015
|
+
} else {
|
|
17016
|
+
this.mediaServerAddrMap.delete(plays.videoElm);
|
|
17017
|
+
reject();
|
|
17018
|
+
this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
|
|
17019
|
+
}
|
|
17020
|
+
});
|
|
17021
|
+
});
|
|
17006
17022
|
}
|
|
17007
17023
|
log(type, text) {
|
|
17008
17024
|
switch (type) {
|
package/dist/index.cjs
CHANGED
|
@@ -45,7 +45,7 @@ var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
|
45
45
|
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
46
46
|
var mqtt__default = /*#__PURE__*/_interopDefaultLegacy(mqtt);
|
|
47
47
|
|
|
48
|
-
var version = "0.1.
|
|
48
|
+
var version = "0.1.164";
|
|
49
49
|
|
|
50
50
|
const setTheme = theme => {
|
|
51
51
|
if (theme === "dark") {
|
|
@@ -227,20 +227,20 @@ const getUserinfo = () => {
|
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
const getCommonHeaders = () => {
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
getUserinfo();
|
|
231
|
+
getUserId();
|
|
232
232
|
const token = getToken();
|
|
233
233
|
const appId = getAppId();
|
|
234
|
-
|
|
234
|
+
getCorpId();
|
|
235
235
|
const Authorization = `Bearer ${token}`;
|
|
236
236
|
return {
|
|
237
|
-
userName: userInfo?.userName,
|
|
238
|
-
userId: userInfo?.userId || userId,
|
|
239
|
-
employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
|
|
240
|
-
employeeId: userInfo?.employeeId,
|
|
237
|
+
// userName: userInfo?.userName,
|
|
238
|
+
// userId: userInfo?.userId || userId,
|
|
239
|
+
// employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
|
|
240
|
+
// employeeId: userInfo?.employeeId,
|
|
241
241
|
token,
|
|
242
242
|
appId,
|
|
243
|
-
corpId,
|
|
243
|
+
// corpId,
|
|
244
244
|
Authorization,
|
|
245
245
|
"Content-Type": "application/json;charset=utf-8"
|
|
246
246
|
};
|
|
@@ -18015,9 +18015,25 @@ class WebRtcMt {
|
|
|
18015
18015
|
// 拉流创建播放器
|
|
18016
18016
|
createVideo(plays) {
|
|
18017
18017
|
this.mediaServerAddrMap.set(plays.videoElm, plays);
|
|
18018
|
-
|
|
18019
|
-
|
|
18020
|
-
|
|
18018
|
+
const {
|
|
18019
|
+
addRtspProxyUrl
|
|
18020
|
+
} = this.createRtspUrl(plays);
|
|
18021
|
+
return new Promise((resolve, reject) => {
|
|
18022
|
+
console.log("\u62C9\u6D41");
|
|
18023
|
+
this.instance.get(addRtspProxyUrl).then(res => {
|
|
18024
|
+
console.log("\u62C9\u6D41\u6210\u529F");
|
|
18025
|
+
if (res.data.code === 0) {
|
|
18026
|
+
plays.key = res.data.data?.key;
|
|
18027
|
+
this.startPlay(plays).then(() => {
|
|
18028
|
+
resolve(res.data);
|
|
18029
|
+
});
|
|
18030
|
+
} else {
|
|
18031
|
+
this.mediaServerAddrMap.delete(plays.videoElm);
|
|
18032
|
+
reject();
|
|
18033
|
+
this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
|
|
18034
|
+
}
|
|
18035
|
+
});
|
|
18036
|
+
});
|
|
18021
18037
|
}
|
|
18022
18038
|
log(type, text) {
|
|
18023
18039
|
switch (type) {
|
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.164";
|
|
15
15
|
|
|
16
16
|
declare const _default$p: {
|
|
17
17
|
set(theme: string): void;
|
|
@@ -78,13 +78,8 @@ interface IApiInstanceConfig extends AxiosRequestConfig {
|
|
|
78
78
|
* keepProperty: boolean; 保留多余的属性,如createUser
|
|
79
79
|
*/
|
|
80
80
|
declare const getCommonHeaders: () => {
|
|
81
|
-
userName: any;
|
|
82
|
-
userId: any;
|
|
83
|
-
employeeName: string;
|
|
84
|
-
employeeId: any;
|
|
85
81
|
token: string;
|
|
86
82
|
appId: any;
|
|
87
|
-
corpId: any;
|
|
88
83
|
Authorization: string;
|
|
89
84
|
"Content-Type": string;
|
|
90
85
|
};
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { XPopup, CommentBlock, setAxiosOption } from '@sszj-temp/mobile';
|
|
|
14
14
|
import { marked } from 'marked';
|
|
15
15
|
import '@sszj-temp/mobile/style.css';
|
|
16
16
|
|
|
17
|
-
var version = "0.1.
|
|
17
|
+
var version = "0.1.164";
|
|
18
18
|
|
|
19
19
|
const setTheme = theme => {
|
|
20
20
|
if (theme === "dark") {
|
|
@@ -196,20 +196,20 @@ const getUserinfo = () => {
|
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
198
|
const getCommonHeaders = () => {
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
getUserinfo();
|
|
200
|
+
getUserId();
|
|
201
201
|
const token = getToken();
|
|
202
202
|
const appId = getAppId();
|
|
203
|
-
|
|
203
|
+
getCorpId();
|
|
204
204
|
const Authorization = `Bearer ${token}`;
|
|
205
205
|
return {
|
|
206
|
-
userName: userInfo?.userName,
|
|
207
|
-
userId: userInfo?.userId || userId,
|
|
208
|
-
employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
|
|
209
|
-
employeeId: userInfo?.employeeId,
|
|
206
|
+
// userName: userInfo?.userName,
|
|
207
|
+
// userId: userInfo?.userId || userId,
|
|
208
|
+
// employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
|
|
209
|
+
// employeeId: userInfo?.employeeId,
|
|
210
210
|
token,
|
|
211
211
|
appId,
|
|
212
|
-
corpId,
|
|
212
|
+
// corpId,
|
|
213
213
|
Authorization,
|
|
214
214
|
"Content-Type": "application/json;charset=utf-8"
|
|
215
215
|
};
|
|
@@ -17984,9 +17984,25 @@ class WebRtcMt {
|
|
|
17984
17984
|
// 拉流创建播放器
|
|
17985
17985
|
createVideo(plays) {
|
|
17986
17986
|
this.mediaServerAddrMap.set(plays.videoElm, plays);
|
|
17987
|
-
|
|
17988
|
-
|
|
17989
|
-
|
|
17987
|
+
const {
|
|
17988
|
+
addRtspProxyUrl
|
|
17989
|
+
} = this.createRtspUrl(plays);
|
|
17990
|
+
return new Promise((resolve, reject) => {
|
|
17991
|
+
console.log("\u62C9\u6D41");
|
|
17992
|
+
this.instance.get(addRtspProxyUrl).then(res => {
|
|
17993
|
+
console.log("\u62C9\u6D41\u6210\u529F");
|
|
17994
|
+
if (res.data.code === 0) {
|
|
17995
|
+
plays.key = res.data.data?.key;
|
|
17996
|
+
this.startPlay(plays).then(() => {
|
|
17997
|
+
resolve(res.data);
|
|
17998
|
+
});
|
|
17999
|
+
} else {
|
|
18000
|
+
this.mediaServerAddrMap.delete(plays.videoElm);
|
|
18001
|
+
reject();
|
|
18002
|
+
this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
|
|
18003
|
+
}
|
|
18004
|
+
});
|
|
18005
|
+
});
|
|
17990
18006
|
}
|
|
17991
18007
|
log(type, text) {
|
|
17992
18008
|
switch (type) {
|
package/dist/utils/index.cjs
CHANGED
|
@@ -213,20 +213,20 @@ const getUserinfo = () => {
|
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
215
|
const getCommonHeaders = () => {
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
getUserinfo();
|
|
217
|
+
getUserId();
|
|
218
218
|
const token = getToken();
|
|
219
219
|
const appId = getAppId();
|
|
220
|
-
|
|
220
|
+
getCorpId();
|
|
221
221
|
const Authorization = `Bearer ${token}`;
|
|
222
222
|
return {
|
|
223
|
-
userName: userInfo?.userName,
|
|
224
|
-
userId: userInfo?.userId || userId,
|
|
225
|
-
employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
|
|
226
|
-
employeeId: userInfo?.employeeId,
|
|
223
|
+
// userName: userInfo?.userName,
|
|
224
|
+
// userId: userInfo?.userId || userId,
|
|
225
|
+
// employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
|
|
226
|
+
// employeeId: userInfo?.employeeId,
|
|
227
227
|
token,
|
|
228
228
|
appId,
|
|
229
|
-
corpId,
|
|
229
|
+
// corpId,
|
|
230
230
|
Authorization,
|
|
231
231
|
"Content-Type": "application/json;charset=utf-8"
|
|
232
232
|
};
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -69,13 +69,8 @@ interface IApiInstanceConfig extends AxiosRequestConfig {
|
|
|
69
69
|
* keepProperty: boolean; 保留多余的属性,如createUser
|
|
70
70
|
*/
|
|
71
71
|
declare const getCommonHeaders: () => {
|
|
72
|
-
userName: any;
|
|
73
|
-
userId: any;
|
|
74
|
-
employeeName: string;
|
|
75
|
-
employeeId: any;
|
|
76
72
|
token: string;
|
|
77
73
|
appId: any;
|
|
78
|
-
corpId: any;
|
|
79
74
|
Authorization: string;
|
|
80
75
|
"Content-Type": string;
|
|
81
76
|
};
|
package/dist/utils/index.js
CHANGED
|
@@ -185,20 +185,20 @@ const getUserinfo = () => {
|
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
const getCommonHeaders = () => {
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
getUserinfo();
|
|
189
|
+
getUserId();
|
|
190
190
|
const token = getToken();
|
|
191
191
|
const appId = getAppId();
|
|
192
|
-
|
|
192
|
+
getCorpId();
|
|
193
193
|
const Authorization = `Bearer ${token}`;
|
|
194
194
|
return {
|
|
195
|
-
userName: userInfo?.userName,
|
|
196
|
-
userId: userInfo?.userId || userId,
|
|
197
|
-
employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
|
|
198
|
-
employeeId: userInfo?.employeeId,
|
|
195
|
+
// userName: userInfo?.userName,
|
|
196
|
+
// userId: userInfo?.userId || userId,
|
|
197
|
+
// employeeName: encodeURIComponent(userInfo?.employeeName ?? ""),
|
|
198
|
+
// employeeId: userInfo?.employeeId,
|
|
199
199
|
token,
|
|
200
200
|
appId,
|
|
201
|
-
corpId,
|
|
201
|
+
// corpId,
|
|
202
202
|
Authorization,
|
|
203
203
|
"Content-Type": "application/json;charset=utf-8"
|
|
204
204
|
};
|
package/dist/video/index.cjs
CHANGED
|
@@ -13994,9 +13994,25 @@ class WebRtcMt {
|
|
|
13994
13994
|
// 拉流创建播放器
|
|
13995
13995
|
createVideo(plays) {
|
|
13996
13996
|
this.mediaServerAddrMap.set(plays.videoElm, plays);
|
|
13997
|
-
|
|
13998
|
-
|
|
13999
|
-
|
|
13997
|
+
const {
|
|
13998
|
+
addRtspProxyUrl
|
|
13999
|
+
} = this.createRtspUrl(plays);
|
|
14000
|
+
return new Promise((resolve, reject) => {
|
|
14001
|
+
console.log("\u62C9\u6D41");
|
|
14002
|
+
this.instance.get(addRtspProxyUrl).then(res => {
|
|
14003
|
+
console.log("\u62C9\u6D41\u6210\u529F");
|
|
14004
|
+
if (res.data.code === 0) {
|
|
14005
|
+
plays.key = res.data.data?.key;
|
|
14006
|
+
this.startPlay(plays).then(() => {
|
|
14007
|
+
resolve(res.data);
|
|
14008
|
+
});
|
|
14009
|
+
} else {
|
|
14010
|
+
this.mediaServerAddrMap.delete(plays.videoElm);
|
|
14011
|
+
reject();
|
|
14012
|
+
this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
|
|
14013
|
+
}
|
|
14014
|
+
});
|
|
14015
|
+
});
|
|
14000
14016
|
}
|
|
14001
14017
|
log(type, text) {
|
|
14002
14018
|
switch (type) {
|
package/dist/video/index.js
CHANGED
|
@@ -13966,9 +13966,25 @@ class WebRtcMt {
|
|
|
13966
13966
|
// 拉流创建播放器
|
|
13967
13967
|
createVideo(plays) {
|
|
13968
13968
|
this.mediaServerAddrMap.set(plays.videoElm, plays);
|
|
13969
|
-
|
|
13970
|
-
|
|
13971
|
-
|
|
13969
|
+
const {
|
|
13970
|
+
addRtspProxyUrl
|
|
13971
|
+
} = this.createRtspUrl(plays);
|
|
13972
|
+
return new Promise((resolve, reject) => {
|
|
13973
|
+
console.log("\u62C9\u6D41");
|
|
13974
|
+
this.instance.get(addRtspProxyUrl).then(res => {
|
|
13975
|
+
console.log("\u62C9\u6D41\u6210\u529F");
|
|
13976
|
+
if (res.data.code === 0) {
|
|
13977
|
+
plays.key = res.data.data?.key;
|
|
13978
|
+
this.startPlay(plays).then(() => {
|
|
13979
|
+
resolve(res.data);
|
|
13980
|
+
});
|
|
13981
|
+
} else {
|
|
13982
|
+
this.mediaServerAddrMap.delete(plays.videoElm);
|
|
13983
|
+
reject();
|
|
13984
|
+
this.log("err", "\u4ECE\u670D\u52A1\u7AEF\u62C9\u6D41\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");
|
|
13985
|
+
}
|
|
13986
|
+
});
|
|
13987
|
+
});
|
|
13972
13988
|
}
|
|
13973
13989
|
log(type, text) {
|
|
13974
13990
|
switch (type) {
|