Skip to content

Commit 6594f55

Browse files
committed
Rename plugin auto option to enabled
1 parent 06db2fc commit 6594f55

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

tests/strategy_switch_worker_validation.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ assert.ok(indexHtml.includes('runtimeTargetEnabled: "启用正式运行"'));
5858
assert.ok(indexHtml.includes('runtimeTargetDisabled: "停用正式运行"'));
5959
assert.ok(indexHtml.includes('runtimeTargetMode: "Account status"'));
6060
assert.ok(indexHtml.includes('pluginMode: "插件启用范围"'));
61-
assert.ok(indexHtml.includes('pluginModeAuto: "按策略默认"'));
62-
assert.ok(indexHtml.includes('pluginModeNone: "完全禁用"'));
61+
assert.ok(indexHtml.includes('pluginModeAuto: "启用插件"'));
62+
assert.ok(indexHtml.includes('pluginModeNone: "禁用插件"'));
63+
assert.ok(indexHtml.includes('pluginModeAuto: "Enabled"'));
6364
assert.ok(indexHtml.includes('pluginMode: "Plugin scope"'));
6465
assert.ok(indexHtml.includes('reservedCashDefault'));
6566
assert.ok(indexHtml.includes('paper: "模拟"'));

web/strategy-switch-console/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ <h2 id="platform-title">LongBridge</h2>
796796
<label class="control-block plugin-mode-block">
797797
<span data-i18n="pluginMode">插件启用范围</span>
798798
<select id="plugin-mode-select"></select>
799-
<span class="selection-meta" data-i18n="pluginModeMeta">选择本次切换使用策略默认插件,或完全关闭插件</span>
799+
<span class="selection-meta" data-i18n="pluginModeMeta">选择是否启用该策略的插件</span>
800800
</label>
801801
</div>
802802

@@ -997,9 +997,9 @@ <h2 data-i18n="summary">切换摘要</h2>
997997
runtimeTargetDisabled: "停用正式运行",
998998
runtimeTargetModeMeta: "停用后正式运行会跳过,模拟运行和健康检查仍可用。",
999999
pluginMode: "插件启用范围",
1000-
pluginModeAuto: "按策略默认",
1001-
pluginModeNone: "完全禁用",
1002-
pluginModeMeta: "选择本次切换使用策略默认插件,或完全关闭插件。",
1000+
pluginModeAuto: "启用插件",
1001+
pluginModeNone: "禁用插件",
1002+
pluginModeMeta: "选择是否启用该策略的插件。",
10031003
incomeLayerMode: "收入层状态",
10041004
incomeLayerCurrent: "沿用当前配置",
10051005
incomeLayerEnabled: "开启收入层",
@@ -1099,9 +1099,9 @@ <h2 data-i18n="summary">切换摘要</h2>
10991099
runtimeTargetDisabled: "Disable live runs",
11001100
runtimeTargetModeMeta: "Disabled accounts skip live runs; dry runs and health checks still work.",
11011101
pluginMode: "Plugin scope",
1102-
pluginModeAuto: "Strategy default",
1102+
pluginModeAuto: "Enabled",
11031103
pluginModeNone: "Disabled",
1104-
pluginModeMeta: "Use the strategy's default plugin set, or disable all plugins for this switch.",
1104+
pluginModeMeta: "Choose whether to enable this strategy's plugins.",
11051105
incomeLayerMode: "Income layer",
11061106
incomeLayerCurrent: "Keep current config",
11071107
incomeLayerEnabled: "Enable income layer",

web/strategy-switch-console/page_asset.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)