Yohan Boniface
074bf675c4
chore: replace window.L.U by window.U
2024-02-09 18:01:05 +01:00
Yohan Boniface
68f2de7f44
chore: do not introduce a new global, use L and L.U already there
2024-02-09 17:10:19 +01:00
David Larlet
81a1367696
fix: color consistency between buttons and icons
2024-02-09 10:47:04 -05:00
David Larlet
96acd710dc
fix: improve responsiveness of dashboard header
2024-02-09 10:30:48 -05:00
David Larlet
8eec5e7d12
fix: trim translate blocks contents to ease translations
2024-02-09 10:18:57 -05:00
David Larlet
5827a4cab0
fix: make dashboard table scrollable
2024-02-09 10:14:44 -05:00
David Larlet
afdc732204
Merge pull request #1430 from umap-project/download-all-from-dashboard
...
Ability to clone, delete and download all maps from user’s dashboard
2024-02-08 09:51:01 -05:00
Yohan Boniface
a7425aa121
fix: messages coming from Django where never displayed in map view
2024-02-08 14:45:47 +01:00
David Larlet
1acadc746a
fix: use the regular delete view instead of ajax
2024-02-07 17:38:39 -05:00
David Larlet
2af7705d4c
Use the request module for dashboard deletions
2024-02-07 12:32:01 -05:00
David Larlet
d4b380aa5f
feat: add icons to the dashboard actions
2024-02-07 12:32:00 -05:00
David Larlet
8a6e992b9c
Ability to clone a map and overall UI improvements
2024-02-07 12:32:00 -05:00
David Larlet
5d69d3c22f
Provide a link to delete maps from user’s dashboard
2024-02-07 12:32:00 -05:00
David Larlet
46cf432eb4
Paginate user’s maps combined downloads
2024-02-07 12:32:00 -05:00
David Larlet
5476cbee0f
Ability to download all maps from user’s dashboard
2024-02-07 12:32:00 -05:00
David Larlet
1ee9d7dd52
feat: allow to inject a header.html template
...
Useful to add scripts integration like Sentry
2024-02-06 12:45:40 -05:00
Yohan Boniface
5926eb53ba
chore: catch error in getMore
2024-02-05 07:22:53 +01:00
Yohan Boniface
16265b566e
chore: remove xhr module, now replaced by request.js
2024-02-05 07:22:53 +01:00
Yohan Boniface
8b2778116d
wip: make the getMore button work again with new Request
2024-02-05 07:22:53 +01:00
Yohan Boniface
49f600adfa
wip: refactor login flow
...
Instead of dealing with in JavaScript, let's do a more classic
HTTP flow.
The main flows work, but there is still at least one to deal with:
when editing a map without being logged in, the server may ask for
login, and in this case we should login THEN reissue the request,
so we need to interrupt the first request in some way,
otherwise the server will still answer with a 403, which is what
happens after this commit.
2024-02-05 07:22:53 +01:00
Yohan Boniface
074fc1bc18
Merge pull request #1552 from umap-project/preconnect-tilelayer
...
feat: set preconnect link for tilelayer
2024-01-29 18:26:24 +01:00
Yohan Boniface
caeb9d5b44
Merge pull request #1531 from umap-project/home-highlighted
...
Introduce UMAP_HOME_FEED to control which maps are shown on the home page
2024-01-29 12:48:24 +01:00
Yohan Boniface
dadcaa0b76
Merge pull request #1526 from umap-project/oembed
...
Create an oEmbed endpoint for maps
2024-01-29 12:44:03 +01:00
Yohan Boniface
d4e253190f
feat: set preconnect link for tilelayer
2024-01-22 18:14:41 +01:00
Yohan Boniface
abbc5237bd
chore: try to force browser to load Leaflet script soon
...
Leaflet file is the bigger, and it is otherwise only loaded
when the browser understand that it needs it, which means when
global.js is parsed, which means after all scripts have been loaded.
2024-01-22 14:41:22 +01:00
David Larlet
7c4009965a
Use minified versions + sourcemaps of vendor statics
2024-01-21 14:02:16 -05: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
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
1eb0f352c9
Expose the MAP variable at the global scope to ease debugging
2024-01-15 12:15:35 +01:00
David Larlet
df76ffd80e
feat: Create an oEmbed endpoint for maps
...
Fix #162
2024-01-11 15:08:10 -05:00
Yohan Boniface
66d2345841
Escape map settings in map_fragment.html
2024-01-11 11:13:13 +01: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
4b34a7d300
merge index.js with global.js
2024-01-08 19:29:43 +01:00
7c697f7529
Merge @ybon changes
2024-01-08 18:49:03 +01:00
Yohan Boniface
c6ce22f319
Also run login javascript when page is loaded
2024-01-08 18:43:54 +01:00
Yohan Boniface
ce22a2ee74
Only load Leaflet once, as module
2024-01-08 18:43:54 +01:00
95212dbdf5
[refactor] Use JS modules for client URL routing
...
Also expose some vendorized libs as modules in `modules/vendors.js`
2024-01-08 18:43:54 +01:00
Yohan Boniface
ab82fd975f
Merge pull request #1478 from umap-project/preview-map-on-click
...
Preview map only on click in user’s dashboard
2024-01-03 22:17:55 +01:00
Yohan Boniface
37b97403dc
Use neutral button for preview in user dashboard
2024-01-03 21:49:20 +01:00
David Larlet
36f72e3154
Linting templates
2023-12-27 13:50:21 -05:00
David Larlet
7484e52142
Improve maps’ pagination for the dashboard
2023-12-27 13:26:31 -05:00
Yohan Boniface
c3cb813c23
Allow to reopen a dialog in dashboard previews
2023-12-27 11:41:08 -05:00
David Larlet
ded244c9ff
Put CSS and JS blocks to their dedicated places
2023-12-27 11:41:08 -05:00
David Larlet
7ff543e1d5
Create the unique_id in the template (vs. model)
2023-12-27 11:41:08 -05:00
David Larlet
c9b4b96c01
Preview map only on click in user’s dashboard
...
Refs #1459
2023-12-27 11:41:07 -05:00
Joachim Schleicher
d19cc60a7a
refactor shareBox into separate class
...
download() and format() functions as well as dialog itself and
IFrameExporter helper moved into new file umap.share.js
2023-12-18 19:26:16 +01:00
Yohan Boniface
fe9f4b4a48
WIP: POC of using Leaflet.IconLayers as tilelayers switcher
2023-12-15 11:40:52 +01:00