style(ui): Change the size of the icons in the dashboard to normal

This commit is contained in:
t0ng7u
2025-07-14 23:47:45 +08:00
parent bed73102b4
commit 9326bf96fc

View File

@@ -520,7 +520,7 @@ const Detail = (props) => {
{ {
title: t('当前余额'), title: t('当前余额'),
value: renderQuota(userState?.user?.quota), value: renderQuota(userState?.user?.quota),
icon: <IconMoneyExchangeStroked size="large" />, icon: <IconMoneyExchangeStroked />,
avatarColor: 'blue', avatarColor: 'blue',
onClick: () => navigate('/console/topup'), onClick: () => navigate('/console/topup'),
trendData: [], trendData: [],
@@ -529,7 +529,7 @@ const Detail = (props) => {
{ {
title: t('历史消耗'), title: t('历史消耗'),
value: renderQuota(userState?.user?.used_quota), value: renderQuota(userState?.user?.used_quota),
icon: <IconHistogram size="large" />, icon: <IconHistogram />,
avatarColor: 'purple', avatarColor: 'purple',
trendData: [], trendData: [],
trendColor: '#8b5cf6' trendColor: '#8b5cf6'
@@ -543,7 +543,7 @@ const Detail = (props) => {
{ {
title: t('请求次数'), title: t('请求次数'),
value: userState.user?.request_count, value: userState.user?.request_count,
icon: <IconSend size="large" />, icon: <IconSend />,
avatarColor: 'green', avatarColor: 'green',
trendData: [], trendData: [],
trendColor: '#10b981' trendColor: '#10b981'
@@ -551,7 +551,7 @@ const Detail = (props) => {
{ {
title: t('统计次数'), title: t('统计次数'),
value: times, value: times,
icon: <IconPulse size="large" />, icon: <IconPulse />,
avatarColor: 'cyan', avatarColor: 'cyan',
trendData: trendData.times, trendData: trendData.times,
trendColor: '#06b6d4' trendColor: '#06b6d4'
@@ -565,7 +565,7 @@ const Detail = (props) => {
{ {
title: t('统计额度'), title: t('统计额度'),
value: renderQuota(consumeQuota), value: renderQuota(consumeQuota),
icon: <IconCoinMoneyStroked size="large" />, icon: <IconCoinMoneyStroked />,
avatarColor: 'yellow', avatarColor: 'yellow',
trendData: trendData.consumeQuota, trendData: trendData.consumeQuota,
trendColor: '#f59e0b' trendColor: '#f59e0b'
@@ -573,7 +573,7 @@ const Detail = (props) => {
{ {
title: t('统计Tokens'), title: t('统计Tokens'),
value: isNaN(consumeTokens) ? 0 : consumeTokens, value: isNaN(consumeTokens) ? 0 : consumeTokens,
icon: <IconTextStroked size="large" />, icon: <IconTextStroked />,
avatarColor: 'pink', avatarColor: 'pink',
trendData: trendData.tokens, trendData: trendData.tokens,
trendColor: '#ec4899' trendColor: '#ec4899'
@@ -587,7 +587,7 @@ const Detail = (props) => {
{ {
title: t('平均RPM'), title: t('平均RPM'),
value: performanceMetrics.avgRPM, value: performanceMetrics.avgRPM,
icon: <IconStopwatchStroked size="large" />, icon: <IconStopwatchStroked />,
avatarColor: 'indigo', avatarColor: 'indigo',
trendData: trendData.rpm, trendData: trendData.rpm,
trendColor: '#6366f1' trendColor: '#6366f1'
@@ -595,7 +595,7 @@ const Detail = (props) => {
{ {
title: t('平均TPM'), title: t('平均TPM'),
value: performanceMetrics.avgTPM, value: performanceMetrics.avgTPM,
icon: <IconTypograph size="large" />, icon: <IconTypograph />,
avatarColor: 'orange', avatarColor: 'orange',
trendData: trendData.tpm, trendData: trendData.tpm,
trendColor: '#f97316' trendColor: '#f97316'