-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
164 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
import { useMemo } from 'react' | ||
|
||
export const useDocsNavData = () => { | ||
const navData = useMemo( | ||
() => ({ | ||
id: 'Dokumentation', | ||
url: `/Dokumentation`, | ||
label: 'Dokumentation', | ||
// leave totalCount undefined as the menus are folders | ||
menus: [ | ||
{ | ||
id: 'was-kann-man-mit-apflora-machen', | ||
label: `Was kann man mit apflora.ch machen?`, | ||
}, | ||
{ | ||
id: 'technische-voraussetzungen', | ||
label: `Technische Voraussetzungen`, | ||
}, | ||
{ | ||
id: 'tipps-fuer-den-einstieg', | ||
label: `Tipps für den Einstieg`, | ||
}, | ||
{ | ||
id: 'videos-fuer-den-einstieg', | ||
label: `Videos für den Einstieg`, | ||
}, | ||
{ | ||
id: 'anleitung-eingabe', | ||
label: `Anleitung zur Eingabe (inhaltlich), topos`, | ||
}, | ||
{ | ||
id: 'ist-apflora-langsam', | ||
label: `Ist apflora langsam?`, | ||
}, | ||
{ | ||
id: 'art-auswertung-pop-menge', | ||
label: `Art: Auswertung Population Mengen`, | ||
}, | ||
{ | ||
id: 'beobachtungen-einer-teil-population-zuordnen', | ||
label: `Beobachtungen Teil-Populationen zuordnen`, | ||
}, | ||
{ | ||
id: 'falsch-bestimmte-beobachtungen', | ||
label: `Falsch bestimmte Beobachtungen`, | ||
}, | ||
{ | ||
id: 'erfolgs-kontrollen-planen', | ||
label: `Erfolgs-Kontrollen planen`, | ||
}, | ||
{ | ||
id: 'benutzer-konti', | ||
label: `Benutzer-Konti`, | ||
}, | ||
{ | ||
id: 'erfolgs-kontrollen-freiwillige', | ||
label: `Erfolgs-Kontrollen Freiwillige (EKF)`, | ||
}, | ||
{ | ||
id: 'filter', | ||
label: `Filter`, | ||
}, | ||
{ | ||
id: 'markdown', | ||
label: `Formatierbare Felder`, | ||
}, | ||
{ | ||
id: 'historisierung', | ||
label: `Historisierung`, | ||
}, | ||
{ | ||
id: 'karte-teil-populationen-aller-arten-anzeigen', | ||
label: `Karte: (Teil-)Populationen aller Arten anzeigen`, | ||
}, | ||
{ | ||
id: 'karte-filter', | ||
label: `Karte: Filter`, | ||
}, | ||
{ | ||
id: 'karte-symbole-und-label-fuer-populationen-und-teil-populationen-waehlen', | ||
label: `Karte: Symbole und Label für (Teil-)Populationen wählen`, | ||
}, | ||
{ | ||
id: 'karte-massstab', | ||
label: `Karte: Massstab`, | ||
}, | ||
{ | ||
id: 'karte-drucken', | ||
label: `Karte: Drucken`, | ||
}, | ||
{ | ||
id: 'gedaechtnis', | ||
label: `apflora erinnert sich an euch`, | ||
}, | ||
{ | ||
id: 'dateien', | ||
label: `Dateien anfügen`, | ||
}, | ||
{ | ||
id: 'koordinaten', | ||
label: `Koordinaten`, | ||
}, | ||
{ | ||
id: 'melden', | ||
label: `Fehler, Ideen, Vorschläge melden`, | ||
}, | ||
{ | ||
id: 'pwa', | ||
label: `Progressive Web App`, | ||
}, | ||
{ | ||
id: 'technologien', | ||
label: `Technologien`, | ||
}, | ||
{ | ||
id: 'beobachtungen-verwalten', | ||
label: `Beobachtungen verwalten`, | ||
}, | ||
{ | ||
id: 'produkte-fuer-die-fns', | ||
label: `Produkte für die Fachstelle Naturschutz`, | ||
}, | ||
{ | ||
id: 'daten-sichern', | ||
label: `Daten sichern`, | ||
}, | ||
{ | ||
id: 'daten-wiederherstellen', | ||
label: `Daten aus Sicherung herstellen`, | ||
}, | ||
{ | ||
id: 'testen', | ||
label: `Funktionalität testen`, | ||
}, | ||
{ | ||
id: 'geschichte', | ||
label: `Entstehungs-Geschichte`, | ||
}, | ||
{ | ||
id: 'open-source', | ||
label: `Open source`, | ||
}, | ||
{ | ||
id: 'art-taxonomien-ergaenzen', | ||
label: `Art-Taxonomien ergänzen`, | ||
}, | ||
{ | ||
id: 'info-flora-export', | ||
label: `Info-Flora-Export`, | ||
}, | ||
], | ||
}), | ||
[], | ||
) | ||
|
||
return { isLoading: false, error: undefined, navData } | ||
} |