From 96e235c9ed1a1c964024a16135da61f6c0c69802 Mon Sep 17 00:00:00 2001
From: Pigbibi <20649888+Pigbibi@users.noreply.github.com>
Date: Tue, 9 Jun 2026 16:24:45 +0800
Subject: [PATCH] Simplify current config state panel
---
web/strategy-switch-console/index.html | 17 -----------------
web/strategy-switch-console/page_asset.js | 2 +-
2 files changed, 1 insertion(+), 18 deletions(-)
diff --git a/web/strategy-switch-console/index.html b/web/strategy-switch-console/index.html
index 3154cd9..965b964 100644
--- a/web/strategy-switch-console/index.html
+++ b/web/strategy-switch-console/index.html
@@ -877,10 +877,7 @@
切换摘要
usEquity: "美股",
hkEquity: "港股",
currentStrategy: "当前策略",
- currentMode: "当前模式",
- readSource: "读取来源",
nextStrategy: "选择策略",
- nextMode: "选择模式",
notRead: "未读取",
publicPreview: "公开示例",
accountConfigLoaded: "账号配置已加载",
@@ -937,10 +934,7 @@ 切换摘要
usEquity: "US equity",
hkEquity: "HK equity",
currentStrategy: "Current strategy",
- currentMode: "Current mode",
- readSource: "Read source",
nextStrategy: "Selected strategy",
- nextMode: "Selected mode",
notRead: "Not read",
publicPreview: "Public preview",
accountConfigLoaded: "Account config loaded",
@@ -1218,24 +1212,13 @@ 切换摘要
function summaryRows(inputs) {
const account = selectedAccount();
- const currentEntry = currentEntryForAccount(state.selected, account);
const currentProfile = currentStrategyForAccount(state.selected, account);
- const currentMode = normalizeExecutionMode(currentEntry?.execution_mode, currentEntry?.dry_run_only);
- const source = currentEntry?.source
- || (state.configSource === "loading"
- ? t("loadingConfig")
- : (state.configSource === "private" ? t("accountConfigLoaded") : t("publicPreview")));
return [
[t("repository"), repositories[state.selected]],
[t("selectedAccount"), account.label],
[t("currentStrategy"), currentProfile ? strategyLabel(currentProfile) : t("notRead")],
- [t("currentMode"), currentMode ? modeLabel(currentMode) : t("notRead")],
- [t("readSource"), source],
[t("selectedMarket"), supportedDomainLabel(state.selected, account)],
[t("nextStrategy"), strategyLabel(inputs.strategy_profile)],
- [t("nextMode"), modeLabel(inputs.execution_mode)],
- [t("action"), t("actionValue")],
- [t("confirm"), inputs.confirm_apply],
];
}
diff --git a/web/strategy-switch-console/page_asset.js b/web/strategy-switch-console/page_asset.js
index d70542e..56e78cc 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 QuantRuntimeSettings Strategy Switch\n \n\n\n \n \n
策略切换
\n
选平台、目标账号和策略,一次执行完成切换。
\n
\n \n \n\n \n \n
初始化控制台\n
读取策略配置
\n
正在读取登录状态、账号配置和当前状态。
\n
\n
\n \n\n \n \n\n \n \n
\n 当前平台\n \n
\n\n
\n\n
\n
\n
登录后才可执行切换。
\n
\n
\n
\n\n \n \n \n\n \n\n\n";
+export const PAGE_HTML = "\n\n\n \n \n \n QuantRuntimeSettings Strategy Switch\n \n\n\n \n \n
策略切换
\n
选平台、目标账号和策略,一次执行完成切换。
\n
\n \n \n\n \n \n
初始化控制台\n
读取策略配置
\n
正在读取登录状态、账号配置和当前状态。
\n
\n
\n \n\n \n \n\n \n \n
\n 当前平台\n \n
\n\n
\n\n
\n
\n
登录后才可执行切换。
\n
\n
\n
\n\n \n \n \n\n \n\n\n";