feat: remove unused hub nav items from user edition.

Drop plan/strategy/help/archive/quotes/logs from top nav and force their display prefs off.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-17 18:13:45 +08:00
parent 7e06db758d
commit d497d99a88
4 changed files with 41 additions and 109 deletions
+1 -37
View File
@@ -49,17 +49,11 @@
<span id="sys-status" class="sys-pill" title="系统状态">SYNC</span>
<nav class="top-nav">
<a href="/funds" id="nav-funds">资金概况</a>
<a href="/plan" id="nav-plan">开仓计划</a>
<a href="/monitor" id="nav-monitor">监控区</a>
<a href="/strategy" id="nav-strategy">策略说明</a>
<a href="/help" id="nav-help">使用说明</a>
<a href="/market" id="nav-market">行情区</a>
<a href="/calculator" id="nav-calculator">计算器</a>
<a href="/archive" id="nav-archive">内照明心</a>
<a href="/quotes" id="nav-quotes">语录</a>
<a href="/dashboard" id="nav-dashboard">数据看板</a>
<a href="/ai" id="nav-ai">AI 教练</a>
<a href="/logs" id="nav-logs">系统日志</a>
<a href="/settings" id="nav-settings">系统设置</a>
</nav>
<button type="button" id="btn-logout" class="ghost" title="退出登录">退出</button>
@@ -1094,18 +1088,6 @@
<input type="checkbox" id="pref-show-nav-dashboard" checked />
顶栏显示「数据看板」
</label>
<label class="chk-label settings-display-chk">
<input type="checkbox" id="pref-show-nav-plan" checked />
顶栏显示「开仓计划」
</label>
<label class="chk-label settings-display-chk">
<input type="checkbox" id="pref-show-nav-archive" checked />
顶栏显示「内照明心」
</label>
<label class="chk-label settings-display-chk">
<input type="checkbox" id="pref-show-nav-quotes" checked />
顶栏显示「语录」
</label>
<label class="chk-label settings-display-chk">
<input type="checkbox" id="pref-show-nav-ai" checked />
顶栏显示「AI 教练」
@@ -1114,18 +1096,6 @@
<input type="checkbox" id="pref-show-nav-calculator" checked />
顶栏显示「计算器」
</label>
<label class="chk-label settings-display-chk">
<input type="checkbox" id="pref-show-nav-strategy" checked />
顶栏显示「策略说明」
</label>
<label class="chk-label settings-display-chk">
<input type="checkbox" id="pref-show-nav-help" checked />
顶栏显示「使用说明」
</label>
<label class="chk-label settings-display-chk">
<input type="checkbox" id="pref-show-nav-logs" checked />
顶栏显示「系统日志」
</label>
<p class="settings-display-hint">保存至 hub_settings.json,换浏览器同样生效.关闭导航后对应页面将不可从顶栏进入,直接访问 URL 会跳回监控区.</p>
</section>
@@ -1307,13 +1277,7 @@
<p class="hub-mobile-more-hint">次要功能 · 完整界面请用电脑/平板</p>
<nav class="hub-mobile-more-nav" aria-label="更多页面">
<a href="/funds" id="m-nav-funds">资金概况</a>
<a href="/plan" id="m-nav-plan">开仓计划</a>
<a href="/archive" id="m-nav-archive">内照明心</a>
<a href="/quotes" id="m-nav-quotes">语录</a>
<a href="/dashboard" id="m-nav-dashboard">数据看板</a>
<a href="/strategy" id="m-nav-strategy">策略说明</a>
<a href="/help" id="m-nav-help">使用说明</a>
<a href="/logs" id="m-nav-logs">系统日志</a>
<a href="/settings" id="m-nav-settings">系统设置</a>
</nav>
<button type="button" class="ghost hub-mobile-more-close" id="hub-mobile-more-close">关闭</button>
@@ -1382,6 +1346,6 @@
<script src="/assets/options_expiry_countdown.js?v=1"></script>
<script src="/assets/options_position_cards.js?v=1"></script>
<script src="/assets/backup.js?v=1"></script>
<script src="/assets/app.js?v=20260717-quotes-feed"></script>
<script src="/assets/app.js?v=20260717-nav-trim"></script>
</body>
</html>