This commit is contained in:
ISA
2025-05-28 08:04:34 +02:00
parent 97fbb6fdc1
commit 5f0133d638
107 changed files with 1446 additions and 454 deletions

View File

@@ -0,0 +1,25 @@
<!-- /docs/redux/slices/webservice/gisLinesStatusSlice.md -->
# 🧩 gisLinesStatusSlice.js
Lädt und speichert Statusdaten von Linien (z.B. Spannungswerte, Betriebszustand) aus dem Webservice.
## Zustand
```js
{
data: [],
status: "idle" | "loading" | "succeeded" | "failed",
error: string | null
}
```
## Thunk
- `fetchGisLinesStatusThunk()`
## Selector
```js
selectGisLinesStatusFromWebservice = (state) => state.gisLinesStatusFromWebservice
```

View File

@@ -1,26 +1,25 @@
# 📈 gisStationsMeasurementsSlice
<!-- /docs/redux/slices/webservice/gisStationsMeasurementsSlice.md -->
Verwaltet Messdaten für GIS-Stationen, z.B. Spannungen, Strom, Sensorwerte etc.
# 🧩 gisStationsMeasurementsSlice.js
## 🔧 Pfad
`/redux/slices/webService/gisStationsMeasurementsSlice.js`
Verwaltet Messwerte einzelner Stationen (z.B. Schleifenwiderstand, Isolation) aus Webservice-Antworten.
## 📦 Initial State
## Zustand
```ts
```js
{
data: [],
status: "idle",
error: null
status: "idle" | "loading" | "succeeded" | "failed",
error: string | null
}
```
## 🔁 Thunk: `fetchGisStationsMeasurementsFromWebService`
## Thunk
Verwendet `fetchGisStationsMeasurements()` als API-Quelle.
- `fetchGisStationsMeasurementsThunk()`
## 📊 Selector
## Selector
```ts
selectGisStationsMeasurements = (state) => state.gisStationsMeasurements.data;
```js
selectGisStationsMeasurements = (state) => state.gisStationsMeasurements.data
```

View File

@@ -1,18 +1,25 @@
# 🏙️ gisStationsStaticDistrictSlice
<!-- /docs/redux/slices/webservice/gisStationsStaticDistrictSlice.md -->
Verwaltet statische Daten für GIS-Bezirksstationen.
# 🧩 gisStationsStaticDistrictSlice.js
## 🔧 Pfad
`/redux/slices/webService/gisStationsStaticDistrictSlice.js`
Lädt und speichert statische Standortdaten (z.B. Koordinaten) der Stationen im aktuellen Bezirk.
## 📦 Initial State
## Zustand
```ts
```js
{
data: [],
status: "idle",
error: null
data: { Points: [] },
status: "idle" | "loading" | "succeeded" | "failed",
error: string | null
}
```
## 🔁 Thunk: `fetchGisStationsStaticDistrictFromWebService`
## Thunk
- `fetchGisStationsStaticDistrictThunk()`
## Selector
```js
selectGisStationsStaticDistrict = (state) => state.gisStationsStaticDistrict.data
```

View File

@@ -1,26 +0,0 @@
# 🛰️ gisStationsStaticSlice
Verwaltet statische Informationen zu GIS-Stationen z.B. für das Dropdown im DataSheet-Bereich.
## 🔧 Pfad
`/redux/slices/webService/gisStationsStaticSlice.js`
## 📦 Initial State
```ts
{
data: null,
status: "idle",
error: null
}
```
## 🔁 Thunk: `fetchGisStationsStatic`
Lädt Daten über dynamisch erzeugte URL (`idMap` aus `window.location.search`).
## 🧪 Logging
```ts
console.log("📡 API Request URL in redux slice:", url);
```

View File

@@ -1,18 +1,25 @@
# 📶 gisStationsStatusDistrictSlice
<!-- /docs/redux/slices/webservice/gisStationsStatusDistrictSlice.md -->
Verwaltet Statusinformationen für GIS-Bezirksstationen (z.B. online/offline, Fehlerstatus).
# 🧩 gisStationsStatusDistrictSlice.js
## 🔧 Pfad
`/redux/slices/webService/gisStationsStatusDistrictSlice.js`
Verwaltet den Status aller Stationen im aktuellen Bezirk aus Webservice-Daten.
## 📦 Initial State
## Zustand
```ts
```js
{
data: [],
status: "idle",
error: null
status: "idle" | "loading" | "succeeded" | "failed",
error: string | null
}
```
## 🔁 Thunk: `fetchGisStationsStatusDistrictFromWebService`
## Thunk
- `fetchGisStationsStatusDistrictThunk()`
## Selector
```js
selectGisStationsStatusDistrict = (state) => state.gisStationsStatusDistrict.data
```

View File

@@ -1,25 +1,25 @@
# 🧭 gisSystemStaticSlice
<!-- /docs/redux/slices/webservice/gisSystemStaticSlice.md -->
Verwaltet statische GIS-Systemdaten (`Systems[]`), die vom Server zurückgegeben werden.
# 🧩 gisSystemStaticSlice.js
## 🔧 Pfad
`/redux/slices/webService/gisSystemStaticSlice.js`
Verwaltet statische Gerätedaten aller Systeme, die vom Webservice zurückgegeben werden.
## 📦 Initial State
## Zustand
```ts
```js
{
data: [], // enthält Systems[]
status: "idle", // Ladezustand
error: null
data: [],
status: "idle" | "loading" | "succeeded" | "failed",
error: string | null
}
```
## 🔁 Thunk: `fetchGisSystemStaticFromWebService`
## Thunk
Ruft `fetchGisSystemStatic()` auf und speichert nur das Feld `Systems` im Redux-State.
- `fetchGisSystemStaticThunk()`
## 🧩 Aktionen
## Selector
- `setGisSystemStatic(data)` → manuelles Setzen von `Systems[]`
- `fulfilled` → speichert Systems[]
```js
selectGisSystemStatic = (state) => state.gisSystemStatic.data
```

View File

@@ -0,0 +1,26 @@
<!-- /docs/redux/slices/webservice/userRightsSlice.md -->
# 🧩 userRightsSlice.js
Verwaltet die Benutzerrechte, die vom Webservice für den angemeldeten Nutzer bereitgestellt werden.
## Zustand
```js
{
rights: [],
status: "idle" | "loading" | "succeeded" | "failed",
error: string | null
}
```
## Thunk
- `fetchUserRightsThunk()`
## Selector
```js
selectGisUserRightsFromWebservice = (state) => state.gisUserRightsFromWebservice.rights
selectGisUserRightsStatus = (state) => state.gisUserRightsFromWebservice.status
```