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

@@ -21,7 +21,7 @@ import { createPortal } from '../utils';
import { ApplicationShell } from '../shell/application-shell';
import { ViewOptions } from '../constants/view-options';
// 控制 debug
// Control debugging
@injectable()
export class DebugService {
@inject(ViewOptions) viewOptions: ViewOptions;

View File

@@ -26,22 +26,22 @@ import { MimeData } from '../lumino/coreutils';
export interface DragPropsType {
/**
* 拖拽打开分屏的 URI
* Drag and drop to open the split-screen URI.
*/
uris: URI[];
/**
* startDrag event 位置数据
* StartDrag event location data
*/
position: {
clientX: number;
clientY: number;
};
/**
* 拖拽元素回显,不传不展示
* Drag and drop elements to echo, no transmission or display
*/
dragImage?: HTMLElement;
/**
* 拖拽完成后回调
* Callback after dragging is complete
* action: 'move' | 'copy' | 'link' | 'none'
*/
callback: (action: Drag.DropAction) => void;
@@ -49,7 +49,7 @@ export interface DragPropsType {
}
/**
* DragService 主要用于分屏操作
* DragService is mainly used for split-screen operation
*/
@injectable()
export class DragService {
@@ -60,7 +60,7 @@ export class DragService {
@inject(ViewRenderer) viewRenderer: ViewRenderer;
/**
* 业务侧手动拖拽触发分屏(侧边栏文件树拖拽进入开始分屏)
* Manually drag and drop on the business side to trigger the split screen (drag the sidebar file tree into the start split screen)
*/
startDrag({
uris,
@@ -94,7 +94,7 @@ export class DragService {
proposedAction: 'move',
supportedActions: 'move',
/**
* 仅支持在主面板区域分屏
* Only supports split screen in the main panel area
*/
source: this.shell.mainPanel,
backdropTransform,

View File

@@ -100,7 +100,7 @@ export interface HoverRequest {
position: HoverPosition;
cssClasses?: string[];
visualPreview?: (width: number) => HTMLElement | undefined;
/** hover 位置偏移 */
/** Hover position offset */
offset?: number;
}

View File

@@ -41,21 +41,21 @@ export class ViewService {
private prevPanelMap = new Map<LayoutPanelType, boolean>();
/**
* 唤起底部面板
* Evoke the bottom panel
*/
toggleBottomLayout() {
this.shell.bottomSplitLayout.setRelativeSizes([0.7, 0.3]);
}
/**
* 隐藏底部面板
* Hide bottom panel
*/
hideBottomLayout() {
this.shell.bottomSplitLayout.setRelativeSizes([1, 0]);
}
/**
* 获取所有打开的 tab title
* Get all open tab titles
*/
getOpenTitles() {
let titles: CustomTitleType[] = [];
@@ -69,7 +69,7 @@ export class ViewService {
}
/**
* 获取当前 panel 打开的所有 tab
* Get all tabs currently open in the panel
*/
getAllTabsFromArea(
area: LayoutPanelType.MAIN_PANEL | LayoutPanelType.BOTTOM_PANEL,
@@ -86,7 +86,7 @@ export class ViewService {
}
/**
* 关闭除了当前 tab 以外的所有 tab
* Close all tabs except the current tab
*/
closeOtherTabs(dispose = true) {
try {
@@ -111,7 +111,7 @@ export class ViewService {
}
/**
* 打开主面板的下一个 tab
* Open the next tab in the main panel
*/
openNextTab() {
const tabBars = (
@@ -135,7 +135,7 @@ export class ViewService {
}
/**
* 打开主面板的上一个 tab
* Open the previous tab of the main panel
*/
openLastTab() {
const tabBars = (
@@ -160,7 +160,7 @@ export class ViewService {
}
/**
* 开启全屏模式
* Enable full screen mode
*/
enableFullScreenMode() {
if (this.isFullScreenMode) {
@@ -178,7 +178,7 @@ export class ViewService {
}
/**
* 关闭全屏模式
* Turn off full screen mode
*/
disableFullScreenMode() {
if (!this.isFullScreenMode) {
@@ -196,7 +196,7 @@ export class ViewService {
}
/**
* 全屏模式切换
* full screen mode toggle
*/
switchFullScreenMode() {
if (!this.isFullScreenMode) {
@@ -207,14 +207,14 @@ export class ViewService {
}
/**
* 设置当前 activityBar 激活 item
* Set the current activityBar item
*/
setActivityBarUri(uri: URI) {
this.shell.activityBarWidget.setCurrentUri(uri);
}
/**
* 获取当前 activityBar 激活的 item
* Get the current activityBar active item
*/
get activityBarUri() {
return this.shell.activityBarWidget.currentUri;