Unverified Commit bf049e90 authored by Liana Husikyan's avatar Liana Husikyan Committed by GitHub

Merge pull request #2119 from ethereum/terminalCTC

fixed copyToClipboard for terminal decoded input/output
parents 91ed294e 0f823ea5
...@@ -513,7 +513,7 @@ function createTable (opts) { ...@@ -513,7 +513,7 @@ function createTable (opts) {
<tr class="${css.tr}"> <tr class="${css.tr}">
<td class="${css.td}"> decoded input </td> <td class="${css.td}"> decoded input </td>
<td class="${css.td}">${opts['decoded input']} <td class="${css.td}">${opts['decoded input']}
${copyToClipboard(opts['decoded input'])} ${copyToClipboard(() => opts['decoded input'])}
</td> </td>
</tr>` </tr>`
table.appendChild(inputDecoded) table.appendChild(inputDecoded)
...@@ -524,7 +524,7 @@ function createTable (opts) { ...@@ -524,7 +524,7 @@ function createTable (opts) {
<tr class="${css.tr}"> <tr class="${css.tr}">
<td class="${css.td}"> decoded output </td> <td class="${css.td}"> decoded output </td>
<td class="${css.td}" id="decodedoutput" >${opts['decoded output']} <td class="${css.td}" id="decodedoutput" >${opts['decoded output']}
${copyToClipboard(opts['decoded output'])} ${copyToClipboard(() => opts['decoded output'])}
</td> </td>
</tr>` </tr>`
table.appendChild(outputDecoded) table.appendChild(outputDecoded)
......
...@@ -405,22 +405,24 @@ class Terminal extends BaseApi { ...@@ -405,22 +405,24 @@ class Terminal extends BaseApi {
self._cmdIndex = -1 self._cmdIndex = -1
self._cmdTemp = '' self._cmdTemp = ''
var intro = yo`<div><div> - Welcome to Remix ${packageV.version} - </div><br> var intro = yo`
<div>You can use this terminal for: </div> <div><div> - Welcome to Remix ${packageV.version} - </div><br>
<ul class=${css2.ul}> <div>You can use this terminal for: </div>
<li>Checking transactions details and start debugging.</li> <ul class=${css2.ul}>
<li>Running JavaScript scripts. The following libraries are accessible: <li>Checking transactions details and start debugging.</li>
<ul class=${css2.ul}> <li>Running JavaScript scripts. The following libraries are accessible:
<li><a target="_blank" href="https://web3js.readthedocs.io/en/1.0/">web3 version 1.0.0</a></li> <ul class=${css2.ul}>
<li><a target="_blank" href="https://docs.ethers.io/ethers.js/html/">ethers.js</a> </li> <li><a target="_blank" href="https://web3js.readthedocs.io/en/1.0/">web3 version 1.0.0</a></li>
<li><a target="_blank" href="https://www.npmjs.com/package/swarmgw">swarmgw</a> </li> <li><a target="_blank" href="https://docs.ethers.io/ethers.js/html/">ethers.js</a> </li>
<li>remix (run remix.help() for more info)</li> <li><a target="_blank" href="https://www.npmjs.com/package/swarmgw">swarmgw</a> </li>
</ul> <li>remix (run remix.help() for more info)</li>
</li> </ul>
<li>Executing common command to interact with the Remix interface (see list of commands above). Note that these commands can also be included and run from a JavaScript script.</li> </li>
<li>Use exports/.register(key, obj)/.remove(key)/.clear() to register and reuse object across script executions.</li> <li>Executing common command to interact with the Remix interface (see list of commands above). Note that these commands can also be included and run from a JavaScript script.</li>
</ul> <li>Use exports/.register(key, obj)/.remove(key)/.clear() to register and reuse object across script executions.</li>
</div>` </ul>
</div>
`
self._shell('remix.help()', self.commands, () => {}) self._shell('remix.help()', self.commands, () => {})
self.commands.html(intro) self.commands.html(intro)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment