]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/custom-markup/custom-markup-data.model.ts
Filter videos by live in custom markup
[github/Chocobozzz/PeerTube.git] / shared / models / custom-markup / custom-markup-data.model.ts
CommitLineData
2539932e
C
1export type EmbedMarkupData = {
2 // Video or playlist uuid
3 uuid: string
4}
5
6export type VideoMiniatureMarkupData = {
7 // Video uuid
8 uuid: string
9105634f
C
9
10 onlyDisplayTitle?: string // boolean
2539932e
C
11}
12
13export type PlaylistMiniatureMarkupData = {
14 // Playlist uuid
15 uuid: string
16}
17
18export type ChannelMiniatureMarkupData = {
19 // Channel name (username)
20 name: string
61cbafc1
C
21
22 displayLatestVideo?: string // boolean
23 displayDescription?: string // boolean
2539932e
C
24}
25
26export type VideosListMarkupData = {
9105634f 27 onlyDisplayTitle?: string // boolean
5d6395af 28 maxRows?: string // number
9105634f
C
29
30 sort?: string
5d6395af 31 count?: string // number
9105634f 32
674d903b 33 categoryOneOf?: string // coma separated values, number[]
9105634f
C
34 languageOneOf?: string // coma separated values
35
674d903b
C
36 channelHandle?: string
37 accountHandle?: string
38
ff4de383
C
39 isLive?: string // number
40
9105634f 41 onlyLocal?: string // boolean
2539932e 42}
63042139
C
43
44export type ButtonMarkupData = {
45 theme: 'primary' | 'secondary'
46 href: string
47 label: string
9105634f 48 blankTarget?: string // boolean
63042139 49}
f7894f09
C
50
51export type ContainerMarkupData = {
52 width?: string
53 title?: string
54 description?: string
61cbafc1 55 layout?: 'row' | 'column'
f7894f09 56}