1
0
Fork 0
peertube/shared/models/plugins/register-server-setting.model.ts
2020-05-04 16:21:39 +02:00

17 lines
566 B
TypeScript

export interface RegisterServerSettingOptions {
name: string
label: string
type: 'input' | 'input-checkbox' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced'
// If the setting is not private, anyone can view its value (client code included)
// If the setting is private, only server-side hooks can access it
// Mainly used by the PeerTube client to get admin config
private: boolean
// Default setting value
default?: string | boolean
}
export interface RegisteredServerSettings {
registeredSettings: RegisterServerSettingOptions[]
}