chore: replace all cn comments of fe to en version by volc api (#320)

This commit is contained in:
tecvan
2025-07-31 10:32:15 +08:00
committed by GitHub
parent 716ec0cba8
commit 71f6245a01
2960 changed files with 15545 additions and 15545 deletions

View File

@ -14,5 +14,5 @@
* limitations under the License.
*/
// 入参路径,试运行等功能依赖该路径提取参数
// Imported parameter path, practice running and other functions rely on this path to extract parameters
export const INPUT_PATH = 'inputs.inputParameters';

View File

@ -41,13 +41,13 @@ export function useSetTags(
if (!variable) {
const pathLabel = left?.content?.keyPath[1];
if (pathLabel) {
// 有值但找不到变量
// Value but no variable found
return {
label: pathLabel,
invalid: true,
};
} else {
// 没有值
// No value
return;
}
}

View File

@ -25,7 +25,7 @@ import {
} from '@coze-workflow/base';
/**
* 节点后端数据 -> 前端表单数据
* Node Backend Data - > Frontend Form Data
*/
export const transformOnInit = (formData: any, ctx: any) => {
const inputParameterDTOs: {
@ -88,7 +88,7 @@ export const transformOnInit = (formData: any, ctx: any) => {
};
/**
* 前端表单数据 -> 节点后端数据
* Front-end form data - > node back-end data
* @param value
* @returns
*/

View File

@ -34,28 +34,28 @@ import { FormRender } from './form';
import { transformOnInit, transformOnSubmit } from './data-transformer';
export const SET_VARIABLE_FORM_META: FormMetaV2<FormData> = {
// 节点表单渲染
// Node form rendering
render: () => <FormRender />,
// 验证触发时机
// verification trigger timing
validateTrigger: ValidateTrigger.onChange,
// 验证规则
// validation rules
validate: {
nodeMeta: nodeMetaValidate,
'inputs.inputParameters.*.left': VariableAssignLeftValidator,
'inputs.inputParameters.*.right': VariableAssignRightValidator,
},
// 副作用管理
// Side effect management
effect: {
nodeMeta: fireNodeTitleChange,
outputs: provideNodeOutputVariablesEffect,
},
// 节点后端数据 -> 前端表单数据
// Node Backend Data - > Frontend Form Data
formatOnInit: transformOnInit,
// 前端表单数据 -> 节点后端数据
// Front-end form data - > node back-end data
formatOnSubmit: transformOnSubmit,
};

View File

@ -34,7 +34,7 @@ export const SET_VARIABLE_NODE_REGISTRY: WorkflowNodeRegistry = {
size: { width: 360, height: 87.86 },
nodeMetaPath: DEFAULT_NODE_META_PATH,
outputsPath: DEFAULT_OUTPUTS_PATH,
inputParametersPath: INPUT_PATH, // 入参路径,试运行等功能依赖该路径提取参数
inputParametersPath: INPUT_PATH, // Imported parameter path, practice running and other functions rely on this path to extract parameters
},
variablesMeta: {
outputsPathList: [],