Skip to content

Commit 2b7816d

Browse files
author
chr0nzz
committed
fix: Traefik API fallback for file-provider route targets + static config setup banner
1 parent 6de19f3 commit 2b7816d

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

templates/index.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,21 @@
144144

145145
{% include 'sections/mobile_menu.html' %}
146146

147+
<div id="staticSetupBanner" style="display:none">
148+
<div class="max-w-7xl mx-auto px-4 sm:px-6 py-2">
149+
<div class="flex items-center gap-3 rounded-lg px-4 py-2.5" style="background:rgba(9,105,218,0.08);border:1px solid rgba(9,105,218,0.25)">
150+
<i class="ph-bold ph-info text-sm shrink-0" style="color:var(--blue)"></i>
151+
<p class="text-xs flex-1" style="color:var(--text)">
152+
<strong>New in v1:</strong> Static Config Editor lets you manage your Traefik static config from the UI.
153+
<a href="https://traefik-manager.xyzlab.dev/static" target="_blank" style="color:var(--blue);text-decoration:underline;margin-left:4px">Set it up →</a>
154+
</p>
155+
<button onclick="document.getElementById('staticSetupBanner').style.display='none';localStorage.setItem('tm-static-setup-v1','1')" class="shrink-0" style="color:var(--muted);line-height:1" aria-label="Dismiss">
156+
<i class="ph-bold ph-x text-sm"></i>
157+
</button>
158+
</div>
159+
</div>
160+
</div>
161+
147162
<main class="max-w-7xl mx-auto px-4 sm:px-6 py-6">
148163

149164
{% include 'sections/stats.html' %}
@@ -1646,6 +1661,11 @@ <h3 class="font-bold text-sm mt-1.5 truncate" style="color:var(--text)" title="$
16461661
const curEl = document.getElementById('mgrUpdateCurrentVer');
16471662
if (curEl && current) curEl.textContent = 'v' + current;
16481663

1664+
if (d.static_config_configured === false && !localStorage.getItem('tm-static-setup-v1')) {
1665+
const b = document.getElementById('staticSetupBanner');
1666+
if (b) b.style.display = 'block';
1667+
}
1668+
16491669
const ghRes = await fetch(
16501670
`https://api.github.com/repos/${d.repo}/releases/latest`,
16511671
{ headers: { 'Accept': 'application/vnd.github.v3+json' } }

0 commit comments

Comments
 (0)