feat: 页面底部新增常驻开源地址/导航站入口

This commit is contained in:
jinghui committed 2026-10-27 09:37:40 +08:00
1 parent dbbd545626
commit bf05575ab7
5 files changed
+26 -1

No files matched your search

+7
View File
@@ -1,5 +1,12 @@
# 更新日志
## 2026-10-27 → ✨ 底部常驻外链条(开源地址 / 导航站)
- ✨ 所有页面底部新增常驻横条(不随内容滚走):品牌名 + 「⭐ 开源地址」+「🧭 我的导航站」蓝色胶囊按钮 +「觉得好用就去点个 Star」
- ✨ 底部链接与右上角同源,读 `settings.links`,在告警设置改地址时两处同时生效
- 🔧 窄屏(≤760px)自动隐藏右侧提示文字,避免挤压;固定高 43px,不影响页内滚动
- ✅ 实测:6 个页面底部横条均完整可见(bottom ≤ 视口高),按钮 90×26 / 102×26,外层滚动条仍为 0、页内仅 1 个滚动器
## 2026-10-27 → 🔧 顶栏外链改用正式地址
- 🔧 开源地址默认改为 `https://gitea.88531.cn/jinghui/docker-center`,导航站默认改为 `https://nav.88531.cn`(原先是按当前主机的 Gitea/BestNav 端口推导)
+1 -1
View File
@@ -40,7 +40,7 @@ Docker 自带面板和 Portainer 都是按「容器」管理:六十多个容
**顶栏外链**
- 右上角「开源地址 / 导航站」两个按钮,默认指向本机 Gitea 仓库与 BestNav;可在告警设置页改成自己的地址
- 右上角与**页面底部**都有「开源地址 / 导航站」入口(底部为常驻横条,更显眼),默认指向本机 Gitea 仓库与 BestNav;可在告警设置页改成自己的地址
**告警**
- CPU/内存阈值、Webhook 推送、同应用去重间隔、测试推送
+4
View File
@@ -179,6 +179,10 @@ async function renderExtLinks() {
box.innerHTML = `
<a href="${esc(repo)}" target="_blank" rel="noopener" title="我的开源地址:${esc(repo)}">${icon('M3 12h18M12 3v18')}开源地址</a>
<a href="${esc(nav)}" target="_blank" rel="noopener" title="我的导航站:${esc(nav)}">${icon('M4 6h16M4 12h16M4 18h10')}导航站</a>`;
const fr = document.getElementById('footRepo');
const fn = document.getElementById('footNav');
if (fr) { fr.href = repo; fr.title = repo; }
if (fn) { fn.href = nav; fn.title = nav; }
}
async function render(silent) {
+6
View File
@@ -68,6 +68,12 @@
</header>
<section id="view" class="view"></section>
<footer class="site-foot">
<span class="sf-brand">飞牛docker容器管理增强版</span>
<a class="sf-link" id="footRepo" href="https://gitea.88531.cn/jinghui/docker-center" target="_blank" rel="noopener">⭐ 开源地址</a>
<a class="sf-link" id="footNav" href="https://nav.88531.cn" target="_blank" rel="noopener">🧭 我的导航站</a>
<span class="sf-tip">觉得好用就去点个 Star</span>
</footer>
</main>
</div>
+8
View File
@@ -413,3 +413,11 @@ table.tb th.num{text-align:right}
.ext-links a{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 9px;border:1px solid #dfe6ef;border-radius:8px;font-size:12px;color:#5a6b82;background:#fff;white-space:nowrap}
.ext-links a:hover{border-color:#c9d5e4;background:#f5f8fc;color:#1a5fbf}
.ext-links a svg{width:13px;height:13px}
/* 底部外链条(常驻) */
.site-foot{flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:10px;padding:8px 16px;border-top:1px solid #e6eef8;background:linear-gradient(90deg,#f7faff,#eef4ff 55%,#f7faff);font-size:12px;color:#6b7a90}
.site-foot .sf-brand{font-weight:600;color:#3d4859;font-size:12px}
.site-foot .sf-link{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 12px;border-radius:999px;background:#1a73e8;color:#fff;font-weight:600;font-size:12px;box-shadow:0 2px 6px rgba(26,115,232,.22)}
.site-foot .sf-link:hover{background:#1667d0;color:#fff;text-decoration:none}
.site-foot .sf-tip{color:#9aa4b5;font-size:11.5px}
@media (max-width:760px){.site-foot .sf-tip{display:none}}