|
|
@ -105,7 +105,7 @@ class CompilerContainer { |
|
|
|
if (!name) name = '' |
|
|
|
if (!name) name = '' |
|
|
|
var displayed = name === '' ? '<no file selected>' : name |
|
|
|
var displayed = name === '' ? '<no file selected>' : name |
|
|
|
var el = yo` |
|
|
|
var el = yo` |
|
|
|
<div class="${css.compilerArticle}"> |
|
|
|
<div class="px-2 mt-2 pb-0 d-flex"> |
|
|
|
<button class="btn btn-primary btn-block ${name === '' ? 'disabled' : ''}" title="Compile" onclick="${this.compile.bind(this)}"> |
|
|
|
<button class="btn btn-primary btn-block ${name === '' ? 'disabled' : ''}" title="Compile" onclick="${this.compile.bind(this)}"> |
|
|
|
<span>${this._view.compileIcon} Compile ${displayed}</span> |
|
|
|
<span>${this._view.compileIcon} Compile ${displayed}</span> |
|
|
|
</button> |
|
|
|
</button> |
|
|
@ -210,7 +210,7 @@ class CompilerContainer { |
|
|
|
<div class="col-sm-4"> |
|
|
|
<div class="col-sm-4"> |
|
|
|
<div class="d-flex flex-row justify-content-end"> |
|
|
|
<div class="d-flex flex-row justify-content-end"> |
|
|
|
<label class="${css.compilerLabel} input-group-text pr-0 border-0 w-100" for="versionSelector"> |
|
|
|
<label class="${css.compilerLabel} input-group-text pr-0 border-0 w-100" for="versionSelector"> |
|
|
|
<button class="far fa-plus-square border-0 p-0 m-2 text-dark btn-sm" onclick=${this.loadCompiler.bind(this)} title="Add a custom compiler with URL"></button> |
|
|
|
<button class="far fa-plus-square border-0 p-0 m-2 text-dark btn-sm" onclick="${(e)=>this.loadCompiler(e)}" title="Add a custom compiler with URL"></button> |
|
|
|
Compiler |
|
|
|
Compiler |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -243,7 +243,7 @@ class CompilerContainer { |
|
|
|
${this._view.compilationButton} |
|
|
|
${this._view.compilationButton} |
|
|
|
</article> |
|
|
|
</article> |
|
|
|
<!-- Config --> |
|
|
|
<!-- Config --> |
|
|
|
<article> |
|
|
|
<article class="p-2"> |
|
|
|
<small class="${css.compilerSm}">Compiler Configuration</small> |
|
|
|
<small class="${css.compilerSm}">Compiler Configuration</small> |
|
|
|
<ul class="list-group list-group-flush"> |
|
|
|
<ul class="list-group list-group-flush"> |
|
|
|
<li class="list-group-item form-group ${css.compilerConfig}"> |
|
|
|
<li class="list-group-item form-group ${css.compilerConfig}"> |
|
|
@ -270,9 +270,7 @@ class CompilerContainer { |
|
|
|
'Add a custom compiler', |
|
|
|
'Add a custom compiler', |
|
|
|
'URL', |
|
|
|
'URL', |
|
|
|
'', |
|
|
|
'', |
|
|
|
(url) => { |
|
|
|
(url) => this.addCustomCompiler(url) |
|
|
|
this.addCustomCompiler(url) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|