1
0
Fork 0
peertube/shared/models/plugins/client/register-client-form-field.model.ts

24 lines
657 B
TypeScript
Raw Normal View History

export type RegisterClientFormFieldOptions = {
name?: string
label?: string
type: 'input' | 'input-checkbox' | 'input-password' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced' | 'select' | 'html'
// For select type
options?: { value: string, label: string }[]
// For html type
html?: string
descriptionHTML?: string
// Default setting value
default?: string | boolean
2021-04-22 08:25:32 -04:00
// Not supported by plugin setting registration, use registerSettingsScript instead
hidden?: (options: any) => boolean
}
export interface RegisterClientVideoFieldOptions {
type: 'update' | 'upload' | 'import-url' | 'import-torrent' | 'go-live'
}