mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-16 15:20:29 +05:30
39 lines
1.3 KiB
Vue
39 lines
1.3 KiB
Vue
<template>
|
|
<div class="flex flex-col flex-justify-between">
|
|
<router-link :to="props.item.url">
|
|
<div class="relative">
|
|
<img loading="lazy" class="w-full" :src="props.item.thumbnail" />
|
|
</div>
|
|
<p>
|
|
<span v-text="props.item.name" />
|
|
<font-awesome-icon v-if="props.item.verified" class="ml-1.5" icon="check" />
|
|
</p>
|
|
</router-link>
|
|
<p v-if="props.item.description" v-text="props.item.description" />
|
|
|
|
<router-link v-if="props.item.uploaderUrl" class="link" :to="props.item.uploaderUrl">
|
|
<p>
|
|
<span v-text="props.item.uploaderName" />
|
|
<font-awesome-icon v-if="props.item.uploaderVerified" class="ml-1.5" icon="check" />
|
|
</p>
|
|
</router-link>
|
|
<a v-else-if="props.item.uploaderName" class="link" v-text="props.item.uploaderName" />
|
|
|
|
<template v-if="props.item.videos >= 0">
|
|
<br v-if="props.item.uploaderName" />
|
|
<strong v-text="`${props.item.videos} ${$t('video.videos')}`" />
|
|
</template>
|
|
|
|
<br />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
const props = defineProps({
|
|
item: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
});
|
|
</script>
|