mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Instance homepage support (#4007)
* Prepare homepage parsers * Add ability to update instance hompage * Add ability to set homepage as landing page * Add homepage preview in admin * Dynamically update left menu for homepage * Inject home content in homepage * Add videos list and channel miniature custom markup * Remove unused elements in markup service
This commit is contained in:
parent
eb34ec30e0
commit
2539932e16
84 changed files with 1761 additions and 407 deletions
28
shared/models/custom-markup/custom-markup-data.model.ts
Normal file
28
shared/models/custom-markup/custom-markup-data.model.ts
Normal file
|
@ -0,0 +1,28 @@
|
|||
export type EmbedMarkupData = {
|
||||
// Video or playlist uuid
|
||||
uuid: string
|
||||
}
|
||||
|
||||
export type VideoMiniatureMarkupData = {
|
||||
// Video uuid
|
||||
uuid: string
|
||||
}
|
||||
|
||||
export type PlaylistMiniatureMarkupData = {
|
||||
// Playlist uuid
|
||||
uuid: string
|
||||
}
|
||||
|
||||
export type ChannelMiniatureMarkupData = {
|
||||
// Channel name (username)
|
||||
name: string
|
||||
}
|
||||
|
||||
export type VideosListMarkupData = {
|
||||
title: string
|
||||
description: string
|
||||
sort: string
|
||||
categoryOneOf: string // coma separated values
|
||||
languageOneOf: string // coma separated values
|
||||
count: string
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue