2021-04-09 05:19:14 -04:00
|
|
|
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
|
2020-08-20 10:18:16 -04:00
|
|
|
|
2020-08-21 08:45:57 -04:00
|
|
|
descriptionHTML?: string
|
|
|
|
|
2020-08-20 10:18:16 -04:00
|
|
|
// 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
|
2020-08-20 10:18:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface RegisterClientVideoFieldOptions {
|
2021-04-22 06:00:23 -04:00
|
|
|
type: 'update' | 'upload' | 'import-url' | 'import-torrent' | 'go-live'
|
2020-08-20 10:18:16 -04:00
|
|
|
}
|