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

@@ -41,7 +41,7 @@ export interface LabelHandler {
getIcon?: (uri: URI) => string | undefined | React.ReactNode;
/**
* 自定义渲染 label
* Custom render label
*/
renderer?: (uri: URI, opt?: any) => React.ReactNode;

View File

@@ -32,7 +32,7 @@ interface LabelChangeEvent {
}
/**
* 提供 全局的 label 数据获取
* Provide, global label data acquisition
*/
@injectable()
export class LabelManager implements LabelService, LifecycleContribution {
@@ -56,7 +56,7 @@ export class LabelManager implements LabelService, LifecycleContribution {
}
/**
* 获取 label icon
* Get label icon
* @param element
*/
getIcon(element: URI): string | React.ReactNode {
@@ -72,7 +72,7 @@ export class LabelManager implements LabelService, LifecycleContribution {
}
/**
* label 的自定义渲染
* Custom rendering of labels
*/
renderer(element: URI, opts?: any): ReactNode {
const handler = this.findContribution(element).find(i => i.renderer);
@@ -83,7 +83,7 @@ export class LabelManager implements LabelService, LifecycleContribution {
}
/**
* 获取 label 名字
* Get label name
* @param element
*/
getName(element: URI): string {
@@ -99,7 +99,7 @@ export class LabelManager implements LabelService, LifecycleContribution {
}
/**
* 获取 label 的详细描述
* Get a detailed description of the label
* @param element
*/
getDescription(element: URI): string {
@@ -136,7 +136,7 @@ export class LabelManager implements LabelService, LifecycleContribution {
}
/**
* label 变化后触发
* Triggered after label change
*/
// eslint-disable-next-line @typescript-eslint/ban-ts-comment, @typescript-eslint/prefer-ts-expect-error
// @ts-ignore

View File

@@ -21,33 +21,33 @@ import { type LabelChangeEvent } from './label-handler';
export const LabelService = Symbol('LabelService');
/**
* 提供 全局的 label 数据获取
* Provide, global label data acquisition
*/
export interface LabelService {
/**
* label 变化后触发
* Triggered after label change
*/
get onChange(): Event<LabelChangeEvent>;
/**
* 获取 label icon
* Get label icon
* @param element
*/
getIcon: (element: URI) => string | React.ReactNode;
/**
* 获取 label 的自定义渲染
* Get custom rendering of label
*/
renderer: (element: URI, opts?: any) => React.ReactNode;
/**
* 获取 label 名字
* Get label name
* @param element
*/
getName: (element: URI) => string;
/**
* 获取 label 的描述
* Get the description of the label
* @param element
*/
getDescription: (element: URI) => string;

View File

@@ -29,7 +29,7 @@ export interface URILabelProps {
}
/**
* 渲染 Label 的 react 组件
* React component for rendering Label
* @param props
* @constructor
*/