mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-11-26 10:06:31 +00:00
refactor(webui): migrate remaining shadcn components to perfect-design
Move AuthGate, ConfigWarningsBanner, ToastViewport, SnippetBlock, PageLoadError, LabeledSelect and the helper forms to perfect-design Button, Input, Card, Callout, NativeSelect and ToastItem. Number fields use a small native input because the library input rewrites typed text. Delete components/ui, the unused ModelChip, CompactNumber, AliasBadge and lib/utils, and the shadcn config. Remove shadcn-vue, tw-animate-css, class-variance-authority and clsx. Give FaIcon an optional title and drop role from decorative icons. Refresh stale comments and the README.
This commit is contained in:
@@ -43,8 +43,7 @@ export function kindLabel(kind: string): string {
|
||||
}
|
||||
|
||||
/**
|
||||
* eventKindVariant maps a kind to the shadcn-vue Badge variant its row
|
||||
* renders (lib/events-columns.ts): destructive for the three kinds where a
|
||||
* eventKindVariant maps a kind to the Badge variant its row renders: destructive for the three kinds where a
|
||||
* request was actually DENIED (rate_limit, budget, capacity — money or
|
||||
* quota was protected), secondary for an infra/upstream failure that is
|
||||
* not itself a policy decision (store_down, upstream, timeout), outline
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
import type { ClassValue } from "clsx"
|
||||
import { clsx } from "clsx"
|
||||
import { twMerge } from "tailwind-merge"
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs))
|
||||
}
|
||||
Reference in New Issue
Block a user