Add expandable rows to dashboard tables
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e9758499ff
commit
536aee1f31
4 files changed
+88
-3
No files matched your search
@@ -31,7 +31,7 @@
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<h2>Letzte 50 Fänge</h2>
|
||||
<h2>Letzte 50 Fänge <span class="hint">Zeile anklicken zum Aufklappen</span></h2>
|
||||
@if (data.Recent.Count == 0)
|
||||
{
|
||||
<p class="muted">Noch nichts gefangen.</p>
|
||||
@@ -54,7 +54,7 @@
|
||||
<tbody>
|
||||
@foreach (var trapEvent in data.Recent)
|
||||
{
|
||||
<tr>
|
||||
<tr data-expand="event:@trapEvent.Id" tabindex="0" aria-expanded="false">
|
||||
<td class="nowrap">@trapEvent.StartedAt.ToLocalTime().ToString("dd.MM. HH:mm:ss")</td>
|
||||
<td class="mono">@trapEvent.RemoteIp</td>
|
||||
<td class="mono clip" title="@trapEvent.Target">@trapEvent.Target</td>
|
||||
@@ -71,6 +71,8 @@
|
||||
</section>
|
||||
}
|
||||
|
||||
<script src="@Assets["dashboard.js"]" defer></script>
|
||||
|
||||
@code {
|
||||
private DashboardData? _data;
|
||||
private DateTime _loadedAt;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<tbody>
|
||||
@foreach (var entry in Entries)
|
||||
{
|
||||
<tr>
|
||||
<tr data-expand="@($"{KeyLabel}:{entry.Key}")" tabindex="0" aria-expanded="false">
|
||||
<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>
|
||||
|
||||
Reference in new issue
Block a user