2020-02-16 19:30:00 +01:00
|
|
|
<template>
|
|
|
|
<div
|
|
|
|
class="ft-list-video"
|
|
|
|
:class="{
|
|
|
|
list: (listType === 'list' || forceListType === 'list') && forceListType !== 'grid',
|
|
|
|
grid: (listType === 'grid' || forceListType === 'list') && forceListType !== 'list'
|
|
|
|
}"
|
|
|
|
>
|
|
|
|
<div class="videoThumbnail">
|
|
|
|
<img
|
|
|
|
:src="thumbnail"
|
|
|
|
@click="play(id)"
|
|
|
|
>
|
|
|
|
<p
|
|
|
|
v-if="!isLive"
|
|
|
|
class="videoDuration"
|
|
|
|
@click="play(id)"
|
|
|
|
>
|
|
|
|
{{ duration }}
|
|
|
|
</p>
|
|
|
|
<font-awesome-icon
|
|
|
|
v-if="!isLive"
|
|
|
|
icon="star"
|
|
|
|
class="favoritesIcon"
|
|
|
|
:class="{ favorited: isFavorited }"
|
|
|
|
@click="toggleSave(id)"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
v-if="watched"
|
|
|
|
class="videoWatched"
|
|
|
|
>
|
|
|
|
WATCHED
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
v-if="watched"
|
|
|
|
class="watchedProgressBar"
|
|
|
|
:style="{width: progressPercentage + '%'}"
|
|
|
|
/>
|
|
|
|
</div>
|
2020-06-11 02:21:31 +02:00
|
|
|
<ft-icon-button
|
|
|
|
class="optionsButton"
|
|
|
|
title="More Options"
|
|
|
|
theme="base"
|
|
|
|
:use-shadow="false"
|
2020-06-17 05:01:13 +02:00
|
|
|
dropdown-position-x="left"
|
2020-06-11 02:21:31 +02:00
|
|
|
:dropdown-names="optionsNames"
|
|
|
|
:dropdown-values="optionsValues"
|
|
|
|
@click="handleOptionsClick"
|
|
|
|
/>
|
2020-05-17 22:12:58 +02:00
|
|
|
<p
|
|
|
|
class="videoTitle"
|
|
|
|
@click="play(id)"
|
|
|
|
>
|
2020-02-16 19:30:00 +01:00
|
|
|
{{ title }}
|
|
|
|
</p>
|
|
|
|
<p
|
|
|
|
class="channelName"
|
|
|
|
@click="goToChannel"
|
|
|
|
>
|
|
|
|
{{ channelName }}
|
|
|
|
</p>
|
|
|
|
<span
|
|
|
|
v-if="!isLive && !hideViews"
|
|
|
|
class="viewCount"
|
2020-05-17 22:12:58 +02:00
|
|
|
@click="play(id)"
|
2020-02-16 19:30:00 +01:00
|
|
|
>
|
|
|
|
{{ viewCount }} views
|
|
|
|
</span>
|
|
|
|
<span
|
|
|
|
v-if="uploadedTime !== '' && !isLive"
|
|
|
|
class="uploadedTime"
|
2020-05-17 22:12:58 +02:00
|
|
|
@click="play(id)"
|
2020-02-16 19:30:00 +01:00
|
|
|
>
|
|
|
|
- {{ uploadedTime }}
|
|
|
|
</span>
|
|
|
|
<span
|
|
|
|
v-if="isLive"
|
|
|
|
class="viewCount"
|
2020-05-17 22:12:58 +02:00
|
|
|
@click="play(id)"
|
2020-02-16 19:30:00 +01:00
|
|
|
>
|
|
|
|
{{ viewCount }} watching
|
|
|
|
</span>
|
|
|
|
<p
|
|
|
|
v-if="listType !== 'grid'"
|
|
|
|
class="description"
|
2020-05-17 22:12:58 +02:00
|
|
|
@click="play(id)"
|
2020-02-16 19:30:00 +01:00
|
|
|
>
|
|
|
|
{{ description }}
|
|
|
|
</p>
|
|
|
|
<span
|
|
|
|
v-if="isLive"
|
|
|
|
class="liveText"
|
2020-05-17 22:12:58 +02:00
|
|
|
@click="play(id)"
|
2020-02-16 19:30:00 +01:00
|
|
|
>
|
|
|
|
LIVE NOW
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./ft-list-video.js" />
|
|
|
|
<style scoped src="./ft-list-video.css" />
|