BREAKING CHANGE: Sichtbarkeit der Gerätegruppen basiert nun auf 'system-<IdSystem>' statt auf Namen wie 'SMSFunkmodem'. Statische Layer-Konfiguration im Redux-Slice entfernt."
174 lines
4.0 KiB
JavaScript
174 lines
4.0 KiB
JavaScript
// __mocks__/webservice/gisStationsStaticDistrict.js
|
|
|
|
export const mockGisStationsStaticDistrict = {
|
|
Name: "Liste aller Geraete einer bestimmten Karte",
|
|
Zeitstempel: "2025-05-29T08:08:34.2019886+02:00",
|
|
IdMap: "12",
|
|
Points: [
|
|
{
|
|
LD_Name: "CPL Ismail",
|
|
IdLD: 50922,
|
|
Device: "CPL V3.5 mit 24 Kü",
|
|
Link: "cpl.aspx?ver=35&kue=24&id=50922",
|
|
Location_Name: "Littwin",
|
|
Location_Short: "LTW",
|
|
IdLocation: 24101,
|
|
Area_Name: "Rastede",
|
|
Area_Short: "",
|
|
IdArea: 20998,
|
|
X: 53.242157,
|
|
Y: 8.160353,
|
|
Icon: 20,
|
|
System: 1,
|
|
Active: 1,
|
|
},
|
|
{
|
|
LD_Name: "LR 77 ISA",
|
|
IdLD: 50935,
|
|
Device: "LTE Modem LR77",
|
|
Link: "lr77.aspx?ver=1&id=50935",
|
|
Location_Name: "Littwin",
|
|
Location_Short: "LTW",
|
|
IdLocation: 24101,
|
|
Area_Name: "Rastede",
|
|
Area_Short: "",
|
|
IdArea: 20998,
|
|
X: 53.242157,
|
|
Y: 8.160353,
|
|
Icon: 12,
|
|
System: 5,
|
|
Active: 1,
|
|
},
|
|
{
|
|
LD_Name: "Cisco Router 1841",
|
|
IdLD: 50936,
|
|
Device: "Cisco 1841",
|
|
Link: "cisco1841.aspx?ver=1&id=50936",
|
|
Location_Name: "Littwin",
|
|
Location_Short: "LTW",
|
|
IdLocation: 24101,
|
|
Area_Name: "Rastede",
|
|
Area_Short: "",
|
|
IdArea: 20998,
|
|
X: 53.242157,
|
|
Y: 8.160353,
|
|
Icon: 21,
|
|
System: 6,
|
|
Active: 1,
|
|
},
|
|
{
|
|
LD_Name: "GMA Testgerät ISA",
|
|
IdLD: 50937,
|
|
Device: "Glättemeldeanlage",
|
|
Link: "gma.aspx?ver=1&id=50937",
|
|
Location_Name: "Littwin",
|
|
Location_Short: "LTW",
|
|
IdLocation: 24101,
|
|
Area_Name: "Rastede",
|
|
Area_Short: "",
|
|
IdArea: 20998,
|
|
X: 53.242157,
|
|
Y: 8.160353,
|
|
Icon: 1,
|
|
System: 11,
|
|
Active: 1,
|
|
},
|
|
{
|
|
LD_Name: "SMS-Funkmodem",
|
|
IdLD: 50938,
|
|
Device: "SMS Funkmodem",
|
|
Link: "sms_modem.aspx?ver=1&id=50938",
|
|
Location_Name: "Littwin",
|
|
Location_Short: "LTW",
|
|
IdLocation: 24101,
|
|
Area_Name: "Rastede",
|
|
Area_Short: "",
|
|
IdArea: 20998,
|
|
X: 53.242157,
|
|
Y: 8.160353,
|
|
Icon: 12,
|
|
System: 111,
|
|
Active: 1,
|
|
},
|
|
{
|
|
LD_Name: "TALAS Meldestationen ISA",
|
|
IdLD: 50939,
|
|
Device: "CPL V3.5 mit 16 Kü",
|
|
Link: "cpl.aspx?ver=35&kue=16&id=50939",
|
|
Location_Name: "Littwin",
|
|
Location_Short: "LTW",
|
|
IdLocation: 24101,
|
|
Area_Name: "Rastede",
|
|
Area_Short: "",
|
|
IdArea: 20998,
|
|
X: 53.242157,
|
|
Y: 8.160353,
|
|
Icon: 20,
|
|
System: 1,
|
|
Active: 1,
|
|
},
|
|
{
|
|
LD_Name: "WAGO Klemmen ISA",
|
|
IdLD: 50941,
|
|
Device: "WAGO 16 DE",
|
|
Link: "wago.aspx?ver=1&DE=16&id=50941",
|
|
Location_Name: "Littwin",
|
|
Location_Short: "LTW",
|
|
IdLocation: 24101,
|
|
Area_Name: "Rastede",
|
|
Area_Short: "",
|
|
IdArea: 20998,
|
|
X: 53.242157,
|
|
Y: 8.160353,
|
|
Icon: 9,
|
|
System: 7,
|
|
Active: 1,
|
|
},
|
|
{
|
|
LD_Name: "Cisco 1921",
|
|
IdLD: 50942,
|
|
Device: "Cisco 1921",
|
|
Link: "cisco1921.aspx?ver=1&id=50942",
|
|
Location_Name: "Littwin",
|
|
Location_Short: "LTW",
|
|
IdLocation: 24101,
|
|
Area_Name: "Rastede",
|
|
Area_Short: "",
|
|
IdArea: 20998,
|
|
X: 53.242157,
|
|
Y: 8.160353,
|
|
Icon: 21,
|
|
System: 6,
|
|
Active: 1,
|
|
},
|
|
{
|
|
LD_Name: "Cisco 8200",
|
|
IdLD: 50943,
|
|
Device: "Cisco 8200",
|
|
Link: "cisco8200.aspx?ver=1&id=50943",
|
|
Location_Name: "Littwin",
|
|
Location_Short: "LTW",
|
|
IdLocation: 24101,
|
|
Area_Name: "Rastede",
|
|
Area_Short: "",
|
|
IdArea: 20998,
|
|
X: 53.242157,
|
|
Y: 8.160353,
|
|
Icon: 21,
|
|
System: 6,
|
|
Active: 1,
|
|
},
|
|
],
|
|
};
|
|
|
|
// Optional: Funktion zum Ändern
|
|
export const updateDevice = (id, changes) => {
|
|
const device = mockGisStationsStaticDistrict.Points.find((p) => p.IdLD === id);
|
|
if (device) Object.assign(device, changes);
|
|
};
|
|
|
|
export const deleteDevice = (id) => {
|
|
const index = mockGisStationsStaticDistrict.Points.findIndex((p) => p.IdLD === id);
|
|
if (index !== -1) mockGisStationsStaticDistrict.Points.splice(index, 1);
|
|
};
|