HifiPlanet-Website/hifi/assets/GalleryBrandPage-BrQkAtN4.js
Claude a0e8e4cbc0
Pakete im Admin neu: Modell-Liste mit Suche, Stufen als Kacheln, Bearbeiten im Seitenpanel
- Links alle Modelle nach Marke (aufklappbar, Suche, Hinweis "leer" bei Modellen ohne
  sichtbares Paket) statt zwei doppelter Auswahl-Bereiche
- Rechts die 8 Stufen als Kacheln wie auf der Website: Preis, Produkte/Upgrades,
  Markierung, Sichtbar-Schalter; fehlende Stufen als "Paket anlegen"
- Paket oeffnet im Seitenpanel: Preis mit Aufschlag-Umschalter und Summe oben, darunter
  Produkte und Upgrades, Kacheltexte; Seltenes unter "Weitere Optionen"
- Jedes Paket wird einzeln gespeichert, neue Pakete sofort angelegt (Produkte danach
  direkt hinzufuegbar) - kein Anhaken plus "Alle speichern" mehr
- Kopieren von anderem Modell als eigenes Panel, bei leeren Modellen direkt angeboten
- Ansicht "Alle Pakete" mit Suche; Adresse (?model, ?paket, ?ansicht=liste) bleibt

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R5qHQ6FkdkREoPVmRJ5V77
2026-10-20 17:07:44 +00:00

1 line
2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{g as c,r as n,u as g,a as m,c as u,b as p,j as a,N as h,e as f,L as b,d as y,f as v}from"./index-COE16sLl.js";function N(){const{brandSlug:r}=c(),[t,i]=n.useState(null),[l,d]=n.useState(null),{t:s}=g(),{gallery_card_text_x:o,gallery_card_text_y:x}=m();return n.useEffect(()=>{u.get(`/gallery-brands/${r}/projects`).then(i).catch(e=>d(e))},[r]),p({title:t?s("galleryBrandPage.metaTitle")(t.brand.name):s("galleryBrandPage.metaTitleFallback"),description:t?s("galleryBrandPage.metaDescription")(t.brand.name):void 0,path:`/galerie/${r}`}),l?l.status===404?a.jsx(h,{}):a.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:f(l,s)}):t?a.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[a.jsxs("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:[t.brand.name," – ",s("galleryBrandPage.titleSuffix")]}),t.projects.length===0&&a.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("galleryBrandPage.empty")}),a.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:t.projects.map(e=>a.jsxs(b,{to:`/galerie/${r}/${e.slug}`,className:"group relative block aspect-[4/3] overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[e.cover_image_path?a.jsx("img",{src:e.cover_image_path,alt:e.name,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}):a.jsx("div",{className:"flex h-full w-full items-center justify-center bg-neutral-200 dark:bg-neutral-800"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),a.jsx(y,{entity:"gallery_projects",id:e.id,field:"name",lang:"de",value:e.name,className:"absolute whitespace-nowrap p-4 text-lg font-extrabold text-white",style:v(o,x,{x:0,y:100})})]},e.id))})]}):a.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:s("galleryBrandPage.loading")})}export{N as default};