feat: ATM10-Statistikportal
Statistikportal für den All-the-Mods-10-Server (Minecraft 1.21.1, NeoForge 21.1): - mod/: serverseitige NeoForge-Mod atmstats – Ereignisse, Live-Zähler, Servergesundheit, FTB-Dateien; Outbox auf der Festplatte, signierter gzip-Versand per HTTPS mit Backoff - backend/: Fastify + PostgreSQL – idempotenter Ingest, Projektionen, Parser für SNBT, FTB Quests/Teams, world/stats, world/advancements und latest.log; Ranglisten, Snapshots, Retention, öffentliche API, SSE-Live-Updates, Admin mit argon2/CSRF, SFTP-Worker - web/: Next.js-Dashboard – Übersicht, Ranglisten, Spielerprofile, ATM10, Server, Datenquellen, Verwaltung - shared/: Protokoll v1 und API-Typen; tools/: Simulator, Log-Anonymisierer, RCON-Client - deploy/: Docker Compose hinter Traefik, Backup; docs/: Architektur, Datenquellen, Betrieb Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
56d2078e6a
commit
e66f89f49e
214 files changed
+27077
No files matched your search
@@ -0,0 +1,28 @@
|
||||
import Link from 'next/link';
|
||||
|
||||
export function EmptyState({ title, children }: { title: string; children?: React.ReactNode }) {
|
||||
return (
|
||||
<div className="rounded-lg border border-dashed border-slate-3 p-6 text-center">
|
||||
<p className="font-semibold">{title}</p>
|
||||
{children && <div className="text-sm text-stone-3 mt-1">{children}</div>}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function ApiDown() {
|
||||
return (
|
||||
<EmptyState title="Die Statistik-Schnittstelle antwortet gerade nicht">
|
||||
Die Seite lädt die Daten beim nächsten Aufruf neu. Hält der Fehler an, prüfe den Status unter{' '}
|
||||
<Link href="/sources" className="text-gold underline">Datenquellen</Link>.
|
||||
</EmptyState>
|
||||
);
|
||||
}
|
||||
|
||||
export function PageTitle({ title, children }: { title: string; children?: React.ReactNode }) {
|
||||
return (
|
||||
<div className="mb-8">
|
||||
<h1 className="text-3xl sm:text-4xl font-bold tracking-tight">{title}</h1>
|
||||
{children && <p className="text-stone-2 mt-2 max-w-2xl">{children}</p>}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user