- removed config file (now required in a try/finally statement and created on the fly
- stretch option for panel
This commit is contained in:
parent
36f4dafc79
commit
89c7accfc3
4 changed files with 9 additions and 2 deletions
|
|
@ -121,6 +121,7 @@ It can also be a self invoking function that returns an array of objects :
|
|||
left:'auto', // [integer] absolute position in px
|
||||
height:'auto', // [integer] absolute position in px
|
||||
width:'auto', // [integer] width in px
|
||||
stretch:false, // [bool] set to true to stretch widgets width (don't put horizontal strips in it)
|
||||
widgets: [] // [array] of widget objects
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -717,6 +717,13 @@ form {
|
|||
> .widget {
|
||||
border:0;
|
||||
}
|
||||
&.stretch {
|
||||
display:flex;
|
||||
justify-content: space-between;
|
||||
> .widget {
|
||||
width:100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
{}
|
||||
|
|
@ -35,7 +35,7 @@ var app = require('app')
|
|||
sessionFile: argv.l || false,
|
||||
|
||||
|
||||
persistent: require( __dirname + '/config.json'),
|
||||
persistent: function(){var c = {};try {c=require( __dirname + '/config.json')} finally {return c}}(),
|
||||
|
||||
read:function(key){
|
||||
var x = this.persistent[key] || this[key]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue