chore(plugin-workflow): remove demo code (#6846)

This commit is contained in:
Junyi
2025-05-11 18:36:42 +08:00
committed by GitHub
parent 5cb4d626fe
commit 2f2df3cbae
2 changed files with 1 additions and 35 deletions
@@ -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;
@@ -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,
};
}