From 6594f559cbf276e1987942be974ed3946c77f270 Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Fri, 19 Jun 2026 01:12:34 +0800 Subject: [PATCH] Rename plugin auto option to enabled --- tests/strategy_switch_worker_validation.mjs | 5 +++-- web/strategy-switch-console/index.html | 12 ++++++------ web/strategy-switch-console/page_asset.js | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/tests/strategy_switch_worker_validation.mjs b/tests/strategy_switch_worker_validation.mjs index ae0508f..8c444fc 100644 --- a/tests/strategy_switch_worker_validation.mjs +++ b/tests/strategy_switch_worker_validation.mjs @@ -58,8 +58,9 @@ assert.ok(indexHtml.includes('runtimeTargetEnabled: "启用正式运行"')); assert.ok(indexHtml.includes('runtimeTargetDisabled: "停用正式运行"')); assert.ok(indexHtml.includes('runtimeTargetMode: "Account status"')); assert.ok(indexHtml.includes('pluginMode: "插件启用范围"')); -assert.ok(indexHtml.includes('pluginModeAuto: "按策略默认"')); -assert.ok(indexHtml.includes('pluginModeNone: "完全禁用"')); +assert.ok(indexHtml.includes('pluginModeAuto: "启用插件"')); +assert.ok(indexHtml.includes('pluginModeNone: "禁用插件"')); +assert.ok(indexHtml.includes('pluginModeAuto: "Enabled"')); assert.ok(indexHtml.includes('pluginMode: "Plugin scope"')); assert.ok(indexHtml.includes('reservedCashDefault')); assert.ok(indexHtml.includes('paper: "模拟"')); diff --git a/web/strategy-switch-console/index.html b/web/strategy-switch-console/index.html index 217220b..0e0fdb4 100644 --- a/web/strategy-switch-console/index.html +++ b/web/strategy-switch-console/index.html @@ -796,7 +796,7 @@

LongBridge

@@ -997,9 +997,9 @@

切换摘要

runtimeTargetDisabled: "停用正式运行", runtimeTargetModeMeta: "停用后正式运行会跳过,模拟运行和健康检查仍可用。", pluginMode: "插件启用范围", - pluginModeAuto: "按策略默认", - pluginModeNone: "完全禁用", - pluginModeMeta: "选择本次切换使用策略默认插件,或完全关闭插件。", + pluginModeAuto: "启用插件", + pluginModeNone: "禁用插件", + pluginModeMeta: "选择是否启用该策略的插件。", incomeLayerMode: "收入层状态", incomeLayerCurrent: "沿用当前配置", incomeLayerEnabled: "开启收入层", @@ -1099,9 +1099,9 @@

切换摘要

runtimeTargetDisabled: "Disable live runs", runtimeTargetModeMeta: "Disabled accounts skip live runs; dry runs and health checks still work.", pluginMode: "Plugin scope", - pluginModeAuto: "Strategy default", + pluginModeAuto: "Enabled", pluginModeNone: "Disabled", - pluginModeMeta: "Use the strategy's default plugin set, or disable all plugins for this switch.", + pluginModeMeta: "Choose whether to enable this strategy's plugins.", incomeLayerMode: "Income layer", incomeLayerCurrent: "Keep current config", incomeLayerEnabled: "Enable income layer", diff --git a/web/strategy-switch-console/page_asset.js b/web/strategy-switch-console/page_asset.js index 76c3220..7bace06 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

LongBridge

\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\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

LongBridge

\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\n \n
\n
\n\n \n\n\n";