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,11 +1,26 @@
/*
* @Author: ZhaoYing
* @Date: 2026-02-03 18:32:30
* @Last Modified by: ZhaoYing
* @Last Modified time: 2026-02-03 18:32:30
*/
/**
* Page Header Component
* Header with navigation and operation buttons
*/
import { type FC, type ReactNode } from 'react';
import { useNavigate } from 'react-router-dom';
import { Layout, Space, Button } from 'antd';
import { Layout, Button } from 'antd';
import { useTranslation } from 'react-i18next';
import logoutIcon from '@/assets/images/logout_hover.svg'
const { Header } = Layout;
/**
* Component props
*/
interface ConfigHeaderProps {
name?: string;
operation?: ReactNode;
@@ -21,6 +36,7 @@ const PageHeader: FC<ConfigHeaderProps> = ({
const { t } = useTranslation();
const navigate = useNavigate();
/** Navigate back */
const goBack = () => {
if (source === 'detail') {
navigate('/user-memory', { replace: true })