workflow data save

This commit is contained in:
yoan
2024-11-12 13:16:23 +08:00
53 changed files with 2053 additions and 796 deletions

View File

@@ -35,7 +35,7 @@ const BranchNode = memo(({ data }: BrandNodeProps) => {
}}
size={"sm"}
variant={"outline"}
className="text-xs px-2 h-6 rounded-full absolute -top-3 left-[50%] -translate-x-1/2 z-10"
className="text-xs px-2 h-6 rounded-full absolute -top-3 left-[50%] -translate-x-1/2 z-10 dark:text-stone-200"
>
{t("workflow.node.addBranch.label")}
</Button>

View File

@@ -34,7 +34,7 @@ const ConditionNode = ({ data, branchId, branchIndex }: NodeProps) => {
</DropdownMenu>
<div className="w-[261px] flex flex-col justify-center text-foreground rounded-md bg-white px-5 py-5">
<div contentEditable suppressContentEditableWarning onBlur={handleNameBlur} className="text-center outline-slate-200">
<div contentEditable suppressContentEditableWarning onBlur={handleNameBlur} className="text-center outline-slate-200 dark:text-stone-600">
{data.name}
</div>
</div>

View File

@@ -24,7 +24,7 @@ export type DeployFormProps = {
defaultProivder?: string;
};
const DeployForm = ({ data, defaultProivder }: DeployFormProps) => {
return getForm(data, defaultProivder);
return <div className="dark:text-stone-200">{getForm(data, defaultProivder)}</div>;
};
export default memo(DeployForm);

View File

@@ -39,7 +39,6 @@ const Node = ({ data }: NodeProps) => {
};
const getSetting = () => {
console.log(data);
if (!data.validated) {
return <>{t(`${i18nPrefix}.setting.label`)}</>;
}

View File

@@ -93,7 +93,7 @@ const NotifyForm = ({ data }: NotifyFormProps) => {
e.stopPropagation();
form.handleSubmit(onSubmit)(e);
}}
className="space-y-8"
className="space-y-8 dark:text-stone-200"
>
<FormField
control={form.control}