refactor(plugin-workflow): add calculation nodes group (#5035)

This commit is contained in:
Junyi 2024-08-16 15:47:51 +08:00 committed by GitHub
parent 4aaab331ae
commit e245da8f29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 4 deletions

View File

@ -43,9 +43,9 @@ function DynamicExpression({ value, onChange }) {
}
export default class extends Instruction {
title = `{{t("Dynamic Calculation", { ns: "${NAMESPACE}" })}}`;
title = `{{t("Dynamic expression calculation", { ns: "${NAMESPACE}" })}}`;
type = 'dynamic-calculation';
group = 'extended';
group = 'calculation';
description = `{{t("Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression is dynamic one from an expression collections.", { ns: "${NAMESPACE}" })}}`;
fieldset = {
expression: {

View File

@ -1,6 +1,6 @@
{
"Expression": "表达式",
"Dynamic Calculation": "动态表达式计算",
"Dynamic expression calculation": "动态表达式计算",
"Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression is dynamic one from an expression collections.": "基于计算引擎计算表达式并获取值作为结果。可以在表达式中使用上游节点的变量。表达式是从表达式表中动态获取的。",
"Select dynamic expression": "选择动态表达式",
"Select the dynamic expression queried from the upstream node. You need to query it from an expression collection.": "从上游节点中选择查询出来的动态表达式。你需要从动态表达式类型的数据表中查询。",

View File

@ -38,6 +38,7 @@ export function AddButton(props: AddButtonProps) {
const groups = useMemo(() => {
return [
{ key: 'control', label: `{{t("Control", { ns: "${NAMESPACE}" })}}` },
{ key: 'calculation', label: `{{t("Calculation", { ns: "${NAMESPACE}" })}}` },
{ key: 'collection', label: `{{t("Collection operations", { ns: "${NAMESPACE}" })}}` },
{ key: 'manual', label: `{{t("Manual", { ns: "${NAMESPACE}" })}}` },
{ key: 'extended', label: `{{t("Extended types", { ns: "${NAMESPACE}" })}}` },

View File

@ -20,7 +20,7 @@ import { Instruction } from '.';
export default class extends Instruction {
title = `{{t("Calculation", { ns: "${NAMESPACE}" })}}`;
type = 'calculation';
group = 'control';
group = 'calculation';
description = `{{t("Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression.", { ns: "${NAMESPACE}" })}}`;
fieldset = {
engine: {