Possibility to redirect to the creator from the content cards
This commit is contained in:
@@ -10,9 +10,9 @@
|
|||||||
class="rounded-full"
|
class="rounded-full"
|
||||||
width="32px"
|
width="32px"
|
||||||
height="32px">
|
height="32px">
|
||||||
<div class="capitalize px-2">
|
<router-link class="capitalize px-2" :to="`/@${props.content.createdByName}`">
|
||||||
{{ props.content.createdByName }}
|
{{ props.content.createdByName }}
|
||||||
</div>
|
</router-link>
|
||||||
<span class="text-subtitle-2 mt-1">
|
<span class="text-subtitle-2 mt-1">
|
||||||
{{ time_ago(props.content.createdAt) }}
|
{{ time_ago(props.content.createdAt) }}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -10,9 +10,9 @@
|
|||||||
class="rounded-full"
|
class="rounded-full"
|
||||||
width="32px"
|
width="32px"
|
||||||
height="32px">
|
height="32px">
|
||||||
<div class="capitalize px-2">
|
<router-link class="capitalize px-2" :to="`/@${props.content.createdByName}`">
|
||||||
{{ props.content.createdByName }}
|
{{ props.content.createdByName }}
|
||||||
</div>
|
</router-link>
|
||||||
<span class="text-subtitle-2">
|
<span class="text-subtitle-2">
|
||||||
{{ time_ago(props.content.createdAt) }}
|
{{ time_ago(props.content.createdAt) }}
|
||||||
</span>
|
</span>
|
||||||
@@ -197,14 +197,6 @@ function toggleComments() {
|
|||||||
messagesVisible.value = !messagesVisible.value;
|
messagesVisible.value = !messagesVisible.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
function likeContent() {
|
|
||||||
console.log('Content liked');
|
|
||||||
}
|
|
||||||
|
|
||||||
function dislikeContent() {
|
|
||||||
console.log('Content disliked');
|
|
||||||
}
|
|
||||||
|
|
||||||
function getComponent(url) {
|
function getComponent(url) {
|
||||||
if (url.includes('youtube.com') || url.includes('youtu.be')) {
|
if (url.includes('youtube.com') || url.includes('youtu.be')) {
|
||||||
return YoutubePlayer;
|
return YoutubePlayer;
|
||||||
|
|||||||
Reference in New Issue
Block a user