chore: Entfernen des gesamten hooks-Verzeichnisses mit veralteten Daten-Hooks
- useDigitalInputsData.ts und useDigitalOutputsData.ts entfernt - Veraltete direkte Laden von window-Variablen aus Mock-Skripten entfernt - Alle Daten werden jetzt ausschließlich über Services und Redux Thunks verwaltet - Projektstruktur aufgeräumt und optimiert
This commit is contained in:
@@ -23,8 +23,7 @@ const getApiUrl = (
|
||||
: "unbekannterTyp";
|
||||
|
||||
return process.env.NEXT_PUBLIC_NODE_ENV === "development"
|
||||
? // ? `/CPLmockData/kuesChartData/slot${slotNumber}/${typeFolder}/${mode}.json`
|
||||
`/api/cpl/slotDataAPIHandler?slot=${slotNumber}&messart=${typeFolder}&dia=${mode}&vonDatum=${vonDatum}&bisDatum=${bisDatum}`
|
||||
? `/api/cpl/slotDataAPIHandler?slot=${slotNumber}&messart=${typeFolder}&dia=${mode}&vonDatum=${vonDatum}&bisDatum=${bisDatum}`
|
||||
: `${window.location.origin}/CPL?seite.ACP&${mode}=${formatDate(
|
||||
vonDatum
|
||||
)};${formatDate(bisDatum)};${slotNumber};${type};`;
|
||||
|
||||
Reference in New Issue
Block a user