aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/client/register-client-form-field.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/plugins/client/register-client-form-field.model.ts')
-rw-r--r--shared/models/plugins/client/register-client-form-field.model.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/shared/models/plugins/client/register-client-form-field.model.ts b/shared/models/plugins/client/register-client-form-field.model.ts
new file mode 100644
index 000000000..2df071337
--- /dev/null
+++ b/shared/models/plugins/client/register-client-form-field.model.ts
@@ -0,0 +1,23 @@
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
11
12 descriptionHTML?: string
13
14 // Default setting value
15 default?: string | boolean
16
17 // Not supported by plugin setting registration, use registerSettingsScript instead
18 hidden?: (options: any) => boolean
19}
20
21export interface RegisterClientVideoFieldOptions {
22 type: 'update' | 'upload' | 'import-url' | 'import-torrent' | 'go-live'
23}