c344d59d5a
- server/routes/meals.js: vollständige REST-API (GET Woche, POST/PUT/DELETE Mahlzeit, POST/PATCH/DELETE Zutaten, GET Autocomplete-Suggestions, POST to-shopping-list, POST week-to-shopping-list) - public/pages/meals.js: Wochengitter (Mo–So × 4 Mahlzeit-Typen), Navigations-Buttons, CRUD-Modal mit Autocomplete, Zutaten-Verwaltung, Einkaufslisten-Transfer-Button - public/styles/meals.css: Wochengitter, Slot-Karten, Modal-Overlay, Zutaten-Zeilen, Transfer-Panel, Typ-Farben - test-meals.js: 22 Tests (CRUD, Wochensortierung, Constraint, CASCADE, Integration, Autocomplete, Wochenberechnung) - package.json: test:meals + Gesamt-Test-Suite erweitert - public/index.html: meals.css eingebunden Gesamt: 93 Tests bestanden (29 DB + 8 Dashboard + 17 Tasks + 17 Shopping + 22 Meals) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
52 lines
1.7 KiB
HTML
52 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
|
<meta name="theme-color" content="#007AFF" />
|
|
<meta name="description" content="Oikos — Familienplaner" />
|
|
<title>Oikos</title>
|
|
|
|
<!-- PWA -->
|
|
<link rel="manifest" href="/manifest.json" />
|
|
<link rel="apple-touch-icon" href="/icons/icon-192.png" />
|
|
|
|
<!-- Styles -->
|
|
<link rel="stylesheet" href="/styles/tokens.css" />
|
|
<link rel="stylesheet" href="/styles/reset.css" />
|
|
<link rel="stylesheet" href="/styles/layout.css" />
|
|
<link rel="stylesheet" href="/styles/login.css" />
|
|
<link rel="stylesheet" href="/styles/dashboard.css" />
|
|
<link rel="stylesheet" href="/styles/tasks.css" />
|
|
<link rel="stylesheet" href="/styles/shopping.css" />
|
|
<link rel="stylesheet" href="/styles/meals.css" />
|
|
|
|
<!-- Lucide Icons (CDN) -->
|
|
<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<!-- App-Shell — wird durch JavaScript gefüllt -->
|
|
<div id="app" class="app-shell">
|
|
<!-- Skeleton-Loading während Initialisierung -->
|
|
<div id="app-loading" class="app-loading" aria-live="polite" aria-label="Lade Oikos…">
|
|
<div class="app-loading__logo">Oikos</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Module (ES-Module, kein Bundler) -->
|
|
<script type="module" src="/api.js"></script>
|
|
<script type="module" src="/router.js"></script>
|
|
|
|
<!-- Service Worker registrieren -->
|
|
<script>
|
|
if ('serviceWorker' in navigator) {
|
|
window.addEventListener('load', () => {
|
|
navigator.serviceWorker.register('/sw.js').catch((err) => {
|
|
console.warn('[SW] Registrierung fehlgeschlagen:', err);
|
|
});
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|