LongBridge
\n登录后才可执行切换。
\n \nFrom 9e8d1fe7d06ffc470310fac27df50b43ef2e8b80 Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Tue, 9 Jun 2026 05:20:50 +0800 Subject: [PATCH] Add live-enabled strategy catalog --- .github/workflows/validate.yml | 4 +- scripts/sync_strategy_switch_page_asset.py | 13 +++- web/strategy-switch-console/README.md | 13 ++-- web/strategy-switch-console/README.zh-CN.md | 11 ++- web/strategy-switch-console/index.html | 69 +++++++++++++------ web/strategy-switch-console/page_asset.js | 2 +- .../strategy-profiles.example.json | 56 +++++++++++++++ .../strategy_profiles_asset.js | 2 + web/strategy-switch-console/worker.js | 69 +++++++++++++++++++ 9 files changed, 208 insertions(+), 31 deletions(-) create mode 100644 web/strategy-switch-console/strategy-profiles.example.json create mode 100644 web/strategy-switch-console/strategy_profiles_asset.js diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 98ae4d0..605a4d2 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -23,7 +23,9 @@ jobs: run: | set -euo pipefail python3 scripts/sync_strategy_switch_page_asset.py - git diff --exit-code -- web/strategy-switch-console/page_asset.js + git diff --exit-code -- web/strategy-switch-console/page_asset.js web/strategy-switch-console/strategy_profiles_asset.js + jq empty web/strategy-switch-console/strategy-profiles.example.json sed -n '/
\n选平台、目标账号和策略,一次执行完成切换。
\n登录后才可执行切换。
\n \ndiff --git a/web/strategy-switch-console/page_asset.js b/web/strategy-switch-console/page_asset.js index fc1dba6..f44e9e8 100644 --- a/web/strategy-switch-console/page_asset.js +++ b/web/strategy-switch-console/page_asset.js @@ -1,2 +1,2 @@ // Generated by scripts/sync_strategy_switch_page_asset.py; do not edit by hand. -export const PAGE_HTML = "\n\n
\n \n \n \n
\n \n\n
\n