Merge branch 'master' of github.com:jean-emmanuel/open-stage-control
This commit is contained in:
commit
df9fec948f
3 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
var UiWidget = require('./ui-widget'),
|
||||
setScrollbarColor = require('./scrollbar-color')
|
||||
|
||||
class UiWorksapce extends UiWidget {
|
||||
class UiWorkspace extends UiWidget {
|
||||
|
||||
constructor(options) {
|
||||
|
||||
|
|
@ -13,4 +13,4 @@ class UiWorksapce extends UiWidget {
|
|||
|
||||
}
|
||||
|
||||
module.exports = new UiWorksapce({selector: 'osc-workspace'})
|
||||
module.exports = new UiWorkspace({selector: 'osc-workspace'})
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ module.exports = {
|
|||
|
||||
isJSON: function(str) {
|
||||
// heuristic to avoid using JSON when unnecessary
|
||||
// if the string doesn't starts with one of these chars
|
||||
// if the string doesn't start with one of these chars
|
||||
// it's going to fail
|
||||
// ref in source: https://github.com/douglascrockford/JSON-js
|
||||
return ' \n+-eE{([0123456789tfn"'.indexOf(str[0]) !== -1
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ module.exports = {
|
|||
'd': {alias: 'debug', type: 'boolean', describe: 'log received osc messages in the console'},
|
||||
'n': {alias: 'no-gui', type: 'boolean', describe: 'disable default gui'},
|
||||
'fullscreen': {type: 'boolean', describe: 'launch in fullscreen mode (only affects the default client gui)'},
|
||||
't': {alias: 'theme', type: 'array', describe: 'theme name or path (mutliple values allowed)'},
|
||||
't': {alias: 'theme', type: 'array', describe: 'theme name or path (multiple values allowed)'},
|
||||
'client-options': {type: 'array', describe: 'client options (opt=value pairs)',
|
||||
check: (o)=>{
|
||||
return o.some(item=>!item.match(/^[^=]*=[^=]*$/)) ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue