Files
Felis/panel/src/pages/ops/FleetTable.tsx
T
2026-06-27 18:31:26 +08:00

30 lines
1.0 KiB
TypeScript

import { Network } from "lucide-react";
import { useTranslation } from "react-i18next";
import { PendingBackend } from "@/components/States";
// FleetTable is the SysAdmin-Side cluster-wide server list: ALL servers with
// phase + capacity, distinct from the User-Side "My servers". It depends on the
// fleet-wide GET /admin/servers read, which is the next Oracle-verifiable backend
// slice. Honest placeholder until that lands — no fabricated rows.
export function FleetTable() {
const { t } = useTranslation("ops");
return (
<div className="mx-auto max-w-5xl space-y-6">
<div className="flex items-center gap-3">
<Network className="h-6 w-6 text-primary" />
<div>
<h1 className="text-2xl font-semibold tracking-tight">{t("fleet_title")}</h1>
<p className="text-sm text-muted-foreground">
{t("fleet_subtitle")}
</p>
</div>
</div>
<PendingBackend
endpoint="GET /api/v1/admin/servers"
note={t("fleet_table_pending_note")}
/>
</div>
);
}