Fix: about section (remove duplicate stat, fix text), placeholder public

This commit is contained in:
treamz 2026-03-22 00:56:25 +03:00
parent 1236a27c49
commit bda0871969
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
* Public: landing page, auth routes, static assets, health, placeholder API. * Public: landing page, auth routes, static assets, health, placeholder API.
*/ */
const PUBLIC_PATHS = ['/', '/health', '/favicon.ico', '/status']; const PUBLIC_PATHS = ['/', '/health', '/favicon.ico', '/status', '/placeholder'];
const PUBLIC_API = ['/api/settings', '/api/tools', '/api/content/advantages', '/api/content/dashboard']; const PUBLIC_API = ['/api/settings', '/api/tools', '/api/content/advantages', '/api/content/dashboard'];
const PUBLIC_PREFIXES = ['/auth/', '/vendor/', '/placeholder-img/', '/status/']; const PUBLIC_PREFIXES = ['/auth/', '/vendor/', '/placeholder-img/', '/status/'];
const PUBLIC_FILES = ['/shared.css', '/shared.js', '/landing.html']; const PUBLIC_FILES = ['/shared.css', '/shared.js', '/landing.html'];

View File

@ -245,7 +245,7 @@ fetch('/api/content/dashboard').then(r => r.ok ? r.json() : []).then(blocks => {
const h = document.querySelector('.about-card h2'); const h = document.querySelector('.about-card h2');
const p = document.querySelector('.about-card p'); const p = document.querySelector('.about-card p');
if (h) h.textContent = about.title; if (h) h.textContent = about.title;
if (p) p.innerHTML = '<strong style="color:var(--text-primary);">WA Dev Tools</strong> — ' + about.body; if (p) p.textContent = about.body;
} }
}).catch(() => {}); }).catch(() => {});
</script> </script>