From 39ee3a937612e01732f488b8c6ee30840c92aec6 Mon Sep 17 00:00:00 2001 From: dekun Date: Sun, 4 Oct 2026 17:48:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=E5=B7=A6=E4=BE=A7?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=E5=88=97=E8=A1=A8=E6=8C=89=20sim=20?= =?UTF-8?q?/=20live=20=E5=88=86=E7=BB=84=EF=BC=8C=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=AF=B9=E5=BA=94=E6=A8=A1=E5=BC=8F=E5=88=99=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E8=AF=A5=E7=BB=84=E6=A0=87=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- static/hub.css | 7 ++ templates/base.html | 2 +- templates/desk.html | 181 +++++++++++++++++++++++++++++--------------- 3 files changed, 126 insertions(+), 64 deletions(-) diff --git a/static/hub.css b/static/hub.css index bfbc59d..e8a4b62 100644 --- a/static/hub.css +++ b/static/hub.css @@ -782,6 +782,13 @@ button, .btn { } .desk-list { list-style: none; padding: 0; margin: 0; } .desk-list li { margin: 6px 0; } +.desk-list .desk-group-label { + margin: 10px 0 4px; + padding: 0 2px; + list-style: none; +} +.desk-list .desk-group-label:first-child { margin-top: 0; } +.desk.is-side-collapsed .desk-group-label { display: none; } .desk-list li a { display: block; padding: 7px 9px; diff --git a/templates/base.html b/templates/base.html index 5df0268..952f271 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,7 +4,7 @@ {% block title %}期权中控{% endblock %} - + {% if session.get('logged_in') %} diff --git a/templates/desk.html b/templates/desk.html index 8158a60..d443eef 100644 --- a/templates/desk.html +++ b/templates/desk.html @@ -1,63 +1,118 @@ -{% extends "base.html" %} -{% block title %}工作台 · 期权中控{% endblock %} -{% block body %} -
- -
- {% if current and open_url %} -
- - {{ current.name }} - {{ current.base_url }} - 新标签打开 - 回总览 -
- - {% else %} -
- -
-
请从左侧选择客户端,或到「实例」添加公网 crypto_okx.
- {% endif %} -
-
-{% endblock %} -{% block scripts %} - -{% endblock %} +{% extends "base.html" %} +{% block title %}工作台 · 期权中控{% endblock %} +{% block body %} +
+ +
+ {% if current and open_url %} +
+ + {{ current.name }} + {{ current.base_url }} + 新标签打开 + 回总览 +
+ + {% else %} +
+ +
+
请从左侧选择客户端,或到「实例」添加公网 crypto_okx.
+ {% endif %} +
+
+{% endblock %} +{% block scripts %} + +{% endblock %}