Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .github/workflows/ci-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,19 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install XVFB
run: sudo apt-get install -y xvfb
- name: Install Dependencies
run: npm install
- name: Install Playwright
run: npx playwright install
node-version: 22
cache: npm
- run: npm ci --ignore-scripts
- name: Cache Playwright browsers
id: playwright-cache
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- run: npx playwright install --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'
- run: npx playwright install-deps
if: steps.playwright-cache.outputs.cache-hit == 'true'
- name: Run Tests with XVFB
run: xvfb-run --auto-servernum -- npm test
env:
Expand Down
58 changes: 31 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"license": "W3C",
"devDependencies": {
"@playwright/test": "^1.39.0",
"playwright": "^1.39.0"
"@playwright/test": "^1.60.0",
"playwright": "^1.60.0"
}
}
12 changes: 12 additions & 0 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@
"btnZoomOut": {
"message": "Zoom out"
},
"btnSearch": {
"message": "Search"
},
"btnSearchClose": {
"message": "Close search"
},
"searchPlaceholder": {
"message": "Search…"
},
"searchResultWithNoName": {
"message": "Unnamed"
},
"btnAttribution": {
"message": "Map data attribution"
},
Expand Down
12 changes: 12 additions & 0 deletions src/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@
"btnZoomOut": {
"message": "Dézoomer"
},
"btnSearch": {
"message": "Rechercher"
},
"btnSearchClose": {
"message": "Fermer la recherche"
},
"searchPlaceholder": {
"message": "Rechercher\u2026"
},
"searchResultWithNoName": {
"message": "Sans nom"
},
"btnAttribution": {
"message": "Attribution des données cartographiques"
},
Expand Down
12 changes: 12 additions & 0 deletions src/_locales/sv/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@
"btnZoomOut": {
"message": "Zooma ut"
},
"btnSearch": {
"message": "Sök"
},
"btnSearchClose": {
"message": "Stäng sökning"
},
"searchPlaceholder": {
"message": "Sök\u2026"
},
"searchResultWithNoName": {
"message": "Namnlös"
},
"btnAttribution": {
"message": "Tilldelning av kartdata"
},
Expand Down
12 changes: 12 additions & 0 deletions src/_locales/uk/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@
"btnZoomOut": {
"message": "Зменшити"
},
"btnSearch": {
"message": "Пошук"
},
"btnSearchClose": {
"message": "Закрити пошук"
},
"searchPlaceholder": {
"message": "Пошук\u2026"
},
"searchResultWithNoName": {
"message": "Без назви"
},
"btnAttribution": {
"message": "Авторські права"
},
Expand Down
1 change: 1 addition & 0 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ function createMap() {
let focus = !hash;
map.setAttribute("projection", projection);
map.setAttribute("controls", "");
map.setAttribute("controlslist", "search");
map.setAttribute("lat", lat);
map.setAttribute("lon", lon);
map.setAttribute("zoom", zoom);
Expand Down
Loading