Ein modernes React-Frontend für I.R.I.S. (Intelligent Rendering & Image Synthesis), das 1:1 dem HTML-Frontend entspricht.
- React 18 mit TypeScript
- Vite als Build-Tool
- Tailwind CSS für Styling
- Zustand für State Management
- React Router für Navigation
cd frontend-react
npm installnpm run devDas Frontend läuft auf http://localhost:3000 und proxied API-Requests automatisch zum Backend auf Port 8000.
npm run buildDie Build-Dateien werden in dist/ erstellt.
frontend-react/
├── src/
│ ├── components/ # Wiederverwendbare Komponenten
│ │ ├── Navbar.tsx
│ │ └── Footer.tsx
│ ├── pages/ # Seiten-Komponenten
│ │ ├── HomePage.tsx
│ │ ├── GeneratePage.tsx
│ │ ├── GalleryPage.tsx
│ │ └── SettingsPage.tsx
│ ├── store/ # Zustand State Management
│ │ └── useStore.ts
│ ├── lib/ # API und Utilities
│ │ └── api.ts
│ ├── App.tsx
│ ├── main.tsx
│ └── index.css # Tailwind + Custom Styles
├── package.json
├── tailwind.config.js
├── vite.config.ts
└── tsconfig.json
- Home Page: Landing Page mit Stats und Feature-Übersicht
- Generate Page: Vollständiger Image Generator mit allen Einstellungen
- Gallery Page: Bildergalerie mit Filter und Suche
- Settings Page: System-Einstellungen und Hardware-Monitoring
Der Vite Dev Server proxied automatisch:
/api/*→http://localhost:8000/api/*/ws/*→ws://localhost:8000/ws/*/assets/*→http://localhost:8000/assets/*