Initial upload to Gitea

This commit is contained in:
antonn committed 2026-11-30 16:32:37 +00:00
1 parent 78193254ad
commit 8478998cae
1485 files changed
+461025 -42348

No files matched your search

+8 -8
View File
@@ -3,10 +3,8 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%= (branding && branding.appName) ? branding.appName : 'Panel' %> - Maintenance</title>
<link rel="preconnect" href="https://cdn.jsdelivr.net">
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<link rel="icon" type="image/webp" sizes="16x16" href="<%= (branding && branding.faviconUrl) ? branding.faviconUrl : '/auth-assets/favicon' %>" />
<title>Under Maintenance</title>
<meta name="robots" content="noindex, noarchive" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" integrity="sha384-nRgPTkuX86pH8yjPJUAFuASXQSSl2/bBUiNV47vSYpKFxHJhbcrGnmlYpYJMeD7a" crossorigin="anonymous" referrerpolicy="no-referrer" />
<style nonce="<%= cspNonce %>">
@@ -134,10 +132,12 @@
const checkInterval = setInterval(async () => {
try {
const res = await fetch('/api/maintenance/status', { credentials: 'include' });
if (res.ok) {
const data = await res.json();
if (data.active) return;
}
// Only a definitive "no longer active" answer reloads the page.
// Errors/timeouts keep waiting — reloading on failure would loop
// while the API is briefly unreachable.
if (!res.ok) return;
const data = await res.json();
if (data.active) return;
clearInterval(checkInterval);
window.location.reload();
} catch (e) {