0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch.git synced 2024-12-22 13:22:58 -05:00

Hide clips (not supported yet)

This commit is contained in:
dragongoose 2023-07-20 14:13:23 -04:00
parent 5a29bd8c74
commit 834301ea90
No known key found for this signature in database
GPG key ID: 01397EEC371CDAA5
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,5 @@
<template> <template>
<div class="min-w-[300px]"> <div v-if="videoData.type === 'vod'" class="min-w-[300px]">
<div class="relative"> <div class="relative">
<RouterLink :to="'/videos/' + videoData.id"> <RouterLink :to="'/videos/' + videoData.id">
<img :src="videoData.preview" class="rounded-md" width="300" /> <img :src="videoData.preview" class="rounded-md" width="300" />

View file

@ -15,6 +15,7 @@ export interface MinifiedStreamer {
} }
export interface Video { export interface Video {
type: "vod" | "clip"
preview: string preview: string
game: MinifiedCategory game: MinifiedCategory
duration: number duration: number
@ -23,6 +24,7 @@ export interface Video {
views: number views: number
tag: string[] tag: string[]
streamer: StreamerData streamer: StreamerData
id: string
} }
export interface Shelve { export interface Shelve {