docs: Projektstruktur der Dokumentation an Quellcode angepasst

- Verzeichnisstruktur unter /docs spiegelt nun die tatsächliche Projektstruktur wider
- frontend/server-Trennung entfernt zugunsten von /docs/pages, /docs/redux, /docs/utils etc.
- Erhöht Wiederauffindbarkeit, Übersichtlichkeit und Entwicklerfreundlichkeit
This commit is contained in:
ISA
2025-05-27 09:30:40 +02:00
parent 4c6386edea
commit b847b5d2c8
55 changed files with 29 additions and 3 deletions

View File

@@ -0,0 +1,26 @@
# 📈 gisStationsMeasurementsSlice
Verwaltet Messdaten für GIS-Stationen, z.B. Spannungen, Strom, Sensorwerte etc.
## 🔧 Pfad
`/redux/slices/webService/gisStationsMeasurementsSlice.js`
## 📦 Initial State
```ts
{
data: [],
status: "idle",
error: null
}
```
## 🔁 Thunk: `fetchGisStationsMeasurementsFromWebService`
Verwendet `fetchGisStationsMeasurements()` als API-Quelle.
## 📊 Selector
```ts
selectGisStationsMeasurements = (state) => state.gisStationsMeasurements.data;
```

View File

@@ -0,0 +1,18 @@
# 🏙️ gisStationsStaticDistrictSlice
Verwaltet statische Daten für GIS-Bezirksstationen.
## 🔧 Pfad
`/redux/slices/webService/gisStationsStaticDistrictSlice.js`
## 📦 Initial State
```ts
{
data: [],
status: "idle",
error: null
}
```
## 🔁 Thunk: `fetchGisStationsStaticDistrictFromWebService`

View File

@@ -0,0 +1,26 @@
# 🛰️ 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

@@ -0,0 +1,18 @@
# 📶 gisStationsStatusDistrictSlice
Verwaltet Statusinformationen für GIS-Bezirksstationen (z.B. online/offline, Fehlerstatus).
## 🔧 Pfad
`/redux/slices/webService/gisStationsStatusDistrictSlice.js`
## 📦 Initial State
```ts
{
data: [],
status: "idle",
error: null
}
```
## 🔁 Thunk: `fetchGisStationsStatusDistrictFromWebService`

View File

@@ -0,0 +1,25 @@
# 🧭 gisSystemStaticSlice
Verwaltet statische GIS-Systemdaten (`Systems[]`), die vom Server zurückgegeben werden.
## 🔧 Pfad
`/redux/slices/webService/gisSystemStaticSlice.js`
## 📦 Initial State
```ts
{
data: [], // enthält Systems[]
status: "idle", // Ladezustand
error: null
}
```
## 🔁 Thunk: `fetchGisSystemStaticFromWebService`
Ruft `fetchGisSystemStatic()` auf und speichert nur das Feld `Systems` im Redux-State.
## 🧩 Aktionen
- `setGisSystemStatic(data)` → manuelles Setzen von `Systems[]`
- `fulfilled` → speichert Systems[]