PeerTube/shared/models/custom-markup/custom-markup-data.model.ts

55 lines
1.0 KiB
TypeScript
Raw Normal View History

export type EmbedMarkupData = {
// Video or playlist uuid
uuid: string
}
export type VideoMiniatureMarkupData = {
// Video uuid
uuid: string
2021-06-09 02:32:47 -05:00
onlyDisplayTitle?: string // boolean
}
export type PlaylistMiniatureMarkupData = {
// Playlist uuid
uuid: string
}
export type ChannelMiniatureMarkupData = {
// Channel name (username)
name: string
2021-06-09 03:31:27 -05:00
displayLatestVideo?: string // boolean
displayDescription?: string // boolean
}
export type VideosListMarkupData = {
2021-06-09 02:32:47 -05:00
onlyDisplayTitle?: string // boolean
2021-06-09 03:59:20 -05:00
maxRows?: string // number
2021-06-09 02:32:47 -05:00
sort?: string
2021-06-09 03:59:20 -05:00
count?: string // number
2021-06-09 02:32:47 -05:00
categoryOneOf?: string // coma separated values, number[]
2021-06-09 02:32:47 -05:00
languageOneOf?: string // coma separated values
channelHandle?: string
accountHandle?: string
2021-06-09 02:32:47 -05:00
onlyLocal?: string // boolean
}
export type ButtonMarkupData = {
theme: 'primary' | 'secondary'
href: string
label: string
2021-06-09 02:32:47 -05:00
blankTarget?: string // boolean
}
2021-06-09 02:19:36 -05:00
export type ContainerMarkupData = {
width?: string
title?: string
description?: string
2021-06-09 03:31:27 -05:00
layout?: 'row' | 'column'
2021-06-09 02:19:36 -05:00
}