Explorar el Código

修改

pull/2/head
juzi hace 3 semanas
padre
commit
b6fb156c2c
Se han modificado 31 ficheros con 71 adiciones y 2919 borrados
  1. +20
    -6
      package-lock.json
  2. BIN
      public/BoomBox/BoomBox.bin
  3. BIN
      public/BoomBox/BoomBox.glb
  4. +0
    -177
      public/BoomBox/BoomBox.gltf
  5. BIN
      public/BoomBox/BoomBox_baseColor.png
  6. BIN
      public/BoomBox/BoomBox_emissive.png
  7. BIN
      public/BoomBox/BoomBox_normal.png
  8. BIN
      public/BoomBox/BoomBox_occlusionRoughnessMetallic.png
  9. +0
    -183
      public/BoomBox/UnlitBoomBox.gltf
  10. +0
    -1
      public/BoomBox/scene.babylon
  11. BIN
      public/favicon.ico
  12. +1
    -1
      public/index.html
  13. BIN
      public/logo192.png
  14. BIN
      public/logo512.png
  15. +0
    -25
      public/manifest.json
  16. BIN
      public/pirateFort/cannon.glb
  17. BIN
      public/pirateFort/pirateFort.glb
  18. +0
    -3
      public/robots.txt
  19. BIN
      public/testout/Boot.bin
  20. BIN
      public/testout/Boot.glb
  21. +0
    -2484
      public/testout/Boot.gltf
  22. BIN
      public/testout/Boot_LowerLeg_DM_tga.png
  23. BIN
      public/testout/Boot_LowerLeg_NM_tga.png
  24. BIN
      public/testout/Boot_Torso_DM_tga.png
  25. BIN
      public/testout/Boot_Torso_NM_tga.png
  26. BIN
      public/testout/Boot_Torso_SM_tga.png
  27. BIN
      public/testout/Image.png
  28. BIN
      public/testout/MechA_Arm_C_DM.png
  29. BIN
      public/testout/MechA_Arm_C_NM.png
  30. BIN
      public/testout/MechA_Arm_C_SCD.png
  31. +50
    -39
      src/App.tsx

+ 20
- 6
package-lock.json Ver fichero

