pull/543/head
LianaHus 4 years ago
parent a3cf9ec6e1
commit e48b1b889e
  1. 2
      apps/remix-ide/src/app/compiler/compiler-input.js
  2. 9
      apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js
  3. 575
      package-lock.json

@ -7,7 +7,7 @@ module.exports = (sources, opts) => {
settings: { settings: {
optimizer: { optimizer: {
enabled: opts.optimize === true || opts.optimize === 1, enabled: opts.optimize === true || opts.optimize === 1,
runs: opts.runs runs: opts.runs || 200
}, },
libraries: opts.libraries, libraries: opts.libraries,
outputSelection: { outputSelection: {

@ -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()
} }

575
package-lock.json generated

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save