Use per-exchange PWA names and logos for instance app installs.

Show Binance/OKX/Gate 交易系统 with distinct exchange icons in manifests, apple titles, and login branding.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-16 08:44:07 +08:00
parent 717a3d5694
commit 19a4a5194d
62 changed files with 327 additions and 89 deletions
+11
View File
@@ -179,10 +179,21 @@ def register_embed_routes(
return jsonify({"ok": True, "page": tab, "html": html})
def pwa_app_name(exchange_key: str) -> str:
"""安装 App / 主屏幕显示名(各所独立标识)."""
ex = (exchange_key or "").strip().lower()
return {
"binance": "Binance 交易系统",
"okx": "OKX 交易系统",
"gate": "Gate 交易系统",
}.get(ex, "交易系统")
def embed_context_extras(exchange_key: str) -> dict:
return {
"order_rule_tips_tpl": order_rule_tips_template(exchange_key),
"include_transfer_block": include_transfer_block(exchange_key),
"ui_open_guard_enabled": ui_open_guard_enabled(exchange_key),
"ui_orphan_recovery_enabled": ui_orphan_recovery_enabled(exchange_key),
"pwa_app_name": pwa_app_name(exchange_key),
}