style(web): translate the comments in the src/views directory into English

This commit is contained in:
zhaoying
2026-02-03 18:38:04 +08:00
parent a191e32f71
commit 9e195ea63b
155 changed files with 4169 additions and 586 deletions

View File

@@ -1,3 +1,14 @@
/*
* @Author: ZhaoYing
* @Date: 2026-02-03 17:48:03
* @Last Modified by: ZhaoYing
* @Last Modified time: 2026-02-03 17:48:03
*/
/**
* Space Configuration Page
* Configures default models for workspace (LLM, embedding, rerank)
*/
import { type FC, useEffect, useState } from 'react';
import { Form, App, Button, Skeleton } from 'antd';
import { useTranslation } from 'react-i18next';
@@ -31,7 +42,7 @@ const SpaceConfig: FC = () => {
setPageLoding(false)
})
}, [])
// 封装保存方法,添加提交逻辑
/** Save configuration */
const handleSave = () => {
form
.validateFields()

View File

@@ -1,8 +1,20 @@
/*
* @Author: ZhaoYing
* @Date: 2026-02-03 17:48:06
* @Last Modified by: ZhaoYing
* @Last Modified time: 2026-02-03 17:48:06
*/
/**
* Space configuration data
*/
export interface SpaceConfigData {
llm: string;
embedding: string;
rerank: string;
}
/**
* Space config component ref interface
*/
export interface SpaceConfigRef {
handleOpen: () => void;
}