-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconfig.js
54 lines (53 loc) · 1.27 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { Regex } from '@companion-module/base'
export const ConfigFields = [
{
type: 'textinput',
id: 'host',
label: 'Target HOST/IP',
tooltip: 'Host name only works if there is a\nworking DNS server on the local network.',
width: 8,
default: '127.0.0.1',
regex:
'/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]).)+([A-Za-z]|[A-Za-z][A-Za-z0-9-]*[A-Za-z0-9])$/',
},
{
type: 'textinput',
id: 'port',
label: 'Target Port',
width: 4,
default: 8080,
regex: Regex.PORT,
},
{
type: 'textinput',
id: 'password',
label: 'HTTP Password (required)',
width: 8,
},
{
type: 'checkbox',
id: 'hires',
label: 'Increase timer resolution?',
tooltip: 'Poll playback counter more frequently\nfor better response and resolution',
default: false,
width: 4,
},
{
type: 'number',
id: 'pre_clear',
label: 'Number of clip names to reserve',
tooltip: 'Always create this many clip names.\nPrevents $NA when clip name is empty.',
default: 0,
min: 0,
max: 50,
width: 8,
},
{
type: 'checkbox',
id: 'use_bullet',
label: 'Use \u00b7 for empty?',
tooltip: 'Display \u00b7 for empty clip names\notherwise display blank.',
default: false,
width: 4,
},
]