From 632a3028fa0ab188d6ae135d862ac61621a2de31 Mon Sep 17 00:00:00 2001 From: Mischa Date: Mon, 22 Jun 2026 23:35:58 +0200 Subject: [PATCH] =?UTF-8?q?refactor:=20trip.html.twig=20=E2=80=94=20remove?= =?UTF-8?q?=20CDN=20tags,=20deduplicate=20JS,=20use=20MapUtils.parseGpxFil?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove PhotoSwipe CSS CDN link (now in css-compiled/main.css via Asset Manager) - Remove MapLibre GL, toGeoJSON, maplibre-utils CDN/local script tags - Add {% block map_assets %} to register map.css and map.js via Asset Manager - Remove filter bar IIFE (now initFilterBar in main.js) - Remove sort toggle IIFE (now initSortButton in main.js) - Remove local haversineKm and parseGpxFiles functions (now in MapUtils via map.js) - Update parseGpxFiles call to MapUtils.parseGpxFiles - Update haversineKm call to MapUtils.haversineKm in Mode B stats - Remove makePanelToggle helper + calls (now initPanelToggles in main.js) - Remove back-to-top DOMContentLoaded block (now initBackToTop in main.js) - Remove PhotoSwipe - - - {% endblock %}