소스 검색

update video

xc-v2
lb 10 달 전
부모
커밋
6894aba781
15개의 변경된 파일50개의 추가작업 그리고 13개의 파일을 삭제
  1. +3
    -1
      package.json
  2. BIN
      public/video/1to2.webm
  3. BIN
      public/video/2to1.webm
  4. BIN
      public/video/enter.webm
  5. BIN
      public/video/floor1.webm
  6. BIN
      public/video/floor2.webm
  7. BIN
      public/video/new_1to2.mp4
  8. BIN
      public/video/new_boom.mp4
  9. BIN
      public/video/new_flr1.mp4
  10. BIN
      public/video/new_flr2.mp4
  11. +9
    -12
      src/components/模块组件/窑炉内部/Center/index.jsx
  12. +18
    -0
      websocket/modules/kiln.ts
  13. +13
    -0
      websocket/modules/navGas.ts
  14. +7
    -0
      websocket/utils/index.ts
  15. +0
    -0
      websocket/utils/utils.ts

+ 3
- 1
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"
}
}

BIN
public/video/1to2.webm 파일 보기


BIN
public/video/2to1.webm 파일 보기


BIN
public/video/enter.webm 파일 보기


BIN
public/video/floor1.webm 파일 보기


BIN
public/video/floor2.webm 파일 보기


BIN
public/video/new_1to2.mp4 파일 보기


BIN
public/video/new_boom.mp4 파일 보기


BIN
public/video/new_flr1.mp4 파일 보기


BIN
public/video/new_flr2.mp4 파일 보기


+ 9
- 12
src/components/模块组件/窑炉内部/Center/index.jsx 파일 보기

@@ -90,20 +90,17 @@ function KilnCenter() {
<div
className="video-wrapper"
style={{
// flex: 1,
// background: '#ccc3',
position: 'fixed',
top: 0,
left: 0,
width: '100%',
height: '736px',
}} // , top: '10%', left: '10%', position: 'absolute' }}
height: '100%',
zIndex: -1000,
}}
>
<video
src={currentVideo}
muted
preload="auto"
autoPlay={true}
width={'100%'}
ref={videoRef}
></video>
<video muted preload="auto" autoPlay={true} width={'100%'}>
<source src="/video/enter.webm" type="video/mp4" />
</video>
</div>

<div className={cls.videoLayer2}></div>


+ 18
- 0
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;

+ 13
- 0
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;

+ 7
- 0
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,
};

websocket/utils.ts → websocket/utils/utils.ts 파일 보기


불러오는 중...
취소
저장