1
0
Fork 0
peertube/shared/models/plugins/register-server-setting.model.ts

18 lines
566 B
TypeScript
Raw Normal View History

2019-07-24 05:17:42 -04:00
export interface RegisterServerSettingOptions {
name: string
label: string
type: 'input' | 'input-checkbox' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced'
2019-07-26 03:35:43 -04:00
// 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
2019-07-26 03:35:43 -04:00
// Mainly used by the PeerTube client to get admin config
private: boolean
// Default setting value
2020-04-28 08:49:03 -04:00
default?: string | boolean
2019-07-24 05:17:42 -04:00
}
export interface RegisteredServerSettings {
2019-07-26 03:35:43 -04:00
registeredSettings: RegisterServerSettingOptions[]
2019-07-24 05:17:42 -04:00
}