Initial commit

This commit is contained in:
Developer
2025-04-21 16:03:20 +02:00
commit 2832896157
22874 changed files with 3092801 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
<template>
<div v-if="filteredCards.length > 0" class="flex flex-wrap -mx-3">
<card-wrapper
v-for="card in filteredCards"
:card="card"
:size="size"
:resource="resource"
:resource-name="resourceName"
:resource-id="resourceId"
:key="`${card.component}.${card.uriKey}`"
:lens="lens"
/>
</div>
</template>
<script>
export default {
props: {
cards: Array,
size: {
type: String,
default: '',
},
resource: {
type: Object,
},
resourceName: {
type: String,
},
resourceId: {
type: [Number, String],
},
onlyOnDetail: {
type: Boolean,
default: false,
},
lens: {
lens: String,
default: '',
},
},
computed: {
/**
* Determine whether to show the cards based on their onlyOnDetail configuration
*/
filteredCards() {
if (this.onlyOnDetail) {
return _.filter(this.cards, c => c.onlyOnDetail == true)
}
return _.filter(this.cards, c => c.onlyOnDetail == false)
},
},
}
</script>