Bicycle and foot route profiles (Valhalla bicycle/pedestrian costing); hiking trail colours in the elevation profile; power, splits and best efforts in the profile; TCX import; FIT course export
CI / check (push) Successful in 19s
CI / deploy (push) Successful in 18s

This commit is contained in:
randy committed 2026-11-16 12:18:06 +01:00
1 parent 4c704045c5
commit f8755ea65a
21 files changed
+634 -40

No files matched your search

+2 -1
View File
@@ -7,7 +7,7 @@ import { escapeHtml } from "/js/gpx.js";
// Tracks & Points. Checked on every page load, not just right after a
// share, so a share made while logged out is still waiting after login.
const SHARED_CACHE = "shared-files";
const KNOWN_EXTENSION = /\.(gpx|fit|geojson|zip)$/i;
const KNOWN_EXTENSION = /\.(gpx|fit|tcx|geojson|zip)$/i;
// Some apps share a bare name ("Track 12") — the upload only accepts
// these extensions, so one is added from the file's type.
const EXTENSION_BY_TYPE = {
@@ -18,6 +18,7 @@ const EXTENSION_BY_TYPE = {
"application/json": ".geojson",
"application/zip": ".zip",
"application/vnd.ant.fit": ".fit",
"application/vnd.garmin.tcx+xml": ".tcx",
};
const DEFAULT_FOLDER = "Shared";