]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/custom-markup/custom-markup-data.model.ts
Add max rows to videos list
[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
C
32
33 categoryOneOf?: string // coma separated values
34 languageOneOf?: string // coma separated values
35
36 onlyLocal?: string // boolean
5d6395af 37
2539932e 38}
63042139
C
39
40export type ButtonMarkupData = {
41 theme: 'primary' | 'secondary'
42 href: string
43 label: string
9105634f 44 blankTarget?: string // boolean
63042139 45}
f7894f09
C
46
47export type ContainerMarkupData = {
48 width?: string
49 title?: string
50 description?: string
61cbafc1 51 layout?: 'row' | 'column'
f7894f09 52}