feat(web): drop redundant preview pill from topbar

This commit is contained in:
kairee committed 2026-11-01 17:45:25 +08:00
1 parent 6e2910af62
commit bc4655c143
3 files changed
+1 -6

No files matched your search

+1 -1
View File
@@ -555,7 +555,7 @@ P3 实现说明:
- 合成快照写 `src='preview'`,预览库写 `kv preview:seeded=1`;
- `python app.py serve --preview` 校验标记,缺失时拒绝启动;
- 预览配置不包含真实凭据,默认端口 8081,Telegram 关闭;
- 预览页面显示固定“预览数据 · 不影响真实数据库”横幅,右上角入口显示“预览”;
- 预览页面显示固定“预览数据 · 不影响真实数据库”横幅(不再有独立的“预览”入口);
- 重新生成预览库前必须停止预览服务,避免 Windows 文件占用;
- 第 9 轮起本地不再保留 `data/app.db` 真实副本;重新生成预览时用 `--source` 指向 `data/backup/` 中的真实库备份(如 `app-local-before-reseed-20261101.db`)。
-3
View File
@@ -158,9 +158,6 @@ async function boot() {
};
if (data?.preview) {
banner.hidden = false;
document.querySelectorAll(".topbar-preview").forEach((element) => {
element.hidden = false;
});
}
} catch {
toast("无法连接看板服务", "error");
-2
View File
@@ -23,7 +23,6 @@
<div class="topbar-actions">
<a class="topbar-hint topbar-auth" href="/login" hidden>登录</a>
<span class="topbar-links" data-topbar-links hidden></span>
<span class="topbar-hint topbar-preview" hidden>预览</span>
</div>
</header>
<div class="preview-banner" id="preview-banner" hidden>预览数据 · 不影响真实数据库</div>
@@ -42,7 +41,6 @@
<div class="topbar-actions">
<a class="topbar-hint topbar-auth" href="/login" hidden>登录</a>
<span class="topbar-links" data-topbar-links hidden></span>
<span class="topbar-hint topbar-preview" hidden>预览</span>
</div>
</div>
<div class="nav-items" id="nav-items"></div>