docs
This commit is contained in:
25
docs/redux/thunks/database/area/updateAreaThunk.md
Normal file
25
docs/redux/thunks/database/area/updateAreaThunk.md
Normal file
@@ -0,0 +1,25 @@
|
||||
<!-- /docs/redux/thunks/database/area/updateAreaThunk.md -->
|
||||
|
||||
# ✏️ updateAreaThunk.js
|
||||
|
||||
Async-Thunk zum Aktualisieren der Koordinaten eines Bereichs (Area).
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(updateAreaThunk({
|
||||
idLocation: 5,
|
||||
idMap: 2,
|
||||
x: 53.215,
|
||||
y: 8.45
|
||||
}));
|
||||
```
|
||||
|
||||
## Quelle
|
||||
|
||||
- Ruft `updateAreaService(payload)` auf
|
||||
|
||||
## Verhalten
|
||||
|
||||
- Gibt `await`-Ergebnis direkt zurück
|
||||
- Fehlerbehandlung wird vom aufrufenden Slice übernommen
|
||||
15
docs/redux/thunks/database/fetchLocationDevicesThunk.md
Normal file
15
docs/redux/thunks/database/fetchLocationDevicesThunk.md
Normal file
@@ -0,0 +1,15 @@
|
||||
<!-- /docs/redux/thunks/database/fetchLocationDevicesThunk.md -->
|
||||
|
||||
# 🚚 fetchLocationDevicesThunk.js
|
||||
|
||||
Async-Thunk zum Laden aller Geräte aus der Tabelle `location_device`.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(fetchLocationDevicesThunk());
|
||||
```
|
||||
|
||||
## Quelle
|
||||
|
||||
- Ruft `fetchLocationDevicesService()` auf
|
||||
15
docs/redux/thunks/database/fetchPriorityConfigThunk.md
Normal file
15
docs/redux/thunks/database/fetchPriorityConfigThunk.md
Normal file
@@ -0,0 +1,15 @@
|
||||
<!-- /docs/redux/thunks/database/fetchPriorityConfigThunk.md -->
|
||||
|
||||
# 🎯 fetchPriorityConfigThunk.js
|
||||
|
||||
Async-Thunk zum Abrufen der Prioritätskonfiguration für Marker.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(fetchPriorityConfigThunk());
|
||||
```
|
||||
|
||||
## Quelle
|
||||
|
||||
- Ruft `fetchPriorityConfigService()` auf
|
||||
16
docs/redux/thunks/database/getDeviceIdByNameThunk.md
Normal file
16
docs/redux/thunks/database/getDeviceIdByNameThunk.md
Normal file
@@ -0,0 +1,16 @@
|
||||
<!-- /docs/redux/thunks/database/getDeviceIdByNameThunk.md -->
|
||||
|
||||
# 🆔 getDeviceIdByNameThunk.js
|
||||
|
||||
Async-Thunk zur Ermittlung der ID eines Geräts anhand des Gerätenamens.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(getDeviceIdByNameThunk("Kue705"));
|
||||
```
|
||||
|
||||
## Verhalten
|
||||
|
||||
- Ruft `getDeviceIdByNameService(deviceName)` auf
|
||||
- Fehler werden mit `rejectWithValue(error.message)` behandelt
|
||||
@@ -0,0 +1,37 @@
|
||||
<!-- /docs/redux/thunks/database/locationDevice/fetchLocationDevicesThunk.md -->
|
||||
|
||||
# 🚚 fetchLocationDevicesThunk.js
|
||||
|
||||
Redux-AsyncThunk zum Abrufen aller Einträge aus der Tabelle `location_device`.
|
||||
|
||||
---
|
||||
|
||||
## 🔄 Zweck
|
||||
|
||||
Dieser Thunk ruft die Servicefunktion `fetchLocationDevicesService()` auf und liefert deren Ergebnis an den Redux-Slice `locationDevicesSlice`.
|
||||
|
||||
---
|
||||
|
||||
## 🧠 Intern
|
||||
|
||||
```ts
|
||||
createAsyncThunk("locationDevices/fetchAll", async () => {
|
||||
return await fetchLocationDevicesService();
|
||||
});
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## ✅ Verwendung
|
||||
|
||||
```ts
|
||||
dispatch(fetchLocationDevicesThunk());
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📁 Pfad
|
||||
|
||||
```
|
||||
/redux/thunks/database/locationDevice/fetchLocationDevicesThunk.js
|
||||
```
|
||||
21
docs/redux/thunks/database/pois/addPoiThunk.md
Normal file
21
docs/redux/thunks/database/pois/addPoiThunk.md
Normal file
@@ -0,0 +1,21 @@
|
||||
<!-- /docs/redux/thunks/database/pois/addPoiThunk.md -->
|
||||
|
||||
# ➕ addPoiThunk.js
|
||||
|
||||
Async-Thunk zur Erstellung eines neuen POIs.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(addPoiThunk({
|
||||
name: "Messstelle 1",
|
||||
poiTypeId: 2,
|
||||
latitude: 53.21,
|
||||
longitude: 8.43,
|
||||
idLD: 12
|
||||
}));
|
||||
```
|
||||
|
||||
## Intern
|
||||
|
||||
Ruft `addPoiService(formData)` auf und gibt das Ergebnis zurück.
|
||||
16
docs/redux/thunks/database/pois/deletePoiThunk.md
Normal file
16
docs/redux/thunks/database/pois/deletePoiThunk.md
Normal file
@@ -0,0 +1,16 @@
|
||||
<!-- /docs/redux/thunks/database/pois/deletePoiThunk.md -->
|
||||
|
||||
# ❌ deletePoiThunk.js
|
||||
|
||||
Async-Thunk zum Löschen eines POIs anhand seiner ID.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(deletePoiThunk(15));
|
||||
```
|
||||
|
||||
## Verhalten
|
||||
|
||||
- Ruft `deletePoiService(id)` auf
|
||||
- Gibt die ID im Erfolgsfall zurück
|
||||
15
docs/redux/thunks/database/pois/fetchPoiIconsDataThunk.md
Normal file
15
docs/redux/thunks/database/pois/fetchPoiIconsDataThunk.md
Normal file
@@ -0,0 +1,15 @@
|
||||
<!-- /docs/redux/thunks/database/pois/fetchPoiIconsDataThunk.md -->
|
||||
|
||||
# 🖼️ fetchPoiIconsDataThunk.js
|
||||
|
||||
Lädt alle verfügbaren POI-Icons aus dem Backend.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(fetchPoiIconsDataThunk());
|
||||
```
|
||||
|
||||
## Intern
|
||||
|
||||
- Ruft `fetchPoiIconsDataService()` auf
|
||||
15
docs/redux/thunks/database/pois/fetchPoiMarkersThunk.md
Normal file
15
docs/redux/thunks/database/pois/fetchPoiMarkersThunk.md
Normal file
@@ -0,0 +1,15 @@
|
||||
<!-- /docs/redux/thunks/database/pois/fetchPoiMarkersThunk.md -->
|
||||
|
||||
# 📍 fetchPoiMarkersThunk.js
|
||||
|
||||
Lädt alle POI-Marker (Positionsdaten) aus dem Backend.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(fetchPoiMarkersThunk());
|
||||
```
|
||||
|
||||
## Intern
|
||||
|
||||
- Ruft `fetchPoiMarkersService()` auf
|
||||
15
docs/redux/thunks/database/pois/fetchPoiTypThunk.md
Normal file
15
docs/redux/thunks/database/pois/fetchPoiTypThunk.md
Normal file
@@ -0,0 +1,15 @@
|
||||
<!-- /docs/redux/thunks/database/pois/fetchPoiTypThunk.md -->
|
||||
|
||||
# 🗂️ fetchPoiTypThunk.js
|
||||
|
||||
Lädt alle verfügbaren POI-Typen aus der Datenbank.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(fetchPoiTypThunk());
|
||||
```
|
||||
|
||||
## Intern
|
||||
|
||||
- Ruft `fetchPoiTypService()` auf
|
||||
20
docs/redux/thunks/database/pois/updatePoiThunk.md
Normal file
20
docs/redux/thunks/database/pois/updatePoiThunk.md
Normal file
@@ -0,0 +1,20 @@
|
||||
<!-- /docs/redux/thunks/database/pois/updatePoiThunk.md -->
|
||||
|
||||
# 📝 updatePoiThunk.js
|
||||
|
||||
Aktualisiert einen bestehenden POI mit neuen Daten.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(updatePoiThunk({
|
||||
idPoi: 15,
|
||||
description: "Neue Beschreibung",
|
||||
idPoiTyp: 3,
|
||||
idLD: 8
|
||||
}));
|
||||
```
|
||||
|
||||
## Intern
|
||||
|
||||
- Ruft `updatePoiService(poi)` auf
|
||||
16
docs/redux/thunks/database/polylines/fetchGisLinesThunk.md
Normal file
16
docs/redux/thunks/database/polylines/fetchGisLinesThunk.md
Normal file
@@ -0,0 +1,16 @@
|
||||
<!-- /docs/redux/thunks/database/polylines/fetchGisLinesThunk.md -->
|
||||
|
||||
# 📡 fetchGisLinesThunk.js
|
||||
|
||||
Async-Thunk zum Laden aller Linien aus der Datenbanktabelle `gis_lines`.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(fetchGisLinesThunk());
|
||||
```
|
||||
|
||||
## Intern
|
||||
|
||||
- Ruft `fetchGisLinesService()` auf
|
||||
- Liefert alle Linien mit Koordinaten zur Anzeige auf der Karte
|
||||
@@ -0,0 +1,20 @@
|
||||
<!-- /docs/redux/thunks/database/polylines/updatePolylineCoordinatesThunk.md -->
|
||||
|
||||
# 🧭 updatePolylineCoordinatesThunk.js
|
||||
|
||||
Async-Thunk zur Aktualisierung von Linienkoordinaten in der Datenbank.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(updatePolylineCoordinatesThunk({
|
||||
idLD: 7,
|
||||
idModul: 2,
|
||||
newCoordinates: [[53.2, 8.4], [53.21, 8.45]]
|
||||
}));
|
||||
```
|
||||
|
||||
## Intern
|
||||
|
||||
- Ruft `updatePolylineCoordinatesService(requestData)` auf
|
||||
- Wandelt Koordinaten in MySQL LINESTRING um
|
||||
16
docs/redux/thunks/webservice/fetchGisLinesStatusThunk.md
Normal file
16
docs/redux/thunks/webservice/fetchGisLinesStatusThunk.md
Normal file
@@ -0,0 +1,16 @@
|
||||
<!-- /docs/redux/thunks/webservice/fetchGisLinesStatusThunk.md -->
|
||||
|
||||
# 📡 fetchGisLinesStatusThunk.js
|
||||
|
||||
Async-Thunk zum Laden des Status aller Linien aus dem Webservice.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(fetchGisLinesStatusThunk());
|
||||
```
|
||||
|
||||
## Intern
|
||||
|
||||
- Ruft `fetchGisLinesStatusService()` auf
|
||||
- Fehlerbehandlung per `rejectWithValue(error.message)`
|
||||
@@ -0,0 +1,15 @@
|
||||
<!-- /docs/redux/thunks/webservice/fetchGisStationsMeasurementsThunk.md -->
|
||||
|
||||
# 📈 fetchGisStationsMeasurementsThunk.js
|
||||
|
||||
Lädt Messwerte aller Stationen (z. B. Schleifenwiderstand, Isolation).
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(fetchGisStationsMeasurementsThunk());
|
||||
```
|
||||
|
||||
## Intern
|
||||
|
||||
- Ruft `fetchGisStationsMeasurementsService()` auf
|
||||
@@ -0,0 +1,15 @@
|
||||
<!-- /docs/redux/thunks/webservice/fetchGisStationsStaticDistrictThunk.md -->
|
||||
|
||||
# 🧭 fetchGisStationsStaticDistrictThunk.js
|
||||
|
||||
Lädt statische Standortdaten (z. B. Koordinaten) für den aktuellen Bezirk.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(fetchGisStationsStaticDistrictThunk());
|
||||
```
|
||||
|
||||
## Intern
|
||||
|
||||
- Ruft `fetchGisStationsStaticDistrictService()` auf
|
||||
@@ -0,0 +1,15 @@
|
||||
<!-- /docs/redux/thunks/webservice/fetchGisStationsStatusDistrictThunk.md -->
|
||||
|
||||
# 🚦 fetchGisStationsStatusDistrictThunk.js
|
||||
|
||||
Lädt Statusdaten (aktiv/inaktiv) aller Stationen im Bezirk.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(fetchGisStationsStatusDistrictThunk());
|
||||
```
|
||||
|
||||
## Intern
|
||||
|
||||
- Ruft `fetchGisStationsStatusDistrictService()` auf
|
||||
15
docs/redux/thunks/webservice/fetchGisSystemStaticThunk.md
Normal file
15
docs/redux/thunks/webservice/fetchGisSystemStaticThunk.md
Normal file
@@ -0,0 +1,15 @@
|
||||
<!-- /docs/redux/thunks/webservice/fetchGisSystemStaticThunk.md -->
|
||||
|
||||
# 🧱 fetchGisSystemStaticThunk.js
|
||||
|
||||
Lädt Geräte-/Systemdaten für alle Module aus dem Webservice.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(fetchGisSystemStaticThunk());
|
||||
```
|
||||
|
||||
## Intern
|
||||
|
||||
- Ruft `fetchGisSystemStaticService()` auf
|
||||
16
docs/redux/thunks/webservice/fetchUserRightsThunk.md
Normal file
16
docs/redux/thunks/webservice/fetchUserRightsThunk.md
Normal file
@@ -0,0 +1,16 @@
|
||||
<!-- /docs/redux/thunks/webservice/fetchUserRightsThunk.md -->
|
||||
|
||||
# 🔐 fetchUserRightsThunk.js
|
||||
|
||||
Lädt Rechte des angemeldeten Nutzers vom Webservice.
|
||||
|
||||
## Verwendung
|
||||
|
||||
```js
|
||||
dispatch(fetchUserRightsThunk());
|
||||
```
|
||||
|
||||
## Intern
|
||||
|
||||
- Ruft `fetchUserRightsService()` auf
|
||||
- Fehlerbehandlung per `rejectWithValue(error.message)`
|
||||
Reference in New Issue
Block a user