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

@@ -13,8 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// 快捷指令操作bar
// Quick command bar
import { type CSSProperties, type FC, useRef, useState } from 'react';
import cls from 'classnames';
@@ -48,7 +48,7 @@ interface ChatShortCutBarProps {
) => void;
className?: string;
wrapperClassName?: string;
uiMode?: UIMode; // 默认为白色,有背景的时候为模糊
uiMode?: UIMode; // The default is white, and it is blurred when there is a background.
defaultId?: string;
wrapperStyle?: CSSProperties;
toolTipFooterSlot?: React.ReactNode;
@@ -100,8 +100,8 @@ export const ShortcutBar: FC<ChatShortCutBarProps> = props => {
const shortcutClick = (shortcut: ShortCutCommand) => {
/**
* send_type=SendTypePanel components_list hide均为true
* 直接发送
* send_type = SendTypePanel and components_list hide is true
* send directly
*/
const hideTemplate = enableSendTypePanelHideTemplate(shortcut);
@@ -174,7 +174,7 @@ export const ShortcutBar: FC<ChatShortCutBarProps> = props => {
};
/**
* sendType=panel 支持不展示组件直接发送
* sendType = panel supports sending directly without displaying components
*/
const onShortcutTemplateNoParamsSubmit = (
componentsFormValues: Record<string, TValue>,
@@ -186,7 +186,7 @@ export const ShortcutBar: FC<ChatShortCutBarProps> = props => {
const { agent_id, object_id, components_list, tool_info } = shortcut;
/**
* sendType=panel,useTool=true 无参数直接发送
* sendType = panel, useTool = true Send directly without parameters
*/
const withoutComponentsList =
!!tool_info?.tool_name && !components_list?.length;
@@ -270,7 +270,7 @@ export const ShortcutBar: FC<ChatShortCutBarProps> = props => {
}}
minVisibleItems={1}
items={shortcuts}
// @ts-expect-error visibleItemRenderer 有问题
// @ts-expect-error visibleItemRenderer has a problem
visibleItemRenderer={renderShortcut}
overflowRenderer={overflowItems => {
if (!overflowItems.length) {

View File

@@ -22,11 +22,11 @@ import {
} from '@coze-common/chat-core';
export interface ChatShortCutBarProps {
shortcuts: ShortCutCommand[]; // 目前支持两种快捷键
shortcuts: ShortCutCommand[]; // Currently supports two shortcuts
onClickShortCut: (shortcutInfo: ShortCutCommand) => void;
}
// 更新后 home white 调试区、商店为 grey
export type UIMode = 'grey' | 'white' | 'blur'; // 默认为白色,有背景的时候为模糊
// After the update, the home is white debugging area and the store is grey.
export type UIMode = 'grey' | 'white' | 'blur'; // The default is white, and it is blurred when there is a background.
export interface OnBeforeSendTemplateShortcutParams {
message: TextAndFileMixMessageProps;