forked from MapComplete/MapComplete
Compare commits
9 commits
develop
...
build/open
| Author | SHA1 | Date | |
|---|---|---|---|
| 220fc82dba | |||
| dac07090b4 | |||
| bfc01dbfe4 | |||
| d7dbd3a908 | |||
| a2694a9d69 | |||
| 6b8bbc9c50 | |||
| 3c9fcdf425 | |||
| 7119d98af4 | |||
| 21a109b1a8 |
7 changed files with 74 additions and 44 deletions
|
|
@ -33,14 +33,19 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
BRANCH=${{ github.ref_name }}
|
BRANCH=${{ github.ref_name }}
|
||||||
THEME=${BRANCH:6}
|
THEME=${BRANCH:6}
|
||||||
mv "dist_$THEME" ${{ github.ref_name }}
|
zip $THEME.zip -r dist_$THEME/*
|
||||||
zip ${{ github.ref_name }}.zip -r ${{ github.ref_name }}/*
|
|
||||||
|
|
||||||
- name: uploading file
|
- name: uploading file
|
||||||
run: scp ${{ github.ref_name }}.zip hetzner:/root/staging/
|
run: |
|
||||||
|
BRANCH=${{ github.ref_name }}
|
||||||
|
THEME=${BRANCH:6}
|
||||||
|
scp $THEME.zip hetzner:/root/staging/
|
||||||
|
|
||||||
- name: unzipping remote file
|
- name: unzipping remote file
|
||||||
run: ssh hetzner "cd /root/staging && unzip ${{ github.ref_name }}.zip && rm -rf /root/single_theme_builds/${{ github.ref_name }} && mv /root/staging/${{ github.ref_name }}/ /root/single_theme_builds/ && rm ${{ github.ref_name }}.zip"
|
run: |
|
||||||
|
BRANCH=${{ github.ref_name }}
|
||||||
|
THEME=${BRANCH:6}
|
||||||
|
ssh hetzner "cd /root/staging && unzip $THEME.zip && rm -rf /root/single_theme_builds/$THEME && mv /root/staging/dist_$THEME/ /root/single_theme_builds/$THEME && rm $THEME.zip"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,13 @@
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||||
|
|
||||||
|
## [0.52.0](https://source.mapcomplete.org/MapComplete/MapComplete/compare/v0.51.12...v0.52.0) (2025-06-17)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fix crashes in image related code ([7119d98](https://source.mapcomplete.org/MapComplete/MapComplete/commits/7119d98af41eb653bda86609457b78d34cecd769))
|
||||||
|
|
||||||
### [0.51.15](https://source.mapcomplete.org/MapComplete/MapComplete/compare/v0.51.14...v0.51.15) (2025-06-16)
|
### [0.51.15](https://source.mapcomplete.org/MapComplete/MapComplete/compare/v0.51.14...v0.51.15) (2025-06-16)
|
||||||
|
|
||||||
### [0.51.14](https://source.mapcomplete.org/MapComplete/MapComplete/compare/v0.51.13...v0.51.14) (2025-06-16)
|
### [0.51.14](https://source.mapcomplete.org/MapComplete/MapComplete/compare/v0.51.13...v0.51.14) (2025-06-16)
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,9 @@
|
||||||
"it": "Modelli tattili",
|
"it": "Modelli tattili",
|
||||||
"cs": "Hmatové modely"
|
"cs": "Hmatové modely"
|
||||||
},
|
},
|
||||||
|
"title": {
|
||||||
|
"en": "Tactile model"
|
||||||
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"en": "Layer showing tactile models, three-dimensional models of the surrounding area.",
|
"en": "Layer showing tactile models, three-dimensional models of the surrounding area.",
|
||||||
"de": "Ebene mit dreidimensionalen ertastbaren Modellen der Umgebung.",
|
"de": "Ebene mit dreidimensionalen ertastbaren Modellen der Umgebung.",
|
||||||
|
|
@ -63,30 +66,16 @@
|
||||||
"tagRenderings": [
|
"tagRenderings": [
|
||||||
"images",
|
"images",
|
||||||
{
|
{
|
||||||
"id": "description",
|
"id": "subject",
|
||||||
"question": {
|
"question": {
|
||||||
"en": "What does this tactile model show?",
|
"en": "What is depicted by this model?"
|
||||||
"de": "Was zeigt dieses taktile Modell?",
|
|
||||||
"ca": "Què mostra aquest model tàctil?",
|
|
||||||
"it": "Cosa mostra questo modello tattile?",
|
|
||||||
"cs": "Co tento hmatový model ukazuje?"
|
|
||||||
},
|
},
|
||||||
"freeform": {
|
"freeform": {
|
||||||
"key": "blind:description:en",
|
"key": "subject:wikidata",
|
||||||
"placeholder": {
|
"type": "wikidata"
|
||||||
"en": "e.g. Tactile model of the city center",
|
|
||||||
"de": "z.B. Taktiles Modell des Stadtzentrums",
|
|
||||||
"ca": "P. ex. Model tàctil del centre de la ciutat",
|
|
||||||
"it": "es. Modello tattile del centro città",
|
|
||||||
"cs": "např. hmatový model centra města"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"render": {
|
"render": {
|
||||||
"en": "Description: {blind:description:en}.",
|
"*": "{wikipedia(subject:wikidata)}"
|
||||||
"de": "Beschreibung: {blind:description:en}.",
|
|
||||||
"ca": "Descripció: {blind:description:en}.",
|
|
||||||
"it": "Descrizione: {blind:description:en}.",
|
|
||||||
"cs": "Popis: {blind:description:en}."
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -143,11 +132,11 @@
|
||||||
"cs": "Tento model má popis v Braillově písmu v {language()}"
|
"cs": "Tento model má popis v Braillově písmu v {language()}"
|
||||||
},
|
},
|
||||||
"render_single_language": {
|
"render_single_language": {
|
||||||
"en": "This model has a braille description in {language}",
|
"en": "This model has a braille description in {language()}",
|
||||||
"de": "Dieses Modell hat eine Beschreibung in Brailleschrift in {language}",
|
"de": "Dieses Modell hat eine Beschreibung in Brailleschrift in {language()}",
|
||||||
"ca": "Aquest model té una descripció en braille en {language}",
|
"ca": "Aquest model té una descripció en braille en {language()}",
|
||||||
"it": "Questo modello ha una descrizione in braille in {language}",
|
"it": "Questo modello ha una descrizione in braille in {language()}",
|
||||||
"cs": "Tento model má popis v Braillově písmu v {language}"
|
"cs": "Tento model má popis v Braillově písmu v {language()}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -161,6 +150,9 @@
|
||||||
"it": "Ci sono lettere in rilievo che descrivono il modello?",
|
"it": "Ci sono lettere in rilievo che descrivono il modello?",
|
||||||
"cs": "Je tu text vystouplými písmeny popisující model?"
|
"cs": "Je tu text vystouplými písmeny popisující model?"
|
||||||
},
|
},
|
||||||
|
"questionHint": {
|
||||||
|
"en": "Embossed letters are letters as normally read by seeing people, but which are protrude from the surface and might thus also be read by blind people"
|
||||||
|
},
|
||||||
"mappings": [
|
"mappings": [
|
||||||
{
|
{
|
||||||
"if": "embossed_letters=yes",
|
"if": "embossed_letters=yes",
|
||||||
|
|
@ -206,11 +198,11 @@
|
||||||
"cs": "Tento model má text vystouplými písmeny v {language()}"
|
"cs": "Tento model má text vystouplými písmeny v {language()}"
|
||||||
},
|
},
|
||||||
"render_single_language": {
|
"render_single_language": {
|
||||||
"en": "This model has embossed letters in {language}",
|
"en": "This model has embossed letters in {language()}",
|
||||||
"de": "Dieses Modell hat geprägte Buchstaben in {language}",
|
"de": "Dieses Modell hat geprägte Buchstaben in {language()}",
|
||||||
"ca": "Aquest model té lletres en relleu en {language}",
|
"ca": "Aquest model té lletres en relleu en {language()}",
|
||||||
"it": "Questo modello ha lettere in rilievo in {language}",
|
"it": "Questo modello ha lettere in rilievo in {language()}",
|
||||||
"cs": "Tento model má text vystouplými písmeny v {language}"
|
"cs": "Tento model má text vystouplými písmeny v {language()}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -242,6 +234,34 @@
|
||||||
"cs": "Tento model má měřítko {scale}."
|
"cs": "Tento model má měřítko {scale}."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "description",
|
||||||
|
"question": {
|
||||||
|
"en": "What does this tactile model show?",
|
||||||
|
"de": "Was zeigt dieses taktile Modell?",
|
||||||
|
"ca": "Què mostra aquest model tàctil?",
|
||||||
|
"it": "Cosa mostra questo modello tattile?",
|
||||||
|
"cs": "Co tento hmatový model ukazuje?"
|
||||||
|
},
|
||||||
|
"freeform": {
|
||||||
|
"key": "blind:description:en",
|
||||||
|
"placeholder": {
|
||||||
|
"en": "e.g. Tactile model of the city center",
|
||||||
|
"de": "z.B. Taktiles Modell des Stadtzentrums",
|
||||||
|
"ca": "P. ex. Model tàctil del centre de la ciutat",
|
||||||
|
"it": "es. Modello tattile del centro città",
|
||||||
|
"cs": "např. hmatový model centra města"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"render": {
|
||||||
|
"en": "Description: {blind:description:en}.",
|
||||||
|
"de": "Beschreibung: {blind:description:en}.",
|
||||||
|
"ca": "Descripció: {blind:description:en}.",
|
||||||
|
"it": "Descrizione: {blind:description:en}.",
|
||||||
|
"cs": "Popis: {blind:description:en}."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
"website"
|
"website"
|
||||||
],
|
],
|
||||||
"deletion": true,
|
"deletion": true,
|
||||||
|
|
|
||||||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "mapcomplete",
|
"name": "mapcomplete",
|
||||||
"version": "0.51.15",
|
"version": "0.52.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "mapcomplete",
|
"name": "mapcomplete",
|
||||||
"version": "0.51.15",
|
"version": "0.52.0",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "mapcomplete",
|
"name": "mapcomplete",
|
||||||
"version": "0.51.15",
|
"version": "0.52.0",
|
||||||
"repository": "https://source.mapcomplete.org/MapComplete/MapComplete",
|
"repository": "https://source.mapcomplete.org/MapComplete/MapComplete",
|
||||||
"description": "A small website to edit OSM easily",
|
"description": "A small website to edit OSM easily",
|
||||||
"bugs": "hhttps://source.mapcomplete.org/MapComplete/MapComplete/issues",
|
"bugs": "hhttps://source.mapcomplete.org/MapComplete/MapComplete/issues",
|
||||||
|
|
@ -88,7 +88,7 @@
|
||||||
"build:single": "./scripts/single_build.sh",
|
"build:single": "./scripts/single_build.sh",
|
||||||
"build:vite:app-landing": "export NODE_OPTIONS=\"--max-old-space-size=12192\" && vite build --sourcemap --config app/app.vite.config.js",
|
"build:vite:app-landing": "export NODE_OPTIONS=\"--max-old-space-size=12192\" && vite build --sourcemap --config app/app.vite.config.js",
|
||||||
"build:dbscript": "vite-node ./scripts/osm2pgsql/generateBuildDbScript.ts",
|
"build:dbscript": "vite-node ./scripts/osm2pgsql/generateBuildDbScript.ts",
|
||||||
"prepare-deploy": "NODE_OPTIONS=\"--max-old-space-size=10192\" && npm run generate:service-worker && ./scripts/prepare-build.sh && npm run build",
|
"prepare-deploy": "npm run generate:service-worker && ./scripts/prepare-build.sh && npm run build",
|
||||||
"watch:css": "tailwindcss -i src/index.css -o public/css/index-tailwind-output.css --watch",
|
"watch:css": "tailwindcss -i src/index.css -o public/css/index-tailwind-output.css --watch",
|
||||||
"generate:css": "tailwindcss -i src/index.css -o public/css/index-tailwind-output.css",
|
"generate:css": "tailwindcss -i src/index.css -o public/css/index-tailwind-output.css",
|
||||||
"generate:doctests": "doctest-ts-improved . --ignore .*.spec.ts --ignore .*ConfigJson.ts",
|
"generate:doctests": "doctest-ts-improved . --ignore .*.spec.ts --ignore .*ConfigJson.ts",
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,7 @@ if [ $# -eq 0 ]
|
||||||
echo "No arguments given. Expected a themename"
|
echo "No arguments given. Expected a themename"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
npm run prep:layeroverview
|
npm run reset:layeroverview
|
||||||
npm run refresh:layeroverview
|
|
||||||
npm run generate:layeroverview
|
|
||||||
npm run test
|
npm run test
|
||||||
npm run generate:layouts
|
npm run generate:layouts
|
||||||
|
|
||||||
|
|
@ -39,12 +37,12 @@ fi
|
||||||
rm index.html
|
rm index.html
|
||||||
cp "$THEME.html" index.html
|
cp "$THEME.html" index.html
|
||||||
|
|
||||||
sed -i "s/input,/input: {index:\".\/index.html\", land: \".\/land.html\"}/" vite_single.config.js
|
sed -i "s/input,/input: {index:\".\/index.html\", land: \".\/land.html\"},/" vite_single.config.js
|
||||||
sed -i "s/\/\/ LAYOUT.ADD_CONFIG/layout.enableMoreQuests = false/" index_"$THEME".ts
|
sed -i "s/\/\/ LAYOUT.ADD_CONFIG/theme.enableMoreQuests = false/" index_"$THEME".ts
|
||||||
|
|
||||||
|
|
||||||
export NODE_OPTIONS=--max-old-space-size=20000
|
export NODE_OPTIONS=--max-old-space-size=20000
|
||||||
vite build --sourcemap --config vite_single.config.js || { echo 'Vite build failed' ; exit 1; }
|
npx vite build --sourcemap --config vite_single.config.js || { echo 'Vite build failed' ; exit 1; }
|
||||||
|
|
||||||
|
|
||||||
cp -r assets/layers/ dist/assets/layers/
|
cp -r assets/layers/ dist/assets/layers/
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@
|
||||||
type: "Feature",
|
type: "Feature",
|
||||||
geometry: { type: "Point", coordinates: GeoOperations.centerpointCoordinates(feature) },
|
geometry: { type: "Point", coordinates: GeoOperations.centerpointCoordinates(feature) },
|
||||||
properties: <HotspotProperties>{
|
properties: <HotspotProperties>{
|
||||||
name: layer.title?.GetRenderValue(feature.properties).Subs(feature.properties).txt,
|
name: layer.title?.GetRenderValue(feature.properties)?.Subs(feature.properties)?.txt ?? "Feature",
|
||||||
focus: true,
|
focus: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue