From d009e0da629bafecebb1c3b844fc92a1c497ab13 Mon Sep 17 00:00:00 2001 From: Thierry Date: Thu, 26 Mar 2026 11:30:05 +0100 Subject: [PATCH] Upload files to "frontend/templates/partials" --- frontend/templates/partials/cloud_list.jinja | 42 +++++++++++++++++++ frontend/templates/partials/debug_panel.jinja | 18 ++++++++ .../templates/partials/health_status.jinja | 14 +++++++ .../templates/partials/upload_result.jinja | 26 ++++++++++++ frontend/templates/partials/viewer.jinja | 14 +++++++ 5 files changed, 114 insertions(+) create mode 100644 frontend/templates/partials/cloud_list.jinja create mode 100644 frontend/templates/partials/debug_panel.jinja create mode 100644 frontend/templates/partials/health_status.jinja create mode 100644 frontend/templates/partials/upload_result.jinja create mode 100644 frontend/templates/partials/viewer.jinja diff --git a/frontend/templates/partials/cloud_list.jinja b/frontend/templates/partials/cloud_list.jinja new file mode 100644 index 0000000..0a3deb0 --- /dev/null +++ b/frontend/templates/partials/cloud_list.jinja @@ -0,0 +1,42 @@ + + +
+
+ + {% if error %} + + {% elif not pointclouds %} +

+ Aucun nuage disponible sur le serveur. +

+ {% else %} +

{{ pointclouds|length }} nuage(s)

+
+ + + + + + + + + + + + {% for pc in pointclouds %} + + {% endfor %} + +
IDFormatTailleCréé leActions
+
+ {% endif %} +
+ +
+
\ No newline at end of file diff --git a/frontend/templates/partials/debug_panel.jinja b/frontend/templates/partials/debug_panel.jinja new file mode 100644 index 0000000..24639d4 --- /dev/null +++ b/frontend/templates/partials/debug_panel.jinja @@ -0,0 +1,18 @@ +
+ +
+

Debug : {{ pc_id }}

+
+ {% if error %} + + {% else %} +
{{ data | tojson(indent=2) }}
+ {% endif %} +
+
\ No newline at end of file diff --git a/frontend/templates/partials/health_status.jinja b/frontend/templates/partials/health_status.jinja new file mode 100644 index 0000000..800ceb6 --- /dev/null +++ b/frontend/templates/partials/health_status.jinja @@ -0,0 +1,14 @@ +{% if ok %} +
+ {% if entwine_available %} + + + {% else %} + + + {% endif %} + {{ disk_free_gb }} GB libres +
+{% else %} + +{% endif %} \ No newline at end of file diff --git a/frontend/templates/partials/upload_result.jinja b/frontend/templates/partials/upload_result.jinja new file mode 100644 index 0000000..c66bd6d --- /dev/null +++ b/frontend/templates/partials/upload_result.jinja @@ -0,0 +1,26 @@ +{% if error %} + +{% else %} + +
+ +
+
+
ID{{ result.id }}
+
Fichier{{ result.filename }}
+
Taille{{ result.size_mb }} MB
+
Conversion{{ result.conversion_time_seconds }}s
+
+ +
+{% endif %} \ No newline at end of file diff --git a/frontend/templates/partials/viewer.jinja b/frontend/templates/partials/viewer.jinja new file mode 100644 index 0000000..5022144 --- /dev/null +++ b/frontend/templates/partials/viewer.jinja @@ -0,0 +1,14 @@ +
+
+ + Nuage actif : {{ pc_id }} + + ↗ Plein écran +
+ +
\ No newline at end of file