chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -43,7 +43,7 @@ const Mask: FC<PropsWithChildren> = ({ children }) => (
|
||||
</div>
|
||||
);
|
||||
|
||||
// 在需要时渲染错误状态 & loading
|
||||
// Rendering error states when needed & loading
|
||||
const LoginCheckMask: FC<{ needLogin: boolean; loginOptional: boolean }> = ({
|
||||
needLogin,
|
||||
loginOptional,
|
||||
|
||||
@@ -44,7 +44,7 @@ import { UserInfoField, type UserInfoFieldProps } from './user-info-field';
|
||||
|
||||
import styles from './index.module.less';
|
||||
|
||||
// 用户输入 username 自动检查的时间
|
||||
// The time when the user enters the username to automatically check
|
||||
export const CHECK_USER_NAME_DEBOUNCE_TIME = 1000;
|
||||
|
||||
const WrappedInputWithCount: React.FC<
|
||||
@@ -213,7 +213,7 @@ export const UserInfoPanel = () => {
|
||||
});
|
||||
localStorage.setItem('i18next', newLang === 'en-US' ? 'en' : newLang);
|
||||
updateProfileEvent.success();
|
||||
// 更新语言设置需要刷新页面才能生效
|
||||
// Updating the language settings requires a page refresh to take effect
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 500);
|
||||
@@ -310,7 +310,7 @@ export const UserInfoPanel = () => {
|
||||
setAvatar(userInfo?.avatar_url ?? '');
|
||||
}, [userInfo]);
|
||||
|
||||
// 在进入和离开时均刷新一次用户信息
|
||||
// Refresh user information once upon entry and exit
|
||||
useEffect(() => {
|
||||
refreshUserInfo();
|
||||
return () => {
|
||||
|
||||
@@ -23,7 +23,7 @@ import s from './index.module.less';
|
||||
export const USER_NAME_MAX_LEN = 20;
|
||||
|
||||
interface InputWithCountProps extends InputProps {
|
||||
// 设置字数限制并显示字数统计
|
||||
// Set word limits and display word count
|
||||
getValueLength?: (value?: InputProps['value'] | string) => number;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ export const useLogout = (): UseLogoutReturnType => {
|
||||
onOk={async () => {
|
||||
await logout();
|
||||
setVisible(false);
|
||||
// 跳转到根路径
|
||||
// Jump to root path
|
||||
navigate('/');
|
||||
}}
|
||||
onCancel={() => {
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* 当浏览器窗口的高度大于等于760px时, 高度固定 */
|
||||
/* When the height of the browser window is greater than or equal to 760px, the height is fixed */
|
||||
@media screen and (min-height: 760px) {
|
||||
:global {
|
||||
.semi-modal {
|
||||
@@ -135,7 +135,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* 当浏览器窗口的高度小于760px时, 高度 100vh - 160px */
|
||||
/* When the height of the browser window is less than 760px, the height is 100vh - 160px. */
|
||||
@media screen and (max-height: 759px) {
|
||||
:global {
|
||||
.semi-modal {
|
||||
|
||||
@@ -28,7 +28,7 @@ export interface TabItem {
|
||||
id: string;
|
||||
tabName: string;
|
||||
/**
|
||||
* @param close 关闭setting弹窗
|
||||
* @param close settings pop-up
|
||||
* @returns ReactElement
|
||||
*/
|
||||
content: (close?: () => void) => ReactElement;
|
||||
|
||||
Reference in New Issue
Block a user