From 0711bd6996740a0ee77b029bb031e7a4e51f6a28 Mon Sep 17 00:00:00 2001 From: Julie Date: Mon, 1 Jun 2026 08:51:18 +0200 Subject: [PATCH] ajout videos dans programmer --- .../professionnels/programmer-orchestre.vue | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/app/pages/professionnels/programmer-orchestre.vue b/app/pages/professionnels/programmer-orchestre.vue index 8fa4b5e..4af3de1 100644 --- a/app/pages/professionnels/programmer-orchestre.vue +++ b/app/pages/professionnels/programmer-orchestre.vue @@ -277,6 +277,46 @@ + +
+ + +
+ play_circle +
+
+
+

+ {{ videoDownload.caption || videoDownload.name }} +

+

+ {{ videoDownload.ext.replace('.', '').toUpperCase() }} + + {{ formatKoToMo(videoDownload.size) }} +

+
+
+ + +
+ + +
+ play_circle +
+
+
+

+ {{ videoDownload.caption || videoDownload.name }} +

+

+ {{ videoDownload.ext.replace('.', '').toUpperCase() }} + + {{ formatKoToMo(videoDownload.size) }} +

+
+
+ @@ -482,6 +562,7 @@ images: true, documents: true, videos: true, + videos_download: true, }, categorie: { programme_categorie: true, @@ -489,6 +570,7 @@ images: true, documents: true, videos: true, + videos_download: true, } }, }, @@ -564,6 +646,10 @@ return `${(size / 1024).toFixed(1)} Mo` } + function getMediaPreviewUrl(file) { + return file?.formats?.thumbnail?.url || file?.previewUrl || "" + } + function getInitials(fullName) { if (!fullName) return ""