Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
df85acb8
authored
Jul 14, 2025
by
t0ng7u
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
⚽
style(ui): Change the size of the icons in the dashboard to normal
parent
194e73b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
web/src/pages/Detail/index.js
+8
-8
No files found.
web/src/pages/Detail/index.js
View file @
df85acb8
...
@@ -520,7 +520,7 @@ const Detail = (props) => {
...
@@ -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) => {
...
@@ -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) => {
...
@@ -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) => {
...
@@ -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) => {
...
@@ -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) => {
...
@@ -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) => {
...
@@ -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) => {
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment