]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/plugins/register-client-form-field.model.ts
Add go-live example for plugin form fields
[github/Chocobozzz/PeerTube.git] / shared / models / plugins / register-client-form-field.model.ts
1 export type RegisterClientFormFieldOptions = {
2 name?: string
3 label?: string
4 type: 'input' | 'input-checkbox' | 'input-password' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced' | 'select' | 'html'
5
6 // For select type
7 options?: { value: string, label: string }[]
8
9 // For html type
10 html?: string
11
12 descriptionHTML?: string
13
14 // Default setting value
15 default?: string | boolean
16 }
17
18 export interface RegisterClientVideoFieldOptions {
19 type: 'update' | 'upload' | 'import-url' | 'import-torrent' | 'go-live'
20 }