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

@@ -1,11 +1,11 @@
// /redux/thunks/fetchTDRChartDataByIdThunk.ts
import { createAsyncThunk } from "@reduxjs/toolkit";
import { fetchTDRChartDataById } from "../../services/fetchTDRChartDataByIdService";
import { fetchTDRChartDataByIdService } from "../../services/fetchTDRChartDataByIdService";
export const fetchTDRChartDataByIdThunk = createAsyncThunk(
"tdrDataById/fetchById",
async (id: number) => {
const data = await fetchTDRChartDataById(id);
const data = await fetchTDRChartDataByIdService(id);
if (!data) throw new Error(`Keine TDR-Daten für ID ${id}`);
return { id, data };
}