Commit graph

2520 commits

Author SHA1 Message Date
Yohan Boniface
7ae742ca70 chore: add grey background to body on map page to prevent blinking
Otherwise the DOM loads and create a white script before the JS is
parsed and ready to display the map. This is due to using modules
and scripts in defer mode.
2024-01-22 14:41:21 +01:00
Yohan Boniface
ae4c1a9454 fix: build browser once features are on the map, not before
Features title may contain variables, which include geographical
ones (center, lat, lon…), and in this case the feature must be
on the map to be able to compute them (eg. the polygon center).

fix #1519
2024-01-22 12:49:33 +01:00
Yohan Boniface
d696fe885f fix: do not ask more classes than available values in choropleth
It actually does not make sense, and it's a sanity check: some
computation algorithms fail in this situation.
2024-01-22 11:12:14 +01:00
David Larlet
7729035288
Merge pull request #1549 from umap-project/vendors-minified-sourcemaps
Use minified versions + sourcemaps of vendor statics
2024-01-21 15:09:38 -05:00
David Larlet
7c4009965a
Use minified versions + sourcemaps of vendor statics 2024-01-21 14:02:16 -05:00
Yohan Boniface
b9b8550073 1.14.0a3 2024-01-19 17:52:24 +01:00
Yohan Boniface
969b02e7a0
Merge pull request #1544 from umap-project/compress-static
feat: compress static in collectstatic post_process
2024-01-19 17:51:13 +01:00
David Larlet
7e5c15b5b0
fix(1545): fix icons for mailto and tel
Fix #1545
2024-01-19 11:48:23 -05:00
Yohan Boniface
283ad44515 chore: do not try to create source maps for now
It's more complex than what we thought.
2024-01-19 17:43:18 +01:00
Yohan Boniface
541fbd4e56 docs: remove mentions of compress / django-compressor 2024-01-19 17:16:38 +01:00
Yohan Boniface
23af4c60cd chore: move UmapManifestStaticFilesStorage to a dedicated file 2024-01-19 17:16:35 +01:00
David Larlet
df3ed76f3e
feat: generate/link source map files for JS and CSS 2024-01-19 09:22:09 -05:00
Yohan Boniface
4541578b9b feat: compress static in collectstatic post_process 2024-01-19 12:27:21 +01:00
Yohan Boniface
5a6f1c1bcc chore: remove unused import 2024-01-17 22:27:05 +01:00
Yohan Boniface
031cff7435 1.14.0a2 2024-01-17 20:15:26 +01:00
Yohan Boniface
23715bef04 fix: gitignore should only ignore static/ dir at rool level 2024-01-17 20:14:21 +01:00
Yohan Boniface
11045345fc i18n 2024-01-17 18:50:24 +01:00
Yohan Boniface
3f76f64d82 1.14.0a1
Removing django-compressor, and testing before doing a proper release
2024-01-17 18:49:06 +01:00
Yohan Boniface
016f74753f
Merge pull request #1539 from umap-project/no-compressor
Use custom storage instead of django-compressor
2024-01-17 18:47:48 +01:00
Yohan Boniface
6d358a1f71 chore: make sure linters only run inside umap/ folder
No venv/, no node_modules/, not tmp/…
2024-01-17 18:44:08 +01:00
Yohan Boniface
96ae7ddbc7 chore: deactivate custom statics manager for test by default
And add one file that run it and check all js files are loaded.
2024-01-17 18:42:46 +01:00
Yohan Boniface
1b8e6164ed fix: use dynamic path for locale javascript 2024-01-17 16:36:17 +01:00
David Larlet
656e29c72b
Use custom storage instead of django-compressor 2024-01-17 09:09:00 -05:00
Yohan Boniface
502cd4cded chore: remove support for settings starting with LEAFLET_STORAGE_
They are deprecated since 1.0
2024-01-17 11:39:06 +01:00
Yohan Boniface
fb63588ac5 chore: use https://umap-project.org link in map footer 2024-01-17 11:25:47 +01:00
Yohan Boniface
cf13d15753 fix: honour datalayersControl=expanded in querystring
fix #1525
2024-01-16 19:58:10 +01:00
Yohan Boniface
9f377da1b2 Introduce UMAP_HOME_FEED to control which maps are shown on the home page
For now we have only three modes:
- latest, which is the default and shows the last updated maps
- highlighted, which shows only the map that have been starred by a least
  one staff member
