style: move service status below backup/restore, half-width

This commit is contained in:
tian 2026-05-06 16:31:41 +08:00
parent c016461d99
commit 8cecdd32d4

View File

@ -1,16 +1,5 @@
{{define "system"}}
<div class="card">
<h2 class="title-with-icon">{{icon "heartbeat"}}<span>服务状态</span></h2>
<div class="info-list compact-list" style="margin-top:12px">
<div><span>管理后台</span><span class="pill" id="svc-status">检测中…</span></div>
<div><span>接口状态</span><span class="pill" id="api-status">检测中…</span></div>
</div>
<div class="actions" style="margin-top:12px">
<button class="btn ghost" type="button" id="btn-refresh">刷新</button>
</div>
</div>
<div class="detail-grid">
<div class="card">
<h2 class="title-with-icon">{{icon "audit"}}<span>数据备份</span></h2>
@ -34,6 +23,19 @@
</div>
</div>
<div class="detail-grid">
<div class="card">
<h2 class="title-with-icon">{{icon "heartbeat"}}<span>服务状态</span></h2>
<div style="display:flex;gap:24px;margin-top:8px">
<div><span class="muted small">管理后台</span> <span class="pill" id="svc-status">检测中…</span></div>
<div><span class="muted small">接口状态</span> <span class="pill" id="api-status">检测中…</span></div>
</div>
<div class="actions" style="margin-top:12px">
<button class="btn ghost" type="button" id="btn-refresh">刷新</button>
</div>
</div>
</div>
<script>
(function() {
var svcEl = document.getElementById("svc-status");