中控支持一键安装到桌面,HTTPS 下可装成独立应用。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+17
-4
@@ -4,12 +4,23 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{% block title %}加密货币|OKX 期权中控{% endblock %}</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}?v=36">
|
||||
<meta name="theme-color" content="#070b14">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-title" content="期权中控">
|
||||
<link rel="icon" href="{{ url_for('static', filename='icons/favicon.ico') }}?v=1" sizes="any">
|
||||
<link rel="apple-touch-icon" href="{{ url_for('static', filename='icons/apple-touch-icon.png') }}?v=1">
|
||||
<link rel="manifest" href="/manifest.webmanifest">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}?v=37">
|
||||
</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 %}">
|
||||
{% if session.get('logged_in') %}
|
||||
<a href="/logout" class="topbar-logout">退出</a>
|
||||
{% 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>
|
||||
<main class="main">
|
||||
{% if session.get('logged_in') %}
|
||||
<a href="/" class="topbar-brand">加密货币|OKX 期权中控</a>
|
||||
@@ -54,5 +65,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>if (window.HubPwa) HubPwa.boot();</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user