HifiPlanet-Website/hifi/index.html
Maaxxs d20b963970 Add rich-text formatting and font choice for email templates
Phase 4 of the dashboard roadmap. New RichTextEditor component
(Tiptap 3.31.3, pinned past a mergeAttributes XSS advisory affecting
2.x/older 3.x - GHSA-cp6q-959q-f8rh) replaces the plain textareas for
the customer/owner mail bodies in EmailSettings.jsx: bold, italic,
underline, lists, links, and a font-family dropdown. Font choices are
classic system fonts rather than self-hosted webfonts - most email
clients don't load custom @font-face at all, so system fonts are the
only choice that reliably renders as chosen once delivered.

Existing plain-text templates (including the built-in defaults) are
converted to HTML once on load so line breaks survive the switch.

Security fix that had to go with this: Mailer::render() does a raw
strtr() with no escaping, which was fine while bodies were plain text,
but ContactController now sends these as HTML mail - a customer's
public contact-form message could otherwise inject markup into the
HTML notification mail. New Mailer::renderHtml() escapes each
substituted value before it goes into the (admin-authored, otherwise
unchanged) HTML template; ContactController sets isHTML(true) and an
AltBody plain-text fallback for both the owner notification and
customer confirmation.

Known trade-off: Tiptap adds ~400KB (gzipped ~130KB) to the shared
admin+public JS bundle, since the app has no route-based code-splitting
anywhere yet - flagged for a possible follow-up, not fixed here since
it'd mean restructuring the whole admin bundle, not just this feature.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 01:49:13 +02:00

53 lines
2.8 KiB
HTML
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.

<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/png" href="/favicon.png" />
<!-- Nur fuer die Paket-Kacheln auf der Modell-Seite (Name/Preis-Typografie im
Kunden-Referenzdesign) - der Rest der Seite bleibt beim Standard-Font. -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@500;600&family=Michroma&display=swap" rel="stylesheet" />
<title>HifiPlanet | Car-Hifi Umbauten nach Maß</title>
<meta name="description" content="HifiPlanet – dein Car-Hifi Spezialist. Marke und Modell wählen, passende Sound-Pakete entdecken und unverbindlich anfragen." />
<link rel="canonical" href="https://hifi-planet.de/" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="HifiPlanet" />
<meta property="og:title" content="HifiPlanet | Car-Hifi Umbauten nach Maß" />
<meta property="og:description" content="Dein Car-Hifi Spezialist: Marke und Modell wählen, passende Sound-Pakete entdecken und unverbindlich anfragen." />
<meta property="og:locale" content="de_DE" />
<meta name="twitter:card" content="summary" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "AutoRepair",
"name": "HifiPlanet",
"description": "Car-Hifi Spezialist für individuelle Sound-Umbauten – vom unauffälligen Upgrade bis zum Komplettumbau.",
"url": "https://hifi-planet.de/",
"telephone": "+4993732062390",
"email": "info@hifi-planet-amorbach.de",
"address": {
"@type": "PostalAddress",
"streetAddress": "Boxbrunner Str. 20a",
"postalCode": "63916",
"addressLocality": "Amorbach",
"addressCountry": "DE"
},
"openingHoursSpecification": [
{ "@type": "OpeningHoursSpecification", "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"], "opens": "09:00", "closes": "18:00" },
{ "@type": "OpeningHoursSpecification", "dayOfWeek": ["Saturday"], "opens": "10:00", "closes": "13:00" }
],
"sameAs": ["https://www.youtube.com/@hifiplanet2812"]
}
</script>
<script type="module" crossorigin src="/assets/index-1SLMfitC.js"></script>
<link rel="modulepreload" crossorigin href="/assets/lucide-icons-Cg2IxtAO.js">
<link rel="stylesheet" crossorigin href="/assets/index-CKCuneM9.css">
</head>
<body class="bg-white text-slate-900 dark:bg-slate-950 dark:text-slate-100">
<div id="root"></div>
</body>
</html>