From 3ed79d2cb22622a6373522ba18d97c6bebdf4a52 Mon Sep 17 00:00:00 2001 From: NiEkOKsU Date: Tue, 6 Aug 2024 22:24:35 +0200 Subject: [PATCH 01/25] speed up build time but with errors at the moment --- global.d.ts | 5 + public/index.html => index.html | 11 +- package-lock.json | 7944 +++++++++++++++-- package.json | 17 +- scripts/fixDeploy.mjs | 2 +- src/PythonConverter/PythonWorker.ts | 4 +- .../CustomStoppingPower.ts | 4 +- .../components/Dialog/OpenFileDialog.tsx | 2 +- src/ThreeEditor/js/Toolbar.js | 6 +- .../js/viewport/Viewport.Camera.js | 4 +- src/ThreeEditor/js/viewport/Viewport.js | 844 +- src/config/ConfigService.tsx | 8 +- src/examples/examples.ts | 3 +- src/services/KeycloakAuthService.tsx | 6 +- src/util/Ui/{ReactUis.js => ReactUis.jsx} | 0 src/vite-env.d.ts | 2 + tsconfig.json | 9 +- vite.config.ts | 13 + 18 files changed, 7535 insertions(+), 1349 deletions(-) create mode 100644 global.d.ts rename public/index.html => index.html (90%) rename src/util/Ui/{ReactUis.js => ReactUis.jsx} (100%) create mode 100644 src/vite-env.d.ts create mode 100644 vite.config.ts diff --git a/global.d.ts b/global.d.ts new file mode 100644 index 000000000..9aa91a4ee --- /dev/null +++ b/global.d.ts @@ -0,0 +1,5 @@ +// global.d.ts +declare module '*.json' { + const value: any; + export default value; +} diff --git a/public/index.html b/index.html similarity index 90% rename from public/index.html rename to index.html index f38d7751b..81e065ed3 100644 --- a/public/index.html +++ b/index.html @@ -1,10 +1,10 @@ - + + href="/favicon.ico" /> @@ -16,14 +16,14 @@ content="Yaptide web user interface" /> + href="/logo192.png" /> + href="/manifest.json" />