feat: integrate dashboard tab into main index.html navbar

This commit is contained in:
hmo
2026-07-19 11:11:18 +08:00
parent b08bfa5d03
commit e45c3bb01f
+4
View File
@@ -52,6 +52,7 @@ body { background: #0f0f13; color: #e2e8f0; }
<button class="tab-btn px-4 py-2 text-sm rounded-lg" data-tab="market">🌐 市场</button>
<button class="tab-btn px-4 py-2 text-sm rounded-lg" data-tab="signals">🔍 信号</button>
<button class="tab-btn px-4 py-2 text-sm rounded-lg" data-tab="health">🏥 健康</button>
<button class="tab-btn px-4 py-2 text-sm rounded-lg" data-tab="dashboard" style="color:#58a6ff;border-color:#58a6ff">📊 仪表盘</button>
<button class="tab-btn px-4 py-2 text-sm rounded-lg blink-tab" data-tab="watch" style="color:#f97316;border-color:#f97316">👁️ 盯盘</button>
<a href="/upload" class="tab-btn px-4 py-2 text-sm rounded-lg" style="text-decoration:none;color:#fbbf24;border-color:#fbbf24">📸 上传</a>
</div>
@@ -69,6 +70,9 @@ body { background: #0f0f13; color: #e2e8f0; }
<div id="tab-health" class="tab-content hidden">
<iframe src="/mofin_health.html" style="width:100%;height:100vh;border:none;background:#0d1117;border-radius:8px;"></iframe>
</div>
<div id="tab-dashboard" class="tab-content hidden">
<iframe src="/dashboard" style="width:100%;height:100vh;border:none;background:#0d1117;border-radius:8px;"></iframe>
</div>
<div id="tab-watch" class="tab-content hidden">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-semibold text-slate-200">👁️ 盯盘 · 有效操作建议</h2>