feat: add custom nodes selectors

This commit is contained in:
BennyKok
2024-01-11 21:27:56 +08:00
parent 94fa92ed76
commit 6e3b7f0435
8 changed files with 200 additions and 68 deletions
+1 -8
View File
@@ -1,6 +1,7 @@
"use client";
import { callServerPromise } from "./callServerPromise";
import fetcher from "./fetcher";
import { LoadingIcon } from "@/components/LoadingIcon";
import AutoForm, { AutoFormSubmit } from "@/components/ui/auto-form";
import { Badge } from "@/components/ui/badge";
@@ -361,14 +362,6 @@ export function getWorkflowVersionFromVersionIndex(
return workflow_version;
}
export default async function fetcher<JSON = unknown>(
input: RequestInfo,
init?: RequestInit
): Promise<JSON> {
const res = await fetch(input, init);
return res.json();
}
export function ViewWorkflowDetailsButton({
workflow,
}: {