]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/custom-markup/custom-markup-data.model.ts
Add more filters for video miniatures
[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
23 export type VideosListMarkupData = {
24 onlyDisplayTitle?: string // boolean
25
26 sort?: string
27 count?: string
28
29 categoryOneOf?: string // coma separated values
30 languageOneOf?: string // coma separated values
31
32 onlyLocal?: string // boolean
33 }
34
35 export type ButtonMarkupData = {
36 theme: 'primary' | 'secondary'
37 href: string
38 label: string
39 blankTarget?: string // boolean
40 }
41
42 export type ContainerMarkupData = {
43 width?: string
44 title?: string
45 description?: string
46 }