umap-project 2.0.1__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/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/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 +4 -10
- 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/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/static/umap/vendors/leaflet/leaflet-src.esm.js +7054 -7054
- 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 +7 -8
- umap/tests/conftest.py +0 -2
- umap/tests/integration/test_anonymous_owned_map.py +32 -2
- umap/tests/integration/test_collaborative_editing.py +57 -1
- 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_statics.py +6 -3
- umap/tests/test_map_views.py +3 -3
- umap/views.py +16 -10
- {umap_project-2.0.1.dist-info → umap_project-2.0.3.dist-info}/METADATA +4 -4
- {umap_project-2.0.1.dist-info → umap_project-2.0.3.dist-info}/RECORD +51 -58
- {umap_project-2.0.1.dist-info → umap_project-2.0.3.dist-info}/WHEEL +1 -1
- umap/.DS_Store +0 -0
- umap/static/.DS_Store +0 -0
- umap/static/umap/.DS_Store +0 -0
- umap/static/umap/favicons/.DS_Store +0 -0
- umap/static/umap/fonts/.DS_Store +0 -0
- umap/templates/umap/map_messages.html +0 -12
- umap/tests/.DS_Store +0 -0
- umap/tests/integration/.DS_Store +0 -0
- {umap_project-2.0.1.dist-info → umap_project-2.0.3.dist-info}/entry_points.txt +0 -0
- {umap_project-2.0.1.dist-info → umap_project-2.0.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -431,5 +431,12 @@
|
|
|
431
431
|
"Type a place name or coordinates": "輸入地點名稱或是座標",
|
|
432
432
|
"copy": "複製",
|
|
433
433
|
"full backup": " 完全備份",
|
|
434
|
-
"settings": "設定"
|
|
434
|
+
"settings": "設定",
|
|
435
|
+
"Action not allowed :(": "未被允許的動作 :(",
|
|
436
|
+
"Bring feature to center": "置中圖徵",
|
|
437
|
+
"Current map view": "目前地圖檢視",
|
|
438
|
+
"Features in this layer: {count}": "這個圖層的圖徵數:{count}",
|
|
439
|
+
"Filter": "篩選器",
|
|
440
|
+
"Problem in the response": "回應的問題",
|
|
441
|
+
"Recent": "目前"
|
|
435
442
|
}
|
umap/static/umap/map.css
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Same as leaflet background, to work around screen blincking
|
|
14
14
|
* between DOM is loaded and JS is read to render the map.
|
|
15
15
|
*/
|
|
16
|
-
background-color:
|
|
16
|
+
background-color: var(--color-lightGray);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
|
|
@@ -293,7 +293,7 @@ ul.photon-autocomplete {
|
|
|
293
293
|
margin-top: 0;
|
|
294
294
|
vertical-align: top;
|
|
295
295
|
border-bottom: none;
|
|
296
|
-
background-color:
|
|
296
|
+
background-color: var(--color-darkGray);
|
|
297
297
|
border-right: 1px solid #eee;
|
|
298
298
|
background-repeat: no-repeat;
|
|
299
299
|
background-image: url('./img/24.svg');
|
|
@@ -446,7 +446,7 @@ ul.photon-autocomplete {
|
|
|
446
446
|
max-width: 100vw;
|
|
447
447
|
padding: 40px 20px;
|
|
448
448
|
border: 1px solid #222;
|
|
449
|
-
background-color:
|
|
449
|
+
background-color: var(--color-darkGray);
|
|
450
450
|
color: #efefef;
|
|
451
451
|
font-size: 0.8em;
|
|
452
452
|
visibility: hidden;
|
|
@@ -464,7 +464,7 @@ ul.photon-autocomplete {
|
|
|
464
464
|
background-position: -4px -4px;
|
|
465
465
|
background-repeat: no-repeat;
|
|
466
466
|
background-image: url('./img/16.svg');
|
|
467
|
-
background-color:
|
|
467
|
+
background-color: var(--color-darkGray) !important;
|
|
468
468
|
vertical-align: middle;
|
|
469
469
|
text-indent: -9999px;
|
|
470
470
|
min-height: inherit;
|
|
@@ -518,7 +518,7 @@ ul.photon-autocomplete {
|
|
|
518
518
|
color: #fff;
|
|
519
519
|
font-size: 1.2em;
|
|
520
520
|
border: none;
|
|
521
|
-
background-color:
|
|
521
|
+
background-color: var(--color-darkGray);
|
|
522
522
|
width: auto;
|
|
523
523
|
margin-bottom: 0;
|
|
524
524
|
}
|
|
@@ -625,7 +625,7 @@ ul.photon-autocomplete {
|
|
|
625
625
|
left: 0;
|
|
626
626
|
right: 0;
|
|
627
627
|
height: 46px;
|
|
628
|
-
background-color:
|
|
628
|
+
background-color: var(--color-darkGray);
|
|
629
629
|
padding: 0 10px;
|
|
630
630
|
text-align: left;
|
|
631
631
|
line-height: 36px;
|
|
@@ -728,7 +728,7 @@ ul.photon-autocomplete {
|
|
|
728
728
|
text-align: left;
|
|
729
729
|
line-height: 46px;
|
|
730
730
|
cursor: auto;
|
|
731
|
-
border-top: 1px solid
|
|
731
|
+
border-top: 1px solid var(--color-lightGray);
|
|
732
732
|
opacity: 0.93;
|
|
733
733
|
z-index: 1000;
|
|
734
734
|
}
|
|
@@ -884,10 +884,10 @@ ul.photon-autocomplete {
|
|
|
884
884
|
}
|
|
885
885
|
.leaflet-inplace-toolbar a {
|
|
886
886
|
background-image: url('./img/16-white.svg');
|
|
887
|
-
background-color:
|
|
887
|
+
background-color: var(--color-darkGray)!important;
|
|
888
888
|
}
|
|
889
889
|
.leaflet-toolbar-tip {
|
|
890
|
-
background-color:
|
|
890
|
+
background-color: var(--color-darkGray);
|
|
891
891
|
}
|
|
892
892
|
.leaflet-inplace-toolbar a:hover {
|
|
893
893
|
background-color: #353c3e!important;
|
umap/static/umap/nav.css
CHANGED
umap/static/umap/test/index.html
CHANGED
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
<link rel="stylesheet" href="../vendors/locatecontrol/L.Control.Locate.min.css" />
|
|
63
63
|
<link rel="stylesheet" href="../vendors/iconlayers/iconLayers.css" />
|
|
64
64
|
|
|
65
|
+
<link rel="stylesheet" href="../../umap/vars.css" />
|
|
65
66
|
<link rel="stylesheet" href="../../umap/font.css" />
|
|
66
67
|
<link rel="stylesheet" href="../../umap/base.css" />
|
|
67
68
|
<link rel="stylesheet" href="../../umap/content.css" />
|
|
@@ -122,21 +123,23 @@
|
|
|
122
123
|
<div id="mocha"></div>
|
|
123
124
|
<div id="map"></div>
|
|
124
125
|
<script>
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
if (window.location.search.indexOf('debug') !== -1) {
|
|
131
|
-
runner.on('fail', function (test, err) {
|
|
132
|
-
console.log(test.title, test.err)
|
|
133
|
-
console.log(test.err.expected, test.err.actual)
|
|
134
|
-
console.log(test.err.stack)
|
|
126
|
+
window.addEventListener('DOMContentLoaded', () => {
|
|
127
|
+
var runner = (window.mochaPhantomJS || window.mocha).run(function (failures) {
|
|
128
|
+
if (window.location.search.indexOf('debug') === -1)
|
|
129
|
+
qs('#mocha').style.display = 'block'
|
|
130
|
+
console.log(failures)
|
|
135
131
|
})
|
|
136
|
-
|
|
137
|
-
|
|
132
|
+
if (window.location.search.indexOf('debug') !== -1) {
|
|
133
|
+
runner.on('fail', function (test, err) {
|
|
134
|
+
console.log(test.title, test.err)
|
|
135
|
+
console.log(test.err.expected, test.err.actual)
|
|
136
|
+
console.log(test.err.stack)
|
|
137
|
+
})
|
|
138
|
+
sinon.log = function (message) {
|
|
139
|
+
console.log(message)
|
|
140
|
+
}
|
|
138
141
|
}
|
|
139
|
-
}
|
|
142
|
+
})
|
|
140
143
|
</script>
|
|
141
144
|
</body>
|
|
142
145
|
</html>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Colors. */
|
|
3
|
+
--color-waterMint: #B9F5D2;
|
|
4
|
+
--color-darkBlue: #263B58;
|
|
5
|
+
--color-lightGray: #ddd;
|
|
6
|
+
--color-darkGray: #323737;
|
|
7
|
+
|
|
8
|
+
/* Buttons. */
|
|
9
|
+
--button-primary-background: var(--color-waterMint);
|
|
10
|
+
--button-primary-color: var(--color-darkBlue);
|
|
11
|
+
--button-neutral-background: var(--color-lightGray);
|
|
12
|
+
--button-neutral-color: var(--color-darkGray);
|
|
13
|
+
}
|