Use database fleet registry and gate RCON polling on container readiness
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
.sort((a, b) => b.score - a.score)
|
||||
.slice(0, 3)
|
||||
);
|
||||
let showRoster = $derived(health !== 'offline');
|
||||
let showRoster = $derived(health === 'online' || health === 'stale');
|
||||
let mapLabel = $derived(map ?? '—');
|
||||
let gtLabel = $derived(gametypeLabel(gametype));
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
let gameInProgress = $derived(!!gameStartedAt && !gameEndedAt && !!activeSince);
|
||||
let gameElapsed = $derived(gameInProgress ? elapsedSince(gameStartedAt, $uiNow) : null);
|
||||
let showTiming = $derived(
|
||||
health !== 'offline' && (activeElapsed !== null || inactiveElapsed !== null || gameElapsed !== null)
|
||||
showRoster && (activeElapsed !== null || inactiveElapsed !== null || gameElapsed !== null)
|
||||
);
|
||||
|
||||
// Shared-element transition to /servers/{name} — Chromium only, others
|
||||
@@ -97,7 +97,9 @@
|
||||
<StatusPip {health} />
|
||||
<strong class="name">{name}</strong>
|
||||
</div>
|
||||
{#if health === 'offline'}
|
||||
{#if health === 'starting'}
|
||||
<Badge variant="info" uppercase>Starting</Badge>
|
||||
{:else if health === 'offline'}
|
||||
<Badge variant="danger" uppercase>offline</Badge>
|
||||
{:else}
|
||||
<div class="players" aria-live="polite">
|
||||
@@ -119,7 +121,7 @@
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<RoundTelemetry {name} />
|
||||
{#if showRoster}<RoundTelemetry {name} />{/if}
|
||||
|
||||
{#if showTiming}
|
||||
<div class="timing">
|
||||
|
||||
Reference in New Issue
Block a user