-
Notifications
You must be signed in to change notification settings - Fork 1
/
choices.js
50 lines (46 loc) · 1.5 KB
/
choices.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
const { numberOfPresentationSlots, numberOfMediaPlayerSlots } = require('./constants')
exports.getChoicesForCapture = function () {
return [
{ id: 'Capture1', label: 'Image 1' },
{ id: 'Capture2', label: 'Image 2' },
{ id: 'Capture3', label: 'Image 3' },
{ id: 'Capture4', label: 'Image 4' },
{ id: 'Capture5', label: 'Image 5' },
{ id: 'Capture6', label: 'Image 6' },
{ id: 'Capture7', label: 'Image 7' },
{ id: 'Capture8', label: 'Image 8' },
{ id: 'Capture9', label: 'Image 9' },
{ id: 'Capture10', label: 'Image 10' },
]
}
exports.getChoicesForDisplay = function () {
return [
{ id: 'Display1', label: 'Image 1' },
{ id: 'Display2', label: 'Image 2' },
{ id: 'Display3', label: 'Image 3' },
{ id: 'Display4', label: 'Image 4' },
{ id: 'Display5', label: 'Image 5' },
{ id: 'Display6', label: 'Image 6' },
{ id: 'Display7', label: 'Image 7' },
{ id: 'Display8', label: 'Image 8' },
{ id: 'Display9', label: 'Image 9' },
{ id: 'Display10', label: 'Image 10' },
{ id: 'DisplayTest', label: 'Test' },
{ id: 'Freeze', label: 'Freeze' },
{ id: 'Blackout', label: 'Black' },
]
}
exports.getChoicesForSlot = function () {
choicesList = []
for (let i = 1; i <= numberOfPresentationSlots; i++) {
choicesList.push({ id: `Slot${i}`, label: i })
}
return choicesList
}
exports.getChoicesForMediaPlayer = function () {
choicesList = []
for (let i = 1; i <= numberOfMediaPlayerSlots; i++) {
choicesList.push({ id: `Load_MediaPlayer#${i}`, label: `Media ${i}` })
}
return choicesList
}