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
This commit is contained in:
1 parent
4c704045c5
commit
f8755ea65a
21 files changed
+634
-40
No files matched your search
@@ -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";
|
||||
|
||||
|
||||
Reference in new issue
Block a user