From 0bce1a25c7d02a54f318294f4ac28b2ee8312059 Mon Sep 17 00:00:00 2001 From: Thierry Date: Wed, 1 Apr 2026 21:33:59 +0200 Subject: [PATCH] Upload files to "frontend/templates/partials" --- .../templates/partials/backend_config.html | 71 +++++++++ frontend/templates/partials/cloud_list.html | 60 ++++++++ frontend/templates/partials/crop.html | 135 ++++++++++++++++++ frontend/templates/partials/debug_panel.html | 71 +++++++++ .../templates/partials/health_status.html | 14 ++ 5 files changed, 351 insertions(+) create mode 100644 frontend/templates/partials/backend_config.html create mode 100644 frontend/templates/partials/cloud_list.html create mode 100644 frontend/templates/partials/crop.html create mode 100644 frontend/templates/partials/debug_panel.html create mode 100644 frontend/templates/partials/health_status.html diff --git a/frontend/templates/partials/backend_config.html b/frontend/templates/partials/backend_config.html new file mode 100644 index 0000000..af3336f --- /dev/null +++ b/frontend/templates/partials/backend_config.html @@ -0,0 +1,71 @@ +
+
+

+ ⚙️ + Configuration Backend +

+ + {% if success %} +
+ ✓ Configuration sauvegardée ! +
+ {% endif %} + + {% if error %} +
+ {{ error }} +
+ {% endif %} + +
+ +
+ + + + Ex: http://localhost:8091 ou http://backend_entwine:8000 + +
+ + +
+ + + + Ex: http://localhost:8090 ou http://potree_server:8090 + +
+
+ +
+ +
+
+
diff --git a/frontend/templates/partials/cloud_list.html b/frontend/templates/partials/cloud_list.html new file mode 100644 index 0000000..facbc7c --- /dev/null +++ b/frontend/templates/partials/cloud_list.html @@ -0,0 +1,60 @@ +
+
+

🗂️ Nuages de points

+
+ +
+ + {% if error %} +
+ {{ error }} +
+ {% elif not pointclouds %} +

+ Aucun nuage disponible sur le serveur. +

+ {% else %} +

{{ pointclouds|length }} nuage(s)

+
+ + + + + + + + + + + + {% for pc in pointclouds %} + + + + + + + + {% endfor %} + +
IDTailleFichiersCréé leActions
{{ pc.id }}{{ pc.size_mb }} MB{{ pc.file_count }}{{ pc.created|datetimeformat }} + 🔍 + 👁️ + +
+
+ {% endif %} +
+
diff --git a/frontend/templates/partials/crop.html b/frontend/templates/partials/crop.html new file mode 100644 index 0000000..2433660 --- /dev/null +++ b/frontend/templates/partials/crop.html @@ -0,0 +1,135 @@ + + + + + + Crop — {{ pc_id }} + + + + + + + + +
+ 📤 Upload + 🗂️ Admin +
+ +
+
+
+

📐 Crop du Nuage de Points

+ ← Retour +
+ +
+
+
+
+ Nuage : {{ pc_id }} + + Sélectionnez une zone dans le viewer pour cropper le nuage + +
+ + +
+
+
+ +
+ +
+ +
+
+

📦 Coordonnées de la Box 3D

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ + + Le traitement peut prendre plusieurs minutes selon la taille du nuage + +
+
+
+ +
+
+
+ + + diff --git a/frontend/templates/partials/debug_panel.html b/frontend/templates/partials/debug_panel.html new file mode 100644 index 0000000..c55b929 --- /dev/null +++ b/frontend/templates/partials/debug_panel.html @@ -0,0 +1,71 @@ + + + + + + Debug — {{ pc_id }} + + + + + + + + +
+ 📤 Upload + 🗂️ Admin +
+ +
+
+
+
+

Debug : {{ pc_id }}

+ +
+ {% if error %} +
+ {{ error }} +
+ {% else %} +
{{ data | tojson(indent=2) }}
+ {% endif %} +
+
+
+ + + diff --git a/frontend/templates/partials/health_status.html b/frontend/templates/partials/health_status.html new file mode 100644 index 0000000..8eda014 --- /dev/null +++ b/frontend/templates/partials/health_status.html @@ -0,0 +1,14 @@ +{% if ok %} +
+ {% if entwine_available %} + backend ✓ + entwine ✓ + {% else %} + backend ✓ + entwine absent + {% endif %} + {{ disk_free_gb }} GB libres +
+{% else %} + backend inaccessible +{% endif %}