Add support for client-side watch history. (#370)

* Add support for client-side watch history.

* Update watched videos more often.
This commit is contained in:
Kavin
2021-08-22 15:57:09 +05:30
committed by GitHub
parent 6688fafeaa
commit 8feb4fbc41
13 changed files with 193 additions and 23 deletions

View File

@@ -16,6 +16,12 @@
style="bottom: 5px; right: 5px; background: rgba(0, 0, 0, .75); color: white; padding: 0 5px;"
>{{ timeFormat(video.duration) }}</span
>
<span
v-if="video.watched"
class="uk-label uk-border-rounded uk-position-absolute video-duration"
style="bottom: 5px; left: 5px; background: rgba(0, 0, 0, .75); color: white; padding: 0 5px;"
>Watched</span
>
</div>
<p class="uk-text-break">{{ video.title }}</p>
</router-link>