fix(docker): add python3 to build-frontend stage for docs build; add i18n for map drag-drop

This commit is contained in:
Ivan
2026-05-10 06:17:30 -05:00
parent e1de656219
commit 3d60f7f796
10 changed files with 29 additions and 10 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ ARG PYTHON_HASH=sha256:dd4d2bd5b53d9b25a51da13addf2be586beebd5387e289e798e4083d9
# ---- STAGE 1: Frontend Build ----
FROM --platform=linux/amd64 ${NODE_IMAGE}@${NODE_HASH} AS build-frontend
WORKDIR /src
RUN apk add --no-cache git
RUN apk add --no-cache git python3
COPY package.json pnpm-lock.yaml vite.config.js ./
COPY patches ./patches
COPY scripts/fetch-micron-wasm.mjs scripts/fetch-micron-wasm.mjs
+1 -1
View File
@@ -13,7 +13,7 @@ ARG PYTHON_RUNTIME_IMAGE=cgr.dev/chainguard/python:latest-dev
FROM --platform=linux/amd64 ${NODE_IMAGE} AS build-frontend
USER root
WORKDIR /src
RUN apk add --no-cache git
RUN apk add --no-cache git python3
COPY package.json pnpm-lock.yaml vite.config.js ./
COPY patches ./patches
COPY scripts/fetch-micron-wasm.mjs scripts/fetch-micron-wasm.mjs
@@ -4341,7 +4341,12 @@ export default {
const geoFiles = files.filter((f) => {
const name = f.name.toLowerCase();
return name.endsWith(".geojson") || name.endsWith(".json") || name.endsWith(".kml") || name.endsWith(".kmz");
return (
name.endsWith(".geojson") ||
name.endsWith(".json") ||
name.endsWith(".kml") ||
name.endsWith(".kmz")
);
});
if (!geoFiles.length) {
ToastUtils.warning(this.$t("map.drop_no_geo_files"));
+3 -1
View File
@@ -1131,7 +1131,9 @@
"vector_import_ok": "Imported {count} feature(s).",
"vector_import_empty": "No features found in file.",
"vector_import_failed": "Could not read vector file.",
"vector_export_ok": "Export started."
"vector_export_ok": "Export started.",
"drop_geo_files": "Kartendatei hier ablegen",
"drop_no_geo_files": "Keine GeoJSON-, KML- oder KMZ-Dateien erkannt."
},
"interface": {
"disable": "Deaktivieren",
+3 -1
View File
@@ -1079,7 +1079,9 @@
"vector_import_ok": "Imported {count} feature(s).",
"vector_import_empty": "No features found in file.",
"vector_import_failed": "Could not read vector file.",
"vector_export_ok": "Export started."
"vector_export_ok": "Export started.",
"drop_geo_files": "Suelta el archivo del mapa aquí",
"drop_no_geo_files": "No se detectaron archivos GeoJSON, KML o KMZ."
},
"interface": {
"disable": "Inhabilitación",
+3 -1
View File
@@ -1079,7 +1079,9 @@
"vector_import_ok": "Imported {count} feature(s).",
"vector_import_empty": "No features found in file.",
"vector_import_failed": "Could not read vector file.",
"vector_export_ok": "Export started."
"vector_export_ok": "Export started.",
"drop_geo_files": "Déposez le fichier carte ici",
"drop_no_geo_files": "Aucun fichier GeoJSON, KML ou KMZ détecté."
},
"interface": {
"disable": "Désactiver",
+3 -1
View File
@@ -1131,7 +1131,9 @@
"vector_import_ok": "Imported {count} feature(s).",
"vector_import_empty": "No features found in file.",
"vector_import_failed": "Could not read vector file.",
"vector_export_ok": "Export started."
"vector_export_ok": "Export started.",
"drop_geo_files": "Rilascia il file della mappa qui",
"drop_no_geo_files": "Nessun file GeoJSON, KML o KMZ rilevato."
},
"interface": {
"disable": "Disabilita",
+3 -1
View File
@@ -1079,7 +1079,9 @@
"vector_import_ok": "Imported {count} feature(s).",
"vector_import_empty": "No features found in file.",
"vector_import_failed": "Could not read vector file.",
"vector_export_ok": "Export started."
"vector_export_ok": "Export started.",
"drop_geo_files": "Sleep kaartbestand hierheen",
"drop_no_geo_files": "Geen GeoJSON-, KML- of KMZ-bestanden gedetecteerd."
},
"interface": {
"disable": "Uitschakelen",
+3 -1
View File
@@ -1131,7 +1131,9 @@
"vector_import_ok": "Imported {count} feature(s).",
"vector_import_empty": "No features found in file.",
"vector_import_failed": "Could not read vector file.",
"vector_export_ok": "Export started."
"vector_export_ok": "Export started.",
"drop_geo_files": "Перетащите файл карты сюда",
"drop_no_geo_files": "Не обнаружено файлов GeoJSON, KML или KMZ."
},
"interface": {
"disable": "Выключить",
+3 -1
View File
@@ -1079,7 +1079,9 @@
"vector_import_ok": "Imported {count} feature(s).",
"vector_import_empty": "No features found in file.",
"vector_import_failed": "Could not read vector file.",
"vector_export_ok": "Export started."
"vector_export_ok": "Export started.",
"drop_geo_files": "将地图文件拖放到此处",
"drop_no_geo_files": "未检测到 GeoJSON、KML 或 KMZ 文件。"
},
"interface": {
"disable": "禁用",