mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-15 12:48:22 +00:00
Update WatchVideo.vue
This commit is contained in:
parent
717d7f6a1a
commit
8837c1c9fe
@ -39,7 +39,7 @@
|
|||||||
<div class="pp-video-title font-bold mt-2 text-2xl break-words" v-text="video.title" />
|
<div class="pp-video-title font-bold mt-2 text-2xl break-words" v-text="video.title" />
|
||||||
<div class="pp-bellow-video flex flex-wrap mt-3 mb-3">
|
<div class="pp-bellow-video flex flex-wrap mt-3 mb-3">
|
||||||
<!-- views / date -->
|
<!-- views / date -->
|
||||||
<div class="flex flex-auto children:ml-2">
|
<div class="flex flex-auto">
|
||||||
<span v-t="{ path: 'video.views', args: { views: addCommas(video.views) } }" />
|
<span v-t="{ path: 'video.views', args: { views: addCommas(video.views) } }" />
|
||||||
<span> • </span>
|
<span> • </span>
|
||||||
<span v-text="uploadDate" />
|
<span v-text="uploadDate" />
|
||||||
@ -133,6 +133,8 @@
|
|||||||
<div efy_select>
|
<div efy_select>
|
||||||
<input id="showDesc" type="checkbox" v-model="showDesc" />
|
<input id="showDesc" type="checkbox" v-model="showDesc" />
|
||||||
<label for="showDesc" v-t="'actions.show_description'" />
|
<label for="showDesc" v-t="'actions.show_description'" />
|
||||||
|
<input id="showComments" type="checkbox" v-model="showComments" @click="toggleComments" />
|
||||||
|
<label for="showComments" v-t="'actions.show_comments'" />
|
||||||
<input id="showRecs" type="checkbox" v-model="showRecs" />
|
<input id="showRecs" type="checkbox" v-model="showRecs" />
|
||||||
<label for="showRecs" v-t="'actions.show_recommendations'" />
|
<label for="showRecs" v-t="'actions.show_recommendations'" />
|
||||||
<input id="chkAutoLoop" v-model="selectedAutoLoop" type="checkbox" @change="onChange($event)" />
|
<input id="chkAutoLoop" v-model="selectedAutoLoop" type="checkbox" @change="onChange($event)" />
|
||||||
@ -146,35 +148,36 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||||
<div v-show="showDesc" class="break-words mb-2" v-html="purifyHTML(video.description)" />
|
<div
|
||||||
|
v-show="showDesc"
|
||||||
|
class="break-words mb-2"
|
||||||
|
v-html="purifyHTML(video.description)"
|
||||||
|
style="border-top: var(--efy_border); margin: 15rem 0; padding: 15rem 0"
|
||||||
|
/>
|
||||||
<div
|
<div
|
||||||
v-if="showDesc && sponsors && sponsors.segments"
|
v-if="showDesc && sponsors && sponsors.segments"
|
||||||
v-text="`${$t('video.sponsor_segments')}: ${sponsors.segments.length}`"
|
v-text="`${$t('video.sponsor_segments')}: ${sponsors.segments.length}`"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
|
||||||
<div class="grid pp-rec-vids">
|
<div class="grid pp-rec-vids">
|
||||||
<div class="xl:col-span-4 sm:col-span-3">
|
|
||||||
<button
|
|
||||||
class="btn mb-2"
|
|
||||||
@click="toggleComments"
|
|
||||||
v-t="`actions.${showComments ? 'minimize_comments' : 'show_comments'}`"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div v-if="!showComments" class="w-full"></div>
|
<div v-if="!showComments" class="w-full"></div>
|
||||||
<div v-else-if="!comments" class="">
|
<div v-if="!comments" class="">
|
||||||
<p class="text-center mt-8" v-t="'comment.loading'"></p>
|
<p class="text-center mt-8" v-t="'comment.loading'"></p>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="comments.disabled" class="">
|
<div v-else-if="comments.disabled" class="">
|
||||||
<p class="text-center mt-8" v-t="'comment.disabled'"></p>
|
<p class="text-center mt-8" v-t="'comment.disabled'"></p>
|
||||||
</div>
|
</div>
|
||||||
<div v-else ref="comments" v-show="showComments" class="">
|
<div v-else ref="comments" v-show="showComments" class="pp-comments">
|
||||||
<CommentItem
|
<CommentItem
|
||||||
v-for="comment in comments.comments"
|
v-for="comment in comments.comments"
|
||||||
:key="comment.commentId"
|
:key="comment.commentId"
|
||||||
:comment="comment"
|
:comment="comment"
|
||||||
:uploader="video.uploader"
|
:uploader="video.uploader"
|
||||||
:video-id="getVideoId()"
|
:video-id="getVideoId()"
|
||||||
|
class="efy_trans_filter"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -185,8 +188,8 @@
|
|||||||
:playlist="playlist"
|
:playlist="playlist"
|
||||||
:selected-index="index"
|
:selected-index="index"
|
||||||
/>
|
/>
|
||||||
<hr v-show="showRecs" />
|
|
||||||
<div v-show="showRecs" class="pp-show-recs">
|
<div v-show="showRecs" class="pp-show-recs">
|
||||||
|
<h6 efy_card style="padding: 5rem 10rem 3rem; margin: 0">Recommended</h6>
|
||||||
<ContentItem
|
<ContentItem
|
||||||
v-for="related in video.relatedStreams"
|
v-for="related in video.relatedStreams"
|
||||||
:key="related.url"
|
:key="related.url"
|
||||||
|
Loading…
Reference in New Issue
Block a user