Refactor backend to support interface-definition driven model resources
- Introduce a new model structure for managing interface definitions and model resources, enhancing the backend's capability to handle various service integrations. - Update the Makefile to reflect changes in database seeding and resource management commands. - Remove the deprecated credentials management routes and replace them with a unified model registry API. - Modify existing routes and schemas to align with the new model structure, ensuring seamless integration with the frontend. - Enhance database seeding scripts to populate new model resources and their configurations. - Update README documentation to reflect the new architecture and usage instructions for model resources and interface definitions.
This commit is contained in:
26
frontend/src/components/ui/list-toolbar.tsx
Normal file
26
frontend/src/components/ui/list-toolbar.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import type { ReactNode } from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export type ListToolbarProps = {
|
||||
/** 左侧筛选区(通常是 FilterPills) */
|
||||
filters?: ReactNode;
|
||||
/** 右侧搜索区(通常是 SearchInput) */
|
||||
search?: ReactNode;
|
||||
className?: string;
|
||||
};
|
||||
|
||||
/** 列表页工具栏布局:左筛选 / 右搜索,移动端纵向堆叠 */
|
||||
export function ListToolbar({ filters, search, className }: ListToolbarProps) {
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"mb-6 flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
{filters}
|
||||
{search}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user