Platzhalter für KÜs korrigiert nach Lastenheft
This commit is contained in:
@@ -9,13 +9,50 @@ interface CustomWindow extends Window {
|
||||
export async function loadWindowVariables(): Promise<Record<string, any>> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const requiredVars: string[] = [
|
||||
"win_kueID", // z. B. für die Anzeige der Modulnamen
|
||||
"win_deviceName", // z. B. für die Kopfzeile/Übersicht
|
||||
"win_deviceName",
|
||||
"win_mac1",
|
||||
"win_ip",
|
||||
"win_subnet",
|
||||
"win_gateway",
|
||||
"win_cplInternalTimestamp",
|
||||
"win_ntp1",
|
||||
"win_ntp2",
|
||||
"win_ntp3",
|
||||
"win_systemZeit",
|
||||
"win_ntpTimezone",
|
||||
"win_ntpActive",
|
||||
"win_de_state",
|
||||
"win_de_label",
|
||||
"win_counter",
|
||||
"win_flutter",
|
||||
"win_kueOnline",
|
||||
"win_kueID",
|
||||
"win_kuePSTmMinus96V",
|
||||
"win_kueAlarm1",
|
||||
"win_kueAlarm2",
|
||||
"win_kueIso",
|
||||
"win_kueResidence",
|
||||
"win_kueCableBreak",
|
||||
"win_kueGroundFault",
|
||||
"win_kueLimit1",
|
||||
"win_kueLimit2Low",
|
||||
"win_kueDelay1",
|
||||
"win_kueLoopInterval",
|
||||
"win_kueVersion",
|
||||
"win_tdrAtten",
|
||||
"win_tdrPulse",
|
||||
"win_tdrSpeed",
|
||||
"win_tdrAmp",
|
||||
"win_tdrTrigger",
|
||||
"win_tdrLocation",
|
||||
"win_tdrActive",
|
||||
"win_kueOverflow",
|
||||
"win_tdrLast",
|
||||
"win_appVersion",
|
||||
"win_da_state",
|
||||
"win_da_bezeichnung",
|
||||
];
|
||||
|
||||
const scripts: string[] = ["system.js"];
|
||||
const scripts: string[] = ["system.js, kueData.js"];
|
||||
|
||||
// ✅ Erkenne Umgebung anhand von `window.location.hostname`
|
||||
const isDev = window.location.hostname === "localhost";
|
||||
|
||||
Reference in New Issue
Block a user