Videos overview page: first version

This commit is contained in:
Chocobozzz
2018-08-30 14:58:00 +02:00
parent d9eaee3939
commit 2d3741d6d9
32 changed files with 599 additions and 61 deletions

View File

@@ -4,6 +4,7 @@ export * from './users'
export * from './videos'
export * from './feeds'
export * from './i18n'
export * from './overviews'
export * from './search'
export * from './server/job.model'
export * from './oauth-client-local.model'

View File

@@ -0,0 +1 @@
export * from './videos-overview'

View File

@@ -0,0 +1,18 @@
import { Video, VideoChannelAttribute, VideoConstant } from '../videos'
export interface VideosOverview {
channels: {
channel: VideoChannelAttribute
videos: Video[]
}[]
categories: {
category: VideoConstant<number>
videos: Video[]
}[]
tags: {
tag: string
videos: Video[]
}[]
}

View File

@@ -17,6 +17,26 @@ export interface VideoFile {
fps: number
}
export interface VideoChannelAttribute {
id: number
uuid: string
name: string
displayName: string
url: string
host: string
avatar: Avatar
}
export interface AccountAttribute {
id: number
uuid: string
name: string
displayName: string
url: string
host: string
avatar: Avatar
}
export interface Video {
id: number
uuid: string
@@ -46,25 +66,8 @@ export interface Video {
blacklisted?: boolean
blacklistedReason?: string
account: {
id: number
uuid: string
name: string
displayName: string
url: string
host: string
avatar: Avatar
}
channel: {
id: number
uuid: string
name: string
displayName: string
url: string
host: string
avatar: Avatar
}
account: AccountAttribute
channel: VideoChannelAttribute
}
export interface VideoDetails extends Video {