mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Videos overview page: first version
This commit is contained in:
@@ -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'
|
||||
|
||||
1
shared/models/overviews/index.ts
Normal file
1
shared/models/overviews/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './videos-overview'
|
||||
18
shared/models/overviews/videos-overview.ts
Normal file
18
shared/models/overviews/videos-overview.ts
Normal 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[]
|
||||
}[]
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user