aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/custom-markup/custom-markup-data.model.ts
blob: f3c23ec2c93aad3b68bc2c266bfefa6e0356bf99 (plain) (tree)
1
2
3
4
5
6
7
8
9
10







                                        

                                      









                                           


                                        


                                    








                                                 
 




                                
                                 
 




                                   
                           
 
export type EmbedMarkupData = {
  // Video or playlist uuid
  uuid: string
}

export type VideoMiniatureMarkupData = {
  // Video uuid
  uuid: string

  onlyDisplayTitle?: string // boolean
}

export type PlaylistMiniatureMarkupData = {
  // Playlist uuid
  uuid: string
}

export type ChannelMiniatureMarkupData = {
  // Channel name (username)
  name: string

  displayLatestVideo?: string // boolean
  displayDescription?: string // boolean
}

export type VideosListMarkupData = {
  onlyDisplayTitle?: string // boolean

  sort?: string
  count?: string

  categoryOneOf?: string // coma separated values
  languageOneOf?: string // coma separated values

  onlyLocal?: string // boolean
}

export type ButtonMarkupData = {
  theme: 'primary' | 'secondary'
  href: string
  label: string
  blankTarget?: string // boolean
}

export type ContainerMarkupData = {
  width?: string
  title?: string
  description?: string
  layout?: 'row' | 'column'
}