docs: Plan-Korrekturen aus der Umsetzung nachziehen
- {@html} der Trail-Beschreibung mit DOMPurify absichern
- fehlender Key in der Status-Schleife
Beides fiel beim Autofixer-Lauf in Task 8 auf und stand so im Plan.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ccc1d931ab
commit
1257456308
2 changed files with 7 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -33,3 +33,4 @@ backups/
|
|||
|
||||
# IDE
|
||||
.idea/
|
||||
/frontend/TODO.md
|
||||
|
|
|
|||
|
|
@ -2472,8 +2472,11 @@ git commit -m "feat: Trail-Liste mit Vorschaukarten"
|
|||
Trails
|
||||
</Button>
|
||||
<h1 class="text-2xl font-semibold">{trail.name}</h1>
|
||||
{#if trail.description}
|
||||
<p class="text-muted-foreground text-sm">{@html trail.description}</p>
|
||||
{#if safeDescription}
|
||||
<!-- description ist ein editor-Feld und enthält HTML.
|
||||
Ungefiltert wäre es ein Weg, Skriptcode bei allen
|
||||
Team-Mitgliedern auszuführen — deshalb DOMPurify. -->
|
||||
<p class="text-muted-foreground text-sm">{@html safeDescription}</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
|
@ -2492,7 +2495,7 @@ git commit -m "feat: Trail-Liste mit Vorschaukarten"
|
|||
|
||||
{#if canEdit}
|
||||
<div class="flex gap-2">
|
||||
{#each ['offen', 'eingeschraenkt', 'gesperrt'] as s}
|
||||
{#each ['offen', 'eingeschraenkt', 'gesperrt'] as s (s)}
|
||||
<Button
|
||||
variant={trail.status === s ? 'default' : 'outline'}
|
||||
size="sm"
|
||||
|
|
|
|||
Loading…
Reference in a new issue