feat(mcp): подготовить сервер и доступ к приёмке
This commit is contained in:
commit
bf3d50e1ff
3835 files changed
+537122
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import { cn } from "@/lib/utils"
|
||||
import { StatusDot } from "@/components/status-dot"
|
||||
import type { ServerStatus } from "@/lib/data"
|
||||
|
||||
const labels: Record<ServerStatus, string> = {
|
||||
online: "Онлайн",
|
||||
offline: "Оффлайн",
|
||||
degraded: "Внимание",
|
||||
unknown: "Неизвестно",
|
||||
}
|
||||
|
||||
export function StatusBadge({ status }: { status: ServerStatus }) {
|
||||
return (
|
||||
<span
|
||||
className={cn(
|
||||
"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-xs font-medium",
|
||||
status === "unknown" && "bg-muted text-muted-foreground",
|
||||
status === "online" && "bg-[var(--status-online-bg)] text-[var(--status-online-fg)]",
|
||||
status === "offline" && "bg-[var(--status-offline-bg)] text-[var(--status-offline-fg)]",
|
||||
status === "degraded" && "bg-[var(--status-degraded-bg)] text-[var(--status-degraded-fg)]",
|
||||
)}
|
||||
>
|
||||
<StatusDot status={status} />
|
||||
{labels[status]}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user