Merge branch 'master' of github.com:jean-emmanuel/open-stage-control
This commit is contained in:
commit
d9879f3567
7 changed files with 27 additions and 14 deletions
15
CHANGELOG.md
15
CHANGELOG.md
|
|
@ -1,5 +1,20 @@
|
|||
# Changelog
|
||||
|
||||
## next
|
||||
|
||||
- bug fixes
|
||||
- session list: fix "remove from history" always removing the first item in the list
|
||||
- custom module
|
||||
- expose `setInterval`
|
||||
- prevent errors when failing to run the module
|
||||
|
||||
|
||||
## 0.28.1
|
||||
|
||||
- bug fixes
|
||||
- regression in nested clones structures handling
|
||||
|
||||
|
||||
## 0.28.0
|
||||
|
||||
- widgets
|
||||
|
|
|
|||
|
|
@ -59,8 +59,10 @@ module.exports = {
|
|||
|
||||
sessionRemoveFromHistory: function(data) {
|
||||
var sessionlist = settings.read('recentSessions')
|
||||
sessionlist.splice(data,1)
|
||||
settings.write('recentSessions',sessionlist)
|
||||
if (sessionlist.indexOf(data) > -1) {
|
||||
sessionlist.splice(sessionlist.indexOf(data),1)
|
||||
settings.write('recentSessions',sessionlist)
|
||||
}
|
||||
},
|
||||
|
||||
sessionOpen: function(data,clientId) {
|
||||
|
|
|
|||
|
|
@ -136,7 +136,8 @@ var customModule = (function(){
|
|||
console: console,
|
||||
sendOsc: sendOsc,
|
||||
receiveOsc: receiveOsc,
|
||||
setTimeout: setTimeout,
|
||||
setTimeout: setTimeout,
|
||||
setInterval: setInterval,
|
||||
settings: settings
|
||||
}
|
||||
|
||||
|
|
@ -144,6 +145,7 @@ var customModule = (function(){
|
|||
mod = vm.runInContext(file, vm.createContext(context))
|
||||
} catch(err) {
|
||||
console.log(err)
|
||||
return false
|
||||
}
|
||||
|
||||
return mod
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "open-stage-control",
|
||||
"productName": "Open Stage Control",
|
||||
"description": "Libre and modular OSC / MIDI controller",
|
||||
"version": "0.28.0",
|
||||
"version": "0.28.1",
|
||||
"author": {
|
||||
"name": "Jean-Emmanuel Doucet",
|
||||
"email": "jean-emmanuel@ammd.net"
|
||||
|
|
@ -27,6 +27,7 @@
|
|||
"express": "4.16.3",
|
||||
"osc": "2.2.0",
|
||||
"python-shell": "0.5.0",
|
||||
"rtsp-ffmpeg": "0.0.12",
|
||||
"vmodule": "1.0.1",
|
||||
"ws": "^5.0.0",
|
||||
"yargs": "11.0.0"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "open-stage-control-builder",
|
||||
"description": "[Builder package] Libre and modular OSC / MIDI controller",
|
||||
"version": "0.28.0",
|
||||
"version": "0.28.1",
|
||||
"author": {
|
||||
"name": "Jean-Emmanuel Doucet",
|
||||
"email": "jean-emmanuel@ammd.net"
|
||||
|
|
@ -42,7 +42,6 @@
|
|||
"nanomorph": "^5.1.3",
|
||||
"node-sass": "4.7.2",
|
||||
"nodemon": "1.17.2",
|
||||
"rtsp-ffmpeg": "0.0.12",
|
||||
"scope-css": "^1.0.5",
|
||||
"screenfull": "3.3.2",
|
||||
"shortid": "2.2.8",
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ The module is executed in a restricted context, only a few globals are available
|
|||
- `sendOsc`: `function({address, args, host, port})`
|
||||
- `receiveOsc`: `function({address, args, host, port})`
|
||||
- `setTimeout`: `function(function, delay)`
|
||||
- `setInterval`: `function(function, delay)`
|
||||
|
||||
|
||||
`sendOsc` and `receiveOsc` expect arguments formatted as follow:
|
||||
|
|
|
|||
|
|
@ -90,15 +90,8 @@ class Clone extends Widget {
|
|||
|
||||
isValidCloneTarget(widget) {
|
||||
|
||||
if (widget.contains(this) || this.contains(widget)) return false
|
||||
return !(widget.contains(this) || this.contains(widget))
|
||||
|
||||
var parent = widget.parent
|
||||
while (parent && parent !== widgetManager) {
|
||||
if (parent.getProp('type') === 'clone') return false
|
||||
parent = parent.parent
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
cleanClone() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue