- Rename the app to Kaname - Hub metadata per model (base models, architecture, license, Hub tags), backfilled by the worker for existing models - Library search across repo/author/family/quant/tags and multi-select facet filters (author, family, quant, tag, status) kept in the URL - Custom tags (model page editor, on add, click-to-filter) - README rewritten around a quick install, with banner and screenshots - deploy/compose.yaml: models in a host folder (KANAME_MODELS_DIR) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2167ea0950
commit
67191b3e16
37 files changed
+2028
-206
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import type { ModelStatus } from "@/lib/db/schema";
|
||||
|
||||
const LABELS: Record<ModelStatus, { label: string; variant: "default" | "secondary" | "destructive" | "outline" }> = {
|
||||
export const MODEL_STATUS: Record<ModelStatus, { label: string; variant: "default" | "secondary" | "destructive" | "outline" }> = {
|
||||
pending: { label: "not downloaded", variant: "outline" },
|
||||
downloading: { label: "downloading", variant: "secondary" },
|
||||
ready: { label: "ok", variant: "default" },
|
||||
@@ -11,6 +11,6 @@ const LABELS: Record<ModelStatus, { label: string; variant: "default" | "seconda
|
||||
};
|
||||
|
||||
export function ModelStatusBadge({ status }: { status: ModelStatus }) {
|
||||
const { label, variant } = LABELS[status];
|
||||
const { label, variant } = MODEL_STATUS[status];
|
||||
return <Badge variant={variant}>{label}</Badge>;
|
||||
}
|
||||
Reference in new issue
Block a user