mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Add ability to customize instance logo
This commit is contained in:
parent
f5fd593976
commit
c0f4de6077
96 changed files with 1910 additions and 532 deletions
7
server/core/helpers/custom-validators/config.ts
Normal file
7
server/core/helpers/custom-validators/config.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import { LogoType } from '@peertube/peertube-models'
|
||||
|
||||
const logoTypes = new Set<LogoType>([ 'favicon', 'header-square', 'header-wide', 'opengraph' ])
|
||||
|
||||
export function isConfigLogoTypeValid (value: LogoType) {
|
||||
return logoTypes.has(value)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue