From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 76DE51FF136 for ; Mon, 18 May 2026 13:54:27 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 129DDEFD1; Mon, 18 May 2026 13:54:26 +0200 (CEST) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager 3/4] ui: add world map geojson data and update script Date: Mon, 4 May 2026 14:44:54 +0200 Message-ID: <20260504124515.2956574-8-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260504124515.2956574-1-d.csapak@proxmox.com> References: <20260504124515.2956574-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 AWL 0.050 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Hits: max-size X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; news-moderation; no-subject; digests; suspicious-header Message-ID-Hash: HCYORVVSG4QQU77P5U52B7MOZKW7BARK X-Message-ID-Hash: HCYORVVSG4QQU77P5U52B7MOZKW7BARK X-Mailman-Approved-At: Mon, 18 May 2026 13:54:17 +0200 X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: the data source is natural earth (https://www.naturalearthdata.com/) which is in the public domain. include a small script to convert the shapefile to the necessary geojson file with 'ogr2ogr' from the `gdal-bin` package. It's not added as a dev-dependency, since it should not update often. Signed-off-by: Dominik Csapak --- ui/Makefile | 6 ++++-- ui/index.html | 1 + ui/update-world-map.sh | 15 +++++++++++++++ ui/world-map.json | 9 +++++++++ 4 files changed, 29 insertions(+), 2 deletions(-) create mode 100755 ui/update-world-map.sh create mode 100644 ui/world-map.json diff --git a/ui/Makefile b/ui/Makefile index 403f6d55..6562ae5e 100644 --- a/ui/Makefile +++ b/ui/Makefile @@ -51,7 +51,7 @@ dist/pdm-ui_bg.wasm.gz: dist/pdm-ui_bg.wasm dist/%.css: css/%.scss dist rust-grass $< $@ =20 -install: $(COMPILED_OUTPUT) index.hbs +install: $(COMPILED_OUTPUT) index.hbs world-map.json install -dm0755 $(DESTDIR)$(UIDIR) install -dm0755 $(DESTDIR)$(UIDIR)/js =20 @@ -76,6 +76,8 @@ install: $(COMPILED_OUTPUT) index.hbs install -m0644 dist/material-yew-style.css $(DESTDIR)$(UIDIR) install -m0644 dist/desktop-yew-style.css $(DESTDIR)$(UIDIR) =20 + install -m0644 world-map.json $(DESTDIR)$(UIDIR) + .PHONY: submodule submodule: test -f "pwt-assets/README.md" || git submodule update --init @@ -83,7 +85,7 @@ submodule: $(BUILDDIR): submodule rm -rf $@ $@.tmp mkdir -p $@.tmp/ui - cp -a debian/ src/ pwt-assets/ images/ css/ index.hbs Makefile Cargo.toml= $@.tmp/ui + cp -a debian/ src/ pwt-assets/ images/ css/ index.hbs world-map.json Make= file Cargo.toml $@.tmp/ui cp -a ../Cargo.toml ../lib $@.tmp/ echo "git clone git://git.proxmox.com/git/$(PACKAGE).git\\ngit checkout $= $(git rev-parse HEAD)" \ > $@.tmp/ui/debian/SOURCE diff --git a/ui/index.html b/ui/index.html index 6b81f7d8..48256a67 100644 --- a/ui/index.html +++ b/ui/index.html @@ -12,6 +12,7 @@ =20 + =20