Clip support #25

This commit is contained in:
dragongoose
2023-08-21 23:26:45 -04:00
parent 1b96f001f9
commit 99899258d4
3 changed files with 173 additions and 2 deletions

View File

@ -1,7 +1,10 @@
<template>
<div v-if="videoData.type === 'vod'" class="min-w-[300px]">
<div class="min-w-[300px]">
<div class="relative">
<RouterLink :to="'/videos/' + videoData.id">
<RouterLink v-if="videoData.type === 'vod'" :to="'/videos/' + videoData.id">
<img :src="videoData.preview" class="rounded-md" width="300" />
</RouterLink>
<RouterLink v-else :to="`${$route.params.username}/clip/${videoData.id}`">
<img :src="videoData.preview" class="rounded-md" width="300" />
</RouterLink>
<p