Commit graph

18 commits

Author SHA1 Message Date
Yohan Boniface
b88a0cc49f wip: internalize FormBuilder and move to module 2025-01-07 18:07:14 +01:00
Yohan Boniface
61c3be59a8 chore: use colorbrewer as ES module 2024-10-16 09:01:31 +02:00
Yohan Boniface
9d727bd01f wip: use our own contextmenu 2024-09-09 15:53:55 +02:00
David Larlet
c6b2dbd04c
fix: avoid vendorizing lealfet useless files 2024-08-02 10:13:55 -04:00
David Larlet
5c7624a08e
fix: avoid vendorizing markercluster sources 2024-08-02 10:06:27 -04:00
David Larlet
cf00069017
fix: avoid vendorizing leaflet.toolbar sources 2024-08-02 10:01:57 -04:00
Yohan Boniface
891f04656f wip: make collectstatic happy with import() in comments
Also add missing .map files.

Maybe a proper solution would be to commit the vendors/ and
remove manually the comments.
2024-07-05 17:51:53 +02:00
Yohan Boniface
ca0f771947 wip: move formatters to a module
This mainly allows to dynamically load the third party libraries.

In the same process, those libs have changed:

- tokml => switch to placemarkio fork, more up to date and available
  as ESM
- togpx => switch to geojson-to-gpx, more up to date and available as
  ESM (note: this lib does not export polygons, because they do not
  make sense in GPX world, while the previous was converting them as
  lines before)
2024-07-05 17:51:53 +02:00
David Larlet
5bdfc708ee
fix: vendorize the .map too for dompurify
Fix up for  2c1cd46167

We keep the `.mjs` fragment within the filename to avoid changing it manually within the renamed `purify.es.js` file. Given the `.map` extension, it will not affect the nginx (or others) mimetypes configuration.
2024-05-01 13:59:42 -04:00
David Larlet
2c1cd46167
fix: no .mjs extension for JS modules
It requires a special nginx configuration that we want to avoid for all instances deployments:

```
include mime.types;
types {
  application/javascript mjs;
}
```
2024-05-01 13:27:45 -04:00
c4e527bf8e [chore] move umap utils to a module
Allow the tests to be run from inside a cli, without requiring a browser.
2024-04-01 11:12:44 +02:00
Yohan Boniface
a767353706 chore: rm vendors/ dir before collecting vendors 2024-02-09 18:44:00 +01:00
David Larlet
7c4009965a
Use minified versions + sourcemaps of vendor statics 2024-01-21 14:02:16 -05:00
Yohan Boniface
fe9f4b4a48 WIP: POC of using Leaflet.IconLayers as tilelayers switcher 2023-12-15 11:40:52 +01:00
Yohan Boniface
739626351c Choropleth: replace chromajs by colorbrewer + simple-statistics
simple-statistics has a few advantages:
- faster
- more accurate kmeans algo
- Jenks-Fisher algo

Also, I suspect will use it again for next step, which is Bubble
mode layer.
2023-10-11 19:36:12 +02:00
Yohan Boniface
8e12e6cf24 POC of a choropleth layer 2023-10-10 21:16:01 +02:00
Yohan Boniface
1508b137ca Use maintained fork of togeojson
fix #1192
2023-08-08 09:02:22 +02:00
Yohan Boniface
e1d3a95cce Allow to make vendors without Makefile
So we can use a lighter node image in Docker
2023-06-05 13:19:14 +02:00