docs
This commit is contained in:
40
docs/redux/slices/database/area/updateAreaSlice.md
Normal file
40
docs/redux/slices/database/area/updateAreaSlice.md
Normal file
@@ -0,0 +1,40 @@
|
||||
<!-- /docs/redux/slices/database/area/updateAreaSlice.md -->
|
||||
|
||||
# 🧩 updateAreaSlice.js
|
||||
|
||||
Redux-Slice zur Verwaltung des Update-Zustands beim Aktualisieren eines Bereichs (Area).
|
||||
|
||||
---
|
||||
|
||||
## Zustand
|
||||
|
||||
```js
|
||||
{
|
||||
status: "idle" | "loading" | "succeeded" | "failed",
|
||||
error: string | null
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Thunk
|
||||
|
||||
- `updateAreaThunk`: Führt den API-Call zum Speichern von `x`, `y` für `idLocation` & `idMaps` durch.
|
||||
|
||||
---
|
||||
|
||||
## Aktionen
|
||||
|
||||
- `resetUpdateAreaStatus()`: Setzt Status auf `"idle"` und entfernt Fehler
|
||||
|
||||
---
|
||||
|
||||
## Verwendung
|
||||
|
||||
In der Komponente `useAreaMarkersLayer.js` beim Ziehen und Speichern von Stationsmarkern.
|
||||
|
||||
---
|
||||
|
||||
## Fehlerbehandlung
|
||||
|
||||
- Fehlernachricht wird in `error` gespeichert, falls `updateAreaThunk` fehlschlägt.
|
||||
@@ -0,0 +1,45 @@
|
||||
<!-- /docs/redux/slices/database/locationDevicesSlice.md -->
|
||||
|
||||
# 🧩 locationDevicesSlice.js
|
||||
|
||||
Redux-Slice zur Verwaltung von Standortgeräten (Devices) aus der Tabelle `location_device`.
|
||||
|
||||
---
|
||||
|
||||
## Zustand
|
||||
|
||||
```js
|
||||
{
|
||||
data: [],
|
||||
status: "idle" | "loading" | "succeeded" | "failed",
|
||||
error: string | null
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Thunks
|
||||
|
||||
- `fetchLocationDevicesThunk`: Lädt Geräte aus der API
|
||||
|
||||
---
|
||||
|
||||
## Aktionen
|
||||
|
||||
- `clearLocationDevices()`: Löscht Geräte-Array und setzt Status zurück
|
||||
|
||||
---
|
||||
|
||||
## Selektoren
|
||||
|
||||
```js
|
||||
selectLocationDevices = (state) => state.locationDevices.data;
|
||||
selectLocationDeviceStatus = (state) => state.locationDevices.status;
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Besonderheiten
|
||||
|
||||
- Zustand wird bei `pending`, `fulfilled` und `rejected` aktualisiert
|
||||
- Fehlernachricht wird in `error` gespeichert
|
||||
3
docs/redux/slices/database/pois/addPoiOnPolylineSlice.md
Normal file
3
docs/redux/slices/database/pois/addPoiOnPolylineSlice.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# 🧩 addPoiOnPolylineSlice.js
|
||||
|
||||
Redux-Slice zur Verwaltung von addPoiOnPolyline.
|
||||
3
docs/redux/slices/database/pois/addPoiSlice.md
Normal file
3
docs/redux/slices/database/pois/addPoiSlice.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# 🧩 addPoiSlice.js
|
||||
|
||||
Redux-Slice zur Verwaltung von addPoi.
|
||||
3
docs/redux/slices/database/pois/currentPoiSlice.md
Normal file
3
docs/redux/slices/database/pois/currentPoiSlice.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# 🧩 currentPoiSlice.js
|
||||
|
||||
Redux-Slice zur Verwaltung von currentPoi.
|
||||
3
docs/redux/slices/database/pois/poiIconsDataSlice.md
Normal file
3
docs/redux/slices/database/pois/poiIconsDataSlice.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# 🧩 poiIconsDataSlice.js
|
||||
|
||||
Redux-Slice zur Verwaltung von POIIconsData.
|
||||
3
docs/redux/slices/database/pois/poiLayerVisibleSlice.md
Normal file
3
docs/redux/slices/database/pois/poiLayerVisibleSlice.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# 🧩 poiLayerVisibleSlice.js
|
||||
|
||||
Redux-Slice zur Verwaltung von POILayerVisible.
|
||||
3
docs/redux/slices/database/pois/poiMarkersSlice.md
Normal file
3
docs/redux/slices/database/pois/poiMarkersSlice.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# 🧩 poiMarkersSlice.js
|
||||
|
||||
Redux-Slice zur Verwaltung von POIMarkers.
|
||||
@@ -0,0 +1,3 @@
|
||||
# 🧩 poiReadFromDbTriggerSlice.js
|
||||
|
||||
Redux-Slice zur Verwaltung von POIReadFromDbTrigger.
|
||||
3
docs/redux/slices/database/pois/poiTypSlice.md
Normal file
3
docs/redux/slices/database/pois/poiTypSlice.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# 🧩 poiTypSlice.js
|
||||
|
||||
Redux-Slice zur Verwaltung von POITyp.
|
||||
3
docs/redux/slices/database/pois/poiTypesSlice.md
Normal file
3
docs/redux/slices/database/pois/poiTypesSlice.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# 🧩 poiTypesSlice.js
|
||||
|
||||
Redux-Slice zur Verwaltung von POITypes.
|
||||
@@ -0,0 +1,3 @@
|
||||
# 🧩 readPoiMarkersStoreSlice.js
|
||||
|
||||
Redux-Slice zur Verwaltung von readPoiMarkersStore.
|
||||
3
docs/redux/slices/database/pois/selectedPoiSlice.md
Normal file
3
docs/redux/slices/database/pois/selectedPoiSlice.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# 🧩 selectedPoiSlice.js
|
||||
|
||||
Redux-Slice zur Verwaltung von selectedPoi.
|
||||
25
docs/redux/slices/database/polylines/gisLinesSlice.md
Normal file
25
docs/redux/slices/database/polylines/gisLinesSlice.md
Normal file
@@ -0,0 +1,25 @@
|
||||
<!-- /docs/redux/slices/database/polylines/gisLinesSlice.md -->
|
||||
|
||||
# 🧩 gisLinesSlice.js
|
||||
|
||||
Verwaltet alle Linienobjekte, die aus der Datenbank (`gis_lines`) gelesen wurden.
|
||||
|
||||
## Zustand
|
||||
|
||||
```js
|
||||
{
|
||||
data: [],
|
||||
status: "idle" | "loading" | "succeeded" | "failed",
|
||||
error: string | null
|
||||
}
|
||||
```
|
||||
|
||||
## Thunk
|
||||
|
||||
- `fetchGisLinesThunk()`
|
||||
|
||||
## Selector
|
||||
|
||||
```js
|
||||
selectGisLines = (state) => state.gisLines.data
|
||||
```
|
||||
@@ -0,0 +1,25 @@
|
||||
<!-- /docs/redux/slices/database/polylines/polylineContextMenuSlice.md -->
|
||||
|
||||
# 🧩 polylineContextMenuSlice.js
|
||||
|
||||
Verwaltet den Zustand des Kontextmenüs bei Polylinien (z. B. Stützpunkt hinzufügen/entfernen).
|
||||
|
||||
## Zustand
|
||||
|
||||
```js
|
||||
{
|
||||
isOpen: false,
|
||||
position: { lat, lng } | null,
|
||||
forceClose: false,
|
||||
timerStart: number | null,
|
||||
countdown: number,
|
||||
countdownActive: boolean
|
||||
}
|
||||
```
|
||||
|
||||
## Aktionen
|
||||
|
||||
- `openPolylineContextMenu(payload)`
|
||||
- `closePolylineContextMenu()`
|
||||
- `updateCountdown()`
|
||||
- `forceCloseContextMenu()`
|
||||
@@ -0,0 +1,16 @@
|
||||
<!-- /docs/redux/slices/database/polylines/polylineEventsDisabledSlice.md -->
|
||||
|
||||
# 🧩 polylineEventsDisabledSlice.js
|
||||
|
||||
Steuert, ob Interaktionen mit Polylinien (z. B. Ziehen, Klicks) temporär deaktiviert sind.
|
||||
|
||||
## Zustand
|
||||
|
||||
```js
|
||||
{ disabled: boolean }
|
||||
```
|
||||
|
||||
## Aktionen
|
||||
|
||||
- `setDisabled(boolean)`
|
||||
- `toggleDisabled()`
|
||||
@@ -0,0 +1,21 @@
|
||||
<!-- /docs/redux/slices/database/polylines/polylineLayerVisibleSlice.md -->
|
||||
|
||||
# 🧩 polylineLayerVisibleSlice.js
|
||||
|
||||
Steuert die Sichtbarkeit des Polylinienlayers auf der Karte.
|
||||
|
||||
## Zustand
|
||||
|
||||
```js
|
||||
{ visible: boolean }
|
||||
```
|
||||
|
||||
## Aktion
|
||||
|
||||
- `setPolylineVisible(boolean)`
|
||||
|
||||
## Selector
|
||||
|
||||
```js
|
||||
selectPolylineVisible = (state) => state.polylineLayerVisible.visible
|
||||
```
|
||||
@@ -0,0 +1,22 @@
|
||||
<!-- /docs/redux/slices/database/polylines/updatePolylineCoordinatesSlice.md -->
|
||||
|
||||
# 🧩 updatePolylineCoordinatesSlice.js
|
||||
|
||||
Redux-Slice zur Überwachung des Lade-/Fehlerstatus bei der Aktualisierung von Linienkoordinaten.
|
||||
|
||||
## Zustand
|
||||
|
||||
```js
|
||||
{
|
||||
status: "idle" | "loading" | "succeeded" | "failed",
|
||||
error: string | null
|
||||
}
|
||||
```
|
||||
|
||||
## Thunk
|
||||
|
||||
- `updatePolylineCoordinatesThunk()`
|
||||
|
||||
## Aktion
|
||||
|
||||
- `resetUpdateStatus()`
|
||||
Reference in New Issue
Block a user