65 lines
1.7 KiB
JavaScript
65 lines
1.7 KiB
JavaScript
"use strict";
|
|||
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
|
exports.GetConfigFields = GetConfigFields;
|
||
|
|
function GetConfigFields() {
|
||
|
|
return [
|
||
|
|
{
|
||
|
|
type: 'textinput',
|
||
|
|
id: 'username',
|
||
|
|
label: 'Username / Email',
|
||
|
|
width: 12,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
type: 'dropdown',
|
||
|
|
id: 'defaultPlayerHardwareId',
|
||
|
|
label: 'Default decoder/player on startup',
|
||
|
|
width: 12,
|
||
|
|
default: '',
|
||
|
|
choices: [{ id: '', label: '(none)' }],
|
||
|
|
},
|
||
|
|
// NEW: polling intervals
|
||
|
|
{
|
||
|
|
type: 'number',
|
||
|
|
id: 'playerPollMs',
|
||
|
|
label: 'Player position poll (ms)',
|
||
|
|
width: 6,
|
||
|
|
min: 250,
|
||
|
|
max: 30000,
|
||
|
|
default: 1000,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
type: 'number',
|
||
|
|
id: 'positionTrimMs',
|
||
|
|
label: 'Position trim (ms) - only if it still reads behind',
|
||
|
|
width: 6,
|
||
|
|
min: -30000,
|
||
|
|
max: 30000,
|
||
|
|
default: 0,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
type: 'number',
|
||
|
|
id: 'cuePollMs',
|
||
|
|
label: 'Cue list refresh (ms)',
|
||
|
|
width: 6,
|
||
|
|
min: 1000,
|
||
|
|
max: 60000,
|
||
|
|
default: 5000,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
type: 'number',
|
||
|
|
id: 'listPollMs',
|
||
|
|
label: 'User & decoder inf0 poll (ms)',
|
||
|
|
width: 6,
|
||
|
|
min: 10000,
|
||
|
|
max: 3600000,
|
||
|
|
default: 120000,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
type: 'secret-text',
|
||
|
|
id: 'password',
|
||
|
|
label: 'Password',
|
||
|
|
width: 12,
|
||
|
|
}
|
||
|
|
];
|
||
|
|
}
|
||
|
|
//# sourceMappingURL=config.js.map
|