]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/custom-markup/custom-markup-data.model.ts
Improve channel card custom markup
[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
29 sort?: string
30 count?: string
31
32 categoryOneOf?: string // coma separated values
33 languageOneOf?: string // coma separated values
34
35 onlyLocal?: string // boolean
36 }
37
38 export type ButtonMarkupData = {
39 theme: 'primary' | 'secondary'
40 href: string
41 label: string
42 blankTarget?: string // boolean
43 }
44
45 export type ContainerMarkupData = {
46 width?: string
47 title?: string
48 description?: string
49 layout?: 'row' | 'column'
50 }