mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Add verified, hearted, pinned, and likes to comments.
This commit is contained in:
parent
526eefc18c
commit
ff32af1e96
2 changed files with 16 additions and 4 deletions
|
@ -44,6 +44,10 @@
|
||||||
v-for="comment in comments.comments"
|
v-for="comment in comments.comments"
|
||||||
>
|
>
|
||||||
<div align="left">
|
<div align="left">
|
||||||
|
<div v-if="comment.pinned">
|
||||||
|
<font-awesome-icon icon="thumbtack"></font-awesome-icon> Pinned by
|
||||||
|
{{ video.uploader }}
|
||||||
|
</div>
|
||||||
<img
|
<img
|
||||||
:src="comment.thumbnail"
|
:src="comment.thumbnail"
|
||||||
style="width: calc(100% * 1 / 20)"
|
style="width: calc(100% * 1 / 20)"
|
||||||
|
@ -52,11 +56,19 @@
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
alt="avatar"
|
alt="avatar"
|
||||||
/>
|
/>
|
||||||
|
<br />
|
||||||
<router-link class="uk-link-muted" v-bind:to="comment.commentorUrl">
|
<router-link class="uk-link-muted" v-bind:to="comment.commentorUrl">
|
||||||
<p>{{ comment.author }}</p>
|
{{ comment.author }} </router-link
|
||||||
</router-link>
|
> <font-awesome-icon v-if="comment.verified" icon="check"></font-awesome-icon>
|
||||||
</div>
|
</div>
|
||||||
<p>{{ comment.commentText }}</p>
|
<p>{{ comment.commentText }}</p>
|
||||||
|
<div>
|
||||||
|
<b>{{ comment.likeCount }}</b>
|
||||||
|
|
||||||
|
<font-awesome-icon icon="thumbs-up"></font-awesome-icon>
|
||||||
|
|
||||||
|
<font-awesome-icon v-if="comment.hearted" icon="heart"></font-awesome-icon>
|
||||||
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { createApp } from "vue";
|
import { createApp } from "vue";
|
||||||
import { library } from "@fortawesome/fontawesome-svg-core";
|
import { library } from "@fortawesome/fontawesome-svg-core";
|
||||||
import { faThumbsUp, faThumbsDown, faEye } from "@fortawesome/free-solid-svg-icons";
|
import { faThumbsUp, faThumbsDown, faEye, faThumbtack, faCheck, faHeart } from "@fortawesome/free-solid-svg-icons";
|
||||||
import { faGithub, faBitcoin } from "@fortawesome/free-brands-svg-icons";
|
import { faGithub, faBitcoin } from "@fortawesome/free-brands-svg-icons";
|
||||||
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
||||||
library.add(faThumbsUp, faThumbsDown, faEye, faGithub, faBitcoin);
|
library.add(faThumbsUp, faThumbsDown, faEye, faGithub, faBitcoin, faThumbtack, faCheck, faHeart);
|
||||||
|
|
||||||
import("uikit/dist/css/uikit-core.css");
|
import("uikit/dist/css/uikit-core.css");
|
||||||
import("uikit/dist/js/uikit-core.min");
|
import("uikit/dist/js/uikit-core.min");
|
||||||
|
|
Loading…
Reference in a new issue