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