2022-11-01 17:42:54 +05:30
|
|
|
<template>
|
2023-07-17 01:57:31 +05:30
|
|
|
<div class="flex flex-col flex-justify-between">
|
2022-11-01 17:42:54 +05:30
|
|
|
<router-link :to="props.item.url">
|
|
|
|
<div class="relative">
|
2023-12-18 21:50:23 +05:30
|
|
|
<img loading="lazy" class="w-full" :src="props.item.thumbnail" />
|
2022-11-01 17:42:54 +05:30
|
|
|
</div>
|
|
|
|
<p>
|
|
|
|
<span v-text="props.item.name" />
|
2023-07-27 17:16:05 +05:30
|
|
|
<font-awesome-icon v-if="props.item.verified" class="ml-1.5" icon="check" />
|
2022-11-01 17:42:54 +05:30
|
|
|
</p>
|
|
|
|
</router-link>
|
|
|
|
<p v-if="props.item.description" v-text="props.item.description" />
|
2023-03-21 21:52:13 +05:30
|
|
|
|
2022-11-01 17:42:54 +05:30
|
|
|
<router-link v-if="props.item.uploaderUrl" class="link" :to="props.item.uploaderUrl">
|
|
|
|
<p>
|
2023-03-21 21:52:13 +05:30
|
|
|
<span v-text="props.item.uploaderName" />
|
2023-07-27 17:16:05 +05:30
|
|
|
<font-awesome-icon v-if="props.item.uploaderVerified" class="ml-1.5" icon="check" />
|
2022-11-01 17:42:54 +05:30
|
|
|
</p>
|
|
|
|
</router-link>
|
2023-03-21 21:52:13 +05:30
|
|
|
<a v-else-if="props.item.uploaderName" class="link" v-text="props.item.uploaderName" />
|
2022-11-01 17:42:54 +05:30
|
|
|
|
|
|
|
<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({
|
2023-07-27 17:16:05 +05:30
|
|
|
item: {
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
},
|
2022-11-01 17:42:54 +05:30
|
|
|
});
|
|
|
|
</script>
|