2020-02-16 18:30:00 +00:00
|
|
|
<template>
|
2020-06-04 14:30:01 +00:00
|
|
|
<ft-card class="watchVideoInfo">
|
|
|
|
<div>
|
|
|
|
<p
|
|
|
|
class="videoTitle"
|
2020-02-16 18:30:00 +00:00
|
|
|
>
|
2020-06-04 14:30:01 +00:00
|
|
|
{{ title }}
|
|
|
|
</p>
|
|
|
|
<div
|
|
|
|
class="channelInformation"
|
2020-02-16 18:30:00 +00:00
|
|
|
>
|
2020-06-04 14:30:01 +00:00
|
|
|
<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)"
|
2020-08-24 02:56:33 +00:00
|
|
|
text-color="var(--text-with-main-color)"
|
2020-06-04 14:30:01 +00:00
|
|
|
@click="handleSubscription"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-16 18:30:00 +00:00
|
|
|
</div>
|
2020-06-04 14:30:01 +00:00
|
|
|
<div>
|
2020-06-19 13:43:08 +00:00
|
|
|
<div class="datePublished">
|
2020-08-07 00:20:42 +00:00
|
|
|
{{ $t("Video.Published on") }} {{ dateString }}
|
2020-06-19 13:43:08 +00:00
|
|
|
</div>
|
|
|
|
<div class="viewCount">
|
2020-06-04 14:30:01 +00:00
|
|
|
{{ parsedViewCount }}
|
2020-06-19 13:43:08 +00:00
|
|
|
</div>
|
2020-06-16 16:11:23 +00:00
|
|
|
<div class="likeBarContainer">
|
2020-06-04 14:30:01 +00:00
|
|
|
<div
|
2020-06-16 16:11:23 +00:00
|
|
|
class="likeSection"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="likeBar"
|
|
|
|
:style="{ background: `linear-gradient(to right, var(--accent-color) ${likePercentageRatio}%, #9E9E9E ${likePercentageRatio}%` }"
|
2020-06-19 20:20:06 +00:00
|
|
|
/>
|
2020-06-17 11:37:36 +00:00
|
|
|
<div>
|
2020-06-19 20:20:06 +00:00
|
|
|
<span class="likeCount"><font-awesome-icon icon="thumbs-up" /> {{ likeCount }}</span>
|
|
|
|
<span class="dislikeCount"><font-awesome-icon icon="thumbs-down" /> {{ dislikeCount }}</span>
|
2020-06-17 11:37:36 +00:00
|
|
|
</div>
|
2020-06-04 14:30:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-16 16:11:23 +00:00
|
|
|
<div class="videoOptions">
|
|
|
|
<ft-icon-button
|
2020-08-07 00:20:42 +00:00
|
|
|
:title="$t('Toggle Theatre Mode')"
|
2020-06-16 16:11:23 +00:00
|
|
|
class="theatreModeButton option"
|
|
|
|
icon="expand-alt"
|
|
|
|
theme="secondary"
|
|
|
|
@click="$emit('theatreMode')"
|
|
|
|
/>
|
|
|
|
<ft-icon-button
|
2020-08-07 00:20:42 +00:00
|
|
|
:title="$t('Change Format.Change Video Formats')"
|
2020-06-16 16:11:23 +00:00
|
|
|
class="option"
|
|
|
|
theme="secondary"
|
|
|
|
icon="file-video"
|
|
|
|
:dropdown-names="formatTypeNames"
|
|
|
|
:dropdown-values="formatTypeValues"
|
|
|
|
@click="handleFormatChange"
|
|
|
|
/>
|
2020-06-17 13:36:44 +00:00
|
|
|
<ft-share-button
|
|
|
|
:id="id"
|
2020-09-11 03:48:06 +00:00
|
|
|
:timestamp="timestamp"
|
2020-06-19 20:20:06 +00:00
|
|
|
class="option"
|
2020-06-17 13:36:44 +00:00
|
|
|
/>
|
2020-06-16 16:11:23 +00:00
|
|
|
</div>
|
2020-02-16 18:30:00 +00:00
|
|
|
</div>
|
|
|
|
</ft-card>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./watch-video-info.js" />
|
2020-06-04 14:30:01 +00:00
|
|
|
<style scoped src="./watch-video-info.sass" lang="sass" />
|