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

+22 -5
View File
@@ -1,15 +1,15 @@
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Forgot password?</title>
<link id="favicon" rel="icon" type="image/webp" href="<%= (branding && branding.faviconUrl) ? branding.faviconUrl : '/auth-assets/favicon' %>" />
<link id="favicon" rel="icon" type="<%= (branding && branding.faviconMimeType) ? branding.faviconMimeType : 'image/webp' %>" sizes="<%= (branding && branding.faviconMimeType === 'image/svg+xml') ? 'any' : '16x16' %>" href="<%= (branding && branding.faviconUrl) ? branding.faviconUrl : (branding && branding.logoUrl ? branding.logoUrl : '/images/adpanel-dark.svg') %>" />
<link rel="alternate icon" type="<%= (branding && branding.faviconMimeType) ? branding.faviconMimeType : 'image/webp' %>" href="<%= (branding && branding.faviconUrl) ? branding.faviconUrl : (branding && branding.logoUrl ? branding.logoUrl : '/images/adpanel-dark.svg') %>" />
<style nonce="<%= cspNonce %>">
strong {
background-color: gray;
color: white;
}
</style>
<link rel="preconnect" href="https://cdn.jsdelivr.net">
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<script nonce="<%= cspNonce %>">
(function () {
const CHRISTMAS_IMG = '/auth-assets/christmas-logo';
@@ -24,7 +24,24 @@
const favicon = document.getElementById('favicon') || document.querySelector('link[rel="icon"]');
if (favicon) favicon.href = CHRISTMAS_IMG;
document.querySelectorAll('img').forEach(img => {
if (img.src && (img.src.includes('ADPanel-dark.webp') || img.src.includes('i.imgur.com/k5agjYf'))) {
// adpanel:login-dead-assets — the i.imgur.com legacy-CDN default-logo
// match was removed 2026-11 with the CDN-surface retirement: this
// page ships no <img> elements at all, so the loop stays a no-op
// guard. The ADPanel-owned default-logo match is the case-insensitive,
// basename-anchored test /(^|\/)adpanel-dark\.(svg|webp)(\?|$)/i,
// restored to life 2026-11 (kept term-consistent with
// views/login.ejs's swap): it would theme both shipped spellings of
// the default logo — the shipped remote-CDN .../adpanel-dark.svg
// logoUrl and the local /images/adpanel-dark.svg fallback — while an
// operator's custom upload would never be clobbered. The anchors are
// load-bearing: an unanchored substring match would also theme URLs
// that merely EMBED the default filename (e.g.
// .../logos/adpanel-dark.svg.png, or a proxy URL carrying the name as
// a query param), so any src whose basename is not exactly the
// ADPanel-owned default filename never matches. The old
// ADPanel-dark.webp-only includes() was dead against the shipped svg
// default.
if (img.src && /(^|\/)adpanel-dark\.(svg|webp)(\?|$)/i.test(img.src)) {
img.src = CHRISTMAS_IMG;
}
});
@@ -66,7 +83,7 @@
<p>
[Dashboard] Due to security reasons you can only reset your password
directly from the terminal using the command
<strong>bash initialize.sh</strong> from the ADPanel directory or asking an admin to reset it for the specific user from Accounts settings category.
<strong>bash initialize.sh</strong> from the <%= (branding && branding.appName) ? branding.appName : 'panel' %> directory or asking an admin to reset it for the specific user from Accounts settings category.
</p>
</html>