aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/custom-markup/custom-markup-data.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/custom-markup/custom-markup-data.model.ts')
-rw-r--r--shared/models/custom-markup/custom-markup-data.model.ts54
1 files changed, 54 insertions, 0 deletions
diff --git a/shared/models/custom-markup/custom-markup-data.model.ts b/shared/models/custom-markup/custom-markup-data.model.ts
new file mode 100644
index 000000000..8cbe3cfa4
--- /dev/null
+++ b/shared/models/custom-markup/custom-markup-data.model.ts
@@ -0,0 +1,54 @@
1export type EmbedMarkupData = {
2 // Video or playlist uuid
3 uuid: string
4}
5
6export type VideoMiniatureMarkupData = {
7 // Video uuid
8 uuid: string
9
10 onlyDisplayTitle?: string // boolean
11}
12
13export type PlaylistMiniatureMarkupData = {
14 // Playlist uuid
15 uuid: string
16}
17
18export type ChannelMiniatureMarkupData = {
19 // Channel name (username)
20 name: string
21
22 displayLatestVideo?: string // boolean
23 displayDescription?: string // boolean
24}
25
26export type VideosListMarkupData = {
27 onlyDisplayTitle?: string // boolean
28 maxRows?: string // number
29
30 sort?: string
31 count?: string // number
32
33 categoryOneOf?: string // coma separated values, number[]
34 languageOneOf?: string // coma separated values
35
36 channelHandle?: string
37 accountHandle?: string
38
39 onlyLocal?: string // boolean
40}
41
42export type ButtonMarkupData = {
43 theme: 'primary' | 'secondary'
44 href: string
45 label: string
46 blankTarget?: string // boolean
47}
48
49export type ContainerMarkupData = {
50 width?: string
51 title?: string
52 description?: string
53 layout?: 'row' | 'column'
54}