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 18:32:47
* @Last Modified by: ZhaoYing
* @Last Modified time: 2026-02-03 18:32:47
*/
/**
* Interest Distribution Component
* Displays user interest distribution as pie chart with tag list
*/
import { type FC, useRef, useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { useParams } from 'react-router-dom'
@@ -9,6 +20,7 @@ import Empty from '@/components/Empty';
import Loading from '@/components/Empty/Loading';
import RbCard from '@/components/RbCard/Card';
/** Chart color palette */
const Colors = ['#155EEF', '#4DA8FF', '#03BDFF', '#31E8FF', '#AD88FF', '#FFB048']
const InterestDistribution: FC = () => {
@@ -23,6 +35,7 @@ const InterestDistribution: FC = () => {
useEffect(() => {
getData()
}, [id])
/** Fetch interest distribution data */
const getData = () => {
setLoading(true)
getHotMemoryTagsByUser(id as string).then(res => {