mirror of
https://github.com/umap-project/umap.git
synced 2025-05-04 05:31:50 +02:00
Compare commits
22 commits
071a8c539d
...
a135e5c3e1
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a135e5c3e1 | ||
![]() |
2ad46046f8 | ||
![]() |
5271d7c19d | ||
![]() |
a535c86f6b | ||
![]() |
9aa1f58dc8 | ||
![]() |
102104f818 | ||
![]() |
35e5a4bda6 | ||
![]() |
6bae315efe | ||
![]() |
93120d91d6 | ||
![]() |
f037973a03 | ||
![]() |
c4614354ae | ||
![]() |
9ed466ea9b | ||
![]() |
168cc0c996 | ||
![]() |
ae4e7eb3e2 | ||
![]() |
3670b7dca6 | ||
![]() |
1c3cf9a7c5 | ||
![]() |
ada44fc0fc | ||
![]() |
ac6964c9f4 | ||
![]() |
82dcd90405 | ||
![]() |
d9e983aed4 | ||
![]() |
8f3f67588a | ||
![]() |
e97b619da8 |
17 changed files with 155 additions and 70 deletions
26
.github/workflows/release-helm.yml
vendored
Normal file
26
.github/workflows/release-helm.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: Release Charts
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
release:
|
||||
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
|
||||
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Publish Helm charts
|
||||
uses: stefanprodan/helm-gh-pages@v1.7.0
|
||||
with:
|
||||
charts_dir: charts
|
||||
linting: off
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
@ -66,7 +66,11 @@ spec:
|
|||
{{- end }}
|
||||
envFrom:
|
||||
- secretRef:
|
||||
{{- if .Values.umap.envFromSecret }}
|
||||
name: {{ .Values.umap.envFromSecret }}
|
||||
{{- else }}
|
||||
name: {{ include "umap.fullname" . }}-env
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /etc/umap/
|
||||
|
@ -80,7 +84,11 @@ spec:
|
|||
volumes:
|
||||
- name: config
|
||||
secret:
|
||||
{{- if .Values.umap.configFromSecret }}
|
||||
secretName: {{ .Values.umap.configFromSecret }}
|
||||
{{- else }}
|
||||
secretName: {{ include "umap.fullname" . }}-config
|
||||
{{- end }}
|
||||
- name: statics
|
||||
emptyDir: {}
|
||||
{{- if .Values.persistence.enabled }}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{ if not .Values.umap.configFromSecret }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
|
@ -7,3 +8,4 @@ metadata:
|
|||
type: Opaque
|
||||
data:
|
||||
umap.conf: {{ .Values.umap.config | b64enc }}
|
||||
{{- end }}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{ if not .Values.umap.envFromSecret }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
|
@ -9,3 +10,4 @@ data:
|
|||
{{- range $key, $value := .Values.umap.environment }}
|
||||
{{ $key }}: "{{ $value | b64enc }}"
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
|
@ -77,11 +77,18 @@ umap:
|
|||
SECRET_KEY: CHANGE_ME
|
||||
STATIC_ROOT: /srv/umap/static
|
||||
MEDIA_ROOT: /srv/umap/uploads
|
||||
# Configure environment variables using an existing secret in the same namespace.
|
||||
# In this case the values above are not used
|
||||
envFromSecret: null
|
||||
|
||||
# You can also provide umap.conf content here:
|
||||
config: |
|
||||
from umap.settings.base import *
|
||||
|
||||
# See: https://github.com/umap-project/umap/blob/master/umap/settings/local.py.sample
|
||||
# Configure config file using an existing secret in the same namespace.
|
||||
# In this case the values above are not used
|
||||
configFromSecret: null
|
||||
|
||||
persistence:
|
||||
enabled: true
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Force rtfd to use a recent version of mkdocs
|
||||
mkdocs==1.6.1
|
||||
pymdown-extensions==10.14.3
|
||||
mkdocs-material==9.6.10
|
||||
mkdocs-material==9.6.11
|
||||
mkdocs-static-i18n==1.3.0
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
# Changelog
|
||||
|
||||
## 3.0.4 - 2025-04-14
|
||||
|
||||
* do not show "back to home" button in iframes by @yohanboniface in #2644
|
||||
* remove "hide home button" shown twice in map settings by @yohanboniface in #2645
|
||||
* adapt Helm chart to match La Suite's expectations by @ohemelaar in #2646
|
||||
* update colors by @yohanboniface in #2647
|
||||
|
||||
|
||||
## 3.0.3 - 2025-04-11
|
||||
|
||||
* do not try to remove a feature not yet added by @yohanboniface in #2637
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Force rtfd to use a recent version of mkdocs
|
||||
mkdocs==1.6.1
|
||||
pymdown-extensions==10.14.3
|
||||
mkdocs-material==9.6.10
|
||||
mkdocs-material==9.6.11
|
||||
mkdocs-static-i18n==1.3.0
|
||||
|
|
|
@ -32,7 +32,7 @@ dependencies = [
|
|||
"django-agnocomplete==2.2.0",
|
||||
"django-environ==0.12.0",
|
||||
"django-probes==1.7.0",
|
||||
"Pillow==11.1.0",
|
||||
"Pillow==11.2.1",
|
||||
"psycopg==3.2.6",
|
||||
"requests==2.32.3",
|
||||
"rcssmin==1.2.1",
|
||||
|
@ -47,7 +47,7 @@ dev = [
|
|||
"ruff==0.11.4",
|
||||
"djlint==1.36.4",
|
||||
"mkdocs==1.6.1",
|
||||
"mkdocs-material==9.6.10",
|
||||
"mkdocs-material==9.6.11",
|
||||
"mkdocs-static-i18n==1.3.0",
|
||||
"vermin==1.6.0",
|
||||
"pymdown-extensions==10.14.3",
|
||||
|
@ -58,20 +58,20 @@ test = [
|
|||
"factory-boy==3.3.3",
|
||||
"playwright>=1.39",
|
||||
"pytest==8.3.5",
|
||||
"pytest-django==4.10.0",
|
||||
"pytest-django==4.11.1",
|
||||
"pytest-playwright==0.7.0",
|
||||
"pytest-rerunfailures==15.0",
|
||||
"pytest-xdist>=3.5.0,<4",
|
||||
"moto[s3]==5.1.3"
|
||||
]
|
||||
docker = [
|
||||
"uvicorn==0.34.0",
|
||||
"uvicorn==0.34.1",
|
||||
]
|
||||
s3 = [
|
||||
"django-storages[s3]==1.14.6",
|
||||
]
|
||||
sync = [
|
||||
"pydantic==2.11.2",
|
||||
"pydantic==2.11.3",
|
||||
"redis==5.2.1",
|
||||
"websockets==15.0.1",
|
||||
]
|
||||
|
|
|
@ -1 +1 @@
|
|||
VERSION = "3.0.3"
|
||||
VERSION = "3.0.4"
|
||||
|
|
|
@ -6,7 +6,7 @@ input[type="text"], input[type="password"], input[type="date"],
|
|||
input[type="datetime-local"], input[type="email"], input[type="number"],
|
||||
input[type="search"], input[type="tel"], input[type="time"], input[type="file"],
|
||||
input[type="url"], textarea {
|
||||
background-color: white;
|
||||
background-color: var(--color-light);
|
||||
border: 2px solid var(--color-darkBlue);
|
||||
color: var(--text-color);
|
||||
display: block;
|
||||
|
@ -47,7 +47,7 @@ input[type=checkbox]:checked:after {
|
|||
}
|
||||
input[data-modified=true] {
|
||||
background-color: var(--color-lightCyan);
|
||||
border: 1px solid var(--color-darkGray);
|
||||
border: 1px solid var(--color-veryDarkGray);
|
||||
}
|
||||
input + select,
|
||||
select + input,
|
||||
|
@ -71,7 +71,7 @@ select {
|
|||
.dark select {
|
||||
color: var(--text-color);
|
||||
background-color: var(--color-darkGray);
|
||||
border-color: var(--color-dark);
|
||||
border-color: var(--color-veryDarkGray);
|
||||
border-width: 1px;
|
||||
}
|
||||
select[multiple="multiple"] {
|
||||
|
@ -89,7 +89,7 @@ input[type="submit"] {
|
|||
text-decoration: none;
|
||||
justify-content: center;
|
||||
background-color: var(--color-darkBlue);
|
||||
color: white;
|
||||
color: var(--color-light);
|
||||
font-weight: normal;
|
||||
min-height: 40px;
|
||||
}
|
||||
|
@ -97,21 +97,21 @@ input[type="submit"] {
|
|||
.dark [type="button"] {
|
||||
background-color: var(--color-darkerGray);
|
||||
color: var(--text-color);
|
||||
border: 1px solid #1b1f20;
|
||||
border: 1px solid var(--color-veryDarkGray);
|
||||
}
|
||||
.button.primary {
|
||||
font-weight: bold;
|
||||
}
|
||||
.dark .button.primary:not([disabled]),
|
||||
.dark [type="button"].primary:not([disabled]) {
|
||||
background-color: var(--color-brightCyan);
|
||||
background-color: var(--color-verySoftCyan);
|
||||
color: var(--color-dark);
|
||||
border: 1px solid #1b1f20;
|
||||
border: 1px solid var(--color-veryDarkGray);
|
||||
}
|
||||
.dark .button:hover,
|
||||
.dark [type="button"]:hover,
|
||||
.dark input[type="submit"]:hover {
|
||||
background-color: #2e3436;
|
||||
background-color: var(--color-darkerGray);
|
||||
}
|
||||
.dark a {
|
||||
color: var(--text-color);
|
||||
|
@ -151,14 +151,14 @@ button.round.small {
|
|||
display: block;
|
||||
padding: 7px 7px;
|
||||
margin-bottom: 14px;
|
||||
background: #393F3F;
|
||||
background: var(--color-mediumGray);
|
||||
color: var(--color-lightGray);
|
||||
font-size: 10px;
|
||||
border-radius: 0 2px;
|
||||
}
|
||||
.content .helptext {
|
||||
background-color: #eee;
|
||||
color: #000;
|
||||
background-color: var(--color-lightGray);
|
||||
color: var(--color-dark);
|
||||
}
|
||||
input + .help-text {
|
||||
margin-top: -14px;
|
||||
|
@ -205,8 +205,8 @@ input + .error {
|
|||
margin-top: -14px;
|
||||
margin-bottom: 14px;
|
||||
background: var(--color-lightGray);
|
||||
color: #fff;
|
||||
background-color: #cc0000;
|
||||
color: var(--color-light);
|
||||
background-color: var(--color-red);
|
||||
font-size: 11px;
|
||||
border-radius: 0 2px;
|
||||
}
|
||||
|
@ -214,14 +214,14 @@ input[type="file"] + .error {
|
|||
margin-top: 0;
|
||||
}
|
||||
input[value]:invalid {
|
||||
border-color: red;
|
||||
background-color: darkred;
|
||||
border-color: var(--color-red);
|
||||
background-color: var(--color-darkRed);
|
||||
}
|
||||
.dark input, .dark textarea {
|
||||
background-color: var(--color-darkerGray);
|
||||
border-color: var(--color-dark);
|
||||
border-color: var(--color-veryDarkGray);
|
||||
border-width: 1px;
|
||||
color: #efefef;
|
||||
color: var(--color-lightGray);
|
||||
}
|
||||
details {
|
||||
margin-bottom: 5px;
|
||||
|
@ -229,7 +229,7 @@ details {
|
|||
border-start-end-radius: 4px;
|
||||
}
|
||||
.dark details {
|
||||
border: 1px solid #222;
|
||||
border: 1px solid var(--color-veryDarkGray);
|
||||
}
|
||||
details fieldset {
|
||||
overflow: hidden;
|
||||
|
@ -245,8 +245,8 @@ details summary {
|
|||
padding: 0 5px;
|
||||
}
|
||||
.dark details summary {
|
||||
background-color: #232729;
|
||||
color: #fff;
|
||||
background-color: var(--color-darkerGray);
|
||||
color: var(--color-light);
|
||||
}
|
||||
.dark details fieldset {
|
||||
border: 1px solid var(--color-darkGray);
|
||||
|
@ -311,33 +311,34 @@ input.switch:empty ~ label:after {
|
|||
width: 6em;
|
||||
-webkit-transition: all 100ms ease-in;
|
||||
transition: all 100ms ease-in;
|
||||
color: #c9c9c7;
|
||||
color: var(--color-mediumGray);
|
||||
font-weight: bold;
|
||||
background-color: #ededed;
|
||||
background-color: var(--color-lighterGray);
|
||||
}
|
||||
.dark input.switch:empty ~ label:before,
|
||||
.dark input.switch:empty ~ label:after {
|
||||
background-color: #272c2e;
|
||||
background-color: var(--color-darkerGray);
|
||||
}
|
||||
input.switch:empty ~ label:after {
|
||||
width: 3em;
|
||||
margin-inline-start: 0.1em;
|
||||
background-color: #ededed;
|
||||
background-color: var(--color-lightGray);
|
||||
content: "OFF";
|
||||
text-indent: 3.5em;
|
||||
border: 1px solid #374E75;
|
||||
border: 1px solid var(--color-darkerGray);
|
||||
font-weight: bold;
|
||||
}
|
||||
.dark input.switch:empty ~ label:after {
|
||||
border: 1px solid #202425;
|
||||
background-color: #2c3233;
|
||||
border: 1px solid var(--color-veryDarkGray);
|
||||
background-color: var(--color-darkerGray);
|
||||
color: var(--color-lightGray);
|
||||
}
|
||||
input.switch:checked:empty ~ label:after {
|
||||
content: ' ';
|
||||
}
|
||||
.dark input.switch:checked ~ label:before,
|
||||
input.switch:checked ~ label:before {
|
||||
background-color: var(--color-lightCyan);
|
||||
background-color: var(--color-verySoftCyan);
|
||||
border: 1px solid var(--color-lightGray);
|
||||
color: var(--color-darkGray);
|
||||
content: "ON";
|
||||
|
@ -347,7 +348,7 @@ input.switch:checked ~ label:before {
|
|||
}
|
||||
.dark input.switch:checked ~ label:before {
|
||||
border: none;
|
||||
background-color: var(--color-accent);
|
||||
background-color: var(--color-verySoftCyan);
|
||||
}
|
||||
input.switch:checked ~ label:after {
|
||||
margin-inline-start: 3em;
|
||||
|
@ -387,9 +388,9 @@ input.switch:checked ~ label:after {
|
|||
display: none;
|
||||
}
|
||||
.umap-multiplechoice label {
|
||||
border: 1px solid #374E75;
|
||||
border: 1px solid var(--color-veryDarkGray);
|
||||
cursor: pointer;
|
||||
background-color: #c9c9c7;
|
||||
background-color: var(--color-lightGray);
|
||||
min-height: 30px;
|
||||
line-height: 30px;
|
||||
text-align: center;
|
||||
|
@ -397,12 +398,11 @@ input.switch:checked ~ label:after {
|
|||
display: inline-block;
|
||||
}
|
||||
.dark .umap-multiplechoice label {
|
||||
border: 1px solid black;
|
||||
background-color: #2c3233;
|
||||
border: 1px solid var(--color-veryDarkGray);
|
||||
background-color: var(--color-darkGray);
|
||||
}
|
||||
.umap-multiplechoice input[type='radio']:checked + label {
|
||||
background-color: var(--color-accent);
|
||||
box-shadow: inset 0 0 6px 0px #2c3233;
|
||||
background-color: var(--color-verySoftCyan);
|
||||
color: var(--color-darkGray);
|
||||
}
|
||||
.inheritable .header .buttons {
|
||||
|
@ -420,7 +420,7 @@ input.switch:checked ~ label:after {
|
|||
width: initial;
|
||||
}
|
||||
.inheritable + .inheritable {
|
||||
border-top: 1px solid #222;
|
||||
border-top: 1px solid var(--color-darkerGray);
|
||||
padding-top: 5px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
@ -504,7 +504,7 @@ i.info {
|
|||
justify-content: space-around;
|
||||
font-size: 1.2em;
|
||||
margin-bottom: 20px;
|
||||
border-bottom: 1px solid #bebebe;
|
||||
border-bottom: 1px solid var(--color-lighterGray);
|
||||
}
|
||||
.flat-tabs button {
|
||||
padding: 10px;
|
||||
|
@ -515,14 +515,14 @@ i.info {
|
|||
.flat-tabs button:hover,
|
||||
.flat-tabs .on {
|
||||
font-weight: bold;
|
||||
border-bottom: 1px solid #444;
|
||||
border-bottom: 1px solid var(--color-mediumGray);
|
||||
}
|
||||
.dark .flat-tabs button {
|
||||
color: #fff;
|
||||
color: var(--color-light);
|
||||
}
|
||||
.dark .flat-tabs button:hover,
|
||||
.dark .flat-tabs .on {
|
||||
border-bottom: 1px solid #fff;
|
||||
border-bottom: 1px solid var(--color-light);
|
||||
}
|
||||
.umap-pictogram-category h6 {
|
||||
font-size: 1.3em;
|
||||
|
@ -538,11 +538,11 @@ i.info {
|
|||
height: 30px;
|
||||
line-height: 30px;
|
||||
cursor: pointer;
|
||||
background-color: #999;
|
||||
background-color: var(--color-lightGray);
|
||||
text-align: center;
|
||||
margin-bottom: 5px;
|
||||
display: inline-block;
|
||||
color: black;
|
||||
color: var(--color-dark);
|
||||
font-weight: bold;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
@ -552,10 +552,10 @@ i.info {
|
|||
}
|
||||
.umap-pictogram-choice:hover,
|
||||
.umap-color-picker span:hover {
|
||||
background-color: #bebebe;
|
||||
background-color: var(--color-lighterGray);
|
||||
}
|
||||
.umap-pictogram-choice.selected {
|
||||
box-shadow: inset 0 0 0 1px #e9e9e9;
|
||||
box-shadow: inset 0 0 0 1px var(--color-lighterGray);
|
||||
}
|
||||
|
||||
.umap-pictogram-choice .leaflet-marker-icon {
|
||||
|
|
|
@ -108,7 +108,7 @@ export default class Umap {
|
|||
|
||||
// Do not display in an iframe.
|
||||
if (window.self !== window.top) {
|
||||
geojson.properties.homeControl = false
|
||||
this.properties.homeControl = false
|
||||
}
|
||||
|
||||
this._leafletMap.setup()
|
||||
|
@ -833,7 +833,6 @@ export default class Umap {
|
|||
UIFields.push(`properties.${name}Control`)
|
||||
}
|
||||
UIFields = UIFields.concat([
|
||||
'properties.homeControl',
|
||||
'properties.moreControl',
|
||||
'properties.scrollWheelZoom',
|
||||
'properties.miniMap',
|
||||
|
|
|
@ -457,7 +457,6 @@ const locale = {
|
|||
"Choose this dataset": "Choose this dataset",
|
||||
"GeoDataMine: thematic data from OpenStreetMap": "GeoDataMine: thematic data from OpenStreetMap",
|
||||
"Choose a theme": "Choose a theme",
|
||||
"Symplify all geometries to points": "Symplify all geometries to points",
|
||||
"Choose this data": "Choose this data",
|
||||
"Search admin boundary": "Search admin boundary",
|
||||
"Please choose a theme and a boundary first.": "Please choose a theme and a boundary first.",
|
||||
|
@ -522,10 +521,10 @@ const locale = {
|
|||
"Anonymous": "Anonymous",
|
||||
"created at {date}": "created at {date}",
|
||||
"modified at {date}": "modified at {date}",
|
||||
"Default zoom": "Default zoom",
|
||||
"Default latitude": "Default latitude",
|
||||
"Default longitude": "Default longitude",
|
||||
"Edit map default view": "Edit map default view",
|
||||
"Default zoom": "Zoom predeterminat",
|
||||
"Default latitude": "Latitud predeterminada",
|
||||
"Default longitude": "Longitud predeterminada",
|
||||
"Edit map default view": "Edita la visualització predeterminada del mapa",
|
||||
"Use current center and zoom": "Use current center and zoom",
|
||||
"Layer permalink": "Layer permalink",
|
||||
"Back to home": "Back to home",
|
||||
|
@ -538,7 +537,10 @@ const locale = {
|
|||
"Images": "Images",
|
||||
"Iframes": "Iframes",
|
||||
"Tags": "Tags",
|
||||
"Geocode": "Geocode"
|
||||
"Geocode": "Geocode",
|
||||
"Display the back to home icon": "Display the back to home icon",
|
||||
"Do you want to display layer switcher in caption bar?": "Do you want to display layer switcher in caption bar?",
|
||||
"Simplify all geometries to points": "Simplify all geometries to points"
|
||||
}
|
||||
L.registerLocale("ca", locale)
|
||||
L.setLocale("ca")
|
||||
|
|
|
@ -457,7 +457,6 @@
|
|||
"Choose this dataset": "Choose this dataset",
|
||||
"GeoDataMine: thematic data from OpenStreetMap": "GeoDataMine: thematic data from OpenStreetMap",
|
||||
"Choose a theme": "Choose a theme",
|
||||
"Symplify all geometries to points": "Symplify all geometries to points",
|
||||
"Choose this data": "Choose this data",
|
||||
"Search admin boundary": "Search admin boundary",
|
||||
"Please choose a theme and a boundary first.": "Please choose a theme and a boundary first.",
|
||||
|
@ -522,10 +521,10 @@
|
|||
"Anonymous": "Anonymous",
|
||||
"created at {date}": "created at {date}",
|
||||
"modified at {date}": "modified at {date}",
|
||||
"Default zoom": "Default zoom",
|
||||
"Default latitude": "Default latitude",
|
||||
"Default longitude": "Default longitude",
|
||||
"Edit map default view": "Edit map default view",
|
||||
"Default zoom": "Zoom predeterminat",
|
||||
"Default latitude": "Latitud predeterminada",
|
||||
"Default longitude": "Longitud predeterminada",
|
||||
"Edit map default view": "Edita la visualització predeterminada del mapa",
|
||||
"Use current center and zoom": "Use current center and zoom",
|
||||
"Layer permalink": "Layer permalink",
|
||||
"Back to home": "Back to home",
|
||||
|
@ -538,5 +537,8 @@
|
|||
"Images": "Images",
|
||||
"Iframes": "Iframes",
|
||||
"Tags": "Tags",
|
||||
"Geocode": "Geocode"
|
||||
"Geocode": "Geocode",
|
||||
"Display the back to home icon": "Display the back to home icon",
|
||||
"Do you want to display layer switcher in caption bar?": "Do you want to display layer switcher in caption bar?",
|
||||
"Simplify all geometries to points": "Simplify all geometries to points"
|
||||
}
|
|
@ -990,9 +990,9 @@ a.umap-control-caption,
|
|||
height: var(--control-size);
|
||||
line-height: var(--control-size);
|
||||
}
|
||||
/* Links are blue by default */
|
||||
/* Links are dark cyan by default */
|
||||
.leaflet-container a {
|
||||
color: #0078a8;
|
||||
color: var(--color-veryDarkCyan);
|
||||
}
|
||||
/* But not in controls */
|
||||
.leaflet-bar a {
|
||||
|
|
|
@ -6,12 +6,15 @@
|
|||
--color-mediumGray: #3e4444;
|
||||
--color-darkGray: #323737;
|
||||
--color-darkerGray: #2a2e30;
|
||||
--color-veryDarkGray: #1e2121;
|
||||
--color-light: white;
|
||||
--color-dark: black;
|
||||
--color-limeGreen: #b9f5d2;
|
||||
--color-verySoftCyan: #a1eeeb;
|
||||
--color-brightCyan: #46ece6;
|
||||
--color-lightCyan: #d4fbf9;
|
||||
--color-darkCyan: #009099;
|
||||
--color-veryDarkCyan: #046460;
|
||||
--color-red: #c60f13;
|
||||
--color-darkRed: #5b2a2a;
|
||||
|
||||
|
@ -64,6 +67,7 @@
|
|||
.dark {
|
||||
--background-color: var(--color-darkGray);
|
||||
--text-color: #efefef;
|
||||
--color-verySoftCyan: #8cdcd9;
|
||||
}
|
||||
|
||||
@media only screen and (max-width:770px) {
|
||||
|
|
25
umap/tests/integration/test_iframe.py
Normal file
25
umap/tests/integration/test_iframe.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
from playwright.sync_api import expect
|
||||
|
||||
|
||||
def test_home_control_is_hidden(live_server, map, tilelayer, page):
|
||||
body = f"""
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<iframe width="100%" height="300px" frameborder="0" allowfullscreen allow="geolocation"
|
||||
src="{map.get_absolute_url()}?scaleControl=false&miniMap=false&scrollWheelZoom=false&zoomControl=true&editMode=disabled&moreControl=true&searchControl=null&tilelayersControl=null&embedControl=null&datalayersControl=true&onLoadPanel=caption&captionBar=false&captionMenus=true"></iframe>
|
||||
</body>
|
||||
</html>
|
||||
"""
|
||||
|
||||
def handle(route):
|
||||
route.fulfill(body=body)
|
||||
|
||||
url = f"{live_server.url}/test-iframe"
|
||||
# Intercept the route
|
||||
page.route(url, handle)
|
||||
|
||||
page.goto(url)
|
||||
expect(
|
||||
page.locator("iframe").content_frame.get_by_role("link", name="Home logo")
|
||||
).to_be_hidden()
|
Loading…
Reference in a new issue