Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f62987b1de | ||
|
|
157759d44b |
No files matched your search
@@ -4,3 +4,4 @@ data
|
|||||||
.claude
|
.claude
|
||||||
.ruby-lsp
|
.ruby-lsp
|
||||||
.env
|
.env
|
||||||
|
node_modules
|
||||||
@@ -29,4 +29,6 @@ jobs:
|
|||||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
RENOVATE_REPOSITORIES: "${{ gitea.repository }}"
|
RENOVATE_REPOSITORIES: "${{ gitea.repository }}"
|
||||||
RENOVATE_ONBOARDING: "false"
|
RENOVATE_ONBOARDING: "false"
|
||||||
|
# postUpgradeTasks in renovate.json (vendor re-sync on npm bumps)
|
||||||
|
RENOVATE_ALLOWED_COMMANDS: '["^npm ci( \\S+)*$", "^node bin/vendor-sync\\.mjs$"]'
|
||||||
GITHUB_COM_TOKEN: ${{ secrets.GITHUB_COM_TOKEN }}
|
GITHUB_COM_TOKEN: ${{ secrets.GITHUB_COM_TOKEN }}
|
||||||
@@ -55,3 +55,5 @@
|
|||||||
# Written by the CI deploy job with the commit it deployed — never
|
# Written by the CI deploy job with the commit it deployed — never
|
||||||
# committed itself, see app.rb's REVISION
|
# committed itself, see app.rb's REVISION
|
||||||
/REVISION
|
/REVISION
|
||||||
|
|
||||||
|
node_modules/
|
||||||
@@ -25,6 +25,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y build-essential
|
|||||||
# building on an arm64 host. Pinned, like every other dependency in this
|
# building on an arm64 host. Pinned, like every other dependency in this
|
||||||
# repo (Gemfile, docs/third-party-notices.adoc) — bump PMTILES_VERSION
|
# repo (Gemfile, docs/third-party-notices.adoc) — bump PMTILES_VERSION
|
||||||
# deliberately, not via `latest`.
|
# deliberately, not via `latest`.
|
||||||
|
# renovate: datasource=github-releases depName=protomaps/go-pmtiles
|
||||||
ARG PMTILES_VERSION=1.31.2
|
ARG PMTILES_VERSION=1.31.2
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
case "$(dpkg --print-architecture)" in \
|
case "$(dpkg --print-architecture)" in \
|
||||||
@@ -40,6 +41,7 @@ RUN set -eux; \
|
|||||||
# docs/development.adoc) — a single JVM fat jar, no per-arch variant needed
|
# docs/development.adoc) — a single JVM fat jar, no per-arch variant needed
|
||||||
# unlike go-pmtiles above. Default PLANETILER_JAR path (pmtiles_builder.rb)
|
# unlike go-pmtiles above. Default PLANETILER_JAR path (pmtiles_builder.rb)
|
||||||
# expects it here.
|
# expects it here.
|
||||||
|
# renovate: datasource=github-releases depName=onthegomap/planetiler
|
||||||
ARG PLANETILER_VERSION=0.10.2
|
ARG PLANETILER_VERSION=0.10.2
|
||||||
RUN curl -fsSL "https://github.com/onthegomap/planetiler/releases/download/v${PLANETILER_VERSION}/planetiler.jar" \
|
RUN curl -fsSL "https://github.com/onthegomap/planetiler/releases/download/v${PLANETILER_VERSION}/planetiler.jar" \
|
||||||
-o /usr/local/lib/planetiler.jar
|
-o /usr/local/lib/planetiler.jar
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
// Copies the npm-managed frontend libraries from node_modules/ into
|
||||||
|
// public/vendor/ (committed, served as-is, no bundler). package.json pins
|
||||||
|
// the versions; Renovate bumps them and runs this as a postUpgradeTask so
|
||||||
|
// its PR carries the new files too. Manually: `npm ci && node bin/vendor-sync.mjs`.
|
||||||
|
// Libraries not on npm (NPS plugins, Liberty style/sprite, fonts) stay
|
||||||
|
// hand-updated, see docs/third-party-notices.adoc.
|
||||||
|
import { copyFileSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
|
||||||
|
|
||||||
|
const root = new URL("..", import.meta.url).pathname;
|
||||||
|
const nm = (p) => `${root}node_modules/${p}`;
|
||||||
|
const vendor = (p) => `${root}public/vendor/${p}`;
|
||||||
|
const copy = (from, to) => copyFileSync(nm(from), vendor(to));
|
||||||
|
|
||||||
|
for (const f of ["maplibre-gl.css", "maplibre-gl.mjs", "maplibre-gl-shared.mjs", "maplibre-gl-worker.mjs"])
|
||||||
|
copy(`maplibre-gl/dist/${f}`, `maplibre-gl/${f}`);
|
||||||
|
|
||||||
|
copy("pmtiles/dist/pmtiles.js", "pmtiles/pmtiles.js");
|
||||||
|
copy("maplibre-contour/dist/index.min.js", "maplibre-contour/maplibre-contour.min.js");
|
||||||
|
|
||||||
|
// Trailing sourceMappingURL dropped: the .map isn't vendored.
|
||||||
|
writeFileSync(
|
||||||
|
vendor("maplibre-gl-lanes/maplibre-gl-lanes.mjs"),
|
||||||
|
readFileSync(nm("maplibre-gl-lanes/dist/maplibre-gl-lanes.mjs"), "utf8").replace(/\n\/\/# sourceMappingURL=.*\n?$/, "\n"),
|
||||||
|
);
|
||||||
|
copy("maplibre-gl-lanes/LICENSE", "maplibre-gl-lanes/LICENSE");
|
||||||
|
|
||||||
|
copy("suncalc/index.js", "suncalc/suncalc.js");
|
||||||
|
copy("suncalc/LICENSE", "suncalc/LICENSE");
|
||||||
|
|
||||||
|
// Only the flags already vendored (the European subset), not all ~270.
|
||||||
|
for (const f of readdirSync(vendor("flag-icons/1x1"))) copy(`flag-icons/flags/1x1/${f}`, `flag-icons/1x1/${f}`);
|
||||||
+1
-1
@@ -109,7 +109,7 @@ services:
|
|||||||
# itself, inside its own filesystem, where the host path it points to
|
# itself, inside its own filesystem, where the host path it points to
|
||||||
# doesn't exist.
|
# doesn't exist.
|
||||||
kiwix:
|
kiwix:
|
||||||
image: ghcr.io/kiwix/kiwix-serve:latest
|
image: ghcr.io/kiwix/kiwix-serve:3.8.2
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# No --port here: the image's own start.sh already prepends
|
# No --port here: the image's own start.sh already prepends
|
||||||
# --port=8080 (its default) before appending this command array, so
|
# --port=8080 (its default) before appending this command array, so
|
||||||
|
|||||||
@@ -11,15 +11,15 @@ BSD-3-Clause licensed.
|
|||||||
| Library | Version | Source
|
| Library | Version | Source
|
||||||
|
|
||||||
| MapLibre GL JS
|
| MapLibre GL JS
|
||||||
| 6.6.0
|
| `package.json`
|
||||||
| https://github.com/maplibre/maplibre-gl-js
|
| https://github.com/maplibre/maplibre-gl-js
|
||||||
|
|
||||||
| pmtiles (pmtiles.js)
|
| pmtiles (pmtiles.js)
|
||||||
| 4.5.0
|
| `package.json`
|
||||||
| https://github.com/protomaps/PMTiles
|
| https://github.com/protomaps/PMTiles
|
||||||
|
|
||||||
| maplibre-contour (Overlays panel's "Contour lines", `public/js/contour.js`)
|
| maplibre-contour (Overlays panel's "Contour lines", `public/js/contour.js`)
|
||||||
| 0.1.0
|
| `package.json`
|
||||||
| https://github.com/onthegomap/maplibre-contour
|
| https://github.com/onthegomap/maplibre-contour
|
||||||
|===
|
|===
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ required (`LICENSE` included alongside):
|
|||||||
| maplibre-gl-lanes (offline hiking trails, `public/js/hiking_trails.js`
|
| maplibre-gl-lanes (offline hiking trails, `public/js/hiking_trails.js`
|
||||||
— trails sharing a path drawn as parallel lanes); its `dist/*.mjs`
|
— trails sharing a path drawn as parallel lanes); its `dist/*.mjs`
|
||||||
build, minus the trailing `sourceMappingURL` comment
|
build, minus the trailing `sourceMappingURL` comment
|
||||||
| 1.3.0
|
| `package.json`
|
||||||
| https://github.com/c0nsumer/maplibre-gl-lanes
|
| https://github.com/c0nsumer/maplibre-gl-lanes
|
||||||
|===
|
|===
|
||||||
|
|
||||||
@@ -75,10 +75,24 @@ Lipiridis), attribution required (this notice satisfies that):
|
|||||||
| flag-icons (just the square `1x1/` crop, only the 39 European
|
| flag-icons (just the square `1x1/` crop, only the 39 European
|
||||||
countries `lib/maptool/data/europe_countries.geojson` lists — see
|
countries `lib/maptool/data/europe_countries.geojson` lists — see
|
||||||
`public/js/offline_data.js`)
|
`public/js/offline_data.js`)
|
||||||
| 7.5.0
|
| `package.json`
|
||||||
| https://github.com/lipis/flag-icons
|
| https://github.com/lipis/flag-icons
|
||||||
|===
|
|===
|
||||||
|
|
||||||
|
Also vendored under `public/vendor/` — BSD-2-Clause (© Vladimir
|
||||||
|
Agafonkin), `LICENSE` included alongside:
|
||||||
|
|
||||||
|
[cols="1,1,2"]
|
||||||
|
|===
|
||||||
|
| Library | Version | Source
|
||||||
|
|
||||||
|
| SunCalc (`public/js/sun.js`'s sunrise/sunset readout); its `index.js`
|
||||||
|
copied verbatim as `suncalc.js` — only `getTimes` is used, the moon
|
||||||
|
exports are left in so it stays a straight copy
|
||||||
|
| `package.json`
|
||||||
|
| https://github.com/mourner/suncalc
|
||||||
|
|===
|
||||||
|
|
||||||
Offline map text labels need font glyphs too (see
|
Offline map text labels need font glyphs too (see
|
||||||
`docs/architecture.adoc`), vendored under `public/vendor/fonts/` —
|
`docs/architecture.adoc`), vendored under `public/vendor/fonts/` —
|
||||||
SIL Open Font License, not BSD-3-Clause like the above:
|
SIL Open Font License, not BSD-3-Clause like the above:
|
||||||
@@ -153,10 +167,19 @@ terrain.pmtiles regeneration.
|
|||||||
| https://github.com/osmcode/osmium-tool
|
| https://github.com/osmcode/osmium-tool
|
||||||
|===
|
|===
|
||||||
|
|
||||||
To update a vendored library: download its package (e.g.
|
Versions of the npm-published libraries above (MapLibre GL JS, pmtiles,
|
||||||
`npm pack <name>@<version>`), replace the corresponding files under
|
maplibre-contour, maplibre-gl-lanes, flag-icons, SunCalc) are pinned in
|
||||||
`public/vendor/<name>/`, and update the version in this file. To
|
`package.json` — the only thing it's for, the app itself has no JS
|
||||||
update go-pmtiles or Planetiler, bump `PMTILES_VERSION`/
|
build step. Renovate (`renovate.json`) opens a PR per bump and its
|
||||||
`PLANETILER_VERSION` in the `Dockerfile` and the version here —
|
`postUpgradeTasks` run `npm ci` + `node bin/vendor-sync.mjs`, so the PR
|
||||||
osmium-tool tracks whatever version Debian trixie currently packages,
|
already contains the new files under `public/vendor/`. By hand: edit
|
||||||
nothing to pin on this side.
|
`package.json`, then `npm install && node bin/vendor-sync.mjs`.
|
||||||
|
|
||||||
|
Everything else under `public/vendor/` (NPS plugins, Liberty
|
||||||
|
style/sprite, fonts) isn't on npm or has no version to track — update
|
||||||
|
by hand and adjust this file.
|
||||||
|
|
||||||
|
go-pmtiles and Planetiler are pinned by `PMTILES_VERSION`/
|
||||||
|
`PLANETILER_VERSION` in the `Dockerfile`, which Renovate also bumps
|
||||||
|
(the `# renovate:` comments above them). osmium-tool tracks whatever
|
||||||
|
version Debian trixie currently packages, nothing to pin on this side.
|
||||||
Generated
+299
@@ -0,0 +1,299 @@
|
|||||||
|
{
|
||||||
|
"name": "maptool-vendor",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"": {
|
||||||
|
"name": "maptool-vendor",
|
||||||
|
"devDependencies": {
|
||||||
|
"flag-icons": "7.5.0",
|
||||||
|
"maplibre-contour": "0.1.0",
|
||||||
|
"maplibre-gl": "6.6.0",
|
||||||
|
"maplibre-gl-lanes": "1.3.0",
|
||||||
|
"pmtiles": "4.5.0",
|
||||||
|
"suncalc": "2.0.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@mapbox/jsonlint-lines-primitives": {
|
||||||
|
"version": "2.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/@mapbox/jsonlint-lines-primitives/-/jsonlint-lines-primitives-2.0.3.tgz",
|
||||||
|
"integrity": "sha512-0SElaV0uMxEnxzBhhX9WTuPyUeMsAN/SS0i16tjuba4/mio63MG9khjC1a0JAiPGXAwvwm4UfHJURCN7nyudQg==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 22"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@mapbox/point-geometry": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@mapbox/point-geometry/-/point-geometry-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-YGcBz1cg4ATXDCM/71L9xveh4dynfGmcLDqufR+nQQy3fKwsAZsWd/x4621/6uJaeB9mwOHE6hPeDgXz9uViUQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "ISC"
|
||||||
|
},
|
||||||
|
"node_modules/@mapbox/tiny-sdf": {
|
||||||
|
"version": "2.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@mapbox/tiny-sdf/-/tiny-sdf-2.3.0.tgz",
|
||||||
|
"integrity": "sha512-gBvcNDBBB66bgQYvnaJ6Jk+VCaMmVq5+IZR2kWPisT88Z8s0kBQt6hfVi8QgRW8Vpg0UWZzBA4ZSyzHHC+VeRA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "BSD-2-Clause"
|
||||||
|
},
|
||||||
|
"node_modules/@mapbox/unitbezier": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@mapbox/unitbezier/-/unitbezier-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-fqd515fjBmANKGGsQ286E2Wvj/XvDFpGzwJxq4CI6jMQue6Oy04uCKp+JWKF00xRTmk6cEu1jPJ9p3xqH8YWqQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "BSD-2-Clause"
|
||||||
|
},
|
||||||
|
"node_modules/@mapbox/vector-tile": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@mapbox/vector-tile/-/vector-tile-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-Qf10S1uIHMk20ri/IVBnpS+esUEkVaR5Hftmz88jTInrpmWgPGJfPe3LVjjlE77trLx8tH6qjTG7uWH9hIq/0Q==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "BSD-3-Clause",
|
||||||
|
"dependencies": {
|
||||||
|
"@mapbox/point-geometry": "~1.1.0",
|
||||||
|
"@types/geojson": "^7946.0.16",
|
||||||
|
"pbf": "^5.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@maplibre/geojson-vt": {
|
||||||
|
"version": "6.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@maplibre/geojson-vt/-/geojson-vt-6.3.0.tgz",
|
||||||
|
"integrity": "sha512-3Zw2jsU9pIJG3G2CQFbLjWj2MlAHodhD7cSY+15iywUuLmmkgzcKRnueVRZ4AcC/5wOtfhidcJAAzBpoBNs3Xg==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "ISC",
|
||||||
|
"dependencies": {
|
||||||
|
"kdbush": "^4.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@maplibre/maplibre-gl-style-spec": {
|
||||||
|
"version": "26.5.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@maplibre/maplibre-gl-style-spec/-/maplibre-gl-style-spec-26.5.1.tgz",
|
||||||
|
"integrity": "sha512-9ufQ5LR+Ldn87SILPVyRNz4wVm/sBrM2ZRv9VfjLRKYKIGAcvC1VFw/DEkJLAHqfMV8m03zDz1DUNTIUj/GvdA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "ISC",
|
||||||
|
"dependencies": {
|
||||||
|
"@mapbox/jsonlint-lines-primitives": "^2.0.3",
|
||||||
|
"@mapbox/unitbezier": "^1.0.0",
|
||||||
|
"json-stringify-pretty-compact": "^4.0.0",
|
||||||
|
"minimist": "^1.2.8",
|
||||||
|
"quickselect": "^3.0.0",
|
||||||
|
"tinyqueue": "^3.0.0"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"gl-style-format": "dist/gl-style-format.mjs",
|
||||||
|
"gl-style-migrate": "dist/gl-style-migrate.mjs",
|
||||||
|
"gl-style-validate": "dist/gl-style-validate.mjs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@maplibre/mlt": {
|
||||||
|
"version": "1.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@maplibre/mlt/-/mlt-1.3.0.tgz",
|
||||||
|
"integrity": "sha512-7M2O7ABM80Oi8XPkfkrjKB8mOBIxGoVgkA52Mu4RMWoBvvMdagQ522+WxVYujZsMpqIr3BpzrTbXrm4k8lCzCQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "(MIT OR Apache-2.0)",
|
||||||
|
"dependencies": {
|
||||||
|
"@mapbox/point-geometry": "^1.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@maplibre/vt-pbf": {
|
||||||
|
"version": "4.3.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/@maplibre/vt-pbf/-/vt-pbf-4.3.3.tgz",
|
||||||
|
"integrity": "sha512-dEe5XUd64RQbxNxy2OzIkJnwNDWjVmSXjCd0A7zLirm7QJ/WWbmtDFIkfsiM4yt1cplqzG6oSivRYeWx1SM1yg==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@mapbox/point-geometry": "^1.1.0",
|
||||||
|
"@types/geojson": "^7946.0.16",
|
||||||
|
"pbf": "^5.1.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@types/geojson": {
|
||||||
|
"version": "7946.0.16",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz",
|
||||||
|
"integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/earcut": {
|
||||||
|
"version": "3.2.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/earcut/-/earcut-3.2.4.tgz",
|
||||||
|
"integrity": "sha512-FHc6yNpnTORB0tM5kmZ03iD2mDuNakDE2lvf4Hw1XkfxtEHIGVi01B/GqUSwx+NcC1WGjidAfpTXzeALtPtfpg==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "ISC"
|
||||||
|
},
|
||||||
|
"node_modules/fflate": {
|
||||||
|
"version": "0.8.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.3.tgz",
|
||||||
|
"integrity": "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/flag-icons": {
|
||||||
|
"version": "7.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/flag-icons/-/flag-icons-7.5.0.tgz",
|
||||||
|
"integrity": "sha512-kd+MNXviFIg5hijH766tt+3x76ele1AXlo4zDdCxIvqWZhKt4T83bOtxUOOMlTx/EcFdUMH5yvQgYlFh1EqqFg==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/gl-matrix": {
|
||||||
|
"version": "3.4.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/gl-matrix/-/gl-matrix-3.4.4.tgz",
|
||||||
|
"integrity": "sha512-latSnyDNt/8zYUB6VIJ6PCh2jBjJX6gnDsoCZ7LyW7GkqrD51EWwa9qCoGixj8YqBtETQK/xY7OmpTF8xz1DdQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/json-stringify-pretty-compact": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/json-stringify-pretty-compact/-/json-stringify-pretty-compact-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-3CNZ2DnrpByG9Nqj6Xo8vqbjT4F6N+tb4Gb28ESAZjYZ5yqvmc56J+/kuIwkaAMOyblTQhUW7PxMkUb8Q36N3Q==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/kdbush": {
|
||||||
|
"version": "4.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/kdbush/-/kdbush-4.1.0.tgz",
|
||||||
|
"integrity": "sha512-e9vurzrXJQrFX6ckpHP3bvj5l+9CnYzkxDNnNQ1h2QTqdWsUAJgXiKdGNcOa1EY85dU8KbQ+z/FdQdB7P+9yfQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "ISC"
|
||||||
|
},
|
||||||
|
"node_modules/maplibre-contour": {
|
||||||
|
"version": "0.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/maplibre-contour/-/maplibre-contour-0.1.0.tgz",
|
||||||
|
"integrity": "sha512-H8muT7JWYE4oLbFv7L2RSbIM1NOu5JxjA9P/TQqhODDnRChE8ENoDkQIWOKgfcKNU77ypLk2ggGoh4/pt4UPLA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "BSD-3-Clause"
|
||||||
|
},
|
||||||
|
"node_modules/maplibre-gl": {
|
||||||
|
"version": "6.6.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-6.6.0.tgz",
|
||||||
|
"integrity": "sha512-EQql6eZYPhbHvJpqY4AwoiuLkUfXFRBHk67S8mDtzNo1F/jAo7xAxunIzO7gJ1vwTcPMgrK9b64dqKHvnkTlDQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "BSD-3-Clause",
|
||||||
|
"dependencies": {
|
||||||
|
"@mapbox/point-geometry": "^1.1.0",
|
||||||
|
"@mapbox/tiny-sdf": "^2.2.0",
|
||||||
|
"@mapbox/unitbezier": "^1.0.0",
|
||||||
|
"@mapbox/vector-tile": "^3.0.0",
|
||||||
|
"@maplibre/geojson-vt": "^6.1.1",
|
||||||
|
"@maplibre/maplibre-gl-style-spec": "^26.3.0",
|
||||||
|
"@maplibre/mlt": "^1.2.0",
|
||||||
|
"@maplibre/vt-pbf": "^4.3.2",
|
||||||
|
"@types/geojson": "^7946.0.16",
|
||||||
|
"earcut": "^3.2.3",
|
||||||
|
"gl-matrix": "^3.4.4",
|
||||||
|
"kdbush": "^4.1.0",
|
||||||
|
"murmurhash-js": "^1.0.0",
|
||||||
|
"pbf": "^5.1.2",
|
||||||
|
"potpack": "^2.1.0",
|
||||||
|
"quickselect": "^3.0.0",
|
||||||
|
"tinyqueue": "^3.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=16.14.0",
|
||||||
|
"npm": ">=8.1.0"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/maplibre/maplibre-gl-js?sponsor=1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/maplibre-gl-lanes": {
|
||||||
|
"version": "1.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/maplibre-gl-lanes/-/maplibre-gl-lanes-1.3.0.tgz",
|
||||||
|
"integrity": "sha512-Z6ZkBBvB8bIeChkZ7P7a6IEMqNhBIIvS/9d6hncacDSC8iUvhIaO9dSqeeFV1vMl7ykOozXmyjjoxTeRgBy4bQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@types/geojson": "^7946.0.16"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"maplibre-gl": ">=5.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/minimist": {
|
||||||
|
"version": "1.2.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
|
||||||
|
"integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/murmurhash-js": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/murmurhash-js/-/murmurhash-js-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-TvmkNhkv8yct0SVBSy+o8wYzXjE4Zz3PCesbfs8HiCXXdcTuocApFv11UWlNFWKYsP2okqrhb7JNlSm9InBhIw==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/pbf": {
|
||||||
|
"version": "5.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/pbf/-/pbf-5.1.2.tgz",
|
||||||
|
"integrity": "sha512-mnvGdvOrIvJOBGUEdGkrVXjN8E/VkIJCkf2eS1DH2yv82ORUlLttmDt0rWY38yYZmVwciZwBUvHM20qxBZf40w==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "BSD-3-Clause",
|
||||||
|
"dependencies": {
|
||||||
|
"resolve-protobuf-schema": "^2.1.0"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"pbf": "bin/pbf"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/pmtiles": {
|
||||||
|
"version": "4.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/pmtiles/-/pmtiles-4.5.0.tgz",
|
||||||
|
"integrity": "sha512-CBeD4SoUluFziGdy/8k7FOjQxQy486n+929W/tWophauvMICpkZ26vGBWhDt/6b1FZQWNaf4jFdT/5+q0Wii5w==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "BSD-3-Clause",
|
||||||
|
"dependencies": {
|
||||||
|
"fflate": "^0.8.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/potpack": {
|
||||||
|
"version": "2.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/potpack/-/potpack-2.1.0.tgz",
|
||||||
|
"integrity": "sha512-pcaShQc1Shq0y+E7GqJqvZj8DTthWV1KeHGdi0Z6IAin2Oi3JnLCOfwnCo84qc+HAp52wT9nK9H7FAJp5a44GQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "ISC"
|
||||||
|
},
|
||||||
|
"node_modules/protocol-buffers-schema": {
|
||||||
|
"version": "3.6.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/protocol-buffers-schema/-/protocol-buffers-schema-3.6.1.tgz",
|
||||||
|
"integrity": "sha512-VG2K63Igkiv9p76tk1lilczEK1cT+kCjKtkdhw1dQZV3k3IXJbd3o6Ho8b9zJZaHSnT2hKe4I+ObmX9w6m5SmQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/quickselect": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/quickselect/-/quickselect-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-XdjUArbK4Bm5fLLvlm5KpTFOiOThgfWWI4axAZDWg4E/0mKdZyI9tNEfds27qCi1ze/vwTR16kvmmGhRra3c2g==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "ISC"
|
||||||
|
},
|
||||||
|
"node_modules/resolve-protobuf-schema": {
|
||||||
|
"version": "2.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/resolve-protobuf-schema/-/resolve-protobuf-schema-2.1.0.tgz",
|
||||||
|
"integrity": "sha512-kI5ffTiZWmJaS/huM8wZfEMer1eRd7oJQhDuxeCLe3t7N7mX3z94CN0xPxBQxFYQTSNz9T0i+v6inKqSdK8xrQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"protocol-buffers-schema": "^3.3.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/suncalc": {
|
||||||
|
"version": "2.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/suncalc/-/suncalc-2.0.2.tgz",
|
||||||
|
"integrity": "sha512-cedP91TuhxggoERke/jLkUVr/VMUifEMz1OkxfBZezvOFQdk8LSe9CFv7/Ov0Frn2tc2YUs+44oSrXeNEyTyGQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/tinyqueue": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/tinyqueue/-/tinyqueue-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-gRa9gwYU3ECmQYv3lslts5hxuIa90veaEcxDYuu3QGOIAEM2mOZkVHp48ANJuu1CURtRdHKUBY5Lm1tHV+sD4g==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "ISC"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"name": "maptool-vendor",
|
||||||
|
"private": true,
|
||||||
|
"description": "Version pins for public/vendor/ only, synced by bin/vendor-sync.mjs. Not a build step, the app serves the vendored copies.",
|
||||||
|
"devDependencies": {
|
||||||
|
"flag-icons": "7.5.0",
|
||||||
|
"maplibre-contour": "0.1.0",
|
||||||
|
"maplibre-gl": "6.6.0",
|
||||||
|
"maplibre-gl-lanes": "1.3.0",
|
||||||
|
"pmtiles": "4.5.0",
|
||||||
|
"suncalc": "2.0.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
Vendored
-6
@@ -1,9 +1,3 @@
|
|||||||
// Vendored from github.com/mourner/suncalc (BSD-2-Clause, see LICENSE in
|
|
||||||
// this directory) — used for public/js/sun.js's sunrise/sunset readout.
|
|
||||||
// Only getTimes (and its own helpers below) is actually used; the
|
|
||||||
// moon-position/-phase/-times exports below it are unused dead weight here,
|
|
||||||
// left in rather than hand-trimmed so this stays a straight, verifiable
|
|
||||||
// copy of the upstream file.
|
|
||||||
|
|
||||||
// shortcuts for easier to read formulas
|
// shortcuts for easier to read formulas
|
||||||
const {PI, sin, cos, tan, asin, atan2: atan, acos, sqrt, abs, round} = Math;
|
const {PI, sin, cos, tan, asin, atan2: atan, acos, sqrt, abs, round} = Math;
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": ["config:recommended"],
|
||||||
|
"timezone": "Europe/Bratislava",
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"description": "package.json only pins public/vendor/, so re-sync the vendored files in the same PR",
|
||||||
|
"matchManagers": ["npm"],
|
||||||
|
"postUpgradeTasks": {
|
||||||
|
"commands": ["npm ci --ignore-scripts --no-audit --no-fund", "node bin/vendor-sync.mjs"],
|
||||||
|
"fileFilters": ["public/vendor/**"],
|
||||||
|
"executionMode": "branch"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"customManagers": [
|
||||||
|
{
|
||||||
|
"customType": "regex",
|
||||||
|
"description": "Dockerfile ARG *_VERSION pins annotated with a `# renovate:` comment",
|
||||||
|
"managerFilePatterns": ["/(^|/)Dockerfile$/"],
|
||||||
|
"matchStrings": [
|
||||||
|
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\s+ARG \\S+_VERSION=(?<currentValue>\\S+)"
|
||||||
|
],
|
||||||
|
"extractVersionTemplate": "^v?(?<version>.*)$"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in new issue
Block a user