Commit graph

55 commits

Author SHA1 Message Date
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
David Larlet
5476cbee0f
Ability to download all maps from user’s dashboard 2024-02-07 12:32:00 -05:00
Yohan Boniface
c334f7554e feat: add experimental "map preview"
This is the same as "map new", but it is not in edit mode. This
allow to click on the elements and see the popups instead of editing
it when using a `dataUrl` query string.
This way of using uMap is not documented, but it's used by some
partners (Deveco recently, data.gouv.fr historicaly).

In the same time, this PR adds two things:
- possibility to pass data direclty in querystring (instead of an URL):
  in the case of Deveco, they have pages where only point is shown (for
  each company)
- possibility to pass style options directly from query string: may
  allow for example to control the `popupTemplate`, eg. to use a table
  one that will display all properties of the clicked feature

Note: dataUrl and such also works in normal "map new" view. There are
two use cases around those parameters, from external sites:
- see this data on uMap (should point on map preview)
- create a map with those data (should point on map new)
2024-02-07 13:57:20 +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
David Larlet
df76ffd80e
feat: Create an oEmbed endpoint for maps
Fix #162
2024-01-11 15:08:10 -05:00
Alexis Métaireau
aff0181636 [style] Format the code 2023-11-24 23:31:18 +01:00
Yohan Boniface
be0cefd02a
Merge pull request #1396 from umap-project/backup-api
Full map download endpoint
2023-11-15 15:39:36 +01:00
David Larlet
6f73038f92
Redirect favicon.ico and dynamic webmanifest 2023-11-14 22:50:25 -05:00
David Larlet
915d6b6db4
Set a default favicon 2023-11-14 17:32:40 -05:00
David Larlet
0be42d39cb
Full map download endpoint 2023-11-14 12:07:17 -05:00
Yohan Boniface
3d2e62c858 Do not use Map.edit_status anymore
But keep it for now, for data migration, and just in case
2023-09-22 17:26:55 +02:00
Yohan Boniface
89ab029cab WIP: move edit_status from Map to DataLayer 2023-09-22 17:25:55 +02:00
Yohan Boniface
73d19e849f Refactor share_status check in datalayers views 2023-09-22 17:24:01 +02:00
Yohan Boniface
2b471be171 Very lite "My Profile" page to allow changing username 2023-08-21 15:09:30 +02:00
Yohan Boniface
4d0ced9a98 Add very basic user dashboard 2023-07-12 09:09:01 +02:00
Yohan Boniface
81fcc080d9 Allow to customize user display name and URL slug 2023-06-16 14:59:59 +02:00
Yohan Boniface
e0760ca403 Only ask to send edit link if email has been set up 2023-05-31 17:20:22 +02:00
Yohan Boniface
69bf6593ac (WIP) Add a button to send edit link by email in anonymous mode 2023-05-31 14:50:43 +02:00
David Larlet
deb0ab09d3 Add one hour cache to the stats view 2023-05-23 11:51:54 -04:00
David Larlet
9d752ea306 Add a very basic /stats/ JSON view
Will be useful to feed munin for instance.
2023-05-22 17:47:04 -04:00
Yohan Boniface
40f40038f8 Fix url order for retrieving user stars
Since that initial PR, the username regex has been more gready.
2023-05-15 12:22:28 +02:00
Yohan Boniface
8c113d9a19 Rename MapStar view in ToggleMapStarStatus 2023-05-15 12:22:28 +02:00
Yohan Boniface
37b4d05da5 (WIP) Allow to star map and retrieve starred maps 2023-05-15 12:22:26 +02:00
Yohan Boniface
cfcb83dbfb black on urls.py 2023-02-23 11:10:24 +01:00
Yohan Boniface
2fc30b117b Prepare for Django 4.x 2023-02-22 15:19:38 +01:00
Yohan Boniface
1200b82838 First attempt to upgrade to Django 3.X
Bloqued by https://github.com/peopledoc/django-agnocomplete/issues/119
2021-05-17 10:51:24 +02:00
Yohan Boniface
2ba7a057f3 Be more liberal about username regex in URL
fix #774
2020-03-25 15:11:11 +01:00
Yohan Boniface
d63e92fee8 Upgrade to Django 2.1 2018-08-15 17:42:51 +02:00
Yohan Boniface
1a815b313d Add an explicit button to attach an owner to an anonymous map
fix #568
2018-07-07 16:44:40 +02:00
Yohan Boniface
ac8b68b0e5 Remove OldMapUrl 2018-06-15 23:31:45 +02:00
Yohan Boniface
48185650b0 Move permissions form building to JS 2018-06-15 23:25:38 +02:00
Yohan Boniface
a7ec9b173d Add a basic language switcher in the home footer
fix #74
2018-06-02 19:04:32 +02:00
Yohan Boniface
1ef5e13f48 Remove duplicate short_url declarations 2018-05-19 12:01:53 +02:00
Yohan Boniface
cb470198e6 Merge leaflet_storage locales 2018-05-19 11:12:19 +02:00
Yohan Boniface
e55d03bd5e Django 2.0
And update other deps
2018-05-19 10:05:18 +02:00
Yohan Boniface
f87fca3588 Bump to new social-auth
cf https://github.com/omab/python-social-auth/blob/master/MIGRATING_TO_SOCIAL.md
2017-01-09 10:13:21 +01:00
Yohan Boniface
2437334940 Merge branch 'auth-login' of https://github.com/plepe/umap into plepe-auth-login 2016-09-09 20:55:16 +02:00
Yohan Boniface
94d2bbb65e Upgrade to Django 1.9 and bumps deps 2016-04-24 16:14:47 +02:00
Stephan Bösch-Plepelits
7477adec05 Authentication: custom templates for password change 2016-01-14 21:26:43 +01:00
Stephan Bösch-Plepelits
2f2e0f510d Authentication: include a change password menu entry 2016-01-14 21:26:43 +01:00
Yohan Boniface
7b5ea8df67 First shot in Django 1.8 / python 3 support
This also replaced pg_index with a simple builting seach
based on tsvector, as pg_index is not compliant with Django 1.8,
and as some old dependencies that would need to be upgrade too.
2015-08-02 18:08:31 +02:00
Yohan Boniface
a389a76027 Validate URL before proxying 2014-04-19 17:54:51 +02:00
Yohan Boniface
9bf587a765 Use a query string for URL 2014-04-19 12:28:24 +02:00
Yohan Boniface
39f672641c First shot in GeoRSS support 2014-04-19 11:48:54 +02:00
Yohan Boniface
4b7d8a314e Quick fix for HainautCart@ username 2014-03-08 12:55:13 +01:00
Yohan Boniface
40d5ac7e3a Upgrade django-social-auth to python-social-auth 2014-03-06 23:22:37 +01:00
Yohan Boniface
4578446aad Make showcase url i18n aware 2014-02-10 21:53:24 +01:00
Yohan Boniface
1c84384922 CSS refactoring (including first version of showcase map) 2014-02-07 22:05:41 +01:00
Yohan Boniface
8ec63b69a9 Geojsonize (cf yohanboniface/Leaflet.Storage#62) 2013-11-11 12:57:34 +01:00
Yohan Boniface
3b7131f2fd Custom short url (fix #22) 2013-06-16 18:08:08 +02:00