Dodaj react-router-dom, mape tras i ProtectedRoute

Fundament migracji z useState(view) na prawdziwy routing:
- react-router-dom 7 w zaleznosciach
- BrowserRouter w main.tsx (nginx ma juz try_files, wiec czyste sciezki dzialaja)
- routes.ts: centralna mapa adresow + helpery listingPath/mapPath/adminTabPath
- ProtectedRoute z obsluga stanu loading z AuthProvider

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-23 23:24:22 +02:00
parent a6b156695f
commit f072ed0115
6 changed files with 223 additions and 7 deletions
+2 -1
View File
@@ -12,7 +12,8 @@
"@types/pdfmake": "^0.3.3",
"pdfmake": "^0.3.11",
"react": "18.3.1",
"react-dom": "18.3.1"
"react-dom": "18.3.1",
"react-router-dom": "^7.18.1"
},
"devDependencies": {
"@types/react": "18.3.12",