Merge branch 'master' of github.com:jean-emmanuel/open-stage-control

This commit is contained in:
bordun 2020-03-25 10:40:50 +01:00
commit 24795b4ed9
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ class Matrix extends StaticProperties(Panel, {scroll: false}) {
_matrix: 'matrix',
widgetType: {type: 'string', value: 'toggle', help: 'Defines the type of the widgets in the matrix'},
widgetType: {type: 'string', value: 'button', help: 'Defines the type of the widgets in the matrix'},
layout: {type: 'string', value: 'horizontal', choices: ['horizontal', 'vertical', 'grid'], help:''},
gridTemplate: {type: 'string|number', value: '', help:'If `layout` is `grid`, can be either a number of columns of a value css grid-template definition.'},
quantity: {type: 'number', value: 4, help: 'Defines the number of widgets in the matrix'},

View file

@ -3,7 +3,7 @@ var fs = require('fs')
module.exports = {
's': {alias: 'send', type: 'array', describe: 'default targets for all widgets (ip: port / domain: port / midi: port_name pairs)',
check: (s)=>{
return s.some(item=>!item.match(/^[^: ]*: [0-9]{4, 5}$/) && !item.match(/^midi: .*$/)) ?
return s.some(item=>!item.match(/^[^:]*:[0-9]{4,5}$/) && !item.match(/^midi:.*$/)) ?
'Targets must be ip: port or domain: port pairs (udp / tcp port must be >= 1024) or midi: port_name pairs' : true
}
},