From 2f2df3cbaeee1413e3674d762d66e01365314f2a Mon Sep 17 00:00:00 2001 From: Junyi Date: Sun, 11 May 2025 18:36:42 +0800 Subject: [PATCH] chore(plugin-workflow): remove demo code (#6846) --- .../src/client/nodes/index.tsx | 2 +- .../src/client/nodes/output.tsx | 34 ------------------- 2 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 packages/plugins/@nocobase/plugin-workflow/src/client/nodes/output.tsx diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/index.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/index.tsx index 5c1b676754e..d0fdc95167b 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/index.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/index.tsx @@ -225,7 +225,7 @@ export function RemoveButton() { title: lang('Can not delete'), content: lang( 'The result of this node has been referenced by other nodes ({{nodes}}), please remove the usage before deleting.', - { nodes: usingNodes.map((item) => `#${item.id}`).join(', ') }, + { nodes: usingNodes.map((item) => item.title).join(', ') }, ), }); return; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/output.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/output.tsx deleted file mode 100644 index 19a89b23d6b..00000000000 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/output.tsx +++ /dev/null @@ -1,34 +0,0 @@ -/** - * This file is part of the NocoBase (R) project. - * Copyright (c) 2020-2024 NocoBase Co., Ltd. - * Authors: NocoBase Team. - * - * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. - * For more information, please refer to: https://www.nocobase.com/agreement. - */ - -import { Instruction } from '.'; -import { NAMESPACE } from '../locale'; -import { WorkflowVariableInput } from '../variable'; - -export default class extends Instruction { - title = `{{t("Assign output variable", { ns: "${NAMESPACE}" })}}`; - type = 'output'; - group = 'control'; - description = `{{t("Assign variables for workflow output, which could be used in other workflows as result of subflow.", { ns: "${NAMESPACE}" })}}`; - fieldset = { - result: { - type: 'object', - title: `{{t("Value", { ns: "${NAMESPACE}" })}}`, - 'x-decorator': 'FormItem', - 'x-component': 'WorkflowVariableInput', - 'x-component-props': { - useTypedConstant: true, - }, - required: true, - }, - }; - components = { - WorkflowVariableInput, - }; -}