feat: liberacao de 10min para pagamento, status de acesso e SSID configuravel
build-image / build-push (push) Failing after 41s

This commit is contained in:
jfeng committed 2026-10-22 08:56:40 -03:00
1 parent 53cca4ecc8
commit de5c483dca
4 files changed
+58 -7

No files matched your search

+11 -2
View File
@@ -578,7 +578,7 @@
<ol class="steps">
<li>Toque no botão <strong>Conectar agora</strong> abaixo</li>
<li>Se pedir, conecte em <strong>Convidados-Pix</strong></li>
<li>Se pedir, conecte na rede <strong id="ssidLabel">Wi-Fi</strong></li>
<li>Pronto: seu acesso já estará liberado</li>
</ol>
@@ -656,7 +656,7 @@
$('view-voucher').classList.toggle('hidden', view !== 'voucher');
if (view !== 'pay' && pollTimer) { clearInterval(pollTimer); pollTimer = null; }
if (view !== 'pay' && freeTimer) { clearInterval(freeTimer); freeTimer = null; }
if (view === 'pay' && !freeTimer) { freeTimer = setInterval(startFreeAccess, 45000); }
if (view === 'pay' && !freeTimer) { freeTimer = setInterval(startFreeAccess, 120000); }
window.scrollTo({ top: 0, behavior: 'instant' in window ? 'auto' : 'auto' });
}
@@ -806,6 +806,15 @@
} catch { /* segue */ }
}
async function loadSiteConfig() {
try {
const res = await fetch('/api/config');
const d = await res.json();
if (d.ssid) $('ssidLabel').textContent = d.ssid;
} catch { /* usa padrao */ }
}
loadSiteConfig();
loadPlans();
startFreeAccess();
</script>