mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Reorganize plugin models
This commit is contained in:
parent
2b02c520e6
commit
428ccb8b7a
48 changed files with 113 additions and 112 deletions
|
@ -0,0 +1,23 @@
|
|||
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
|
||||
|
||||
// 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'
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue