feat(admin): Logo und Favicon per Bild-Upload austauschbar
Neue Gruppe "Logo und Favicon" unter Admin > Inhalte mit drei Bildfeldern: Logo (Kopfzeile), optionales Logo fuer dunkle Flaechen (Mobilmenue, Fusszeile, Admin-Leiste; faellt sonst auf das normale Logo zurueck) und Favicon. Leer bleibt alles wie bisher (gezeichnetes Waben-Zeichen bzw. Standard-Icon). - lib/brand.ts liest die Pfade und prueft sie erneut gegen das Upload-Muster, bevor sie in ein src-Attribut gelangen. - Statische app/icon.svg und app/favicon.ico ersetzt durch dynamische app/icon.tsx (512 px PNG) und app/apple-icon.tsx (180 px auf Creme); lib/brand-icon.ts rendert Upload oder Standard-Icon per sharp und liest Dateien nur ueber resolveUploadPath. Cache-Control no-cache, damit ein neues Favicon ohne Tage Verzoegerung erscheint. - /favicon.ico per Rewrite auf /icon, Manifest nutzt /icon. - Hochgeladenes Logo mit fester Hoehe und begrenzter Breite (Kopfzeile mobil 56 px, ab sm 112 px), damit breite Wortmarken nichts sprengen. Uploads bleiben auf Rasterbilder beschraenkt (kein SVG, XSS-Schutz). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
ae2726b0ee
commit
4f442ec06d
19 files changed
+217
-77
No files matched your search
@@ -1281,6 +1281,7 @@ export const de: Dictionary = {
|
||||
sectionImagesIntro: "Alle Bilder und das Hero-Video, die du hochladen kannst, sortiert nach Seite.",
|
||||
sectionText: "Texte",
|
||||
sectionTextIntro: "Alle Textinhalte, sortiert nach Bereich.",
|
||||
groupBrand: "Logo und Favicon",
|
||||
groupCompany: "Firmendaten",
|
||||
groupShipping: "Versand",
|
||||
groupHome: "Homepage",
|
||||
|
||||
@@ -1267,6 +1267,7 @@ export const en: Dictionary = {
|
||||
sectionImagesIntro: "Every image and the hero video you can upload, grouped by page.",
|
||||
sectionText: "Text",
|
||||
sectionTextIntro: "Every text field, grouped by section.",
|
||||
groupBrand: "Logo and favicon",
|
||||
groupCompany: "Company details",
|
||||
groupShipping: "Shipping",
|
||||
groupHome: "Homepage",
|
||||
|
||||
@@ -940,6 +940,7 @@ export interface Dictionary {
|
||||
sectionImagesIntro: string;
|
||||
sectionText: string;
|
||||
sectionTextIntro: string;
|
||||
groupBrand: string;
|
||||
groupCompany: string;
|
||||
groupShipping: string;
|
||||
groupHome: string;
|
||||
|
||||
Reference in new issue
Block a user