fix 站点数据统计UI

This commit is contained in:
jxxghp
2023-08-30 15:31:11 +08:00
parent 16289d86b6
commit 3f94f5f709

View File

@ -370,7 +370,7 @@ class SiteStatistic(_PluginBase):
{ {
'component': 'td', 'component': 'td',
'props': { 'props': {
'class': 'whitespace-nowrap break-keep' 'class': 'whitespace-nowrap break-keep text-high-emphasis'
}, },
'text': site 'text': site
}, },
@ -384,10 +384,16 @@ class SiteStatistic(_PluginBase):
}, },
{ {
'component': 'td', 'component': 'td',
'props': {
'class': 'text-success'
},
'text': StringUtils.str_filesize(data.get("upload")) 'text': StringUtils.str_filesize(data.get("upload"))
}, },
{ {
'component': 'td', 'component': 'td',
'props': {
'class': 'text-error'
},
'text': StringUtils.str_filesize(data.get("download")) 'text': StringUtils.str_filesize(data.get("download"))
}, },
{ {
@ -396,7 +402,7 @@ class SiteStatistic(_PluginBase):
}, },
{ {
'component': 'td', 'component': 'td',
'text': data.get('bonus') 'text': '{:,.1f}'.format(data.get('bonus') or 0)
}, },
{ {
'component': 'td', 'component': 'td',
@ -587,7 +593,7 @@ class SiteStatistic(_PluginBase):
{ {
'component': 'VImg', 'component': 'VImg',
'props': { 'props': {
'src': '/plugin/cloud.png' 'src': '/plugin/seed.png'
} }
} }
] ]
@ -657,7 +663,7 @@ class SiteStatistic(_PluginBase):
{ {
'component': 'VImg', 'component': 'VImg',
'props': { 'props': {
'src': '/plugin/seed_size.png' 'src': '/plugin/database.png'
} }
} }
] ]