@@ -5842,9 +5842,23 @@
}
},
"node_modules/caniuse-lite": {
"version": "1.0.30001481",
"resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001481.tgz",
"integrity": "sha512-KCqHwRnaa1InZBtqXzP98LPg0ajCVujMKjqKDhZEthIpAsJl/YEIa3YvXjGXPVqzZVguccuu7ga9KOE1J9rKPQ=="
"version": "1.0.30001653",
"resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001653.tgz",
"integrity": "sha512-XGWQVB8wFQ2+9NZwZ10GxTYC5hk0Fa+q8cSkr0tgvMhYhMHP/QC+WTgrePMDBWiWc/pV+1ik82Al20XOK25Gcw==",
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/browserslist"
},
{
"type": "tidelift",
"url": "https://tidelift.com/funding/github/npm/caniuse-lite"
},
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
]
},
"node_modules/case-sensitive-paths-webpack-plugin": {
"version": "2.4.0",
@@ -21128,9 +21142,9 @@
}
},
"caniuse-lite": {
"version": "1.0.30001481",
"resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001481.tgz",
"integrity": "sha512-KCqHwRnaa1InZBtqXzP98LPg0ajCVujMKjqKDhZEthIpAsJl/YEIa3YvXjGXPVqzZVguccuu7ga9KOE1J9rKPQ=="
"version": "1.0.30001653",
"resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001653.tgz",
"integrity": "sha512-XGWQVB8wFQ2+9NZwZ10GxTYC5hk0Fa+q8cSkr0tgvMhYhMHP/QC+WTgrePMDBWiWc/pV+1ik82Al20XOK25Gcw=="
},
"case-sensitive-paths-webpack-plugin": {
"version": "2.4.0",


BIN
public/BoomBox/BoomBox.bin Ver fichero


BIN
public/BoomBox/BoomBox.glb Ver fichero


+ 0
- 177
public/BoomBox/BoomBox.gltf Ver fichero

@@ -1,177 +0,0 @@
{
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 3575,
"type": "VEC2"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 3575,
"type": "VEC3"
},
{
"bufferView": 2,
"componentType": 5126,
"count": 3575,
"type": "VEC4"
},
{
"bufferView": 3,
"componentType": 5126,
"count": 3575,
"type": "VEC3",
"max": [
0.009921154,
0.00977163,
0.0100762453
],
"min": [
-0.009921154,
-0.00977163,
-0.0100762453
]
},
{
"bufferView": 4,
"componentType": 5123,
"count": 18108,
"type": "SCALAR"
}
],
"asset": {
"generator": "glTF Tools for Unity",
"version": "2.0"
},
"bufferViews": [
{
"buffer": 0,
"byteLength": 28600
},
{
"buffer": 0,
"byteOffset": 28600,
"byteLength": 42900
},
{
"buffer": 0,
"byteOffset": 71500,
"byteLength": 57200
},
{
"buffer": 0,
"byteOffset": 128700,
"byteLength": 42900
},
{
"buffer": 0,
"byteOffset": 171600,
"byteLength": 36216
}
],
"buffers": [
{
"uri": "BoomBox.bin",
"byteLength": 207816
}
],
"images": [
{
"uri": "BoomBox_baseColor.png"
},
{
"uri": "BoomBox_occlusionRoughnessMetallic.png"
},
{
"uri": "BoomBox_normal.png"
},
{
"uri": "BoomBox_emissive.png"
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"TEXCOORD_0": 0,
"NORMAL": 1,
"TANGENT": 2,
"POSITION": 3
},
"indices": 4,
"material": 0
}
],
"name": "BoomBox"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
},
"metallicRoughnessTexture": {
"index": 1
}
},
"normalTexture": {
"index": 2
},
"occlusionTexture": {
"index": 1
},
"emissiveFactor": [
1.0,
1.0,
1.0
],
"emissiveTexture": {
"index": 3
},
"name": "BoomBox_Mat"
}
],
"nodes": [
{
"mesh": 0,
"rotation": [
0.0,
1.0,
0.0,
0.0
],
"scale": [ 1, 1, 1 ],
"name": "BoomBox"
}
],
"scene": 0,
"scenes": [
{
"nodes": [
0
]
}
],
"textures": [
{
"name": "baseColor",
"source": 0
},
{
"name": "occlusionRoughnessMetallic",
"source": 1
},
{
"name": "normal",
"source": 2
},
{
"name": "emissive",
"source": 3
}
]
}

BIN
public/BoomBox/BoomBox_baseColor.png Ver fichero

Antes Después
Anchura: 2048  |  Altura: 2048  |  Tamaño: 3.1 MiB

BIN
public/BoomBox/BoomBox_emissive.png Ver fichero

Antes Después
Anchura: 2048  |  Altura: 2048  |  Tamaño: 130 KiB

BIN
public/BoomBox/BoomBox_normal.png Ver fichero

Antes Después
Anchura: 2048  |  Altura: 2048  |  Tamaño: 2.7 MiB

BIN
public/BoomBox/BoomBox_occlusionRoughnessMetallic.png Ver fichero

Antes Después
Anchura: 2048  |  Altura: 2048  |  Tamaño: 4.6 MiB

+ 0
- 183
public/BoomBox/UnlitBoomBox.gltf Ver fichero

