diff --git a/package.json b/package.json index 9ac8ef7..ffe37cd 100644 --- a/package.json +++ b/package.json @@ -37,13 +37,15 @@ }, "devDependencies": { "@babel/runtime": "^7.18.0", + "@types/node": "^20.8.10", "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", + "@types/ws": "^8.5.8", "@umijs/preset-react": "1.x", "@umijs/test": "^3.5.23", "lint-staged": "^10.0.7", "prettier": "^2.2.0", - "typescript": "^4.1.2", + "typescript": "^4.9.5", "yorkie": "^2.0.0" } } diff --git a/public/video/1to2.webm b/public/video/1to2.webm new file mode 100644 index 0000000..98c7f19 Binary files /dev/null and b/public/video/1to2.webm differ diff --git a/public/video/2to1.webm b/public/video/2to1.webm new file mode 100644 index 0000000..33adeb2 Binary files /dev/null and b/public/video/2to1.webm differ diff --git a/public/video/enter.webm b/public/video/enter.webm new file mode 100644 index 0000000..110fed7 Binary files /dev/null and b/public/video/enter.webm differ diff --git a/public/video/floor1.webm b/public/video/floor1.webm new file mode 100644 index 0000000..d34fe9e Binary files /dev/null and b/public/video/floor1.webm differ diff --git a/public/video/floor2.webm b/public/video/floor2.webm new file mode 100644 index 0000000..966bed7 Binary files /dev/null and b/public/video/floor2.webm differ diff --git a/public/video/new_1to2.mp4 b/public/video/new_1to2.mp4 deleted file mode 100644 index 92f12e2..0000000 Binary files a/public/video/new_1to2.mp4 and /dev/null differ diff --git a/public/video/new_boom.mp4 b/public/video/new_boom.mp4 deleted file mode 100644 index 560aaf0..0000000 Binary files a/public/video/new_boom.mp4 and /dev/null differ diff --git a/public/video/new_flr1.mp4 b/public/video/new_flr1.mp4 deleted file mode 100644 index ed46558..0000000 Binary files a/public/video/new_flr1.mp4 and /dev/null differ diff --git a/public/video/new_flr2.mp4 b/public/video/new_flr2.mp4 deleted file mode 100644 index b7016cd..0000000 Binary files a/public/video/new_flr2.mp4 and /dev/null differ diff --git a/src/components/模块组件/窑炉内部/Center/index.jsx b/src/components/模块组件/窑炉内部/Center/index.jsx index 2bed8d4..4d7a2ee 100644 --- a/src/components/模块组件/窑炉内部/Center/index.jsx +++ b/src/components/模块组件/窑炉内部/Center/index.jsx @@ -90,20 +90,17 @@ function KilnCenter() {
- +
diff --git a/websocket/modules/kiln.ts b/websocket/modules/kiln.ts new file mode 100644 index 0000000..edf4b70 --- /dev/null +++ b/websocket/modules/kiln.ts @@ -0,0 +1,18 @@ +import utils from '../utils'; + +function genKilnInfo() { + return { + kilnPressure: utils.rand(0, 100) + 'Kpa', + waterTemp: utils.rand(0, 100) + '℃', + waterFlow: utils.rand(30, 90) + 'm³/h', + waterPressure: utils.rand(10, 50) + 'Kpa', + windPressure: utils.rand(10, 30) + 'Kpa', + gasPressure: utils.rand(10, 30) + 'Kpa', + // 碹顶加权温度 + topTemp: utils.rand(30, 60) + '℃', + // 融化加权温度 + meltTemp: utils.rand(100, 200) + '℃', + }; +} + +export default genKilnInfo; diff --git a/websocket/modules/navGas.ts b/websocket/modules/navGas.ts new file mode 100644 index 0000000..52623e2 --- /dev/null +++ b/websocket/modules/navGas.ts @@ -0,0 +1,13 @@ +// 天然气 +import utils from '../utils'; + +function getNavGasInfo(type: 'history' | 'realtime') { + switch (type) { + case 'history': + break; + case 'realtime': + break; + } +} + +export default getNavGasInfo; diff --git a/websocket/utils/index.ts b/websocket/utils/index.ts new file mode 100644 index 0000000..291b0ae --- /dev/null +++ b/websocket/utils/index.ts @@ -0,0 +1,7 @@ +function rand(min: number, max: number) { + return Math.floor(Math.random() * (max - min + 1)) + min; +} + +export default { + rand, +}; diff --git a/websocket/utils.ts b/websocket/utils/utils.ts similarity index 100% rename from websocket/utils.ts rename to websocket/utils/utils.ts