]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/plugins/client/register-client-form-field.model.ts
add plugin selector to about/menu elements (#4597)
[github/Chocobozzz/PeerTube.git] / shared / models / plugins / client / register-client-form-field.model.ts
CommitLineData
32d13b20
C
1export 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
7294aab0 11
781ba981
C
12 descriptionHTML?: string
13
7294aab0
C
14 // Default setting value
15 default?: string | boolean
0f319334
C
16
17 // Not supported by plugin setting registration, use registerSettingsScript instead
18 hidden?: (options: any) => boolean
7294aab0
C
19}
20
21export interface RegisterClientVideoFieldOptions {
87e0b71d 22 type: 'update' | 'upload' | 'import-url' | 'import-torrent' | 'go-live'
7294aab0 23}