中控页面去掉安装到桌面按钮,改由浏览器地址栏安装。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-05 19:04:54 +08:00
parent 7fd1e7aefd
commit 2dcb191c2f
3 changed files with 8 additions and 132 deletions
+5 -9
View File
@@ -11,16 +11,12 @@
<link rel="icon" href="{{ url_for('static', filename='icons/favicon.ico') }}?v=2" sizes="any">
<link rel="apple-touch-icon" href="{{ url_for('static', filename='icons/apple-touch-icon.png') }}?v=2">
<link rel="manifest" href="/manifest.webmanifest">
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}?v=37">
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}?v=38">
</head>
<body class="{% if request.path.startswith('/login') %}page-login{% elif request.path.startswith('/desk') %}page-desk{% elif request.path.startswith('/stats') %}page-stats{% elif request.path.startswith('/instances') %}page-instances{% elif request.path.startswith('/settings') %}page-settings{% elif request.path.startswith('/cond_orders') %}page-cond-orders{% elif request.path == '/' %}page-dashboard{% endif %}">
<div class="topbar-actions">
<button type="button" class="topbar-install" id="hub-install-btn" hidden>安装到桌面</button>
{% if session.get('logged_in') %}
<a href="/logout" class="topbar-logout">退出</a>
{% endif %}
</div>
<p class="topbar-install-hint" id="hub-install-hint"></p>
{% if session.get('logged_in') %}
<a href="/logout" class="topbar-logout">退出</a>
{% endif %}
<main class="main">
{% if session.get('logged_in') %}
<a href="/" class="topbar-brand">加密货币|OKX 期权中控</a>
@@ -65,7 +61,7 @@
{% if session.get('logged_in') and not request.path.startswith('/desk') %}
<script>if (window.HubQuotes) HubQuotes.boot();</script>
{% endif %}
<script src="{{ url_for('static', filename='hub_pwa.js') }}?v=1"></script>
<script src="{{ url_for('static', filename='hub_pwa.js') }}?v=2"></script>
<script>if (window.HubPwa) HubPwa.boot();</script>
</body>
</html>