Merge branch 'master' of github.com:jean-emmanuel/open-stage-control
This commit is contained in:
commit
b376bbd325
42 changed files with 618 additions and 326 deletions
|
|
@ -17,6 +17,7 @@ module.exports = function UiFilebrowser(options, callback) {
|
|||
var popup = new UiModal({
|
||||
height: 360,
|
||||
closable: true,
|
||||
html: true,
|
||||
title: locales(save ? 'remotesave_save' : 'remotesave_open'),
|
||||
hide: true
|
||||
})
|
||||
|
|
|
|||
|
|
@ -264,15 +264,20 @@ class UiInspector extends UiWidget {
|
|||
computedValue = JSON.stringify(computedValue, null, ' ')
|
||||
}
|
||||
|
||||
new UiModal({closable: true, title: html`<span class="editor-help-title">${name}</span>`, content: html`
|
||||
new UiModal({closable: true, title: html`<span class="editor-help-title">${name}</span>`, html: true, content: html`
|
||||
<div class="inspector-help">
|
||||
|
||||
<p>Type: <code>${defaultValue.type}</code></p>
|
||||
<p>Default: <code>${JSON.stringify(defaultValue.value)}</code></p>
|
||||
<p>Dynamic: <code>${dynamic ? 'true' : 'false'}</code></p>
|
||||
<p>Computed: <code class="pre">${computedValue}</code></p>
|
||||
|
||||
${htmlHelp}
|
||||
<div class="header">
|
||||
<p>Type: <code>${defaultValue.type}</code></p>
|
||||
<p>Default: <code>${JSON.stringify(defaultValue.value)}</code></p>
|
||||
<p>Dynamic: <code>${dynamic ? 'true' : 'false'}</code></p>
|
||||
</div>
|
||||
<div class="description">
|
||||
${htmlHelp}
|
||||
</div>
|
||||
<div class="computed">
|
||||
<p>Computed value: <code class="pre">${computedValue || 'empty'}</code></p>
|
||||
</div>
|
||||
</div>
|
||||
`})
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class UiModal extends UiWidget {
|
|||
</span>
|
||||
${options.closable? html`<span class="closer">${raw(icon('times'))}</span>` : ''}
|
||||
</div>
|
||||
<div class="popup-content">
|
||||
<div class="popup-content ${options.html ? 'html' : 'message'}">
|
||||
${options.content}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ var UiWidget = require('./ui-widget'),
|
|||
notifications = require('./notifications'),
|
||||
fullscreen = require('./fullscreen'),
|
||||
editor = require('../editor'),
|
||||
sessionManager = require('../managers/session'),
|
||||
sessionManager = require('../managers/session/'),
|
||||
stateManager = require('../managers/state'),
|
||||
{leftUiSidePanel, rightUiSidePanel} = require('../ui/')
|
||||
|
||||
|
|
|
|||
|
|
@ -174,6 +174,7 @@ class UiTree extends UiWidget {
|
|||
if (this.expanded[widget.hash]) node.classList.add('expanded')
|
||||
if (!init && widget instanceof Root) {
|
||||
node.classList.add('expanded')
|
||||
this.expanded[widget.hash] = true
|
||||
init = true
|
||||
}
|
||||
var sublist = node.appendChild(html`<ol style="--depth:${++depth};"></ol>`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue