coolcare-lite-scada-component 2.0.26 → 2.0.28
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.
|
@@ -46,7 +46,7 @@ var GroupItemPanel = function GroupItemPanel(_ref) {
|
|
|
46
46
|
setImgList(((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list.map(function (item) {
|
|
47
47
|
var _item$img;
|
|
48
48
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
49
|
-
img: (_item$img = item.img) === null || _item$img === void 0 ? void 0 : _item$img.replace('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com', '')
|
|
49
|
+
img: (_item$img = item.img) === null || _item$img === void 0 ? void 0 : _item$img.replace('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com', 'http://10.189.40.132:9000/iot')
|
|
50
50
|
});
|
|
51
51
|
})) || []);
|
|
52
52
|
} else {
|
|
@@ -90,7 +90,7 @@ var EleFanComponent = function EleFanComponent(_ref) {
|
|
|
90
90
|
className: styles.wrap
|
|
91
91
|
}, /*#__PURE__*/React.createElement("img", {
|
|
92
92
|
className: "".concat(styles['fan-img'], " ").concat(fanIsOn ? styles.on : ''),
|
|
93
|
-
src: "/fan.png"
|
|
93
|
+
src: "http://10.189.40.132:9000/iot/fan.png"
|
|
94
94
|
})));
|
|
95
95
|
};
|
|
96
96
|
export default /*#__PURE__*/memo(EleFanComponent, reactShapeNodeAreEqual);
|
|
@@ -80,7 +80,7 @@ var Display = function Display(_ref) {
|
|
|
80
80
|
return v.productConfigurationType === Number(query.scadaType);
|
|
81
81
|
});
|
|
82
82
|
if (activeConfig) {
|
|
83
|
-
setJsonConfig(JSON.parse((activeConfig.config || '{}').replaceAll('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/', '/').replaceAll('https://front-end-assets.oss-cn-shanghai.aliyuncs.com/', '/')));
|
|
83
|
+
setJsonConfig(JSON.parse((activeConfig.config || '{}').replaceAll('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/', 'http://10.189.40.132:9000/iot/').replaceAll('https://front-end-assets.oss-cn-shanghai.aliyuncs.com/', 'http://10.189.40.132:9000/iot/')));
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
_context.next = 17;
|
|
@@ -188,7 +188,7 @@ var Display = function Display(_ref) {
|
|
|
188
188
|
case 10:
|
|
189
189
|
scadaConfig = data.list[0].config;
|
|
190
190
|
if (scadaConfig) {
|
|
191
|
-
setJsonConfig(JSON.parse((scadaConfig || '{}').replaceAll('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/', '/').replaceAll('https://front-end-assets.oss-cn-shanghai.aliyuncs.com/', '/')));
|
|
191
|
+
setJsonConfig(JSON.parse((scadaConfig || '{}').replaceAll('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/', 'http://10.189.40.132:9000/iot/').replaceAll('https://front-end-assets.oss-cn-shanghai.aliyuncs.com/', 'http://10.189.40.132:9000/iot/')));
|
|
192
192
|
}
|
|
193
193
|
_context3.next = 18;
|
|
194
194
|
break;
|
|
@@ -83,7 +83,7 @@ var ImgGroup = function ImgGroup(_ref) {
|
|
|
83
83
|
setImgList(((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list.map(function (item) {
|
|
84
84
|
var _item$img;
|
|
85
85
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
86
|
-
img: (_item$img = item.img) === null || _item$img === void 0 ? void 0 : _item$img.replace('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com', '').replace('https://front-end-assets.oss-cn-shanghai.aliyuncs.com', '')
|
|
86
|
+
img: (_item$img = item.img) === null || _item$img === void 0 ? void 0 : _item$img.replace('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com', 'http://10.189.40.132:9000/iot').replace('https://front-end-assets.oss-cn-shanghai.aliyuncs.com', 'http://10.189.40.132:9000/iot')
|
|
87
87
|
});
|
|
88
88
|
})) || []);
|
|
89
89
|
} else {
|
package/es/pages/editor/index.js
CHANGED
|
@@ -207,7 +207,7 @@ export default (function () {
|
|
|
207
207
|
case 10:
|
|
208
208
|
scadaConfig = data.list[0].config;
|
|
209
209
|
if (scadaConfig) {
|
|
210
|
-
configJSON = JSON.parse((scadaConfig || '{}').replaceAll('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/', '/').replaceAll('https://front-end-assets.oss-cn-shanghai.aliyuncs.com/', '/'));
|
|
210
|
+
configJSON = JSON.parse((scadaConfig || '{}').replaceAll('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/', 'http://10.189.40.132:9000/iot/').replaceAll('https://front-end-assets.oss-cn-shanghai.aliyuncs.com/', 'http://10.189.40.132:9000/iot/'));
|
|
211
211
|
graphCore.graph.fromJSON(configJSON);
|
|
212
212
|
if (configJSON.pageConfig) {
|
|
213
213
|
setPageConfig(configJSON.pageConfig);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coolcare-lite-scada-component",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.28",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "umi dev",
|
|
6
6
|
"build:prod": "UMI_ENV=prod umi build",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"test": "umi-test",
|
|
14
14
|
"test:coverage": "umi-test --coverage",
|
|
15
15
|
"analyze": "ANALYZE=1 umi build",
|
|
16
|
-
"deploy:prod": "docker build -t xiiman-docker.pkg.coding.net/coolcare-lite/coolcare-scada/yimin:master-2024-11-
|
|
16
|
+
"deploy:prod": "docker build -t xiiman-docker.pkg.coding.net/coolcare-lite/coolcare-scada/yimin:master-2024-11-25 . && docker push xiiman-docker.pkg.coding.net/coolcare-lite/coolcare-scada/yimin:master-2024-11-25"
|
|
17
17
|
},
|
|
18
18
|
"main": "./es/componentIndex.js",
|
|
19
19
|
"module": "./es/componentIndex.js",
|