Fix conflicts after rebase

pull/1/head
ninabreznik 7 years ago committed by yann300
parent 01a3105450
commit 49917e2834
  1. 5863
      package-lock.json
  2. 21
      src/app/tabs/compile-tab.js

5863
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -92,12 +92,17 @@ var css = csjs`
min-width: 70px;
margin-left: 2%;
}
.log {
display: flex;
flex-direction: row;
align-items: baseline
}
.copyDetails {
margin-top: 5%;
font-size: 20px;
margin-left: 2%;
font-size: 14px;
cursor: pointer;
color: ${styles.colors.grey};
opacity: .5;
opacity: .3;
}
.copyDetails:hover {
opacity: 1;
@ -282,9 +287,13 @@ function compileTab (container, appAPI, appEvents, opts) {
function details () {
var select = el.querySelector('select')
var contractName = select.children[select.selectedIndex].innerText
var details = JSON.stringify(contractsDetails[contractName], null, '\t')
var copyDetails = yo`<div class="${css.copyDetails}"><i title="Copy details" class="fa fa-clipboard" onclick=${() => { copy(details) }} aria-hidden="true"></i></div>`
var log = yo`<div><pre class="${css.detailsJSON}">${details} ${copyDetails}</pre></div>`
var details = contractsDetails[contractName]
var keys = Object.keys(contractsDetails[contractName])
var log = yo`<div class="${css.detailsJSON}"></div>`
keys.map(x => {
var copyDetails = yo`<span class="${css.copyDetails}"><i title="Copy details" class="fa fa-clipboard" onclick=${() => { copy(details[x]) }} aria-hidden="true"></i></span>`
log.appendChild(yo`<div class=${css.log}><pre>${x}: ${JSON.stringify(details[x], null, 4)}</pre>${copyDetails}</div>`)
})
modalDialog(contractName, log, {label: 'OK'}, {label: ''})
}

Loading…
Cancel
Save