refactor: loadWindowVariables final auf API-Handler in Development umgestellt

- Scripts in Dev-Umgebung werden jetzt über /api/cpl/* geladen
- Production lädt weiterhin Embedded-System JavaScript Dateien
- Einheitliches Handling für system.js, de.js, ae.js, kueData.js, opcua.js usw.
- Flexibles Konzept für zukünftige Erweiterungen
This commit is contained in:
Ismail Ali
2025-04-15 17:03:54 +02:00
parent ebe81ffd8b
commit 025470defb
12 changed files with 33 additions and 210 deletions

View File

@@ -8,7 +8,7 @@ import { loadWindowVariables } from "../utils/loadWindowVariables";
import Header from "../components/header/Header";
import Navigation from "../components/navigation/Navigation";
import Footer from "../components/footer/Footer";
import WindowVariablesInitializer from "../components/WindowVariablesInitializer";
import "../styles/globals.css";
import { AppProps } from "next/app";
@@ -53,7 +53,6 @@ function AppContent({ Component, pageProps }: AppProps) {
return (
<div className="flex flex-col h-screen overflow-hidden">
<WindowVariablesInitializer />
<Header />
<div className="flex flex-grow w-full">
<Navigation className="w-1/5" />