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

@@ -35,7 +35,7 @@ export const ExceptionDisplay: FC<{ title: string; image: ReactNode }> = ({
);
/**
* 加载失败
* load failed
*/
export const LoadFailedDisplay = () => (
<ExceptionDisplay
@@ -45,7 +45,7 @@ export const LoadFailedDisplay = () => (
);
/**
* 无数据
* No data
*/
export const NoDataDisplay = () => (
<ExceptionDisplay

View File

@@ -82,7 +82,7 @@ const getInputConfig = (storeState: ConfigStoreState, id: string) => {
export const BaseInputFieldLine: FC<{
data: InputConfigFe;
// eslint-disable-next-line @coze-arch/max-line-per-function -- 鼠鼠我呀,也很无奈
// eslint-disable-next-line @coze-arch/max-line-per-function -- rat rat me, I am also very helpless
}> = ({ data: { _id: id } }) => {
const { onChange, inputFieldsSelectorList, inputOptions, onToggleError } =
useContext(InputLineCommonContext);

View File

@@ -153,10 +153,10 @@ export const BaseOutputStructLine: FC<{
<BigCheckbox
checked={data.is_group_by_key}
/**
* is_group_by_key: 只允许提交 text 类型
* 可以切换场景:
* 1. 已经勾选:任意类型
* 2. 未勾选:仅 text 类型
* is_group_by_key: Only text types are allowed
* Scenes can be switched:
* 1. Checked: Any Type
* 2. Unchecked: text type only
*/
disabled={
!(data.is_group_by_key || getIsTextOutput(data.output_type))
@@ -189,10 +189,10 @@ export const BaseOutputStructLine: FC<{
checked={data.is_primary}
isError={primaryRequire.warn}
/**
* is_primary: 只允许提交 text number 类型
* 可以切换场景:
* 1. 已经勾选:任意类型
* 2. 未勾选:仅 text number 类型
* is_primary: Only text or number types are allowed
* Scenes can be switched:
* 1. Checked: Any Type
* 2. Unchecked: only text and number types
*/
disabled={
!(
@@ -223,12 +223,12 @@ export const BaseOutputStructLine: FC<{
};
const FIRST_TWO_COLUMN_TRANSFER_SPACE = 30;
// 总和为 566滚动条留 8左侧拖拽按钮 16gap 8 * 4 删除按钮 24
// The sum is 566, the scroll bar leaves 8, the left drag button 16, the gap 8 * 4, the delete button 24.
// (566 - 8 - 16 - 4 * 8 - 24 - (44 + 96)) / 2 = 173
export const outputStructColumnWidth = {
key: 173 + FIRST_TWO_COLUMN_TRANSFER_SPACE,
outputType: 173 - FIRST_TWO_COLUMN_TRANSFER_SPACE,
groupByKey: 44,
// 给国际化预留一些宽度
// Allow some width for internationalization
primary: 96,
};