discographie

This commit is contained in:
2026-06-14 16:02:36 +02:00
parent 29914a1041
commit 25a175f89d
9 changed files with 383 additions and 39 deletions

View File

@@ -203,38 +203,40 @@
console.log("Bienvenue : ",config.title)
//--------------------
// DONNÉES POUR LES CONCERTS À VENIR …
//--------------------
//--------------------
// DONNÉES POUR LES CONCERTS À VENIR …
//--------------------
const saisonsFiltre = computed(() => {
const values = [String(runtimeConfig.public.saison || "").trim(), "2025/2026"]
.filter(Boolean)
return [...new Set(values)]
})
const { concerts, refresh } = useConcerts({
locale: "fr-FR",
populate: {
saison_concert: true,
image_illustration_concert: true,
representation_concert: { lieu_representation: true },
},
filters: {
saison_concert: {
nom_saison: {
$in: saisonsFiltre.value,
console.log("saisonsFiltre.value : ",saisonsFiltre.value)
const { concerts, refresh } = useConcerts({
locale: "fr-FR",
pageSize: 200,
populate: {
saison_concert: true,
image_illustration_concert: true,
representation_concert: { lieu_representation: true },
},
filters: {
saison_concert: {
nom_saison: {
$in: saisonsFiltre.value,
},
},
},
},
upcomingOnly: true,
limit: 3,
})
},
upcomingOnly: true,
limit: 3,
})
onMounted(() => {
if (!concerts.value?.length) {
refresh()
}
})
onMounted(() => {
if (!concerts.value?.length) {
refresh()
}
})