diff --git a/static/hub.css b/static/hub.css index 7ae22f2..98b424c 100644 --- a/static/hub.css +++ b/static/hub.css @@ -206,33 +206,26 @@ a:hover { color: #7dd3fc; } .main { width: 100%; - max-width: 1200px; + max-width: 1800px; margin: 0 auto; - padding: 0 clamp(6px, 1vw, 14px) 16px; + padding: 0 clamp(24px, 4vw, 64px) 16px; } -/* 总览/实例与客户端一致: 铺满,带鱼屏锁 1800 */ body.page-dashboard .main, -body.page-instances .main { - max-width: none; +body.page-instances .main, +body.page-stats .main, +body.page-settings .main, +body.page-cond-orders .main { + max-width: 1800px; width: 100%; margin: 0 auto; - padding: 0 clamp(6px, 1vw, 14px) 16px; + padding: 0 clamp(24px, 4vw, 64px) 16px; } -@media (min-aspect-ratio: 21/9) { - body.page-dashboard .main, - body.page-instances .main, - body.page-stats .main, - body.page-settings .main, - body.page-cond-orders .main { - max-width: min(1800px, calc(100vw - 24px)); - } - body.page-settings .settings-shell { - max-width: none; - width: 100%; - } - body.page-settings .settings-grid { - max-width: none; - } +body.page-settings .settings-shell { + max-width: none; + width: 100%; +} +body.page-settings .settings-grid { + max-width: none; } body.page-desk { height: 100vh; @@ -1671,10 +1664,5 @@ input.readonly { font-size: 0.75rem; } body.page-stats .main { - max-width: 1400px; -} -@media (min-aspect-ratio: 21/9) { - body.page-stats .main { - max-width: min(1800px, calc(100vw - 24px)); - } + max-width: 1800px; } diff --git a/static/hub.js b/static/hub.js index bfe612d..62fd580 100644 --- a/static/hub.js +++ b/static/hub.js @@ -351,9 +351,6 @@ "" + bidLiquiditySummary(brief) + "" + - '' + - escapeHtml(row.pulled_at || "—") + - "" + '
' + ' best) best = t; + }); + return best; + } + async function refresh() { const status = document.getElementById("overview-status"); const grid = document.getElementById("overview-grid"); @@ -585,7 +591,7 @@ grid.innerHTML = '
' + "" + - "" + + "" + "" + list.map(renderRow).join("") + "
名称状态模式浮盈权利金资金占比持仓出场买一/流动性拉取时间操作名称状态模式浮盈权利金资金占比持仓出场买一/流动性操作
"; @@ -597,13 +603,15 @@ } if (status) { const s = summarizeOverview(list); + const pulled = latestPulledAt(list); status.textContent = "已更新 · 共 " + list.length + " 台 · 在线 " + s.all.online + " · 离线 " + - s.all.offline; + s.all.offline + + (pulled ? " · 拉取时间 " + pulled : ""); } } catch (e) { if (status) status.textContent = e.message || "加载失败"; diff --git a/templates/base.html b/templates/base.html index 4b3715e..390648a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,7 +4,7 @@ {% block title %}加密货币|OKX 期权中控{% endblock %} - + {% if session.get('logged_in') %} diff --git a/templates/dashboard.html b/templates/dashboard.html index c02c8a2..ecb4c21 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -15,6 +15,6 @@
{% endblock %} {% block scripts %} - + {% endblock %}