113 lines
3.1 KiB
Vue
113 lines
3.1 KiB
Vue
<template>
|
|
<ft-card class="watchVideoInfo">
|
|
<div>
|
|
<p
|
|
class="videoTitle"
|
|
>
|
|
{{ title }}
|
|
</p>
|
|
<div
|
|
class="channelInformation"
|
|
>
|
|
<div
|
|
class="profileRow"
|
|
>
|
|
<div>
|
|
<img
|
|
:src="channelThumbnail"
|
|
class="channelThumbnail"
|
|
@click="goToChannel"
|
|
>
|
|
</div>
|
|
<div>
|
|
<div
|
|
class="channelName"
|
|
@click="goToChannel"
|
|
>
|
|
{{ channelName }}
|
|
</div>
|
|
<ft-button
|
|
:label="subscribedText"
|
|
class="subscribeButton"
|
|
background-color="var(--primary-color)"
|
|
text-color="var(--text-with-main-color)"
|
|
@click="handleSubscription"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="datePublished">
|
|
{{ publishedString }} {{ dateString }}
|
|
</div>
|
|
<div class="viewCount">
|
|
{{ parsedViewCount }}
|
|
</div>
|
|
<div
|
|
v-if="!hideVideoLikesAndDislikes"
|
|
class="likeBarContainer"
|
|
>
|
|
<div
|
|
class="likeSection"
|
|
>
|
|
<div
|
|
class="likeBar"
|
|
:style="{ background: `linear-gradient(to right, var(--accent-color) ${likePercentageRatio}%, #9E9E9E ${likePercentageRatio}%` }"
|
|
/>
|
|
<div>
|
|
<span class="likeCount"><font-awesome-icon icon="thumbs-up" /> {{ likeCount }}</span>
|
|
<span class="dislikeCount"><font-awesome-icon icon="thumbs-down" /> {{ dislikeCount }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="videoOptions">
|
|
<ft-icon-button
|
|
v-if="!isUpcoming"
|
|
:title="$t('Video.Save Video')"
|
|
icon="star"
|
|
class="option"
|
|
:theme="favoriteIconTheme"
|
|
@click="toggleSave"
|
|
/>
|
|
<ft-icon-button
|
|
v-if="theatrePossible"
|
|
:title="$t('Toggle Theatre Mode')"
|
|
class="theatreModeButton option"
|
|
icon="expand-alt"
|
|
theme="secondary"
|
|
@click="$emit('theatre-mode')"
|
|
/>
|
|
<ft-icon-button
|
|
v-if="!isUpcoming && downloadLinks.length > 0"
|
|
:title="$t('Video.Download Video')"
|
|
class="option"
|
|
theme="secondary"
|
|
icon="download"
|
|
:dropdown-names="downloadLinkNames"
|
|
:dropdown-values="downloadLinkValues"
|
|
@click="handleDownloadLink"
|
|
/>
|
|
<ft-icon-button
|
|
v-if="!isUpcoming"
|
|
:title="$t('Change Format.Change Video Formats')"
|
|
class="option"
|
|
theme="secondary"
|
|
icon="file-video"
|
|
:dropdown-names="formatTypeNames"
|
|
:dropdown-values="formatTypeValues"
|
|
@click="handleFormatChange"
|
|
/>
|
|
<ft-share-button
|
|
:id="id"
|
|
:get-timestamp="getTimestamp"
|
|
class="option"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</ft-card>
|
|
</template>
|
|
|
|
<script src="./watch-video-info.js" />
|
|
<style scoped src="./watch-video-info.sass" lang="sass" />
|