umap-project 2.8.0b0__py3-none-any.whl → 2.8.2__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/decorators.py +3 -1
- umap/locale/ar/LC_MESSAGES/django.mo +0 -0
- umap/locale/ar/LC_MESSAGES/django.po +45 -30
- umap/locale/br/LC_MESSAGES/django.mo +0 -0
- umap/locale/br/LC_MESSAGES/django.po +49 -34
- umap/locale/ca/LC_MESSAGES/django.mo +0 -0
- umap/locale/ca/LC_MESSAGES/django.po +45 -30
- umap/locale/cs_CZ/LC_MESSAGES/django.mo +0 -0
- umap/locale/cs_CZ/LC_MESSAGES/django.po +52 -37
- umap/locale/da/LC_MESSAGES/django.mo +0 -0
- umap/locale/da/LC_MESSAGES/django.po +45 -30
- umap/locale/de/LC_MESSAGES/django.mo +0 -0
- umap/locale/de/LC_MESSAGES/django.po +45 -30
- umap/locale/el/LC_MESSAGES/django.mo +0 -0
- umap/locale/el/LC_MESSAGES/django.po +45 -30
- umap/locale/en/LC_MESSAGES/django.po +44 -29
- umap/locale/es/LC_MESSAGES/django.mo +0 -0
- umap/locale/es/LC_MESSAGES/django.po +45 -30
- umap/locale/et/LC_MESSAGES/django.mo +0 -0
- umap/locale/et/LC_MESSAGES/django.po +45 -30
- umap/locale/eu/LC_MESSAGES/django.mo +0 -0
- umap/locale/eu/LC_MESSAGES/django.po +65 -50
- umap/locale/fa_IR/LC_MESSAGES/django.mo +0 -0
- umap/locale/fa_IR/LC_MESSAGES/django.po +45 -30
- umap/locale/fr/LC_MESSAGES/django.mo +0 -0
- umap/locale/fr/LC_MESSAGES/django.po +45 -30
- umap/locale/gl/LC_MESSAGES/django.mo +0 -0
- umap/locale/gl/LC_MESSAGES/django.po +45 -30
- umap/locale/he/LC_MESSAGES/django.mo +0 -0
- umap/locale/he/LC_MESSAGES/django.po +45 -30
- umap/locale/hu/LC_MESSAGES/django.mo +0 -0
- umap/locale/hu/LC_MESSAGES/django.po +51 -36
- umap/locale/is/LC_MESSAGES/django.mo +0 -0
- umap/locale/is/LC_MESSAGES/django.po +45 -30
- umap/locale/it/LC_MESSAGES/django.mo +0 -0
- umap/locale/it/LC_MESSAGES/django.po +45 -30
- umap/locale/ja/LC_MESSAGES/django.mo +0 -0
- umap/locale/ja/LC_MESSAGES/django.po +45 -30
- umap/locale/ko/LC_MESSAGES/django.mo +0 -0
- umap/locale/ko/LC_MESSAGES/django.po +45 -30
- umap/locale/lt/LC_MESSAGES/django.mo +0 -0
- umap/locale/lt/LC_MESSAGES/django.po +45 -30
- umap/locale/ms/LC_MESSAGES/django.mo +0 -0
- umap/locale/ms/LC_MESSAGES/django.po +45 -30
- umap/locale/nl/LC_MESSAGES/django.mo +0 -0
- umap/locale/nl/LC_MESSAGES/django.po +45 -30
- umap/locale/pl/LC_MESSAGES/django.mo +0 -0
- umap/locale/pl/LC_MESSAGES/django.po +45 -30
- umap/locale/pt/LC_MESSAGES/django.mo +0 -0
- umap/locale/pt/LC_MESSAGES/django.po +45 -30
- umap/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- umap/locale/pt_BR/LC_MESSAGES/django.po +45 -30
- umap/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
- umap/locale/pt_PT/LC_MESSAGES/django.po +45 -30
- umap/locale/ru/LC_MESSAGES/django.mo +0 -0
- umap/locale/ru/LC_MESSAGES/django.po +45 -30
- umap/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
- umap/locale/sk_SK/LC_MESSAGES/django.po +45 -30
- umap/locale/sl/LC_MESSAGES/django.mo +0 -0
- umap/locale/sl/LC_MESSAGES/django.po +45 -30
- umap/locale/sr/LC_MESSAGES/django.mo +0 -0
- umap/locale/sr/LC_MESSAGES/django.po +45 -30
- umap/locale/sv/LC_MESSAGES/django.mo +0 -0
- umap/locale/sv/LC_MESSAGES/django.po +45 -30
- umap/locale/th_TH/LC_MESSAGES/django.mo +0 -0
- umap/locale/th_TH/LC_MESSAGES/django.po +45 -30
- umap/locale/tr/LC_MESSAGES/django.mo +0 -0
- umap/locale/tr/LC_MESSAGES/django.po +45 -30
- umap/locale/uk_UA/LC_MESSAGES/django.mo +0 -0
- umap/locale/uk_UA/LC_MESSAGES/django.po +45 -30
- umap/locale/zh_TW/LC_MESSAGES/django.mo +0 -0
- umap/locale/zh_TW/LC_MESSAGES/django.po +50 -35
- umap/static/umap/content.css +18 -13
- umap/static/umap/css/bar.css +4 -0
- umap/static/umap/img/logo_lightcyan.svg +4 -0
- umap/static/umap/js/modules/caption.js +73 -73
- umap/static/umap/js/modules/data/features.js +8 -5
- umap/static/umap/js/modules/data/layer.js +13 -8
- umap/static/umap/js/modules/drop.js +55 -0
- umap/static/umap/js/modules/importer.js +10 -5
- umap/static/umap/js/modules/rendering/map.js +2 -1
- umap/static/umap/js/modules/rendering/popup.js +9 -10
- umap/static/umap/js/modules/rendering/template.js +53 -9
- umap/static/umap/js/modules/schema.js +1 -0
- umap/static/umap/js/modules/sync/engine.js +56 -13
- umap/static/umap/js/modules/sync/updaters.js +4 -1
- umap/static/umap/js/modules/sync/websocket.js +47 -2
- umap/static/umap/js/modules/ui/bar.js +1 -1
- umap/static/umap/js/modules/umap.js +40 -24
- umap/static/umap/js/modules/utils.js +2 -0
- umap/static/umap/js/umap.controls.js +2 -52
- umap/static/umap/locale/cs_CZ.js +13 -11
- umap/static/umap/locale/cs_CZ.json +13 -11
- umap/static/umap/locale/en.js +2 -1
- umap/static/umap/locale/en.json +2 -1
- umap/static/umap/locale/fr.js +2 -1
- umap/static/umap/locale/fr.json +2 -1
- umap/static/umap/locale/hu.js +27 -24
- umap/static/umap/locale/hu.json +27 -24
- umap/static/umap/locale/zh_TW.js +13 -11
- umap/static/umap/locale/zh_TW.json +13 -11
- umap/static/umap/unittests/sync.js +4 -1
- umap/templates/403.html +12 -0
- umap/templates/404.html +4 -13
- umap/templates/40x.html +9 -0
- umap/tests/integration/conftest.py +3 -3
- umap/tests/integration/test_websocket_sync.py +69 -0
- umap/websocket_server.py +8 -1
- {umap_project-2.8.0b0.dist-info → umap_project-2.8.2.dist-info}/METADATA +5 -5
- {umap_project-2.8.0b0.dist-info → umap_project-2.8.2.dist-info}/RECORD +114 -110
- {umap_project-2.8.0b0.dist-info → umap_project-2.8.2.dist-info}/WHEEL +0 -0
- {umap_project-2.8.0b0.dist-info → umap_project-2.8.2.dist-info}/entry_points.txt +0 -0
- {umap_project-2.8.0b0.dist-info → umap_project-2.8.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -337,52 +337,6 @@ U.DrawToolbar = L.Toolbar.Control.extend({
|
|
|
337
337
|
},
|
|
338
338
|
})
|
|
339
339
|
|
|
340
|
-
U.DropControl = L.Class.extend({
|
|
341
|
-
initialize: function (map) {
|
|
342
|
-
this.map = map
|
|
343
|
-
this.dropzone = map._container
|
|
344
|
-
},
|
|
345
|
-
|
|
346
|
-
enable: function () {
|
|
347
|
-
L.DomEvent.on(this.dropzone, 'dragenter', this.dragenter, this)
|
|
348
|
-
L.DomEvent.on(this.dropzone, 'dragover', this.dragover, this)
|
|
349
|
-
L.DomEvent.on(this.dropzone, 'drop', this.drop, this)
|
|
350
|
-
L.DomEvent.on(this.dropzone, 'dragleave', this.dragleave, this)
|
|
351
|
-
},
|
|
352
|
-
|
|
353
|
-
disable: function () {
|
|
354
|
-
L.DomEvent.off(this.dropzone, 'dragenter', this.dragenter, this)
|
|
355
|
-
L.DomEvent.off(this.dropzone, 'dragover', this.dragover, this)
|
|
356
|
-
L.DomEvent.off(this.dropzone, 'drop', this.drop, this)
|
|
357
|
-
L.DomEvent.off(this.dropzone, 'dragleave', this.dragleave, this)
|
|
358
|
-
},
|
|
359
|
-
|
|
360
|
-
dragenter: function (event) {
|
|
361
|
-
L.DomEvent.stop(event)
|
|
362
|
-
this.map.scrollWheelZoom.disable()
|
|
363
|
-
this.dropzone.classList.add('umap-dragover')
|
|
364
|
-
},
|
|
365
|
-
|
|
366
|
-
dragover: (event) => {
|
|
367
|
-
L.DomEvent.stop(event)
|
|
368
|
-
},
|
|
369
|
-
|
|
370
|
-
drop: function (event) {
|
|
371
|
-
this.map.scrollWheelZoom.enable()
|
|
372
|
-
this.dropzone.classList.remove('umap-dragover')
|
|
373
|
-
L.DomEvent.stop(event)
|
|
374
|
-
for (const file of event.dataTransfer.files) {
|
|
375
|
-
this.map._umap.processFileToImport(file)
|
|
376
|
-
}
|
|
377
|
-
this.map._umap.onceDataLoaded(this.map._umap.fitDataBounds)
|
|
378
|
-
},
|
|
379
|
-
|
|
380
|
-
dragleave: function () {
|
|
381
|
-
this.map.scrollWheelZoom.enable()
|
|
382
|
-
this.dropzone.classList.remove('umap-dragover')
|
|
383
|
-
},
|
|
384
|
-
})
|
|
385
|
-
|
|
386
340
|
U.EditControl = L.Control.extend({
|
|
387
341
|
options: {
|
|
388
342
|
position: 'topright',
|
|
@@ -541,11 +495,7 @@ U.StarControl = L.Control.Button.extend({
|
|
|
541
495
|
options: {
|
|
542
496
|
position: 'topleft',
|
|
543
497
|
title: L._('Star this map'),
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
getClassName: function () {
|
|
547
|
-
const status = this._umap.properties.starred ? ' starred' : ''
|
|
548
|
-
return `leaflet-control-star umap-control${status}`
|
|
498
|
+
className: 'leaflet-control-star map-star umap-control',
|
|
549
499
|
},
|
|
550
500
|
|
|
551
501
|
onClick: function () {
|
|
@@ -850,7 +800,7 @@ U.Search = L.PhotonSearch.extend({
|
|
|
850
800
|
})
|
|
851
801
|
L.DomEvent.on(edit, 'mousedown', (e) => {
|
|
852
802
|
L.DomEvent.stop(e)
|
|
853
|
-
const datalayer = this.map.defaultEditDataLayer()
|
|
803
|
+
const datalayer = this.map._umap.defaultEditDataLayer()
|
|
854
804
|
const layer = datalayer.makeFeature(feature)
|
|
855
805
|
layer.isDirty = true
|
|
856
806
|
layer.edit()
|
umap/static/umap/locale/cs_CZ.js
CHANGED
|
@@ -183,12 +183,12 @@ const locale = {
|
|
|
183
183
|
"Icon shape": "Tvar ikony",
|
|
184
184
|
"Icon symbol": "Symbol ikony",
|
|
185
185
|
"If false, the polygon or line will act as a part of the underlying map.": "Pokud je hodnota false, polygon nebo linie bude fungovat jako součást podkladové mapy.",
|
|
186
|
-
"Iframe with custom height (in px): {{{https://iframe.url.com|height}}}": "Iframe
|
|
187
|
-
"Iframe with custom height and width (in px): {{{https://iframe.url.com|height*width}}}": "Iframe
|
|
186
|
+
"Iframe with custom height (in px): {{{https://iframe.url.com|height}}}": "Iframe s vlastní výškou (v px): 1{{{https://iframe.url.com|výška}}}",
|
|
187
|
+
"Iframe with custom height and width (in px): {{{https://iframe.url.com|height*width}}}": "Iframe s vlastní výškou a šířkou (v px): 1{{{https://iframe.url.com|výška*šířka}}}",
|
|
188
188
|
"iframe": "iframe",
|
|
189
189
|
"Iframe: {{{https://iframe.url.com}}}": "Iframe: {{{https://iframe.url.com}}}",
|
|
190
|
-
"Image with custom width (in px): {{https://image.url.com|width}}": "
|
|
191
|
-
"Image: {{https://image.url.com}}": "
|
|
190
|
+
"Image with custom width (in px): {{https://image.url.com|width}}": "Obrázek s vlastní šířkou (v px): 1{{{https://iframe.url.com|šířka}}}",
|
|
191
|
+
"Image: {{https://image.url.com}}": "Obrázek: 1{{https://obrázek.url.com}}",
|
|
192
192
|
"Import data": "Import dat",
|
|
193
193
|
"Import in a new layer": "Importovat do nové vrstvy",
|
|
194
194
|
"Imports all umap data, including layers and settings.": "Importuje všechy data umapy, včetně vrstev a nastavení",
|
|
@@ -216,7 +216,7 @@ const locale = {
|
|
|
216
216
|
"Limit bounds": "Hranice zobrazení",
|
|
217
217
|
"Link to view the map": "Odkaz pro zobrazení mapy",
|
|
218
218
|
"Link to…": "Odkaz na…",
|
|
219
|
-
"Link with text: [[https://example.com|text of the link]]": "
|
|
219
|
+
"Link with text: [[https://example.com|text of the link]]": "Odkaz s textem: [[https://priklad.cz|text odkazu]]",
|
|
220
220
|
"Long credits": "Dlouhý text autorství",
|
|
221
221
|
"Longitude": "Délka",
|
|
222
222
|
"Make main shape": "Učinit hlavním tvarem",
|
|
@@ -320,7 +320,7 @@ const locale = {
|
|
|
320
320
|
"Show this layer in the caption": "Zobrazit tuto vrstvu v nadpisu",
|
|
321
321
|
"Show/hide layer": "Skrytí/zobrazení vrstvy",
|
|
322
322
|
"Side panel": "Boční panel",
|
|
323
|
-
"Simple link: [[https://example.com]]": "
|
|
323
|
+
"Simple link: [[https://example.com]]": "Jednoduchý odkaz: [[https://priklad.cz]]",
|
|
324
324
|
"Simplify": "Zjednodušit",
|
|
325
325
|
"Skipping unknown geometry.type: {type}": "Přeskakuji neznámý geometry.type: {type}",
|
|
326
326
|
"Slideshow": "Prezentace",
|
|
@@ -516,11 +516,13 @@ const locale = {
|
|
|
516
516
|
"show/hide all layers": "zobrazit/skrýt všechny vrstvy",
|
|
517
517
|
"zoom to data extent": "přiblížit na rozsah dat",
|
|
518
518
|
"download visible data": "stáhnout viditelná data",
|
|
519
|
-
"{connectedPeers} peer(s) currently connected to this map": "{connectedPeers}
|
|
520
|
-
"Import helpers": "
|
|
521
|
-
"Import helpers will fill the URL field for you.": "
|
|
522
|
-
"Wikipedia": "
|
|
523
|
-
"Save draft": "
|
|
519
|
+
"{connectedPeers} peer(s) currently connected to this map": "K této mapě je aktuálně připojeno {connectedPeers} vrstevník(ů)",
|
|
520
|
+
"Import helpers": "Pomocníci pro import",
|
|
521
|
+
"Import helpers will fill the URL field for you.": "Pomocníci pro import vyplní pole URL za vás.",
|
|
522
|
+
"Wikipedia": "Wikipedie",
|
|
523
|
+
"Save draft": "Uložit koncept",
|
|
524
|
+
"No data has been found for import": "Nebyla nalezena žádná data pro import",
|
|
525
|
+
"Successfully imported {count} feature(s)": "Počet úspěšně importovaných prvků: {count}"
|
|
524
526
|
}
|
|
525
527
|
L.registerLocale("cs_CZ", locale)
|
|
526
528
|
L.setLocale("cs_CZ")
|
|
@@ -183,12 +183,12 @@
|
|
|
183
183
|
"Icon shape": "Tvar ikony",
|
|
184
184
|
"Icon symbol": "Symbol ikony",
|
|
185
185
|
"If false, the polygon or line will act as a part of the underlying map.": "Pokud je hodnota false, polygon nebo linie bude fungovat jako součást podkladové mapy.",
|
|
186
|
-
"Iframe with custom height (in px): {{{https://iframe.url.com|height}}}": "Iframe
|
|
187
|
-
"Iframe with custom height and width (in px): {{{https://iframe.url.com|height*width}}}": "Iframe
|
|
186
|
+
"Iframe with custom height (in px): {{{https://iframe.url.com|height}}}": "Iframe s vlastní výškou (v px): 1{{{https://iframe.url.com|výška}}}",
|
|
187
|
+
"Iframe with custom height and width (in px): {{{https://iframe.url.com|height*width}}}": "Iframe s vlastní výškou a šířkou (v px): 1{{{https://iframe.url.com|výška*šířka}}}",
|
|
188
188
|
"iframe": "iframe",
|
|
189
189
|
"Iframe: {{{https://iframe.url.com}}}": "Iframe: {{{https://iframe.url.com}}}",
|
|
190
|
-
"Image with custom width (in px): {{https://image.url.com|width}}": "
|
|
191
|
-
"Image: {{https://image.url.com}}": "
|
|
190
|
+
"Image with custom width (in px): {{https://image.url.com|width}}": "Obrázek s vlastní šířkou (v px): 1{{{https://iframe.url.com|šířka}}}",
|
|
191
|
+
"Image: {{https://image.url.com}}": "Obrázek: 1{{https://obrázek.url.com}}",
|
|
192
192
|
"Import data": "Import dat",
|
|
193
193
|
"Import in a new layer": "Importovat do nové vrstvy",
|
|
194
194
|
"Imports all umap data, including layers and settings.": "Importuje všechy data umapy, včetně vrstev a nastavení",
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
"Limit bounds": "Hranice zobrazení",
|
|
217
217
|
"Link to view the map": "Odkaz pro zobrazení mapy",
|
|
218
218
|
"Link to…": "Odkaz na…",
|
|
219
|
-
"Link with text: [[https://example.com|text of the link]]": "
|
|
219
|
+
"Link with text: [[https://example.com|text of the link]]": "Odkaz s textem: [[https://priklad.cz|text odkazu]]",
|
|
220
220
|
"Long credits": "Dlouhý text autorství",
|
|
221
221
|
"Longitude": "Délka",
|
|
222
222
|
"Make main shape": "Učinit hlavním tvarem",
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
"Show this layer in the caption": "Zobrazit tuto vrstvu v nadpisu",
|
|
321
321
|
"Show/hide layer": "Skrytí/zobrazení vrstvy",
|
|
322
322
|
"Side panel": "Boční panel",
|
|
323
|
-
"Simple link: [[https://example.com]]": "
|
|
323
|
+
"Simple link: [[https://example.com]]": "Jednoduchý odkaz: [[https://priklad.cz]]",
|
|
324
324
|
"Simplify": "Zjednodušit",
|
|
325
325
|
"Skipping unknown geometry.type: {type}": "Přeskakuji neznámý geometry.type: {type}",
|
|
326
326
|
"Slideshow": "Prezentace",
|
|
@@ -516,9 +516,11 @@
|
|
|
516
516
|
"show/hide all layers": "zobrazit/skrýt všechny vrstvy",
|
|
517
517
|
"zoom to data extent": "přiblížit na rozsah dat",
|
|
518
518
|
"download visible data": "stáhnout viditelná data",
|
|
519
|
-
"{connectedPeers} peer(s) currently connected to this map": "{connectedPeers}
|
|
520
|
-
"Import helpers": "
|
|
521
|
-
"Import helpers will fill the URL field for you.": "
|
|
522
|
-
"Wikipedia": "
|
|
523
|
-
"Save draft": "
|
|
519
|
+
"{connectedPeers} peer(s) currently connected to this map": "K této mapě je aktuálně připojeno {connectedPeers} vrstevník(ů)",
|
|
520
|
+
"Import helpers": "Pomocníci pro import",
|
|
521
|
+
"Import helpers will fill the URL field for you.": "Pomocníci pro import vyplní pole URL za vás.",
|
|
522
|
+
"Wikipedia": "Wikipedie",
|
|
523
|
+
"Save draft": "Uložit koncept",
|
|
524
|
+
"No data has been found for import": "Nebyla nalezena žádná data pro import",
|
|
525
|
+
"Successfully imported {count} feature(s)": "Počet úspěšně importovaných prvků: {count}"
|
|
524
526
|
}
|
umap/static/umap/locale/en.js
CHANGED
|
@@ -522,7 +522,8 @@ const locale = {
|
|
|
522
522
|
"Wikipedia": "Wikipedia",
|
|
523
523
|
"Save draft": "Save draft",
|
|
524
524
|
"No data has been found for import": "No data has been found for import",
|
|
525
|
-
"Successfully imported {count} feature(s)": "Successfully imported {count} feature(s)"
|
|
525
|
+
"Successfully imported {count} feature(s)": "Successfully imported {count} feature(s)",
|
|
526
|
+
"Disconnected": "Disconnected"
|
|
526
527
|
}
|
|
527
528
|
L.registerLocale("en", locale)
|
|
528
529
|
L.setLocale("en")
|
umap/static/umap/locale/en.json
CHANGED
|
@@ -522,5 +522,6 @@
|
|
|
522
522
|
"Wikipedia": "Wikipedia",
|
|
523
523
|
"Save draft": "Save draft",
|
|
524
524
|
"No data has been found for import": "No data has been found for import",
|
|
525
|
-
"Successfully imported {count} feature(s)": "Successfully imported {count} feature(s)"
|
|
525
|
+
"Successfully imported {count} feature(s)": "Successfully imported {count} feature(s)",
|
|
526
|
+
"Disconnected": "Disconnected"
|
|
526
527
|
}
|
umap/static/umap/locale/fr.js
CHANGED
|
@@ -522,7 +522,8 @@ const locale = {
|
|
|
522
522
|
"Wikipedia": "Wikipedia",
|
|
523
523
|
"Save draft": "Enregistrer le brouillon",
|
|
524
524
|
"No data has been found for import": "Aucunes données à importer",
|
|
525
|
-
"Successfully imported {count} feature(s)": "{count} élément(s) ajouté(s) à la carte"
|
|
525
|
+
"Successfully imported {count} feature(s)": "{count} élément(s) ajouté(s) à la carte",
|
|
526
|
+
"Disconnected": "Déconnecté"
|
|
526
527
|
}
|
|
527
528
|
L.registerLocale("fr", locale)
|
|
528
529
|
L.setLocale("fr")
|
umap/static/umap/locale/fr.json
CHANGED
|
@@ -522,5 +522,6 @@
|
|
|
522
522
|
"Wikipedia": "Wikipedia",
|
|
523
523
|
"Save draft": "Enregistrer le brouillon",
|
|
524
524
|
"No data has been found for import": "Aucunes données à importer",
|
|
525
|
-
"Successfully imported {count} feature(s)": "{count} élément(s) ajouté(s) à la carte"
|
|
525
|
+
"Successfully imported {count} feature(s)": "{count} élément(s) ajouté(s) à la carte",
|
|
526
|
+
"Disconnected": "Déconnecté"
|
|
526
527
|
}
|
umap/static/umap/locale/hu.js
CHANGED
|
@@ -183,12 +183,12 @@ const locale = {
|
|
|
183
183
|
"Icon shape": "Ikon alakja",
|
|
184
184
|
"Icon symbol": "Ikonszimbólum",
|
|
185
185
|
"If false, the polygon or line will act as a part of the underlying map.": "Ha hamis, a sokszög vagy vonal az alapul szolgáló térkép részeként viselkedik.",
|
|
186
|
-
"Iframe with custom height (in px): {{{https://iframe.url.com|height}}}": "
|
|
187
|
-
"Iframe with custom height and width (in px): {{{https://iframe.url.com|height*width}}}": "
|
|
188
|
-
"iframe": "
|
|
189
|
-
"Iframe: {{{https://iframe.url.com}}}": "
|
|
190
|
-
"Image with custom width (in px): {{https://image.url.com|width}}": "
|
|
191
|
-
"Image: {{https://image.url.com}}": "
|
|
186
|
+
"Iframe with custom height (in px): {{{https://iframe.url.com|height}}}": "iFrame egyedi magassággal (képpont): {{{https://iframe.url.com|height}}}",
|
|
187
|
+
"Iframe with custom height and width (in px): {{{https://iframe.url.com|height*width}}}": "iFrame egyedi magassággal és szélességgel (képpont): {{{https://iframe.url.com|height*width}}}",
|
|
188
|
+
"iframe": "iFrame",
|
|
189
|
+
"Iframe: {{{https://iframe.url.com}}}": "iFrame: {{{https://iframe.url.com}}}",
|
|
190
|
+
"Image with custom width (in px): {{https://image.url.com|width}}": "Kép egyedi szélességgel (képpont): {{https://image.url.com|width}}",
|
|
191
|
+
"Image: {{https://image.url.com}}": "Kép: {{https://image.url.com}}",
|
|
192
192
|
"Import data": "Adatok importálása",
|
|
193
193
|
"Import in a new layer": "Importálás új rétegbe",
|
|
194
194
|
"Imports all umap data, including layers and settings.": "Minden uMap-adatot (többek között a rétegeket és a beállításokat is) importálja.",
|
|
@@ -216,7 +216,7 @@ const locale = {
|
|
|
216
216
|
"Limit bounds": "Térkép szélei",
|
|
217
217
|
"Link to view the map": "Link a térkép megtekintéséhez",
|
|
218
218
|
"Link to…": "Link…",
|
|
219
|
-
"Link with text: [[https://example.com|text of the link]]": "Link
|
|
219
|
+
"Link with text: [[https://example.com|text of the link]]": "Link szöveggel: [[https://peldaul.hu|a link példaszövege]]",
|
|
220
220
|
"Long credits": "Alkotók részletesen",
|
|
221
221
|
"Longitude": "Hosszúság",
|
|
222
222
|
"Make main shape": "Legyen főalakzat",
|
|
@@ -320,7 +320,7 @@ const locale = {
|
|
|
320
320
|
"Show this layer in the caption": "Réteg megjelenítése a címsávban",
|
|
321
321
|
"Show/hide layer": "Réteg megjelenítése/elrejtése",
|
|
322
322
|
"Side panel": "Oldalsó panel",
|
|
323
|
-
"Simple link: [[https://example.com]]": "
|
|
323
|
+
"Simple link: [[https://example.com]]": "Egyszerű link: [[https://peldaul.hu]]",
|
|
324
324
|
"Simplify": "Egyszerűsítés",
|
|
325
325
|
"Skipping unknown geometry.type: {type}": "Ismeretlen ({type}) alakzattípus kihagyása",
|
|
326
326
|
"Slideshow": "Diavetítés",
|
|
@@ -505,22 +505,25 @@ const locale = {
|
|
|
505
505
|
"Display the open browser control": "'Böngésző megnyitása' vezérlő megjelenítése",
|
|
506
506
|
"Copy as GeoJSON": "Másolás GeoJSON-ként",
|
|
507
507
|
"Please zoom in to edit the geometry": "Az alakzat szerkesztéséhez nagyítson",
|
|
508
|
-
"New map": "
|
|
509
|
-
"My maps": "
|
|
510
|
-
"My teams": "
|
|
511
|
-
"My profile": "
|
|
512
|
-
"Type new owner's username": "
|
|
513
|
-
"Type editor's username": "
|
|
514
|
-
"Map": "
|
|
515
|
-
"Manage collaborators": "
|
|
516
|
-
"show/hide all layers": "
|
|
517
|
-
"zoom to data extent": "
|
|
518
|
-
"download visible data": "
|
|
519
|
-
"{connectedPeers} peer(s) currently connected to this map": "{connectedPeers}
|
|
520
|
-
"Import helpers": "
|
|
521
|
-
"Import helpers will fill the URL field for you.": "
|
|
522
|
-
"Wikipedia": "
|
|
523
|
-
"Save draft": "
|
|
508
|
+
"New map": "Új térkép",
|
|
509
|
+
"My maps": "Térképeim",
|
|
510
|
+
"My teams": "Csoportjaim",
|
|
511
|
+
"My profile": "Profilom",
|
|
512
|
+
"Type new owner's username": "Add meg az új tulajdonos felhasználónevét",
|
|
513
|
+
"Type editor's username": "Add meg a szerkesztő felhasználónevét",
|
|
514
|
+
"Map": "Térkép",
|
|
515
|
+
"Manage collaborators": "Együttműködők kezelése",
|
|
516
|
+
"show/hide all layers": "összes réteg megjelenítése/elrejtése",
|
|
517
|
+
"zoom to data extent": "nagyítás az adatok kiterjedésére",
|
|
518
|
+
"download visible data": "látható adatok letöltése",
|
|
519
|
+
"{connectedPeers} peer(s) currently connected to this map": "Jelenleg {connectedPeers} társ kapcsolódik ehhez a térképhez",
|
|
520
|
+
"Import helpers": "Importálássegítők",
|
|
521
|
+
"Import helpers will fill the URL field for you.": "Az importálássegítők kitöltik neked az URL-mezőt.",
|
|
522
|
+
"Wikipedia": "Wikipédia",
|
|
523
|
+
"Save draft": "Piszkozat mentése",
|
|
524
|
+
"No data has been found for import": "Nem található adat az importáláshoz",
|
|
525
|
+
"Successfully imported {count} feature(s)": "{count} objektum sikeresen importálva",
|
|
526
|
+
"Disconnected": "Kapcsolat megszakadt"
|
|
524
527
|
}
|
|
525
528
|
L.registerLocale("hu", locale)
|
|
526
529
|
L.setLocale("hu")
|
umap/static/umap/locale/hu.json
CHANGED
|
@@ -183,12 +183,12 @@
|
|
|
183
183
|
"Icon shape": "Ikon alakja",
|
|
184
184
|
"Icon symbol": "Ikonszimbólum",
|
|
185
185
|
"If false, the polygon or line will act as a part of the underlying map.": "Ha hamis, a sokszög vagy vonal az alapul szolgáló térkép részeként viselkedik.",
|
|
186
|
-
"Iframe with custom height (in px): {{{https://iframe.url.com|height}}}": "
|
|
187
|
-
"Iframe with custom height and width (in px): {{{https://iframe.url.com|height*width}}}": "
|
|
188
|
-
"iframe": "
|
|
189
|
-
"Iframe: {{{https://iframe.url.com}}}": "
|
|
190
|
-
"Image with custom width (in px): {{https://image.url.com|width}}": "
|
|
191
|
-
"Image: {{https://image.url.com}}": "
|
|
186
|
+
"Iframe with custom height (in px): {{{https://iframe.url.com|height}}}": "iFrame egyedi magassággal (képpont): {{{https://iframe.url.com|height}}}",
|
|
187
|
+
"Iframe with custom height and width (in px): {{{https://iframe.url.com|height*width}}}": "iFrame egyedi magassággal és szélességgel (képpont): {{{https://iframe.url.com|height*width}}}",
|
|
188
|
+
"iframe": "iFrame",
|
|
189
|
+
"Iframe: {{{https://iframe.url.com}}}": "iFrame: {{{https://iframe.url.com}}}",
|
|
190
|
+
"Image with custom width (in px): {{https://image.url.com|width}}": "Kép egyedi szélességgel (képpont): {{https://image.url.com|width}}",
|
|
191
|
+
"Image: {{https://image.url.com}}": "Kép: {{https://image.url.com}}",
|
|
192
192
|
"Import data": "Adatok importálása",
|
|
193
193
|
"Import in a new layer": "Importálás új rétegbe",
|
|
194
194
|
"Imports all umap data, including layers and settings.": "Minden uMap-adatot (többek között a rétegeket és a beállításokat is) importálja.",
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
"Limit bounds": "Térkép szélei",
|
|
217
217
|
"Link to view the map": "Link a térkép megtekintéséhez",
|
|
218
218
|
"Link to…": "Link…",
|
|
219
|
-
"Link with text: [[https://example.com|text of the link]]": "Link
|
|
219
|
+
"Link with text: [[https://example.com|text of the link]]": "Link szöveggel: [[https://peldaul.hu|a link példaszövege]]",
|
|
220
220
|
"Long credits": "Alkotók részletesen",
|
|
221
221
|
"Longitude": "Hosszúság",
|
|
222
222
|
"Make main shape": "Legyen főalakzat",
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
"Show this layer in the caption": "Réteg megjelenítése a címsávban",
|
|
321
321
|
"Show/hide layer": "Réteg megjelenítése/elrejtése",
|
|
322
322
|
"Side panel": "Oldalsó panel",
|
|
323
|
-
"Simple link: [[https://example.com]]": "
|
|
323
|
+
"Simple link: [[https://example.com]]": "Egyszerű link: [[https://peldaul.hu]]",
|
|
324
324
|
"Simplify": "Egyszerűsítés",
|
|
325
325
|
"Skipping unknown geometry.type: {type}": "Ismeretlen ({type}) alakzattípus kihagyása",
|
|
326
326
|
"Slideshow": "Diavetítés",
|
|
@@ -505,20 +505,23 @@
|
|
|
505
505
|
"Display the open browser control": "'Böngésző megnyitása' vezérlő megjelenítése",
|
|
506
506
|
"Copy as GeoJSON": "Másolás GeoJSON-ként",
|
|
507
507
|
"Please zoom in to edit the geometry": "Az alakzat szerkesztéséhez nagyítson",
|
|
508
|
-
"New map": "
|
|
509
|
-
"My maps": "
|
|
510
|
-
"My teams": "
|
|
511
|
-
"My profile": "
|
|
512
|
-
"Type new owner's username": "
|
|
513
|
-
"Type editor's username": "
|
|
514
|
-
"Map": "
|
|
515
|
-
"Manage collaborators": "
|
|
516
|
-
"show/hide all layers": "
|
|
517
|
-
"zoom to data extent": "
|
|
518
|
-
"download visible data": "
|
|
519
|
-
"{connectedPeers} peer(s) currently connected to this map": "{connectedPeers}
|
|
520
|
-
"Import helpers": "
|
|
521
|
-
"Import helpers will fill the URL field for you.": "
|
|
522
|
-
"Wikipedia": "
|
|
523
|
-
"Save draft": "
|
|
508
|
+
"New map": "Új térkép",
|
|
509
|
+
"My maps": "Térképeim",
|
|
510
|
+
"My teams": "Csoportjaim",
|
|
511
|
+
"My profile": "Profilom",
|
|
512
|
+
"Type new owner's username": "Add meg az új tulajdonos felhasználónevét",
|
|
513
|
+
"Type editor's username": "Add meg a szerkesztő felhasználónevét",
|
|
514
|
+
"Map": "Térkép",
|
|
515
|
+
"Manage collaborators": "Együttműködők kezelése",
|
|
516
|
+
"show/hide all layers": "összes réteg megjelenítése/elrejtése",
|
|
517
|
+
"zoom to data extent": "nagyítás az adatok kiterjedésére",
|
|
518
|
+
"download visible data": "látható adatok letöltése",
|
|
519
|
+
"{connectedPeers} peer(s) currently connected to this map": "Jelenleg {connectedPeers} társ kapcsolódik ehhez a térképhez",
|
|
520
|
+
"Import helpers": "Importálássegítők",
|
|
521
|
+
"Import helpers will fill the URL field for you.": "Az importálássegítők kitöltik neked az URL-mezőt.",
|
|
522
|
+
"Wikipedia": "Wikipédia",
|
|
523
|
+
"Save draft": "Piszkozat mentése",
|
|
524
|
+
"No data has been found for import": "Nem található adat az importáláshoz",
|
|
525
|
+
"Successfully imported {count} feature(s)": "{count} objektum sikeresen importálva",
|
|
526
|
+
"Disconnected": "Kapcsolat megszakadt"
|
|
524
527
|
}
|
umap/static/umap/locale/zh_TW.js
CHANGED
|
@@ -183,12 +183,12 @@ const locale = {
|
|
|
183
183
|
"Icon shape": "圖示圖形",
|
|
184
184
|
"Icon symbol": "圖示標誌",
|
|
185
185
|
"If false, the polygon or line will act as a part of the underlying map.": "選擇「否」時,多邊形物件會被當成為底圖的一部分。",
|
|
186
|
-
"Iframe with custom height (in px): {{{https://iframe.url.com|height}}}": "
|
|
187
|
-
"Iframe with custom height and width (in px): {{{https://iframe.url.com|height*width}}}": "
|
|
186
|
+
"Iframe with custom height (in px): {{{https://iframe.url.com|height}}}": "iframe 的自訂高度 (px):{{{https://iframe.url.com|height}}}",
|
|
187
|
+
"Iframe with custom height and width (in px): {{{https://iframe.url.com|height*width}}}": "iframe 的自訂高度與寬度 (px):{{{https://iframe.url.com|height*width}}}",
|
|
188
188
|
"iframe": "iframe",
|
|
189
|
-
"Iframe: {{{https://iframe.url.com}}}": "
|
|
190
|
-
"Image with custom width (in px): {{https://image.url.com|width}}": "
|
|
191
|
-
"Image: {{https://image.url.com}}": "
|
|
189
|
+
"Iframe: {{{https://iframe.url.com}}}": "iframe:{{{https://iframe.url.com}}}",
|
|
190
|
+
"Image with custom width (in px): {{https://image.url.com|width}}": "圖片有自訂寬度 (px):{{https://image.url.com|width}}",
|
|
191
|
+
"Image: {{https://image.url.com}}": "圖片:{{https://image.url.com}}",
|
|
192
192
|
"Import data": "匯入資料",
|
|
193
193
|
"Import in a new layer": "匯入至新圖層",
|
|
194
194
|
"Imports all umap data, including layers and settings.": "匯入所有 umap 資料,包含圖層與設定。",
|
|
@@ -216,7 +216,7 @@ const locale = {
|
|
|
216
216
|
"Limit bounds": "限制範圍",
|
|
217
217
|
"Link to view the map": "檢視地圖的連結",
|
|
218
218
|
"Link to…": "連結至...",
|
|
219
|
-
"Link with text: [[https://example.com|text of the link]]": "
|
|
219
|
+
"Link with text: [[https://example.com|text of the link]]": "有文字的連結:[[https://example.com|text of the link]]",
|
|
220
220
|
"Long credits": "詳細工作人員名單",
|
|
221
221
|
"Longitude": "經度",
|
|
222
222
|
"Make main shape": "設為主要外形",
|
|
@@ -320,7 +320,7 @@ const locale = {
|
|
|
320
320
|
"Show this layer in the caption": "在標題顯示此圖層",
|
|
321
321
|
"Show/hide layer": "顯示/隱藏圖層",
|
|
322
322
|
"Side panel": "側邊框",
|
|
323
|
-
"Simple link: [[https://example.com]]": "
|
|
323
|
+
"Simple link: [[https://example.com]]": "簡單連結: [[https://example.com]]",
|
|
324
324
|
"Simplify": "簡化",
|
|
325
325
|
"Skipping unknown geometry.type: {type}": "略過不明的 geometry.type: {type}",
|
|
326
326
|
"Slideshow": "投影片",
|
|
@@ -517,10 +517,12 @@ const locale = {
|
|
|
517
517
|
"zoom to data extent": "切換至資料範圍",
|
|
518
518
|
"download visible data": "下載可視資料",
|
|
519
519
|
"{connectedPeers} peer(s) currently connected to this map": "這份地圖已經有 {connectedPeers} 伙伴連線",
|
|
520
|
-
"Import helpers": "
|
|
521
|
-
"Import helpers will fill the URL field for you.": "
|
|
522
|
-
"Wikipedia": "
|
|
523
|
-
"Save draft": "
|
|
520
|
+
"Import helpers": "匯入幫手",
|
|
521
|
+
"Import helpers will fill the URL field for you.": "匯入幫會為你填入網址",
|
|
522
|
+
"Wikipedia": "維基百科",
|
|
523
|
+
"Save draft": "儲存草稿",
|
|
524
|
+
"No data has been found for import": "匯入時沒有找到資料",
|
|
525
|
+
"Successfully imported {count} feature(s)": "成功匯入 {count} 圖徵"
|
|
524
526
|
}
|
|
525
527
|
L.registerLocale("zh_TW", locale)
|
|
526
528
|
L.setLocale("zh_TW")
|
|
@@ -183,12 +183,12 @@
|
|
|
183
183
|
"Icon shape": "圖示圖形",
|
|
184
184
|
"Icon symbol": "圖示標誌",
|
|
185
185
|
"If false, the polygon or line will act as a part of the underlying map.": "選擇「否」時,多邊形物件會被當成為底圖的一部分。",
|
|
186
|
-
"Iframe with custom height (in px): {{{https://iframe.url.com|height}}}": "
|
|
187
|
-
"Iframe with custom height and width (in px): {{{https://iframe.url.com|height*width}}}": "
|
|
186
|
+
"Iframe with custom height (in px): {{{https://iframe.url.com|height}}}": "iframe 的自訂高度 (px):{{{https://iframe.url.com|height}}}",
|
|
187
|
+
"Iframe with custom height and width (in px): {{{https://iframe.url.com|height*width}}}": "iframe 的自訂高度與寬度 (px):{{{https://iframe.url.com|height*width}}}",
|
|
188
188
|
"iframe": "iframe",
|
|
189
|
-
"Iframe: {{{https://iframe.url.com}}}": "
|
|
190
|
-
"Image with custom width (in px): {{https://image.url.com|width}}": "
|
|
191
|
-
"Image: {{https://image.url.com}}": "
|
|
189
|
+
"Iframe: {{{https://iframe.url.com}}}": "iframe:{{{https://iframe.url.com}}}",
|
|
190
|
+
"Image with custom width (in px): {{https://image.url.com|width}}": "圖片有自訂寬度 (px):{{https://image.url.com|width}}",
|
|
191
|
+
"Image: {{https://image.url.com}}": "圖片:{{https://image.url.com}}",
|
|
192
192
|
"Import data": "匯入資料",
|
|
193
193
|
"Import in a new layer": "匯入至新圖層",
|
|
194
194
|
"Imports all umap data, including layers and settings.": "匯入所有 umap 資料,包含圖層與設定。",
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
"Limit bounds": "限制範圍",
|
|
217
217
|
"Link to view the map": "檢視地圖的連結",
|
|
218
218
|
"Link to…": "連結至...",
|
|
219
|
-
"Link with text: [[https://example.com|text of the link]]": "
|
|
219
|
+
"Link with text: [[https://example.com|text of the link]]": "有文字的連結:[[https://example.com|text of the link]]",
|
|
220
220
|
"Long credits": "詳細工作人員名單",
|
|
221
221
|
"Longitude": "經度",
|
|
222
222
|
"Make main shape": "設為主要外形",
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
"Show this layer in the caption": "在標題顯示此圖層",
|
|
321
321
|
"Show/hide layer": "顯示/隱藏圖層",
|
|
322
322
|
"Side panel": "側邊框",
|
|
323
|
-
"Simple link: [[https://example.com]]": "
|
|
323
|
+
"Simple link: [[https://example.com]]": "簡單連結: [[https://example.com]]",
|
|
324
324
|
"Simplify": "簡化",
|
|
325
325
|
"Skipping unknown geometry.type: {type}": "略過不明的 geometry.type: {type}",
|
|
326
326
|
"Slideshow": "投影片",
|
|
@@ -517,8 +517,10 @@
|
|
|
517
517
|
"zoom to data extent": "切換至資料範圍",
|
|
518
518
|
"download visible data": "下載可視資料",
|
|
519
519
|
"{connectedPeers} peer(s) currently connected to this map": "這份地圖已經有 {connectedPeers} 伙伴連線",
|
|
520
|
-
"Import helpers": "
|
|
521
|
-
"Import helpers will fill the URL field for you.": "
|
|
522
|
-
"Wikipedia": "
|
|
523
|
-
"Save draft": "
|
|
520
|
+
"Import helpers": "匯入幫手",
|
|
521
|
+
"Import helpers will fill the URL field for you.": "匯入幫會為你填入網址",
|
|
522
|
+
"Wikipedia": "維基百科",
|
|
523
|
+
"Save draft": "儲存草稿",
|
|
524
|
+
"No data has been found for import": "匯入時沒有找到資料",
|
|
525
|
+
"Successfully imported {count} feature(s)": "成功匯入 {count} 圖徵"
|
|
524
526
|
}
|
|
@@ -8,8 +8,11 @@ import { MapUpdater } from '../js/modules/sync/updaters.js'
|
|
|
8
8
|
import { SyncEngine, Operations } from '../js/modules/sync/engine.js'
|
|
9
9
|
|
|
10
10
|
describe('SyncEngine', () => {
|
|
11
|
+
const websocketTokenURI = 'http://localhost:8000/api/v1/maps/1/websocket_auth_token/'
|
|
12
|
+
const websocketURI = 'ws://localhost:8000/ws/maps/1/'
|
|
13
|
+
|
|
11
14
|
it('should initialize methods even before start', () => {
|
|
12
|
-
const engine = new SyncEngine({})
|
|
15
|
+
const engine = new SyncEngine({}, websocketTokenURI, websocketURI)
|
|
13
16
|
engine.upsert()
|
|
14
17
|
engine.update()
|
|
15
18
|
engine.delete()
|
umap/templates/403.html
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{% extends "40x.html" %}
|
|
2
|
+
|
|
3
|
+
{% load i18n %}
|
|
4
|
+
|
|
5
|
+
{% block content %}
|
|
6
|
+
<div class="content-40x">
|
|
7
|
+
<h1>{{ exception }}</h1>
|
|
8
|
+
<p>{% blocktrans %}<a href="https://discover.umap-project.org/support/faq/#map-statuses" target="_blank">Find out here the documentation</a> on how to manage map’s permissions.{% endblocktrans %}</p>
|
|
9
|
+
<hr>
|
|
10
|
+
<p><a href="{% url 'home' %}">{% trans "← Go to the homepage" %}</a></p>
|
|
11
|
+
</div>
|
|
12
|
+
{% endblock content %}
|
umap/templates/404.html
CHANGED
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
{% extends "
|
|
1
|
+
{% extends "40x.html" %}
|
|
2
2
|
|
|
3
3
|
{% load i18n static %}
|
|
4
4
|
|
|
5
5
|
{% block content %}
|
|
6
|
-
<div class="
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
<h1>
|
|
10
|
-
4
|
|
11
|
-
<img alt="0" width="128px" height="128px" src="{% static "umap/img/logo.svg" %}">
|
|
12
|
-
4
|
|
13
|
-
</h1>
|
|
14
|
-
<h2>
|
|
15
|
-
Not Found
|
|
16
|
-
</h2>
|
|
17
|
-
</a>
|
|
6
|
+
<div class="content-40x content-404">
|
|
7
|
+
<h1>{% trans "404 Page Not Found" %}</h1>
|
|
8
|
+
<p><a href="{% url 'home' %}">{% trans "← Go to the homepage" %}</a></p>
|
|
18
9
|
</div>
|
|
19
10
|
{% endblock content %}
|
umap/templates/40x.html
ADDED
|
@@ -51,12 +51,12 @@ def page(new_page):
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
@pytest.fixture
|
|
54
|
-
def login(
|
|
55
|
-
def do_login(user):
|
|
54
|
+
def login(new_page, settings, live_server):
|
|
55
|
+
def do_login(user, **kwargs):
|
|
56
56
|
# TODO use storage state to do login only once per session
|
|
57
57
|
# https://playwright.dev/python/docs/auth
|
|
58
58
|
settings.ENABLE_ACCOUNT_LOGIN = True
|
|
59
|
-
page =
|
|
59
|
+
page = new_page(**kwargs)
|
|
60
60
|
page.goto(f"{live_server.url}/en/")
|
|
61
61
|
page.locator(".login").click()
|
|
62
62
|
page.get_by_placeholder("Username").fill(user.username)
|