feat ui: support import provider from template

This commit is contained in:
musistudio
2025-08-02 22:56:18 +08:00
parent cd43a74ab5
commit 996a05d1d6
10 changed files with 161 additions and 104 deletions

View File

@@ -1,6 +1,6 @@
import { Pencil, Trash2 } from "lucide-react";
import { Button } from "@/components/ui/button";
import { type Transformer } from "./ConfigProvider";
import type { Transformer } from "@/types";
interface TransformerListProps {
transformers: Transformer[];
@@ -46,8 +46,8 @@ export function TransformerList({ transformers, onEdit, onRemove }: TransformerL
// Handle case where transformer.path might be null or undefined
const transformerPath = transformer.path || "Unnamed Transformer";
// Handle case where transformer.options might be null or undefined
const options = transformer.options || {};
// Handle case where transformer.parameters might be null or undefined
const options = transformer.parameters || {};
// Render parameters as tags in a single line
const renderParameters = () => {