aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-09 09:32:47 +0200
committerChocobozzz <me@florianbigard.com>2021-06-09 09:32:47 +0200
commit9105634f16e5dfc66df198f23dbfae77dff2d821 (patch)
treeb88b569f75b9312486b382633b1e6eef59bb5045 /shared/models
parentf7894f09649b8ae4009d51790f1ac636c4fc4439 (diff)
downloadPeerTube-9105634f16e5dfc66df198f23dbfae77dff2d821.tar.gz
PeerTube-9105634f16e5dfc66df198f23dbfae77dff2d821.tar.zst
PeerTube-9105634f16e5dfc66df198f23dbfae77dff2d821.zip
Add more filters for video miniatures
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/custom-markup/custom-markup-data.model.ts17
1 files changed, 12 insertions, 5 deletions
diff --git a/shared/models/custom-markup/custom-markup-data.model.ts b/shared/models/custom-markup/custom-markup-data.model.ts
index d38f9412c..085ea7cf6 100644
--- a/shared/models/custom-markup/custom-markup-data.model.ts
+++ b/shared/models/custom-markup/custom-markup-data.model.ts
@@ -6,6 +6,8 @@ export type EmbedMarkupData = {
6export type VideoMiniatureMarkupData = { 6export type VideoMiniatureMarkupData = {
7 // Video uuid 7 // Video uuid
8 uuid: string 8 uuid: string
9
10 onlyDisplayTitle?: string // boolean
9} 11}
10 12
11export type PlaylistMiniatureMarkupData = { 13export type PlaylistMiniatureMarkupData = {
@@ -19,17 +21,22 @@ export type ChannelMiniatureMarkupData = {
19} 21}
20 22
21export type VideosListMarkupData = { 23export type VideosListMarkupData = {
22 sort: string 24 onlyDisplayTitle?: string // boolean
23 categoryOneOf: string // coma separated values 25
24 languageOneOf: string // coma separated values 26 sort?: string
25 count: string 27 count?: string
28
29 categoryOneOf?: string // coma separated values
30 languageOneOf?: string // coma separated values
31
32 onlyLocal?: string // boolean
26} 33}
27 34
28export type ButtonMarkupData = { 35export type ButtonMarkupData = {
29 theme: 'primary' | 'secondary' 36 theme: 'primary' | 'secondary'
30 href: string 37 href: string
31 label: string 38 label: string
32 blankTarget?: string 39 blankTarget?: string // boolean
33} 40}
34 41
35export type ContainerMarkupData = { 42export type ContainerMarkupData = {