@@ -1,183 +0,0 @@
{
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 3575,
"type": "VEC2"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 3575,
"type": "VEC3"
},
{
"bufferView": 2,
"componentType": 5126,
"count": 3575,
"type": "VEC4"
},
{
"bufferView": 3,
"componentType": 5126,
"count": 3575,
"type": "VEC3",
"max": [
0.009921154,
0.00977163,
0.0100762453
],
"min": [
-0.009921154,
-0.00977163,
-0.0100762453
]
},
{
"bufferView": 4,
"componentType": 5123,
"count": 18108,
"type": "SCALAR"
}
],
"asset": {
"generator": "glTF Tools for Unity",
"version": "2.0"
},
"bufferViews": [
{
"buffer": 0,
"byteLength": 28600
},
{
"buffer": 0,
"byteOffset": 28600,
"byteLength": 42900
},
{
"buffer": 0,
"byteOffset": 71500,
"byteLength": 57200
},
{
"buffer": 0,
"byteOffset": 128700,
"byteLength": 42900
},
{
"buffer": 0,
"byteOffset": 171600,
"byteLength": 36216
}
],
"buffers": [
{
"uri": "BoomBox.bin",
"byteLength": 207816
}
],
"extensionsUsed": [
"KHR_materials_unlit"
],
"images": [
{
"uri": "BoomBox_baseColor.png"
},
{
"uri": "BoomBox_occlusionRoughnessMetallic.png"
},
{
"uri": "BoomBox_normal.png"
},
{
"uri": "BoomBox_emissive.png"
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"TEXCOORD_0": 0,
"NORMAL": 1,
"TANGENT": 2,
"POSITION": 3
},
"indices": 4,
"material": 0
}
],
"name": "BoomBox"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
},
"metallicRoughnessTexture": {
"index": 1
}
},
"normalTexture": {
"index": 2
},
"occlusionTexture": {
"index": 1
},
"emissiveFactor": [
1.0,
1.0,
1.0
],
"emissiveTexture": {
"index": 3
},
"name": "BoomBox_Mat",
"extensions": {
"KHR_materials_unlit": {}
}
}
],
"nodes": [
{
"mesh": 0,
"rotation": [
0.0,
1.0,
0.0,
0.0
],
"scale": [ 1, 1, 1 ],
"name": "BoomBox"
}
],
"scene": 0,
"scenes": [
{
"nodes": [
0
]
}
],
"textures": [
{
"name": "baseColor",
"source": 0
},
{
"name": "occlusionRoughnessMetallic",
"source": 1
},
{
"name": "normal",
"source": 2
},
{
"name": "emissive",
"source": 3
}
]
}

+ 0
- 1
public/BoomBox/scene.babylon
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


BIN
public/favicon.ico Ver fichero

Antes Después

+ 1
- 1
public/index.html Ver fichero

@@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>数智工厂生产监控驾驶舱</title>
</head>
<body style="overflow: hidden">
<noscript>You need to enable JavaScript to run this app.</noscript>


BIN
public/logo192.png Ver fichero

Antes Después
Anchura: 192  |  Altura: 192  |  Tamaño: 5.2 KiB

BIN
public/logo512.png Ver fichero

Antes Después
Anchura: 512  |  Altura: 512  |  Tamaño: 9.4 KiB

+ 0
- 25
public/manifest.json Ver fichero

@@ -1,25 +0,0 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}

BIN
public/pirateFort/cannon.glb Ver fichero


BIN
public/pirateFort/pirateFort.glb Ver fichero


+ 0
- 3
public/robots.txt Ver fichero

@@ -1,3 +0,0 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:

BIN
public/testout/Boot.bin Ver fichero


BIN
public/testout/Boot.glb Ver fichero


+ 0
- 2484
public/testout/Boot.gltf
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


BIN
public/testout/Boot_LowerLeg_DM_tga.png Ver fichero

Antes Después
Anchura: 1024  |  Altura: 1024  |  Tamaño: 1.4 MiB

BIN
public/testout/Boot_LowerLeg_NM_tga.png Ver fichero

Antes Después
Anchura: 1024  |  Altura: 1024  |  Tamaño: 971 KiB

BIN
public/testout/Boot_Torso_DM_tga.png Ver fichero

Antes Después
Anchura: 2048  |  Altura: 2048  |  Tamaño: 5.6 MiB

BIN
public/testout/Boot_Torso_NM_tga.png Ver fichero

Antes Después
Anchura: 2048  |  Altura: 2048  |  Tamaño: 4.1 MiB

BIN
public/testout/Boot_Torso_SM_tga.png Ver fichero

Antes Después
Anchura: 1024  |  Altura: 1024  |  Tamaño: 644 KiB

BIN
public/testout/Image.png Ver fichero

Antes Después
Anchura: 1  |  Altura: 1  |  Tamaño: 90 B

BIN
public/testout/MechA_Arm_C_DM.png Ver fichero

Antes Después
Anchura: 512  |  Altura: 512  |  Tamaño: 401 KiB

BIN
public/testout/MechA_Arm_C_NM.png Ver fichero

Antes Después
Anchura: 256  |  Altura: 256  |  Tamaño: 79 KiB

BIN
public/testout/MechA_Arm_C_SCD.png Ver fichero

Antes Después
Anchura: 1024  |  Altura: 1024  |  Tamaño: 942 KiB

+ 50
- 39
src/App.tsx Ver fichero

