Skip to content

Commit 80e6863

Browse files
authored
Refine strategy switch console options (#11)
1 parent 36ef285 commit 80e6863

3 files changed

Lines changed: 9 additions & 13 deletions

File tree

docs/index.html

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ <h2 id="platform-title">LongBridge</h2>
563563

564564
<div class="run-area">
565565
<button class="run-button" id="dispatch-button" type="button" disabled data-i18n="loginToRun">登录后切换</button>
566-
<p class="action-note" id="action-note">公开页面只能查看;登录版校验账号权限后才会触发 workflow</p>
566+
<p class="action-note" id="action-note">登录后才可执行切换</p>
567567
<p class="toast" id="toast" aria-live="polite"></p>
568568
</div>
569569
</div>
@@ -576,7 +576,6 @@ <h2 data-i18n="summary">切换摘要</h2>
576576
<dl class="summary-list" id="summary-list"></dl>
577577
<div class="summary-actions">
578578
<button class="btn" id="copy-button" type="button" data-i18n="copySummary">复制摘要</button>
579-
<span class="quiet" id="config-source">default</span>
580579
</div>
581580
</aside>
582581
</section>
@@ -599,13 +598,15 @@ <h2 data-i18n="summary">切换摘要</h2>
599598

600599
const strategyOptions = [
601600
"tqqq_growth_income",
601+
"soxl_soxx_trend_income",
602602
"global_etf_rotation",
603603
"russell_1000_multi_factor_defensive",
604604
"mega_cap_leader_rotation_top50_balanced",
605605
];
606606

607607
const strategyLabels = {
608608
tqqq_growth_income: "TQQQ Growth Income",
609+
soxl_soxx_trend_income: "SOXL/SOXX Trend Income",
609610
global_etf_rotation: "Global ETF Rotation",
610611
russell_1000_multi_factor_defensive: "Russell 1000 Defensive",
611612
mega_cap_leader_rotation_top50_balanced: "Mega Cap Top 50",
@@ -670,8 +671,8 @@ <h2 data-i18n="summary">切换摘要</h2>
670671
loginToRun: "登录后切换",
671672
configureAccounts: "配置账号后切换",
672673
runSwitch: "一键切换",
673-
readonlyNote: "公开页面只能查看;登录版校验账号权限后才会触发 workflow。",
674-
missingConfigNote: "还没有加载私有账号配置,禁止执行,避免账号不匹配。",
674+
readonlyNote: "登录后才可执行切换。",
675+
missingConfigNote: "账号配置未加载,暂时不能执行。",
675676
readyNote: "点击后会触发 workflow,并同步目标平台服务。",
676677
noAccount: "没有账号选项",
677678
repository: "平台仓库",
@@ -689,8 +690,6 @@ <h2 data-i18n="summary">切换摘要</h2>
689690
dispatched: "已触发 workflow",
690691
dispatchFailed: "触发失败",
691692
targetMeta: "target {target} · service {service}",
692-
defaultConfig: "公开示例",
693-
privateConfig: "私有账号",
694693
},
695694
en: {
696695
appTitle: "Strategy Switch",
@@ -707,8 +706,8 @@ <h2 data-i18n="summary">切换摘要</h2>
707706
loginToRun: "Sign in to switch",
708707
configureAccounts: "Configure accounts",
709708
runSwitch: "Switch now",
710-
readonlyNote: "Public page is read-only; the Worker checks login before dispatching the workflow.",
711-
missingConfigNote: "Private account config is not loaded, so switching is disabled.",
709+
readonlyNote: "Sign in to switch.",
710+
missingConfigNote: "Account config is not loaded, so switching is disabled.",
712711
readyNote: "This dispatches the workflow and syncs the target platform service.",
713712
noAccount: "No accounts",
714713
repository: "Repository",
@@ -726,8 +725,6 @@ <h2 data-i18n="summary">切换摘要</h2>
726725
dispatched: "Workflow dispatched",
727726
dispatchFailed: "Dispatch failed",
728727
targetMeta: "target {target} · service {service}",
729-
defaultConfig: "Public sample",
730-
privateConfig: "Private accounts",
731728
},
732729
};
733730

@@ -903,7 +900,6 @@ <h2 data-i18n="summary">切换摘要</h2>
903900
`).join("");
904901

905902
el("mode-pill").textContent = inputs.execution_mode;
906-
el("config-source").textContent = state.configSource === "private" ? t("privateConfig") : t("defaultConfig");
907903
}
908904

909905
function renderAuth() {

0 commit comments

Comments
 (0)