feat: Wabenhain Honig-Shop Anwendung

Vollstaendige Next.js/Prisma-E-Commerce-Anwendung fuer eine Imkerei:
Shop, Warenkorb, Stripe-Checkout, Kundenkonto mit 2FA, Admin-Bereich
(Produkte, Ernten, Chargen, Bestellungen, Gutscheine, admin-editierbare
Website-Inhalte), i18n (DE/EN), Rate-Limiting/CSP/Audit-Log-Haertung,
PostgreSQL- und MySQL-Unterstuetzung ueber austauschbare Prisma-
Treiber-Adapter, Unit-/Komponenten-/E2E-Tests.
This commit is contained in:
Nick Szaunig committed 2026-08-17 14:30:28 +02:00
1 parent 5c76fcc266
commit c7927f2883
240 files changed
+26096 -137

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
import type { Metadata } from "next";
import { getShippingTiers } from "@/lib/shipping";
import { getActiveProducts } from "@/lib/data";
import { getBulkDiscountTiers } from "@/lib/bulk-discount";
import { getLocale } from "@/i18n/locale";
import { getDictionary } from "@/i18n/get-dictionary";
import { WarenkorbContent } from "./warenkorb-content";
// Versandstaffeln und Lagerbestand koennen sich im Admin-Bereich jederzeit
// aendern — Rendering pro Request statt statischem Build haelt das aktuell.
export const dynamic = "force-dynamic";
export async function generateMetadata(): Promise<Metadata> {
const t = getDictionary(await getLocale());
return { title: t.cart.title };
}
export default async function WarenkorbPage() {
const [tiers, availableProducts, bulkDiscountTiers] = await Promise.all([
getShippingTiers(),
getActiveProducts({ onlyAvailable: true }),
getBulkDiscountTiers(),
]);
return (
<WarenkorbContent
tiers={tiers.map((t) => ({
minQuantity: t.minQuantity,
maxQuantity: t.maxQuantity,
priceCents: t.priceCents,
}))}
availableProducts={availableProducts}
bulkDiscountTiers={bulkDiscountTiers}
/>
);
}