- added popup and configuration panel api

- remove all href attributes to prevent dragging showing urls
This commit is contained in:
jean-emmanuel 2015-09-09 14:45:25 +02:00 • committed by bordun
parent e5b7f63f08
commit 2d673310dd
7 changed files with 190 additions and 56 deletions

View file

@ -27,8 +27,8 @@ var defaultConfig = {
oscInPort:5555
}
var editableConfig = {
syncTargets: "List of target host (ip:port pairs), separeted by spaces. Every OSC message sent by the app will be sent to these hosts too.",
oscInPort: "Port on which the app listens to synchronise with other apps."
syncTargets: "List of target hosts (ip:port pairs), separeted by spaces. Every OSC message sent by the app will be sent to these hosts too.",
oscInPort: "Port on which the app listens to synchronise with other apps. You'll need to restart the app for this change to take effect."
}
@ -45,7 +45,18 @@ writeConfig = function(newconfig) {
}
readConfig = function(key) {
return config[key] || defaultConfig[key]
if (key!=undefined) {
return config[key] || defaultConfig[key]
} else {
var ret = {}
for (i in editableConfig) {
ret[i] = {
value:readConfig(i),
info:editableConfig[i]
}
}
return ret
}
}
@ -97,8 +108,6 @@ app.on('ready', function() {
var Menu = require('menu');
var MenuItem = require('menu-item');
var menu = new Menu();
var template = [
{
label: 'View',