From 3f94f5f709a6da5491c950983d582150472239b6 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 30 Aug 2023 15:31:11 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=AB=99=E7=82=B9=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/plugins/sitestatistic/__init__.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/app/plugins/sitestatistic/__init__.py b/app/plugins/sitestatistic/__init__.py index 4e3b56af..abce8a6d 100644 --- a/app/plugins/sitestatistic/__init__.py +++ b/app/plugins/sitestatistic/__init__.py @@ -370,7 +370,7 @@ class SiteStatistic(_PluginBase): { 'component': 'td', 'props': { - 'class': 'whitespace-nowrap break-keep' + 'class': 'whitespace-nowrap break-keep text-high-emphasis' }, 'text': site }, @@ -384,10 +384,16 @@ class SiteStatistic(_PluginBase): }, { 'component': 'td', + 'props': { + 'class': 'text-success' + }, 'text': StringUtils.str_filesize(data.get("upload")) }, { 'component': 'td', + 'props': { + 'class': 'text-error' + }, 'text': StringUtils.str_filesize(data.get("download")) }, { @@ -396,7 +402,7 @@ class SiteStatistic(_PluginBase): }, { 'component': 'td', - 'text': data.get('bonus') + 'text': '{:,.1f}'.format(data.get('bonus') or 0) }, { 'component': 'td', @@ -587,7 +593,7 @@ class SiteStatistic(_PluginBase): { 'component': 'VImg', 'props': { - 'src': '/plugin/cloud.png' + 'src': '/plugin/seed.png' } } ] @@ -657,7 +663,7 @@ class SiteStatistic(_PluginBase): { 'component': 'VImg', 'props': { - 'src': '/plugin/seed_size.png' + 'src': '/plugin/database.png' } } ]