@@ -1,10 +1,10 @@
import React, {useEffect, useState, useContext} from 'react';
import intl from 'react-intl-universal';
import React, { useEffect, useState, useContext } from "react";
import intl from "react-intl-universal";
import locales from "./locales/locales";
import './App.css';
import {useAppSelector} from "./store/hooks";
import {selectChangeLangAndCss} from "./store/ChangeLangAndCss";
import {createBrowserRouter, RouterProvider,} from "react-router-dom";
import "./App.css";
import { useAppSelector } from "./store/hooks";
import { selectChangeLangAndCss } from "./store/ChangeLangAndCss";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
import ErrorPage from "./page/ErrorPage";
import MainP from "./page/MainP/MainP";
@@ -12,12 +12,12 @@ import MainE from "./page/MainE/MainE";
import MainQ from "./page/MainQ/MainQ";
import SwitchAll from "./page/AutoSwitch/SwitchAll";
import SwitchLine from "./page/AutoSwitch/SwitchLine";
import {MyObservable} from "./context/MyObservable";
import {Observable} from "@babylonjs/core";
import {selectGlassStatus} from "./store/ProductionMonitoringEntity";
import { MyObservable } from "./context/MyObservable";
import { Observable } from "@babylonjs/core";
import { selectGlassStatus } from "./store/ProductionMonitoringEntity";
import TestPage from "./page/TestPage";
import LDPage from "./page/LDPage"
import LinePage from './page/LinePage';
import LDPage from "./page/LDPage";
import LinePage from "./page/LinePage";
// const LOCALES_LIST = [
// {
@@ -33,70 +33,72 @@ import LinePage from './page/LinePage';
const onGlassObservable = new Observable();
function App() {
const thisLineGlassStatus = useAppSelector(selectGlassStatus)
onGlassObservable.notifyObservers(thisLineGlassStatus)
const thisLineGlassStatus = useAppSelector(selectGlassStatus);
onGlassObservable.notifyObservers(thisLineGlassStatus);
const Locale = useAppSelector(selectChangeLangAndCss).Locale;
const setCurrentLocale = (currentLocale: string) => {
intl.init({
currentLocale,
locales: locales,
}).then(() => {
console.log('Language Changed to ' + currentLocale);
});
intl
.init({
currentLocale,
locales: locales,
})
.then(() => {
console.log("Language Changed to " + currentLocale);
});
};
setCurrentLocale(Locale);
const router = createBrowserRouter([
{
path: "/",
element: <MainP/>,
errorElement: <ErrorPage/>
path: "/:LineID?",
element: <LinePage />,
errorElement: <ErrorPage />,
},
{
path: "/P",
element: <MainP/>,
errorElement: <ErrorPage/>
element: <MainP />,
errorElement: <ErrorPage />,
},
{
path: "/Q",
element: <MainQ/>,
errorElement: <ErrorPage/>
element: <MainQ />,
errorElement: <ErrorPage />,
},
{
path: "/E/:LineID?",
element: <MainE/>,
errorElement: <ErrorPage/>
element: <MainE />,
errorElement: <ErrorPage />,
},
///////////////////////////////////////////////////////////////////////////
{
path: "/SA",
element: <SwitchAll/>,
errorElement: <ErrorPage/>
element: <SwitchAll />,
errorElement: <ErrorPage />,
},
{
path: "/SL/:LineID?",
element: <SwitchLine/>,
errorElement: <ErrorPage/>
element: <SwitchLine />,
errorElement: <ErrorPage />,
},
/////////////////////////////////////////////////////////////////////////////
{
path: "/TP/:LineID?",
element: <TestPage/>,
errorElement: <ErrorPage/>
element: <TestPage />,
errorElement: <ErrorPage />,
},
{
path: "/LD",
element: <LDPage/>,
errorElement: <ErrorPage/>
element: <LDPage />,
errorElement: <ErrorPage />,
},
///////////////////////////////////////////////////////////////
{
path: "/LP/:LineID?",
element: <LinePage/>,
errorElement: <ErrorPage/>
element: <LinePage />,
errorElement: <ErrorPage />,
},
// {
// path: "/TP/:LineID?",
@@ -104,11 +106,20 @@ function App() {
// errorElement: <ErrorPage/>
// },
]);
useEffect(() => {
const timerId = setInterval(() => {
window.location.reload();
}, 43200000);
return () => {
clearInterval(timerId);
};
}, []);
return (
<MyObservable.Provider value={onGlassObservable}>
<div className="background">
<RouterProvider router={router}/>
<RouterProvider router={router} />
</div>
</MyObservable.Provider>
);


Cargando…
Cancelar
Guardar