]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/custom-markup/custom-markup-data.model.ts
Translated using Weblate (Catalan)
[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
9105634f 39 onlyLocal?: string // boolean
2539932e 40}
63042139
C
41
42export type ButtonMarkupData = {
43 theme: 'primary' | 'secondary'
44 href: string
45 label: string
9105634f 46 blankTarget?: string // boolean
63042139 47}
f7894f09
C
48
49export type ContainerMarkupData = {
50 width?: string
51 title?: string
52 description?: string
61cbafc1 53 layout?: 'row' | 'column'
f7894f09 54}