From c4b3c4171820013e8fbc5f6f052d4b2f7c9d68d6 Mon Sep 17 00:00:00 2001 From: Thierry Date: Wed, 1 Apr 2026 23:26:17 +0200 Subject: [PATCH] Upload files to "frontend/templates/partials" --- frontend/templates/partials/cloud_list.html | 63 ++++--- .../templates/partials/cloud_list_body.html | 61 +++++++ frontend/templates/partials/crop_section.html | 157 ++++++++++++++++++ frontend/templates/partials/upload_form.html | 71 ++++++++ 4 files changed, 331 insertions(+), 21 deletions(-) create mode 100644 frontend/templates/partials/cloud_list_body.html create mode 100644 frontend/templates/partials/crop_section.html create mode 100644 frontend/templates/partials/upload_form.html diff --git a/frontend/templates/partials/cloud_list.html b/frontend/templates/partials/cloud_list.html index facbc7c..eae5342 100644 --- a/frontend/templates/partials/cloud_list.html +++ b/frontend/templates/partials/cloud_list.html @@ -6,22 +6,26 @@ type="button" class="btn btn-ghost" hx-get="/viewer/list" - hx-target="#viewer-panel" - hx-trigger="click" + hx-target="#cloud-list-body" + hx-swap="innerHTML" + hx-indicator="#cloud-list-spinner" > 🔄 Actualiser + - {% if error %} + +
+ {% if error %}
{{ error }}
- {% elif not pointclouds %} + {% elif not pointclouds %}

Aucun nuage disponible sur le serveur.

- {% else %} + {% else %}

{{ pointclouds|length }} nuage(s)

@@ -36,25 +40,42 @@ {% for pc in pointclouds %} - - - - - - - + + + + + + + {% endfor %}
{{ pc.id }}{{ pc.size_mb }} MB{{ pc.file_count }}{{ pc.created|datetimeformat }} - 🔍 - 👁️ - -
{{ pc.id }}{{ pc.size_mb }} MB{{ pc.file_count }}{{ pc.created|datetimeformat }} + 🔍 + 👁️ + + + +
- {% endif %} + {% endif %} +
+ + + +
\ No newline at end of file diff --git a/frontend/templates/partials/cloud_list_body.html b/frontend/templates/partials/cloud_list_body.html new file mode 100644 index 0000000..4e55c85 --- /dev/null +++ b/frontend/templates/partials/cloud_list_body.html @@ -0,0 +1,61 @@ +{% 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 %} \ No newline at end of file diff --git a/frontend/templates/partials/crop_section.html b/frontend/templates/partials/crop_section.html new file mode 100644 index 0000000..20ca5df --- /dev/null +++ b/frontend/templates/partials/crop_section.html @@ -0,0 +1,157 @@ + +
+
+ + +
+

+ ✂️ Crop du nuage + {{ pc_id }} +

+ +
+ +

+ Renseignez les coordonnées de la boîte 3D à découper. Les valeurs sont dans + le système de coordonnées du nuage de points (en mètres ou en unités du fichier source). +

+ + +
+
+
Vue de dessus (XY)
+ + + + X + Y + +
+
+
Vue de côté (XZ)
+ + + + X + Z + +
+
+ + +
+ +
+ + +
+
Axe X
+
+
+ + +
+
+ + +
+
+
+ + +
+
Axe Y
+
+
+ + +
+
+ + +
+
+
+ + +
+
Axe Z (altitude)
+
+
+ + +
+
+ + +
+
+
+ +
+ + +
+ Dimensions : + ΔX= + | + ΔY= + | + ΔZ= +
+ +
+ +
+ Traitement PDAL — peut prendre plusieurs minutes +
+ +
+ +
+
+
+ + \ No newline at end of file diff --git a/frontend/templates/partials/upload_form.html b/frontend/templates/partials/upload_form.html new file mode 100644 index 0000000..700ee0e --- /dev/null +++ b/frontend/templates/partials/upload_form.html @@ -0,0 +1,71 @@ + + + +
+ + +
+ +
+ {% include "partials/backend_config.html" %} +
+ +
+
+

📤 Upload

+

+ Formats acceptés : LAS, LAZ, PLY, XYZ, PTS +

+
+ +
+ +
+
+
+
+
+ +
+
+ + +
+
+

+ Uploadez un fichier pour lancer la visualisation +

+
+
+ {% include "partials/cloud_list.html" %} +
+
+ +
\ No newline at end of file