chore: implement audit action items and translate hardcoded German text

This commit is contained in:
ralksta
2026-03-15 07:32:42 +01:00
parent 3fa47f7031
commit 922302ce5c
16 changed files with 222 additions and 122 deletions

View File

@@ -46,7 +46,11 @@ export function MapView() {
const res = await fetch('/api/map');
if (!res.ok) {
let detail = '';
try { detail = await res.text(); } catch { /* ignore */ }
try {
detail = await res.text();
} catch {
/* ignore */
}
console.error('[Map] API error', res.status, detail);
setError(`Failed to load map data (${res.status})`);
setLoading(false);
@@ -91,7 +95,10 @@ export function MapView() {
});
const albumLinks = loc.albums
.map((a) => `<a href="${escapeHtml(a.url)}" class="map-popup__album-link">${escapeHtml(a.name)} →</a>`)
.map(
(a) =>
`<a href="${escapeHtml(a.url)}" class="map-popup__album-link">${escapeHtml(a.name)} →</a>`,
)
.join('');
const popupHtml = `