add system accesslvl

adjust default config
This commit is contained in:
brindosch 2016-12-22 16:24:31 +01:00
parent 068df68ac0
commit be90981388
2 changed files with 12 additions and 12 deletions

View File

@ -1458,10 +1458,12 @@ JSONEditor.AbstractEditor = Class.extend({
this.register(); this.register();
this.onWatchedFieldChange(); this.onWatchedFieldChange();
//disable input field, if it didn't match the current access level //hide input field, if it didn't match the current access level
var storedAccess = localStorage.getItem("accesslevel"); var storedAccess = localStorage.getItem("accesslevel");
if(this.schema.access){ if(this.schema.access){
if(this.schema.access == 'system')
this.container.style.display = "none";
if(this.schema.access == 'expert' && storedAccess != 'expert'){ if(this.schema.access == 'expert' && storedAccess != 'expert'){
this.container.style.display = "none"; this.container.style.display = "none";
//this.disable(); //this.disable();

View File

@ -11,7 +11,7 @@
"output" : "/dev/null", "output" : "/dev/null",
"rate" : 1000000, "rate" : 1000000,
"colorOrder" : "rgb", "colorOrder" : "rgb",
"rewriteTime": 0 "rewriteTime": 5000
}, },
"color" : "color" :
@ -97,7 +97,7 @@
"height" : -1, "height" : -1,
"frameDecimation" : 2, "frameDecimation" : 2,
"sizeDecimation" : 8, "sizeDecimation" : 8,
"priority" : 890, "priority" : 850,
"mode" : "2D", "mode" : "2D",
"useKodiChecker" : false, "useKodiChecker" : false,
"cropLeft" : 0, "cropLeft" : 0,
@ -118,10 +118,10 @@
{ {
"enable" : true, "enable" : true,
"type" : "auto", "type" : "auto",
"width" : 96, "width" : 80,
"height" : 96, "height" : 45,
"frequency_Hz" : 10.0, "frequency_Hz" : 10.0,
"priority" : 890 "priority" : 900
}, },
"blackborderdetector" : "blackborderdetector" :
@ -141,13 +141,13 @@
"grabAudio" : true, "grabAudio" : true,
"grabMenu" : false, "grabMenu" : false,
"grabPause" : false, "grabPause" : false,
"grabScreensaver" : true, "grabScreensaver" : false,
"enable3DDetection" : true "enable3DDetection" : false
}, },
"initialEffect" : "initialEffect" :
{ {
"background-effect" : ["Full color mood blobs"], "background-effect" : ["Warm mood blobs"],
"foreground-effect" : ["Rainbow swirl fast"], "foreground-effect" : ["Rainbow swirl fast"],
"foreground-duration_ms" : 3000 "foreground-duration_ms" : 3000
}, },
@ -193,9 +193,7 @@
"effects" : "effects" :
{ {
"paths" : "paths" : ["../custom-effects"]
[
]
}, },
"leds" : "leds" :