inl-ui 0.1.121-mtapi → 0.1.122
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 +34 -36
- package/dist/components/index.js +34 -36
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +44 -46
- package/dist/index.d.ts +1 -1
- package/dist/index.js +44 -46
- 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 +9 -9
- package/dist/tplib/index.js +9 -9
- package/dist/utils/index.cjs +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/video/index.cjs +12 -12
- package/dist/video/index.js +12 -12
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -78,7 +78,7 @@ const getCommonHeaders = () => {
|
|
|
78
78
|
};
|
|
79
79
|
const defaultConfig = {
|
|
80
80
|
timeout: 1e3 * 10,
|
|
81
|
-
baseURL: "/
|
|
81
|
+
baseURL: "/api/"
|
|
82
82
|
};
|
|
83
83
|
class ApiInstance {
|
|
84
84
|
instance;
|
|
@@ -184,7 +184,7 @@ async function checkIframeUrl(url) {
|
|
|
184
184
|
const iframeUrl = getIframeUrl(url);
|
|
185
185
|
let code = 200;
|
|
186
186
|
try {
|
|
187
|
-
const res = await fetch(`/
|
|
187
|
+
const res = await fetch(`/api/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
|
|
188
188
|
headers: getCommonHeaders()
|
|
189
189
|
});
|
|
190
190
|
if (res.status !== 404) {
|
|
@@ -7555,7 +7555,7 @@ class Login$1 {
|
|
|
7555
7555
|
constructor() {
|
|
7556
7556
|
this.getQueryInfo();
|
|
7557
7557
|
this.config.axios = new ApiInstance({
|
|
7558
|
-
baseURL: "/
|
|
7558
|
+
baseURL: "/api/common/v1/"
|
|
7559
7559
|
}).instance;
|
|
7560
7560
|
}
|
|
7561
7561
|
checkSystemInfo() {
|
|
@@ -7775,7 +7775,7 @@ var loginBox = defineComponent({
|
|
|
7775
7775
|
});
|
|
7776
7776
|
const isClould = inject("isClould");
|
|
7777
7777
|
const instance = new ApiInstance({
|
|
7778
|
-
baseURL: "/
|
|
7778
|
+
baseURL: "/api/common/v1/"
|
|
7779
7779
|
}).instance;
|
|
7780
7780
|
const systemTitle = inject("systemTitle");
|
|
7781
7781
|
const platformLogo = inject("platformLogo");
|
|
@@ -8439,26 +8439,26 @@ const isIndependentApp = query => !!query.token && !!query.onlyPage;
|
|
|
8439
8439
|
const loginFun = new Login$1();
|
|
8440
8440
|
const httpUtil = {
|
|
8441
8441
|
requestLogo: async () => {
|
|
8442
|
-
const res = await fetch("/
|
|
8442
|
+
const res = await fetch("/api/common/v1/sysconfig/searchImage?imgType=4&editImg=1&clientType=web");
|
|
8443
8443
|
const blob = await res.blob();
|
|
8444
8444
|
return URL.createObjectURL(blob);
|
|
8445
8445
|
},
|
|
8446
8446
|
requestUserTree: async () => {
|
|
8447
8447
|
const headers = getCommonHeaders();
|
|
8448
|
-
const res = await fetch("/
|
|
8448
|
+
const res = await fetch("/api/common/v1/menu/tree", {
|
|
8449
8449
|
headers
|
|
8450
8450
|
});
|
|
8451
8451
|
const treeData = await res.json();
|
|
8452
8452
|
return treeData.data;
|
|
8453
8453
|
},
|
|
8454
8454
|
requestCopyright: async () => {
|
|
8455
|
-
const res = await fetch("/
|
|
8455
|
+
const res = await fetch("/api/common/v1/sysconfig/getSysConfig?clientType=web");
|
|
8456
8456
|
const data = await res.json();
|
|
8457
8457
|
return data.data.homepageCopyright;
|
|
8458
8458
|
},
|
|
8459
8459
|
postLogout: async () => {
|
|
8460
8460
|
const headers = getCommonHeaders();
|
|
8461
|
-
await fetch("/
|
|
8461
|
+
await fetch("/api/common/v1/log/insert", {
|
|
8462
8462
|
method: "POST",
|
|
8463
8463
|
headers: {
|
|
8464
8464
|
...headers,
|
|
@@ -8709,7 +8709,6 @@ const getDetailContainer = () => defineComponent({
|
|
|
8709
8709
|
if (newTab) {
|
|
8710
8710
|
dataId.value = newTab;
|
|
8711
8711
|
}
|
|
8712
|
-
dataId.value = props.name + dataId.value;
|
|
8713
8712
|
const tab = {
|
|
8714
8713
|
name,
|
|
8715
8714
|
url: route.fullPath,
|
|
@@ -8717,10 +8716,9 @@ const getDetailContainer = () => defineComponent({
|
|
|
8717
8716
|
uniqueKey: dataId.value,
|
|
8718
8717
|
icon: props.icon,
|
|
8719
8718
|
isExtraTab: true,
|
|
8720
|
-
params: _.omit(route.query, "name")
|
|
8721
|
-
ogiginId: newRoute.params.id || newRoute.query.id
|
|
8719
|
+
params: _.omit(route.query, "name")
|
|
8722
8720
|
};
|
|
8723
|
-
const detail = detailList.value.find(item => item.uniqueKey === tab.uniqueKey);
|
|
8721
|
+
const detail = detailList.value.find(item => item.key + item.uniqueKey === tab.key + tab.uniqueKey);
|
|
8724
8722
|
if (detail) {
|
|
8725
8723
|
detail.url = newRoute.fullPath;
|
|
8726
8724
|
if (Array.isArray(qiankunState.value.extraTabs)) {
|
|
@@ -8749,7 +8747,7 @@ const getDetailContainer = () => defineComponent({
|
|
|
8749
8747
|
}
|
|
8750
8748
|
});
|
|
8751
8749
|
}
|
|
8752
|
-
const activeTabKey = tab.uniqueKey;
|
|
8750
|
+
const activeTabKey = props.name + tab.uniqueKey;
|
|
8753
8751
|
qiankunState.value = {
|
|
8754
8752
|
...(qiankunState.value ?? {}),
|
|
8755
8753
|
activeTabKey
|
|
@@ -8812,7 +8810,7 @@ const getDetailContainer = () => defineComponent({
|
|
|
8812
8810
|
}
|
|
8813
8811
|
}, [createVNode(props.cpn, {
|
|
8814
8812
|
"key": item.id,
|
|
8815
|
-
"id": item.
|
|
8813
|
+
"id": item.id,
|
|
8816
8814
|
"isActive": isActive.value && isDetailActive,
|
|
8817
8815
|
"onClose": () => handleClose(item),
|
|
8818
8816
|
"onRefresh": () => handleRefresh(item)
|
|
@@ -9111,7 +9109,7 @@ const VideoBox = defineComponent({
|
|
|
9111
9109
|
}]];
|
|
9112
9110
|
const infos = ref([]);
|
|
9113
9111
|
const videoMove = async direction => {
|
|
9114
|
-
await axios$2.get("/
|
|
9112
|
+
await axios$2.get("/api/vms/v1/control/hik/control", {
|
|
9115
9113
|
params: {
|
|
9116
9114
|
cameraUuid: _prop.camera,
|
|
9117
9115
|
command: direction
|
|
@@ -9126,7 +9124,7 @@ const VideoBox = defineComponent({
|
|
|
9126
9124
|
const arr = infos.value.map(info => {
|
|
9127
9125
|
return {};
|
|
9128
9126
|
});
|
|
9129
|
-
const res = await axios$2.get("/
|
|
9127
|
+
const res = await axios$2.get("/api/vms/v1/camera/getThingDevice", {
|
|
9130
9128
|
params: {
|
|
9131
9129
|
cameraUuid: uuid
|
|
9132
9130
|
},
|
|
@@ -9142,7 +9140,7 @@ const VideoBox = defineComponent({
|
|
|
9142
9140
|
};
|
|
9143
9141
|
const camera = ref({});
|
|
9144
9142
|
const getVideoDetail = async val => {
|
|
9145
|
-
const res = await axios$2.get(`/
|
|
9143
|
+
const res = await axios$2.get(`/api/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9146
9144
|
headers: {
|
|
9147
9145
|
token: sessionStorage.getItem("token") || ""
|
|
9148
9146
|
}
|
|
@@ -9173,7 +9171,7 @@ const VideoBox = defineComponent({
|
|
|
9173
9171
|
immediate: true
|
|
9174
9172
|
});
|
|
9175
9173
|
const changeStream = async code => {
|
|
9176
|
-
const res = await axios$2.get(`/
|
|
9174
|
+
const res = await axios$2.get(`/api/vms/v1/camera/getWebrtcUrls`, {
|
|
9177
9175
|
headers: {
|
|
9178
9176
|
token: sessionStorage.getItem("token") || ""
|
|
9179
9177
|
},
|
|
@@ -9396,7 +9394,7 @@ var Tree = defineComponent({
|
|
|
9396
9394
|
});
|
|
9397
9395
|
const getQueryGroup = async params => {
|
|
9398
9396
|
return new Promise(async resolve => {
|
|
9399
|
-
const res = await axios$2.get("/
|
|
9397
|
+
const res = await axios$2.get("/api/vms/v1/cameraGroup/tree", {
|
|
9400
9398
|
headers: {
|
|
9401
9399
|
token: sessionStorage.getItem("token") || ""
|
|
9402
9400
|
},
|
|
@@ -9414,7 +9412,7 @@ var Tree = defineComponent({
|
|
|
9414
9412
|
};
|
|
9415
9413
|
const getGroup = async () => {
|
|
9416
9414
|
return new Promise(async resolve => {
|
|
9417
|
-
const res = await axios$2.get("/
|
|
9415
|
+
const res = await axios$2.get("/api/vms/v1/cameraGroupType/findAll", {
|
|
9418
9416
|
headers: {
|
|
9419
9417
|
token: sessionStorage.getItem("token") || ""
|
|
9420
9418
|
}
|
|
@@ -9690,7 +9688,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9690
9688
|
showInfo.value = _prop.showInfo;
|
|
9691
9689
|
});
|
|
9692
9690
|
const videoMove = async direction => {
|
|
9693
|
-
await axios$2.get("/
|
|
9691
|
+
await axios$2.get("/api/vms/v1/control/hik/control", {
|
|
9694
9692
|
params: {
|
|
9695
9693
|
cameraUuid: _prop.camera,
|
|
9696
9694
|
command: direction
|
|
@@ -9715,7 +9713,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9715
9713
|
if (tcpcArr.length === 0) {
|
|
9716
9714
|
return;
|
|
9717
9715
|
}
|
|
9718
|
-
const res = await axios$2.post("/
|
|
9716
|
+
const res = await axios$2.post("/api/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
|
|
9719
9717
|
headers: {
|
|
9720
9718
|
token: sessionStorage.getItem("token")
|
|
9721
9719
|
}
|
|
@@ -9736,7 +9734,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9736
9734
|
const arr = infos.value.map(info => {
|
|
9737
9735
|
return {};
|
|
9738
9736
|
});
|
|
9739
|
-
const res = await axios$2.post("/
|
|
9737
|
+
const res = await axios$2.post("/api/vms/v1/cameraRelThing/getByParam", {
|
|
9740
9738
|
cameraUuid: uuid2
|
|
9741
9739
|
}, {
|
|
9742
9740
|
headers: {
|
|
@@ -9756,7 +9754,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9756
9754
|
};
|
|
9757
9755
|
const camera = ref({});
|
|
9758
9756
|
const getVideoDetail = async val => {
|
|
9759
|
-
const res = await axios$2.get(`/
|
|
9757
|
+
const res = await axios$2.get(`/api/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
9760
9758
|
headers: {
|
|
9761
9759
|
token: sessionStorage.getItem("token") || ""
|
|
9762
9760
|
}
|
|
@@ -9873,7 +9871,7 @@ const VideoBoxV2 = defineComponent({
|
|
|
9873
9871
|
immediate: true
|
|
9874
9872
|
});
|
|
9875
9873
|
const changeStream = async code => {
|
|
9876
|
-
const res = await axios$2.get(`/
|
|
9874
|
+
const res = await axios$2.get(`/api/vms/v1/camera/getWebrtcUrls`, {
|
|
9877
9875
|
headers: {
|
|
9878
9876
|
token: sessionStorage.getItem("token") || ""
|
|
9879
9877
|
},
|
|
@@ -10859,7 +10857,7 @@ const VideoPlayerV1 = defineComponent({
|
|
|
10859
10857
|
videoInfo2.value = camera;
|
|
10860
10858
|
init();
|
|
10861
10859
|
} else if (camera && typeof camera === "string") {
|
|
10862
|
-
const res = await axios$2.post(`/
|
|
10860
|
+
const res = await axios$2.post(`/api/sfvideo/v1/camera/getCameraByCameraId`, {
|
|
10863
10861
|
id: camera
|
|
10864
10862
|
}, {
|
|
10865
10863
|
headers: {
|
|
@@ -11659,7 +11657,7 @@ var index$3 = installComponent(PeopleSelect, "people-select");
|
|
|
11659
11657
|
|
|
11660
11658
|
const getParamList$1 = async data => {
|
|
11661
11659
|
const headers = getCommonHeaders();
|
|
11662
|
-
const res = await fetch("/
|
|
11660
|
+
const res = await fetch("/api/common/v1/param/group/list", {
|
|
11663
11661
|
method: "POST",
|
|
11664
11662
|
body: JSON.stringify(data),
|
|
11665
11663
|
headers
|
|
@@ -11668,7 +11666,7 @@ const getParamList$1 = async data => {
|
|
|
11668
11666
|
};
|
|
11669
11667
|
const getParamDefineList$1 = async groupId => {
|
|
11670
11668
|
const headers = getCommonHeaders();
|
|
11671
|
-
const res = await fetch(`/
|
|
11669
|
+
const res = await fetch(`/api/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
11672
11670
|
method: "GET",
|
|
11673
11671
|
headers
|
|
11674
11672
|
});
|
|
@@ -11676,7 +11674,7 @@ const getParamDefineList$1 = async groupId => {
|
|
|
11676
11674
|
};
|
|
11677
11675
|
const batchSaveParamsValue$1 = async form => {
|
|
11678
11676
|
const headers = getCommonHeaders();
|
|
11679
|
-
const res = await fetch("/
|
|
11677
|
+
const res = await fetch("/api/common/v1/param/value/updateBatch", {
|
|
11680
11678
|
method: "POST",
|
|
11681
11679
|
headers,
|
|
11682
11680
|
body: JSON.stringify(form)
|
|
@@ -12468,7 +12466,7 @@ const ParamItem = defineComponent({
|
|
|
12468
12466
|
|
|
12469
12467
|
const getParamList = async data => {
|
|
12470
12468
|
const headers = getCommonHeaders();
|
|
12471
|
-
const res = await fetch("/
|
|
12469
|
+
const res = await fetch("/api/common/v1/param/group/list", {
|
|
12472
12470
|
method: "POST",
|
|
12473
12471
|
body: JSON.stringify(data),
|
|
12474
12472
|
headers
|
|
@@ -12477,7 +12475,7 @@ const getParamList = async data => {
|
|
|
12477
12475
|
};
|
|
12478
12476
|
const getParamDefineList = async groupId => {
|
|
12479
12477
|
const headers = getCommonHeaders();
|
|
12480
|
-
const res = await fetch(`/
|
|
12478
|
+
const res = await fetch(`/api/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
12481
12479
|
method: "GET",
|
|
12482
12480
|
headers
|
|
12483
12481
|
});
|
|
@@ -12485,7 +12483,7 @@ const getParamDefineList = async groupId => {
|
|
|
12485
12483
|
};
|
|
12486
12484
|
const batchSaveParamsValue = async form => {
|
|
12487
12485
|
const headers = getCommonHeaders();
|
|
12488
|
-
const res = await fetch("/
|
|
12486
|
+
const res = await fetch("/api/common/v1/param/value/updateBatch", {
|
|
12489
12487
|
method: "POST",
|
|
12490
12488
|
headers,
|
|
12491
12489
|
body: JSON.stringify(form)
|
|
@@ -13140,7 +13138,7 @@ const SszComment = defineComponent({
|
|
|
13140
13138
|
// 评论api的前缀
|
|
13141
13139
|
baseUrl: {
|
|
13142
13140
|
type: String,
|
|
13143
|
-
default: "/
|
|
13141
|
+
default: "/api/taskcoordinationcenter/v2/tri/"
|
|
13144
13142
|
},
|
|
13145
13143
|
// 传给commentBlock的参数 api: http://192.168.5.46:36000/comment
|
|
13146
13144
|
commentProps: {
|
|
@@ -13252,7 +13250,7 @@ function formatDataString(str) {
|
|
|
13252
13250
|
function request(question, streamCallback, doneCallback) {
|
|
13253
13251
|
const controller = new AbortController();
|
|
13254
13252
|
const signal = controller.signal;
|
|
13255
|
-
fetch("/
|
|
13253
|
+
fetch("/api/chat/v1/chat/chat", {
|
|
13256
13254
|
signal,
|
|
13257
13255
|
method: "POST",
|
|
13258
13256
|
headers: {
|
|
@@ -13369,7 +13367,7 @@ async function audioToText(file) {
|
|
|
13369
13367
|
const formData = new FormData();
|
|
13370
13368
|
formData.append("file", file);
|
|
13371
13369
|
formData.append("upload_id", "1");
|
|
13372
|
-
const [path] = await fetch("/
|
|
13370
|
+
const [path] = await fetch("/api/chat/v1/upload", {
|
|
13373
13371
|
// headers,
|
|
13374
13372
|
method: "POST",
|
|
13375
13373
|
body: formData
|
|
@@ -13380,7 +13378,7 @@ async function audioToText(file) {
|
|
|
13380
13378
|
}
|
|
13381
13379
|
const {
|
|
13382
13380
|
result
|
|
13383
|
-
} = await fetch(`/
|
|
13381
|
+
} = await fetch(`/api/chat/v1/translate?path=${path}&session_hash=1`, {
|
|
13384
13382
|
headers,
|
|
13385
13383
|
method: "POST"
|
|
13386
13384
|
}).then(res => res.json());
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -5948,14 +5948,14 @@ const Endpoint = RTCEndpoint;
|
|
|
5948
5948
|
|
|
5949
5949
|
const playOneWebRtcMt = async (uuid, domId, dom, token) => {
|
|
5950
5950
|
let play;
|
|
5951
|
-
const response = await fetch(`/
|
|
5951
|
+
const response = await fetch(`/api/vms/v1/camera/getByUuid?uuid=${uuid}`, {
|
|
5952
5952
|
method: "GET",
|
|
5953
5953
|
headers: {
|
|
5954
5954
|
token: token || sessionStorage.getItem("token") || ""
|
|
5955
5955
|
}
|
|
5956
5956
|
});
|
|
5957
5957
|
const res = await response.json();
|
|
5958
|
-
const urlResponse = await fetch(`/
|
|
5958
|
+
const urlResponse = await fetch(`/api/vms/v1/camera/getWebrtcUrls?uuid=${uuid}`, {
|
|
5959
5959
|
method: "GET",
|
|
5960
5960
|
headers: {
|
|
5961
5961
|
token: token || sessionStorage.getItem("token") || ""
|
package/dist/hooks/index.js
CHANGED
|
@@ -5939,14 +5939,14 @@ const Endpoint = RTCEndpoint;
|
|
|
5939
5939
|
|
|
5940
5940
|
const playOneWebRtcMt = async (uuid, domId, dom, token) => {
|
|
5941
5941
|
let play;
|
|
5942
|
-
const response = await fetch(`/
|
|
5942
|
+
const response = await fetch(`/api/vms/v1/camera/getByUuid?uuid=${uuid}`, {
|
|
5943
5943
|
method: "GET",
|
|
5944
5944
|
headers: {
|
|
5945
5945
|
token: token || sessionStorage.getItem("token") || ""
|
|
5946
5946
|
}
|
|
5947
5947
|
});
|
|
5948
5948
|
const res = await response.json();
|
|
5949
|
-
const urlResponse = await fetch(`/
|
|
5949
|
+
const urlResponse = await fetch(`/api/vms/v1/camera/getWebrtcUrls?uuid=${uuid}`, {
|
|
5950
5950
|
method: "GET",
|
|
5951
5951
|
headers: {
|
|
5952
5952
|
token: token || sessionStorage.getItem("token") || ""
|