- None, which does not show any map
2024-01-16 12:31:50 +01:00
Yohan Boniface
4227e171f3 fix: empty file input when closing the importer panel
Otherwise, we cannot import anything else than a file, even when
closing and reopening the panel. User needs to refresh the page.
2024-01-16 12:28:59 +01:00
Yohan Boniface
3e5927f65e Release JS module introduction as an alpha package
We want to test it live before an official release
2024-01-15 18:37:46 +01:00
Yohan Boniface
8026c16926 i18n 2024-01-15 18:32:51 +01:00
Alexis Métaireau
3e63768fc0 docs: clarify how to use JS libs 2024-01-15 14:58:43 +01:00
Yohan Boniface
9054d35f0f
Merge pull request #1463 from umap-project/almet/js/client-routing
Add support for JS modules (+module for URLs handling)
2024-01-15 14:46:56 +01:00
Alexis Métaireau
de8e806b28 docs: document how dependencies are handled 2024-01-15 14:44:55 +01:00
dependabot[bot]
87b7c5627e
chore: bump vermin from 1.5.2 to 1.6.0
Bumps [vermin](https://github.com/netromdk/vermin) from 1.5.2 to 1.6.0.
- [Release notes](https://github.com/netromdk/vermin/releases)
- [Commits](https://github.com/netromdk/vermin/compare/v1.5.2...v1.6.0)

---
updated-dependencies:
- dependency-name: vermin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-15 11:47:35 +00:00
Alexis Métaireau
78945d03fa build: pin versions in pyproject.toml 2024-01-15 12:46:54 +01:00
Alexis Métaireau
1eb0f352c9 Expose the MAP variable at the global scope to ease debugging 2024-01-15 12:15:35 +01:00
Yohan Boniface
4c5b94d572
Merge pull request #1511 from umap-project/docs/template-changes
docs: document changed templates
2024-01-13 18:52:09 +01:00
David Larlet
df76ffd80e
feat: Create an oEmbed endpoint for maps
Fix #162
2024-01-11 15:08:10 -05:00
Alexis Métaireau
b75e3bedd7 docs: include the release process 2024-01-11 11:56:13 +01:00
Stephan Geisler
e40d4584f9 fix typo in settings.md 2024-01-11 11:48:48 +01:00
Stephan Geisler
2c94f6afbe Update settings.md
Description added on how to create a superuser in order to be able to use the ENABLE_ACCOUNT_LOGIN parameter (result of issue: #1520)
2024-01-11 11:48:48 +01:00
Yohan Boniface
66d2345841 Escape map settings in map_fragment.html 2024-01-11 11:13:13 +01:00
David Larlet
40a58787c5
Merge pull request #1508 from umap-project/dependabot/pip/hatch-1.9.1
chore: bump hatch from 1.7.0 to 1.9.1
2024-01-10 20:39:39 -05:00
dependabot[bot]
d5a27d9f27
chore: bump hatch from 1.7.0 to 1.9.1
Bumps [hatch](https://github.com/pypa/hatch) from 1.7.0 to 1.9.1.
- [Release notes](https://github.com/pypa/hatch/releases)
- [Commits](https://github.com/pypa/hatch/compare/hatch-v1.7.0...hatch-v1.9.1)

---
updated-dependencies:
- dependency-name: hatch
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-11 01:39:28 +00:00
David Larlet
0d36d90be8
Merge pull request #1507 from umap-project/dependabot/pip/djlint-1.34.1
chore: bump djlint from 1.31.0 to 1.34.1
2024-01-10 20:38:57 -05:00
David Larlet
61e83460c2
Merge pull request #1504 from umap-project/dependabot/pip/uwsgi-2.0.23
chore: bump uwsgi from 2.0.21 to 2.0.23
2024-01-10 20:38:07 -05:00
David Larlet
08e50567de
Merge pull request #1516 from umap-project/umap-components
Set a umap-fragment web component for lists
2024-01-10 20:35:11 -05:00
David Larlet
5d758ebc0d
Create a dedicated js/components folder 2024-01-10 14:31:54 -05:00
David Larlet
7b5b5b1b22
Set a umap-fragment web component for lists 2024-01-09 14:49:14 -05:00
Alexis Métaireau
4b34a7d300 merge index.js with global.js 2024-01-08 19:29:43 +01:00