|
|
@ -176,7 +176,7 @@ class CompilerContainer { |
|
|
|
this.compileTabLogic.compiler.event.register('compilerLoaded', (version) => this.setVersionText(version)) |
|
|
|
this.compileTabLogic.compiler.event.register('compilerLoaded', (version) => this.setVersionText(version)) |
|
|
|
this.fetchAllVersion((allversions, selectedVersion, isURL) => { |
|
|
|
this.fetchAllVersion((allversions, selectedVersion, isURL) => { |
|
|
|
this.data.allversions = allversions |
|
|
|
this.data.allversions = allversions |
|
|
|
if(isURL) this._updateVersionSelector(selectedVersion) |
|
|
|
if (isURL) this._updateVersionSelector(selectedVersion) |
|
|
|
else { |
|
|
|
else { |
|
|
|
this.data.selectedVersion = selectedVersion |
|
|
|
this.data.selectedVersion = selectedVersion |
|
|
|
if (this._view.versionSelector) this._updateVersionSelector() |
|
|
|
if (this._view.versionSelector) this._updateVersionSelector() |
|
|
@ -194,9 +194,8 @@ class CompilerContainer { |
|
|
|
if (this.compileTabLogic.optimize) this._view.optimize.setAttribute('checked', '') |
|
|
|
if (this.compileTabLogic.optimize) this._view.optimize.setAttribute('checked', '') |
|
|
|
|
|
|
|
|
|
|
|
this._view.runs = yo`<input
|
|
|
|
this._view.runs = yo`<input
|
|
|
|
onkeypress="return event.charCode >= 48" |
|
|
|
|
|
|
|
min="1" |
|
|
|
min="1" |
|
|
|
class="custom-select ml-2 w-50" |
|
|
|
class="custom-select ml-2 ${css.runs}" |
|
|
|
id="runs" |
|
|
|
id="runs" |
|
|
|
placeholder="200" |
|
|
|
placeholder="200" |
|
|
|
type="number" |
|
|
|
type="number" |
|
|
@ -496,8 +495,8 @@ class CompilerContainer { |
|
|
|
// Check if version is a URL and corresponding filename starts with 'soljson'
|
|
|
|
// Check if version is a URL and corresponding filename starts with 'soljson'
|
|
|
|
if (selectedVersion.startsWith('https://')) { |
|
|
|
if (selectedVersion.startsWith('https://')) { |
|
|
|
const urlArr = selectedVersion.split('/') |
|
|
|
const urlArr = selectedVersion.split('/') |
|
|
|
if(urlArr[urlArr.length - 1].startsWith('soljson')) isURL = true |
|
|
|
if (urlArr[urlArr.length - 1].startsWith('soljson')) isURL = true |
|
|
|
}
|
|
|
|
} |
|
|
|
if (wasmRes.event.type !== 'error') { |
|
|
|
if (wasmRes.event.type !== 'error') { |
|
|
|
allVersionsWasm = JSON.parse(wasmRes.json).builds.slice().reverse() |
|
|
|
allVersionsWasm = JSON.parse(wasmRes.json).builds.slice().reverse() |
|
|
|
} |
|
|
|
} |
|
|
|