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
f4f4cea7
authored
May 26, 2025
by
Apple\Apple
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
style(ui): Adjust the size of the icon
parent
66bc7947
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
web/src/components/TokensTable.js
+3
-3
web/src/pages/Detail/index.js
+9
-9
No files found.
web/src/components/TokensTable.js
View file @
f4f4cea7
...
...
@@ -583,7 +583,7 @@ const TokensTable = () => {
size
=
"medium"
color
=
"blue"
>
<
IconMoneyExchangeStroked
/>
<
IconMoneyExchangeStroked
size
=
"large"
/>
<
/Avatar
>
<
div
>
<
div
className
=
"text-sm text-gray-500"
>
{
t
(
'当前余额'
)}
<
/div
>
...
...
@@ -603,7 +603,7 @@ const TokensTable = () => {
size
=
"medium"
color
=
"purple"
>
<
IconHistogram
/>
<
IconHistogram
size
=
"large"
/>
<
/Avatar
>
<
div
>
<
div
className
=
"text-sm text-gray-500"
>
{
t
(
'累计消费'
)}
<
/div
>
...
...
@@ -623,7 +623,7 @@ const TokensTable = () => {
size
=
"medium"
color
=
"green"
>
<
IconRotate
/>
<
IconRotate
size
=
"large"
/>
<
/Avatar
>
<
div
>
<
div
className
=
"text-sm text-gray-500"
>
{
t
(
'请求次数'
)}
<
/div
>
...
...
web/src/pages/Detail/index.js
View file @
f4f4cea7
...
...
@@ -449,42 +449,42 @@ const Detail = (props) => {
{
title
:
t
(
'当前余额'
),
value
:
renderQuota
(
userState
?.
user
?.
quota
),
icon
:
<
IconMoneyExchangeStroked
/>
,
icon
:
<
IconMoneyExchangeStroked
size
=
"large"
/>
,
color
:
'bg-blue-50'
,
avatarColor
:
'blue'
,
},
{
title
:
t
(
'历史消耗'
),
value
:
renderQuota
(
userState
?.
user
?.
used_quota
),
icon
:
<
IconHistogram
/>
,
icon
:
<
IconHistogram
size
=
"large"
/>
,
color
:
'bg-purple-50'
,
avatarColor
:
'purple'
,
},
{
title
:
t
(
'请求次数'
),
value
:
userState
.
user
?.
request_count
,
icon
:
<
IconRotate
/>
,
icon
:
<
IconRotate
size
=
"large"
/>
,
color
:
'bg-green-50'
,
avatarColor
:
'green'
,
},
{
title
:
t
(
'统计额度'
),
value
:
renderQuota
(
consumeQuota
),
icon
:
<
IconCoinMoneyStroked
/>
,
icon
:
<
IconCoinMoneyStroked
size
=
"large"
/>
,
color
:
'bg-yellow-50'
,
avatarColor
:
'yellow'
,
},
{
title
:
t
(
'统计Tokens'
),
value
:
isNaN
(
consumeTokens
)
?
0
:
consumeTokens
,
icon
:
<
IconTextStroked
/>
,
icon
:
<
IconTextStroked
size
=
"large"
/>
,
color
:
'bg-pink-50'
,
avatarColor
:
'pink'
,
},
{
title
:
t
(
'统计次数'
),
value
:
times
,
icon
:
<
IconPulse
/>
,
icon
:
<
IconPulse
size
=
"large"
/>
,
color
:
'bg-teal-50'
,
avatarColor
:
'cyan'
,
},
...
...
@@ -494,7 +494,7 @@ const Detail = (props) => {
times
/
((
Date
.
parse
(
end_timestamp
)
-
Date
.
parse
(
start_timestamp
))
/
60000
)
).
toFixed
(
3
),
icon
:
<
IconStopwatchStroked
/>
,
icon
:
<
IconStopwatchStroked
size
=
"large"
/>
,
color
:
'bg-indigo-50'
,
avatarColor
:
'indigo'
,
},
...
...
@@ -505,7 +505,7 @@ const Detail = (props) => {
((
Date
.
parse
(
end_timestamp
)
-
Date
.
parse
(
start_timestamp
))
/
60000
);
return
isNaN
(
tpm
)
?
'0'
:
tpm
.
toFixed
(
3
);
})(),
icon
:
<
IconTypograph
/>
,
icon
:
<
IconTypograph
size
=
"large"
/>
,
color
:
'bg-orange-50'
,
avatarColor
:
'orange'
,
},
...
...
@@ -613,7 +613,7 @@ const Detail = (props) => {
<
/Modal
>
<
Spin
spinning
=
{
loading
}
>
<
div
className
=
"mb-
6
"
>
<
div
className
=
"mb-
4
"
>
<
div
className
=
"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4"
>
{
statsData
.
map
((
stat
,
idx
)
=>
(
<
Card
...
...
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