Restructure solution into folders and fix persistence issues

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Opus 5.5 committed 2026-11-14 14:10:24 +01:00
1 parent 37987a394a
commit 7c39cb5562
62 files changed
+219 -151

No files matched your search

@@ -0,0 +1,38 @@
@using Flypaper.Storage.Dashboard
<section class="card">
<h2>@Title</h2>
@if (Entries.Count == 0)
{
<p class="muted">Keine Daten.</p>
}
else
{
<table>
<thead>
<tr>
<th>@KeyLabel</th>
<th class="num">Fänge</th>
<th class="num">Haltezeit</th>
</tr>
</thead>
<tbody>
@foreach (var entry in Entries)
{
<tr>
<td class="mono clip" title="@entry.Key">@entry.Key</td>
<td class="num">@entry.Count.ToString("N0")</td>
<td class="num">@Formatting.Duration(entry.HoldTime)</td>
</tr>
}
</tbody>
</table>
}
</section>
@code {
[Parameter, EditorRequired] public required string Title { get; set; }
[Parameter, EditorRequired] public required string KeyLabel { get; set; }
[Parameter, EditorRequired] public required IReadOnlyList<TopEntry> Entries { get; set; }
}