umap-project 2.0.0a3__py3-none-any.whl → 2.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of umap-project might be problematic. Click here for more details.
- umap/__init__.py +1 -1
- umap/locale/en/LC_MESSAGES/django.po +33 -28
- umap/locale/fr/LC_MESSAGES/django.mo +0 -0
- umap/locale/fr/LC_MESSAGES/django.po +33 -28
- umap/locale/hu/LC_MESSAGES/django.mo +0 -0
- umap/locale/hu/LC_MESSAGES/django.po +48 -43
- umap/locale/it/LC_MESSAGES/django.mo +0 -0
- umap/locale/it/LC_MESSAGES/django.po +20 -20
- umap/locale/ms/LC_MESSAGES/django.mo +0 -0
- umap/locale/ms/LC_MESSAGES/django.po +20 -20
- umap/locale/zh_TW/LC_MESSAGES/django.mo +0 -0
- umap/locale/zh_TW/LC_MESSAGES/django.po +12 -12
- umap/management/commands/import_pictograms.py +1 -1
- umap/settings/base.py +2 -2
- umap/static/umap/base.css +6 -6
- umap/static/umap/content.css +14 -14
- umap/static/umap/js/umap.forms.js +2 -2
- umap/static/umap/js/umap.js +18 -27
- umap/static/umap/js/umap.popup.js +1 -1
- umap/static/umap/js/umap.share.js +2 -0
- umap/static/umap/locale/hu.js +8 -1
- umap/static/umap/locale/hu.json +8 -1
- umap/static/umap/locale/it.js +37 -30
- umap/static/umap/locale/it.json +37 -30
- umap/static/umap/locale/ms.js +28 -21
- umap/static/umap/locale/ms.json +28 -21
- umap/static/umap/locale/zh_TW.js +8 -1
- umap/static/umap/locale/zh_TW.json +8 -1
- umap/static/umap/map.css +9 -9
- umap/static/umap/nav.css +1 -1
- umap/static/umap/test/index.html +16 -13
- umap/static/umap/vars.css +13 -0
- umap/storage.py +3 -2
- umap/templates/registration/login.html +40 -40
- umap/templates/umap/css.html +1 -1
- umap/templates/umap/js.html +26 -15
- umap/templates/umap/map_detail.html +5 -7
- umap/templates/umap/map_fragment.html +1 -1
- umap/templates/umap/map_init.html +10 -3
- umap/templates/umap/map_table.html +18 -17
- umap/templates/umap/user_dashboard.html +8 -9
- umap/tests/conftest.py +0 -2
- umap/tests/integration/test_anonymous_owned_map.py +50 -1
- umap/tests/integration/test_collaborative_editing.py +57 -1
- umap/tests/integration/test_dashboard.py +13 -0
- umap/tests/integration/test_map_preview.py +8 -0
- umap/tests/integration/test_querystring.py +14 -0
- umap/tests/integration/test_share.py +19 -1
- umap/tests/integration/test_star.py +27 -0
- umap/tests/integration/test_statics.py +6 -3
- umap/tests/settings.py +1 -1
- umap/tests/test_map_views.py +3 -3
- umap/urls.py +1 -1
- umap/views.py +16 -10
- {umap_project-2.0.0a3.dist-info → umap_project-2.0.3.dist-info}/METADATA +4 -4
- {umap_project-2.0.0a3.dist-info → umap_project-2.0.3.dist-info}/RECORD +59 -58
- umap/templates/umap/map_messages.html +0 -12
- {umap_project-2.0.0a3.dist-info → umap_project-2.0.3.dist-info}/WHEEL +0 -0
- {umap_project-2.0.0a3.dist-info → umap_project-2.0.3.dist-info}/entry_points.txt +0 -0
- {umap_project-2.0.0a3.dist-info → umap_project-2.0.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
# Marco <marcxosm@gmail.com>, 2017
|
|
9
9
|
# lucacorsato <lucors@gmail.com>, 2014
|
|
10
10
|
# lucacorsato <lucors@gmail.com>, 2014
|
|
11
|
-
# Marco <marcxosm@gmail.com>, 2017-2019
|
|
11
|
+
# Marco <marcxosm@gmail.com>, 2017-2019,2024
|
|
12
12
|
# Marco <marcxosm@gmail.com>, 2018
|
|
13
13
|
# Maurizio Napolitano <maurizio.napolitano@okfn.org>, 2013,2017,2023
|
|
14
14
|
# Mirco Zorzo <mircozorzo@gmail.com>, 2020
|
|
@@ -22,7 +22,7 @@ msgstr ""
|
|
|
22
22
|
"Report-Msgid-Bugs-To: \n"
|
|
23
23
|
"POT-Creation-Date: 2024-02-15 13:53+0000\n"
|
|
24
24
|
"PO-Revision-Date: 2013-11-22 14:00+0000\n"
|
|
25
|
-
"Last-Translator:
|
|
25
|
+
"Last-Translator: Marco <marcxosm@gmail.com>, 2017-2019,2024\n"
|
|
26
26
|
"Language-Team: Italian (http://app.transifex.com/openstreetmap/umap/language/it/)\n"
|
|
27
27
|
"MIME-Version: 1.0\n"
|
|
28
28
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
@@ -166,7 +166,7 @@ msgstr "%(current_user)s non ha mappe."
|
|
|
166
166
|
|
|
167
167
|
#: templates/auth/user_form.html:6
|
|
168
168
|
msgid "My Maps"
|
|
169
|
-
msgstr ""
|
|
169
|
+
msgstr "Le mie mappe"
|
|
170
170
|
|
|
171
171
|
#: templates/auth/user_form.html:7
|
|
172
172
|
msgid "My Profile"
|
|
@@ -316,15 +316,15 @@ msgstr "Nome"
|
|
|
316
316
|
|
|
317
317
|
#: templates/umap/map_table.html:7
|
|
318
318
|
msgid "Preview"
|
|
319
|
-
msgstr ""
|
|
319
|
+
msgstr "Anteprima"
|
|
320
320
|
|
|
321
321
|
#: templates/umap/map_table.html:8
|
|
322
322
|
msgid "Who can see"
|
|
323
|
-
msgstr ""
|
|
323
|
+
msgstr "Chi può vedere"
|
|
324
324
|
|
|
325
325
|
#: templates/umap/map_table.html:9
|
|
326
326
|
msgid "Who can edit"
|
|
327
|
-
msgstr ""
|
|
327
|
+
msgstr "Chi può modificare"
|
|
328
328
|
|
|
329
329
|
#: templates/umap/map_table.html:10
|
|
330
330
|
msgid "Last save"
|
|
@@ -340,7 +340,7 @@ msgstr "Azioni"
|
|
|
340
340
|
|
|
341
341
|
#: templates/umap/map_table.html:25 templates/umap/map_table.html:27
|
|
342
342
|
msgid "Open preview"
|
|
343
|
-
msgstr ""
|
|
343
|
+
msgstr "Apri anteprima"
|
|
344
344
|
|
|
345
345
|
#: templates/umap/map_table.html:46 templates/umap/map_table.html:48
|
|
346
346
|
msgid "Share"
|
|
@@ -356,42 +356,42 @@ msgstr "Download"
|
|
|
356
356
|
|
|
357
357
|
#: templates/umap/map_table.html:63 templates/umap/map_table.html:65
|
|
358
358
|
msgid "Clone"
|
|
359
|
-
msgstr ""
|
|
359
|
+
msgstr "Clona"
|
|
360
360
|
|
|
361
361
|
#: templates/umap/map_table.html:73 templates/umap/map_table.html:75
|
|
362
362
|
msgid "Delete"
|
|
363
|
-
msgstr ""
|
|
363
|
+
msgstr "Elimina"
|
|
364
364
|
|
|
365
365
|
#: templates/umap/map_table.html:88
|
|
366
366
|
msgid "first"
|
|
367
|
-
msgstr ""
|
|
367
|
+
msgstr "primo"
|
|
368
368
|
|
|
369
369
|
#: templates/umap/map_table.html:89
|
|
370
370
|
msgid "previous"
|
|
371
|
-
msgstr ""
|
|
371
|
+
msgstr "precedente"
|
|
372
372
|
|
|
373
373
|
#: templates/umap/map_table.html:98
|
|
374
374
|
#, python-format
|
|
375
375
|
msgid "Page %(maps_number)s of %(num_pages)s"
|
|
376
|
-
msgstr ""
|
|
376
|
+
msgstr "Pagina %(maps_number)s di %(num_pages)s"
|
|
377
377
|
|
|
378
378
|
#: templates/umap/map_table.html:104
|
|
379
379
|
msgid "next"
|
|
380
|
-
msgstr ""
|
|
380
|
+
msgstr "prossimo"
|
|
381
381
|
|
|
382
382
|
#: templates/umap/map_table.html:105
|
|
383
383
|
msgid "last"
|
|
384
|
-
msgstr ""
|
|
384
|
+
msgstr "ultimo"
|
|
385
385
|
|
|
386
386
|
#: templates/umap/map_table.html:113
|
|
387
387
|
#, python-format
|
|
388
388
|
msgid "Lines per page: %(per_page)s"
|
|
389
|
-
msgstr ""
|
|
389
|
+
msgstr "Linee per pagina: %(per_page)s"
|
|
390
390
|
|
|
391
391
|
#: templates/umap/map_table.html:118
|
|
392
392
|
#, python-format
|
|
393
393
|
msgid "%(count)s maps"
|
|
394
|
-
msgstr ""
|
|
394
|
+
msgstr "%(count)s mappe"
|
|
395
395
|
|
|
396
396
|
#: templates/umap/navigation.html:10 templates/umap/user_dashboard.html:4
|
|
397
397
|
msgid "My Dashboard"
|
|
@@ -490,7 +490,7 @@ msgstr "Cerca nelle mie mappe"
|
|
|
490
490
|
#: templates/umap/user_dashboard.html:11
|
|
491
491
|
#, python-format
|
|
492
492
|
msgid "My Maps (%(count)s)"
|
|
493
|
-
msgstr ""
|
|
493
|
+
msgstr "Le mie mappe (%(count)s)"
|
|
494
494
|
|
|
495
495
|
#: templates/umap/user_dashboard.html:13
|
|
496
496
|
msgid "My profile"
|
|
@@ -498,12 +498,12 @@ msgstr "Mio profilo"
|
|
|
498
498
|
|
|
499
499
|
#: templates/umap/user_dashboard.html:21 templates/umap/user_dashboard.html:23
|
|
500
500
|
msgid "Map’s title"
|
|
501
|
-
msgstr ""
|
|
501
|
+
msgstr "Titolo della mappa"
|
|
502
502
|
|
|
503
503
|
#: templates/umap/user_dashboard.html:32
|
|
504
504
|
#, python-format
|
|
505
505
|
msgid "Download %(count)s maps"
|
|
506
|
-
msgstr ""
|
|
506
|
+
msgstr "Scarica %(count)s mappe"
|
|
507
507
|
|
|
508
508
|
#: templates/umap/user_dashboard.html:42
|
|
509
509
|
msgid "You have no map yet."
|
|
@@ -515,7 +515,7 @@ msgstr "Visualizza la mappa"
|
|
|
515
515
|
|
|
516
516
|
#: views.py:704
|
|
517
517
|
msgid "See full screen"
|
|
518
|
-
msgstr ""
|
|
518
|
+
msgstr "Vedi a schermo interno"
|
|
519
519
|
|
|
520
520
|
#: views.py:803
|
|
521
521
|
msgid "Map editors updated with success!"
|
|
Binary file
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# This file is distributed under the same license as the PACKAGE package.
|
|
4
4
|
#
|
|
5
5
|
# Translators:
|
|
6
|
-
# Yaya - Nurul Azeera Hidayah @ Muhammad Nur Hidayat Yasuyoshi (MNH48) <admin@mnh48.moe>, 2021,2023
|
|
6
|
+
# Yaya - Nurul Azeera Hidayah @ Muhammad Nur Hidayat Yasuyoshi (MNH48) <admin@mnh48.moe>, 2021,2023-2024
|
|
7
7
|
# Yaya - Nurul Azeera Hidayah @ Muhammad Nur Hidayat Yasuyoshi (MNH48) <admin@mnh48.moe>, 2021
|
|
8
8
|
msgid ""
|
|
9
9
|
msgstr ""
|
|
@@ -11,7 +11,7 @@ msgstr ""
|
|
|
11
11
|
"Report-Msgid-Bugs-To: \n"
|
|
12
12
|
"POT-Creation-Date: 2024-02-15 13:53+0000\n"
|
|
13
13
|
"PO-Revision-Date: 2013-11-22 14:00+0000\n"
|
|
14
|
-
"Last-Translator: Yaya - Nurul Azeera Hidayah @ Muhammad Nur Hidayat Yasuyoshi (MNH48) <admin@mnh48.moe>, 2021,2023\n"
|
|
14
|
+
"Last-Translator: Yaya - Nurul Azeera Hidayah @ Muhammad Nur Hidayat Yasuyoshi (MNH48) <admin@mnh48.moe>, 2021,2023-2024\n"
|
|
15
15
|
"Language-Team: Malay (http://app.transifex.com/openstreetmap/umap/language/ms/)\n"
|
|
16
16
|
"MIME-Version: 1.0\n"
|
|
17
17
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
@@ -155,7 +155,7 @@ msgstr "%(current_user)s tidak mempunyai peta."
|
|
|
155
155
|
|
|
156
156
|
#: templates/auth/user_form.html:6
|
|
157
157
|
msgid "My Maps"
|
|
158
|
-
msgstr ""
|
|
158
|
+
msgstr "Peta Saya"
|
|
159
159
|
|
|
160
160
|
#: templates/auth/user_form.html:7
|
|
161
161
|
msgid "My Profile"
|
|
@@ -305,15 +305,15 @@ msgstr "Nama"
|
|
|
305
305
|
|
|
306
306
|
#: templates/umap/map_table.html:7
|
|
307
307
|
msgid "Preview"
|
|
308
|
-
msgstr ""
|
|
308
|
+
msgstr "Pralihat"
|
|
309
309
|
|
|
310
310
|
#: templates/umap/map_table.html:8
|
|
311
311
|
msgid "Who can see"
|
|
312
|
-
msgstr ""
|
|
312
|
+
msgstr "Siapa boleh lihat"
|
|
313
313
|
|
|
314
314
|
#: templates/umap/map_table.html:9
|
|
315
315
|
msgid "Who can edit"
|
|
316
|
-
msgstr ""
|
|
316
|
+
msgstr "Siapa boleh sunting"
|
|
317
317
|
|
|
318
318
|
#: templates/umap/map_table.html:10
|
|
319
319
|
msgid "Last save"
|
|
@@ -329,7 +329,7 @@ msgstr "Tindakan"
|
|
|
329
329
|
|
|
330
330
|
#: templates/umap/map_table.html:25 templates/umap/map_table.html:27
|
|
331
331
|
msgid "Open preview"
|
|
332
|
-
msgstr ""
|
|
332
|
+
msgstr "Buka pralihat"
|
|
333
333
|
|
|
334
334
|
#: templates/umap/map_table.html:46 templates/umap/map_table.html:48
|
|
335
335
|
msgid "Share"
|
|
@@ -345,42 +345,42 @@ msgstr "Muat turun"
|
|
|
345
345
|
|
|
346
346
|
#: templates/umap/map_table.html:63 templates/umap/map_table.html:65
|
|
347
347
|
msgid "Clone"
|
|
348
|
-
msgstr ""
|
|
348
|
+
msgstr "Klon"
|
|
349
349
|
|
|
350
350
|
#: templates/umap/map_table.html:73 templates/umap/map_table.html:75
|
|
351
351
|
msgid "Delete"
|
|
352
|
-
msgstr ""
|
|
352
|
+
msgstr "Padam"
|
|
353
353
|
|
|
354
354
|
#: templates/umap/map_table.html:88
|
|
355
355
|
msgid "first"
|
|
356
|
-
msgstr ""
|
|
356
|
+
msgstr "pertama"
|
|
357
357
|
|
|
358
358
|
#: templates/umap/map_table.html:89
|
|
359
359
|
msgid "previous"
|
|
360
|
-
msgstr ""
|
|
360
|
+
msgstr "sebelumnya"
|
|
361
361
|
|
|
362
362
|
#: templates/umap/map_table.html:98
|
|
363
363
|
#, python-format
|
|
364
364
|
msgid "Page %(maps_number)s of %(num_pages)s"
|
|
365
|
-
msgstr ""
|
|
365
|
+
msgstr "Halaman %(maps_number)s daripada %(num_pages)s"
|
|
366
366
|
|
|
367
367
|
#: templates/umap/map_table.html:104
|
|
368
368
|
msgid "next"
|
|
369
|
-
msgstr ""
|
|
369
|
+
msgstr "seterusnya"
|
|
370
370
|
|
|
371
371
|
#: templates/umap/map_table.html:105
|
|
372
372
|
msgid "last"
|
|
373
|
-
msgstr ""
|
|
373
|
+
msgstr "terakhir"
|
|
374
374
|
|
|
375
375
|
#: templates/umap/map_table.html:113
|
|
376
376
|
#, python-format
|
|
377
377
|
msgid "Lines per page: %(per_page)s"
|
|
378
|
-
msgstr ""
|
|
378
|
+
msgstr "Baris per halaman: %(per_page)s"
|
|
379
379
|
|
|
380
380
|
#: templates/umap/map_table.html:118
|
|
381
381
|
#, python-format
|
|
382
382
|
msgid "%(count)s maps"
|
|
383
|
-
msgstr ""
|
|
383
|
+
msgstr "%(count)s peta"
|
|
384
384
|
|
|
385
385
|
#: templates/umap/navigation.html:10 templates/umap/user_dashboard.html:4
|
|
386
386
|
msgid "My Dashboard"
|
|
@@ -477,7 +477,7 @@ msgstr "Gelintar peta saya"
|
|
|
477
477
|
#: templates/umap/user_dashboard.html:11
|
|
478
478
|
#, python-format
|
|
479
479
|
msgid "My Maps (%(count)s)"
|
|
480
|
-
msgstr ""
|
|
480
|
+
msgstr "Peta Saya (%(count)s)"
|
|
481
481
|
|
|
482
482
|
#: templates/umap/user_dashboard.html:13
|
|
483
483
|
msgid "My profile"
|
|
@@ -485,12 +485,12 @@ msgstr "Profil saya"
|
|
|
485
485
|
|
|
486
486
|
#: templates/umap/user_dashboard.html:21 templates/umap/user_dashboard.html:23
|
|
487
487
|
msgid "Map’s title"
|
|
488
|
-
msgstr ""
|
|
488
|
+
msgstr "Tajuk peta"
|
|
489
489
|
|
|
490
490
|
#: templates/umap/user_dashboard.html:32
|
|
491
491
|
#, python-format
|
|
492
492
|
msgid "Download %(count)s maps"
|
|
493
|
-
msgstr ""
|
|
493
|
+
msgstr "Muat turun %(count)s peta"
|
|
494
494
|
|
|
495
495
|
#: templates/umap/user_dashboard.html:42
|
|
496
496
|
msgid "You have no map yet."
|
|
@@ -502,7 +502,7 @@ msgstr "Lihat peta"
|
|
|
502
502
|
|
|
503
503
|
#: views.py:704
|
|
504
504
|
msgid "See full screen"
|
|
505
|
-
msgstr ""
|
|
505
|
+
msgstr "Lihat skrin penuh"
|
|
506
506
|
|
|
507
507
|
#: views.py:803
|
|
508
508
|
msgid "Map editors updated with success!"
|
|
Binary file
|
|
@@ -161,7 +161,7 @@ msgstr "%(current_user)s 沒有任何地圖。"
|
|
|
161
161
|
|
|
162
162
|
#: templates/auth/user_form.html:6
|
|
163
163
|
msgid "My Maps"
|
|
164
|
-
msgstr ""
|
|
164
|
+
msgstr "我的地圖"
|
|
165
165
|
|
|
166
166
|
#: templates/auth/user_form.html:7
|
|
167
167
|
msgid "My Profile"
|
|
@@ -315,11 +315,11 @@ msgstr "預纜"
|
|
|
315
315
|
|
|
316
316
|
#: templates/umap/map_table.html:8
|
|
317
317
|
msgid "Who can see"
|
|
318
|
-
msgstr ""
|
|
318
|
+
msgstr "誰可以檢視"
|
|
319
319
|
|
|
320
320
|
#: templates/umap/map_table.html:9
|
|
321
321
|
msgid "Who can edit"
|
|
322
|
-
msgstr ""
|
|
322
|
+
msgstr "誰可以編輯"
|
|
323
323
|
|
|
324
324
|
#: templates/umap/map_table.html:10
|
|
325
325
|
msgid "Last save"
|
|
@@ -351,11 +351,11 @@ msgstr "下載"
|
|
|
351
351
|
|
|
352
352
|
#: templates/umap/map_table.html:63 templates/umap/map_table.html:65
|
|
353
353
|
msgid "Clone"
|
|
354
|
-
msgstr ""
|
|
354
|
+
msgstr "複製"
|
|
355
355
|
|
|
356
356
|
#: templates/umap/map_table.html:73 templates/umap/map_table.html:75
|
|
357
357
|
msgid "Delete"
|
|
358
|
-
msgstr ""
|
|
358
|
+
msgstr "刪除"
|
|
359
359
|
|
|
360
360
|
#: templates/umap/map_table.html:88
|
|
361
361
|
msgid "first"
|
|
@@ -368,7 +368,7 @@ msgstr "先前"
|
|
|
368
368
|
#: templates/umap/map_table.html:98
|
|
369
369
|
#, python-format
|
|
370
370
|
msgid "Page %(maps_number)s of %(num_pages)s"
|
|
371
|
-
msgstr ""
|
|
371
|
+
msgstr "%(num_pages)s頁的%(maps_number)s"
|
|
372
372
|
|
|
373
373
|
#: templates/umap/map_table.html:104
|
|
374
374
|
msgid "next"
|
|
@@ -381,12 +381,12 @@ msgstr "最後"
|
|
|
381
381
|
#: templates/umap/map_table.html:113
|
|
382
382
|
#, python-format
|
|
383
383
|
msgid "Lines per page: %(per_page)s"
|
|
384
|
-
msgstr ""
|
|
384
|
+
msgstr "每頁行數:%(per_page)s"
|
|
385
385
|
|
|
386
386
|
#: templates/umap/map_table.html:118
|
|
387
387
|
#, python-format
|
|
388
388
|
msgid "%(count)s maps"
|
|
389
|
-
msgstr ""
|
|
389
|
+
msgstr "%(count)s地圖"
|
|
390
390
|
|
|
391
391
|
#: templates/umap/navigation.html:10 templates/umap/user_dashboard.html:4
|
|
392
392
|
msgid "My Dashboard"
|
|
@@ -483,7 +483,7 @@ msgstr "搜尋我的地圖"
|
|
|
483
483
|
#: templates/umap/user_dashboard.html:11
|
|
484
484
|
#, python-format
|
|
485
485
|
msgid "My Maps (%(count)s)"
|
|
486
|
-
msgstr ""
|
|
486
|
+
msgstr "我的地圖 (%(count)s)"
|
|
487
487
|
|
|
488
488
|
#: templates/umap/user_dashboard.html:13
|
|
489
489
|
msgid "My profile"
|
|
@@ -491,12 +491,12 @@ msgstr "我的個人檔案"
|
|
|
491
491
|
|
|
492
492
|
#: templates/umap/user_dashboard.html:21 templates/umap/user_dashboard.html:23
|
|
493
493
|
msgid "Map’s title"
|
|
494
|
-
msgstr ""
|
|
494
|
+
msgstr "地圖標題"
|
|
495
495
|
|
|
496
496
|
#: templates/umap/user_dashboard.html:32
|
|
497
497
|
#, python-format
|
|
498
498
|
msgid "Download %(count)s maps"
|
|
499
|
-
msgstr ""
|
|
499
|
+
msgstr "下載%(count)s地圖"
|
|
500
500
|
|
|
501
501
|
#: templates/umap/user_dashboard.html:42
|
|
502
502
|
msgid "You have no map yet."
|
|
@@ -508,7 +508,7 @@ msgstr "檢視地圖"
|
|
|
508
508
|
|
|
509
509
|
#: views.py:704
|
|
510
510
|
msgid "See full screen"
|
|
511
|
-
msgstr ""
|
|
511
|
+
msgstr "檢視全螢幕"
|
|
512
512
|
|
|
513
513
|
#: views.py:803
|
|
514
514
|
msgid "Map editors updated with success!"
|
|
@@ -62,6 +62,6 @@ class Command(BaseCommand):
|
|
|
62
62
|
if path.name != self.path.name: # Subfolders only
|
|
63
63
|
picto.category = path.name
|
|
64
64
|
picto.attribution = self.attribution
|
|
65
|
-
with (
|
|
65
|
+
with (filename).open("rb") as f:
|
|
66
66
|
picto.pictogram.save(filename.name, File(f), save=True)
|
|
67
67
|
self.stdout.write(f"✔ Imported pictogram {filename}.")
|
umap/settings/base.py
CHANGED
|
@@ -128,9 +128,9 @@ INSTALLED_APPS = (
|
|
|
128
128
|
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
|
|
129
129
|
|
|
130
130
|
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
|
131
|
-
|
|
131
|
+
DEFAULT_FROM_EMAIL = None
|
|
132
132
|
# https://docs.djangoproject.com/en/4.2/releases/4.1/#forms
|
|
133
|
-
FORM_RENDERER = "django.forms.renderers.
|
|
133
|
+
FORM_RENDERER = "django.forms.renderers.DjangoTemplates"
|
|
134
134
|
|
|
135
135
|
# =============================================================================
|
|
136
136
|
# Calculation of directories relative to the project module location
|
umap/static/umap/base.css
CHANGED
|
@@ -31,7 +31,7 @@ hr {
|
|
|
31
31
|
-moz-border-left-colors: none;
|
|
32
32
|
-moz-border-right-colors: none;
|
|
33
33
|
-moz-border-top-colors: none;
|
|
34
|
-
border-color:
|
|
34
|
+
border-color: var(--color-lightGray);
|
|
35
35
|
border-image: none;
|
|
36
36
|
border-style: solid;
|
|
37
37
|
border-width: 1px 0 0;
|
|
@@ -223,7 +223,7 @@ button.flat,
|
|
|
223
223
|
padding: 7px 7px;
|
|
224
224
|
margin-bottom: 14px;
|
|
225
225
|
background: #393F3F;
|
|
226
|
-
color:
|
|
226
|
+
color: var(--color-lightGray);
|
|
227
227
|
font-size: 10px;
|
|
228
228
|
border-radius: 0 2px;
|
|
229
229
|
}
|
|
@@ -264,7 +264,7 @@ input + .error {
|
|
|
264
264
|
padding: 7px 7px;
|
|
265
265
|
margin-top: -14px;
|
|
266
266
|
margin-bottom: 14px;
|
|
267
|
-
background:
|
|
267
|
+
background: var(--color-lightGray);
|
|
268
268
|
color: #fff;
|
|
269
269
|
background-color: #cc0000;
|
|
270
270
|
font-size: 11px;
|
|
@@ -685,7 +685,7 @@ input[type=hidden].blur + [type="button"] {
|
|
|
685
685
|
position: absolute;
|
|
686
686
|
bottom: 0;
|
|
687
687
|
padding: 0 10px;
|
|
688
|
-
border-left: 1px solid
|
|
688
|
+
border-left: 1px solid var(--color-lightGray);
|
|
689
689
|
overflow-x: auto;
|
|
690
690
|
z-index: 1010;
|
|
691
691
|
background-color: #fff;
|
|
@@ -698,7 +698,7 @@ input[type=hidden].blur + [type="button"] {
|
|
|
698
698
|
}
|
|
699
699
|
#umap-ui-container.dark {
|
|
700
700
|
border-left: 1px solid #222;
|
|
701
|
-
background-color:
|
|
701
|
+
background-color: var(--color-darkGray);
|
|
702
702
|
color: #efefef;
|
|
703
703
|
}
|
|
704
704
|
#umap-ui-container.fullwidth {
|
|
@@ -913,7 +913,7 @@ input:invalid {
|
|
|
913
913
|
color: #eeeeec;
|
|
914
914
|
padding: 0 7px;
|
|
915
915
|
line-height: 32px;
|
|
916
|
-
background-color:
|
|
916
|
+
background-color: var(--color-darkGray);
|
|
917
917
|
}
|
|
918
918
|
.dark .umap-close-link:hover {
|
|
919
919
|
background-color: #2e3436;
|
umap/static/umap/content.css
CHANGED
|
@@ -150,12 +150,12 @@ h2.section {
|
|
|
150
150
|
}
|
|
151
151
|
h2.tabs {
|
|
152
152
|
text-transform: uppercase;
|
|
153
|
-
color:
|
|
153
|
+
color: var(--color-darkBlue);
|
|
154
154
|
text-align: left;
|
|
155
155
|
padding-top: 28px;
|
|
156
156
|
}
|
|
157
157
|
h2.tabs a {
|
|
158
|
-
color:
|
|
158
|
+
color: var(--color-darkBlue);
|
|
159
159
|
text-decoration: underline;
|
|
160
160
|
text-decoration-thickness: 3px;
|
|
161
161
|
text-decoration-skip-ink: none;
|
|
@@ -164,7 +164,7 @@ h2.tabs a {
|
|
|
164
164
|
}
|
|
165
165
|
h2.tabs a:not(.selected) {
|
|
166
166
|
font-weight: normal;
|
|
167
|
-
color:
|
|
167
|
+
color: var(--color-darkBlue);
|
|
168
168
|
text-decoration: none;
|
|
169
169
|
margin-right: 0;
|
|
170
170
|
}
|
|
@@ -205,8 +205,8 @@ body.content #umap-ui-container {
|
|
|
205
205
|
|
|
206
206
|
input[type="submit"],
|
|
207
207
|
.button {
|
|
208
|
-
background-color:
|
|
209
|
-
color:
|
|
208
|
+
background-color: var(--button-primary-background);
|
|
209
|
+
color: var(--button-primary-color);
|
|
210
210
|
}
|
|
211
211
|
.button-primary {
|
|
212
212
|
font-weight: bold;
|
|
@@ -215,8 +215,8 @@ input[type="submit"],
|
|
|
215
215
|
background-color: #35537c;
|
|
216
216
|
}
|
|
217
217
|
.wrapper .neutral, .wrapper input[type="submit"].neutral {
|
|
218
|
-
background-color:
|
|
219
|
-
color:
|
|
218
|
+
background-color: var(--button-neutral-background);
|
|
219
|
+
color: var(--button-neutral-color);
|
|
220
220
|
}
|
|
221
221
|
.wrapper.somber {
|
|
222
222
|
background-color: #2E3641;
|
|
@@ -399,7 +399,7 @@ ul.umap-autocomplete {
|
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
.table-header form input {
|
|
402
|
-
border: 2px solid
|
|
402
|
+
border: 2px solid var(--color-darkBlue);
|
|
403
403
|
border-radius: 0;
|
|
404
404
|
padding: .5rem 1rem;
|
|
405
405
|
margin-bottom: 0;
|
|
@@ -410,7 +410,7 @@ ul.umap-autocomplete {
|
|
|
410
410
|
width: 30ch;
|
|
411
411
|
}
|
|
412
412
|
.table-header form input[type="submit"] {
|
|
413
|
-
background-color:
|
|
413
|
+
background-color: var(--color-darkBlue);
|
|
414
414
|
color: white;
|
|
415
415
|
font-weight: bold;
|
|
416
416
|
}
|
|
@@ -419,8 +419,8 @@ ul.umap-autocomplete {
|
|
|
419
419
|
width: inherit;
|
|
420
420
|
display: inline;
|
|
421
421
|
padding: .5rem 1rem;
|
|
422
|
-
border: 2px solid
|
|
423
|
-
color:
|
|
422
|
+
border: 2px solid var(--color-darkBlue);
|
|
423
|
+
color: var(--color-darkBlue);
|
|
424
424
|
font-weight: bold;
|
|
425
425
|
background-color: initial;
|
|
426
426
|
margin-bottom: 0;
|
|
@@ -443,7 +443,7 @@ ul.umap-autocomplete {
|
|
|
443
443
|
.table-wrapper table a,
|
|
444
444
|
.table-wrapper table thead tr th,
|
|
445
445
|
.table-wrapper table th[scope="row"] {
|
|
446
|
-
color:
|
|
446
|
+
color: var(--color-darkBlue);
|
|
447
447
|
text-align: left;
|
|
448
448
|
padding-left: 2px;
|
|
449
449
|
}
|
|
@@ -469,7 +469,7 @@ ul.umap-autocomplete {
|
|
|
469
469
|
.table-wrapper table input[type="submit"] {
|
|
470
470
|
display: inline;
|
|
471
471
|
background-color: transparent;
|
|
472
|
-
color:
|
|
472
|
+
color: var(--color-darkBlue);
|
|
473
473
|
padding: 0;
|
|
474
474
|
width: inherit;
|
|
475
475
|
height: 1rem;
|
|
@@ -527,7 +527,7 @@ dialog::backdrop {
|
|
|
527
527
|
padding: 1rem;
|
|
528
528
|
}
|
|
529
529
|
.pagination a {
|
|
530
|
-
color:
|
|
530
|
+
color: var(--color-darkBlue);
|
|
531
531
|
text-decoration: underline;
|
|
532
532
|
}
|
|
533
533
|
|
|
@@ -672,9 +672,9 @@ L.FormBuilder.IconUrl = L.FormBuilder.BlurInput.extend({
|
|
|
672
672
|
},
|
|
673
673
|
|
|
674
674
|
addCategory: function (items, name) {
|
|
675
|
-
const parent = L.DomUtil.create('div', 'umap-pictogram-category')
|
|
676
|
-
grid = L.DomUtil.create('div', 'umap-pictogram-grid', parent)
|
|
675
|
+
const parent = L.DomUtil.create('div', 'umap-pictogram-category')
|
|
677
676
|
if (name) L.DomUtil.add('h6', '', parent, name)
|
|
677
|
+
const grid = L.DomUtil.create('div', 'umap-pictogram-grid', parent)
|
|
678
678
|
let status = false
|
|
679
679
|
for (let item of items) {
|
|
680
680
|
status = this.addIconPreview(item, grid) || status
|
umap/static/umap/js/umap.js
CHANGED
|
@@ -125,18 +125,12 @@ U.Map = L.Map.extend({
|
|
|
125
125
|
// To be used in javascript APIs
|
|
126
126
|
if (geojson.properties.lang) L.lang = geojson.properties.lang
|
|
127
127
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
: true
|
|
128
|
+
this.setOptionsFromQueryString(geojson.properties)
|
|
129
|
+
// Prevent default creation of controls
|
|
130
|
+
const zoomControl = geojson.properties.zoomControl
|
|
131
|
+
const fullscreenControl = geojson.properties.fullscreenControl
|
|
133
132
|
geojson.properties.zoomControl = false
|
|
134
|
-
const fullscreenControl =
|
|
135
|
-
typeof geojson.properties.fullscreenControl !== 'undefined'
|
|
136
|
-
? geojson.properties.fullscreenControl
|
|
137
|
-
: true
|
|
138
133
|
geojson.properties.fullscreenControl = false
|
|
139
|
-
this.setOptionsFromQueryString(geojson.properties)
|
|
140
134
|
|
|
141
135
|
L.Map.prototype.initialize.call(this, el, geojson.properties)
|
|
142
136
|
U.DEFAULT_ICON_URL = this.options.default_iconUrl
|
|
@@ -401,7 +395,7 @@ U.Map = L.Map.extend({
|
|
|
401
395
|
this._controls.search = new U.SearchControl()
|
|
402
396
|
this._controls.embed = new L.Control.Embed(this, this.options.embedOptions)
|
|
403
397
|
this._controls.tilelayersChooser = new U.TileLayerChooser(this)
|
|
404
|
-
this._controls.star = new U.StarControl(this)
|
|
398
|
+
if (this.options.user) this._controls.star = new U.StarControl(this)
|
|
405
399
|
this._controls.editinosm = new L.Control.EditInOSM({
|
|
406
400
|
position: 'topleft',
|
|
407
401
|
widgetOptions: {
|
|
@@ -468,6 +462,7 @@ U.Map = L.Map.extend({
|
|
|
468
462
|
status = this.options[`${name}Control`]
|
|
469
463
|
if (status === false) continue
|
|
470
464
|
control = this._controls[name]
|
|
465
|
+
if (!control) continue
|
|
471
466
|
control.addTo(this)
|
|
472
467
|
if (status === undefined || status === null)
|
|
473
468
|
L.DomUtil.addClass(control._container, 'display-on-more')
|
|
@@ -1129,7 +1124,7 @@ U.Map = L.Map.extend({
|
|
|
1129
1124
|
}
|
|
1130
1125
|
},
|
|
1131
1126
|
|
|
1132
|
-
sendEditLink: function () {
|
|
1127
|
+
sendEditLink: async function () {
|
|
1133
1128
|
const input = this.ui._alert.querySelector('input')
|
|
1134
1129
|
const email = input.value
|
|
1135
1130
|
|
|
@@ -1137,29 +1132,25 @@ U.Map = L.Map.extend({
|
|
|
1137
1132
|
formData.append('email', email)
|
|
1138
1133
|
|
|
1139
1134
|
const url = this.urls.get('map_send_edit_link', { map_id: this.options.umap_id })
|
|
1140
|
-
this.post(url, {
|
|
1141
|
-
data: formData,
|
|
1142
|
-
})
|
|
1135
|
+
await this.server.post(url, {}, formData)
|
|
1143
1136
|
},
|
|
1144
1137
|
|
|
1145
|
-
star: function () {
|
|
1138
|
+
star: async function () {
|
|
1146
1139
|
if (!this.options.umap_id)
|
|
1147
1140
|
return this.ui.alert({
|
|
1148
1141
|
content: L._('Please save the map first'),
|
|
1149
1142
|
level: 'error',
|
|
1150
1143
|
})
|
|
1151
1144
|
const url = this.urls.get('map_star', { map_id: this.options.umap_id })
|
|
1152
|
-
this.post(url
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
},
|
|
1162
|
-
})
|
|
1145
|
+
const [data, response, error] = await this.server.post(url)
|
|
1146
|
+
if (!error) {
|
|
1147
|
+
this.options.starred = data.starred
|
|
1148
|
+
let msg = data.starred
|
|
1149
|
+
? L._('Map has been starred')
|
|
1150
|
+
: L._('Map has been unstarred')
|
|
1151
|
+
this.ui.alert({ content: msg, level: 'info' })
|
|
1152
|
+
this.renderControls()
|
|
1153
|
+
}
|
|
1163
1154
|
},
|
|
1164
1155
|
|
|
1165
1156
|
geometry: function () {
|
|
@@ -324,7 +324,7 @@ U.PopupTemplate.OSM = U.PopupTemplate.Default.extend({
|
|
|
324
324
|
L.DomUtil.element('a', { href: `mailto:${email}`, textContent: email })
|
|
325
325
|
)
|
|
326
326
|
}
|
|
327
|
-
const id = props['@id']
|
|
327
|
+
const id = props['@id'] || props['id']
|
|
328
328
|
if (id) {
|
|
329
329
|
L.DomUtil.add(
|
|
330
330
|
'div',
|
|
@@ -226,6 +226,8 @@ U.IframeExporter = L.Evented.extend({
|
|
|
226
226
|
const datalayers = []
|
|
227
227
|
if (this.options.viewCurrentFeature && this.map.currentFeature) {
|
|
228
228
|
this.queryString.feature = this.map.currentFeature.getSlug()
|
|
229
|
+
} else {
|
|
230
|
+
delete this.queryString.feature
|
|
229
231
|
}
|
|
230
232
|
if (this.options.keepCurrentDatalayers) {
|
|
231
233
|
this.map.eachDataLayer((datalayer) => {
|