Possibility to redirect to the creator from the content cards

This commit is contained in:
Dominic Villemure
2024-08-25 16:39:59 -04:00
parent c2044619d1
commit 182d98310e
2 changed files with 4 additions and 12 deletions

View File

@@ -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>

View File

@@ -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;