- Update package.json: react-router-dom ^5.2.0→^6.28.0 - Migrate App.js: Switch→Routes, component→element props, path="*" for 404 - Migrate 5 pages: useHistory→useNavigate, history.push()→navigate() - GroupsOverviewPage.js (4x navigate) - ModerationGroupsPage.js (1x navigate) - ModerationGroupImagesPage.js (2x navigate) - PublicGroupImagesPage.js (import updated) - SlideshowPage.js (4x navigate + keyboard handler) - Regenerate package-lock.json with react-router v6 ✅ Tested: Production build 254.46 KB gzip (+1.17 KB) ✅ Manual test: Navigation, moderation routing, slideshow ESC - all working Phase 3 complete: Modern react-router v6 with improved routing API. |
||
|---|---|---|
| .. | ||
| conf/conf.d | ||
| public | ||
| src | ||
| .env | ||
| .gitignore | ||
| Dockerfile | ||
| Dockerfile.dev | ||
| env-config 2.js | ||
| env.sh | ||
| htpasswd | ||
| nginx.dev.conf | ||
| package-lock.json | ||
| package.json | ||
| start-dev.sh | ||