fix(ui): 修复登录和并发请求并统一页面展示
调整登录流程和请求处理,统一各中心的表格交互、主题样式和页面展示。
This commit is contained in:
@@ -16,6 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { formatPercent } from '../../helpers/safeDisplay';
|
||||
|
||||
import { I18N_TECHNICAL_TEXT } from '../../i18n/technicalText.js';
|
||||
import {
|
||||
@@ -366,7 +367,7 @@ const GroupMonitor = () => {
|
||||
className='text-sm font-medium'
|
||||
style={{ color: getUptimeColor(value) }}
|
||||
>
|
||||
{(value || 0).toFixed(1)}%
|
||||
{formatPercent(value || 0, 1)}
|
||||
</span>
|
||||
</div>
|
||||
),
|
||||
@@ -511,7 +512,7 @@ const GroupMonitor = () => {
|
||||
<div
|
||||
className={`service-uptime-badge px-4 py-2 rounded-xl text-sm font-bold ${getUptimeClass(uptimePercent)}`}
|
||||
>
|
||||
{uptimePercent.toFixed(2)}%
|
||||
{formatPercent(uptimePercent, 2)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -591,7 +592,7 @@ const GroupMonitor = () => {
|
||||
<div
|
||||
className={`service-uptime-badge px-3 py-1.5 rounded-lg text-xs font-bold ${getUptimeClass(uptimePercent)}`}
|
||||
>
|
||||
{uptimePercent.toFixed(2)}%
|
||||
{formatPercent(uptimePercent, 2)}
|
||||
</div>
|
||||
</div>
|
||||
<div className='text-center'>
|
||||
|
||||
@@ -16,6 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { formatPercent } from '../../helpers/safeDisplay';
|
||||
|
||||
import { I18N_TECHNICAL_TEXT } from '../../i18n/technicalText.js';
|
||||
import { RefreshCw as ActionRefreshCw } from '@/components/common/icons/ActionIcons';
|
||||
@@ -544,7 +545,7 @@ const GroupMonitorAdmin = () => {
|
||||
className='text-3xl font-bold'
|
||||
style={{ color: getHealthColor(overview.average_uptime) }}
|
||||
>
|
||||
{overview.average_uptime.toFixed(1)}%
|
||||
{formatPercent(overview.average_uptime, 1)}
|
||||
</div>
|
||||
<div className='text-gray-500 mt-1'>{t('平均可用率')}</div>
|
||||
</Card>
|
||||
@@ -659,7 +660,7 @@ const GroupMonitorAdmin = () => {
|
||||
color: getHealthColor(group.uptime_percent),
|
||||
}}
|
||||
>
|
||||
{group.uptime_percent.toFixed(1)}%
|
||||
{formatPercent(group.uptime_percent, 1)}
|
||||
</div>
|
||||
<div className='text-xs text-gray-500'>
|
||||
{t('可用率')}
|
||||
@@ -708,7 +709,7 @@ const GroupMonitorAdmin = () => {
|
||||
color: getHealthColor(group.uptime_percent),
|
||||
}}
|
||||
>
|
||||
{group.uptime_percent.toFixed(1)}%
|
||||
{formatPercent(group.uptime_percent, 1)}
|
||||
</div>
|
||||
<div className='stat-box-label'>{t('可用率')}</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user