move header to swapPanel

pull/1/head
yann300 6 years ago
parent f506cb93a1
commit 2b76358022
  1. 3
      src/app/components/plugin-manager-component.js
  2. 10
      src/app/components/swap-panel-component.js
  3. 3
      src/app/tabs/compileTab/compilerContainer.js
  4. 1
      src/app/tabs/test-tab.js

@ -127,9 +127,6 @@ class PluginManagerComponent {
const rootView = yo`
<div id='pluginManager'>
<header class="navbar navbar-dark bg-dark">
<h2 class="navbar-brand">Plugin Manager</h2>
</header>
<div class="form-group ${css.pluginSearch}">
<input onkeyup="${e => this.filterPlugins(e)}" class="form-control" placeholder='Search'>
</div>

@ -41,6 +41,8 @@ class SwapPanelComponent {
this.contents[this.currentNode].style.display = 'none'
}
this.currentNode = moduleName
var item = this.store.getOne(moduleName)
this.header.innerHTML = item.profile ? item.profile.displayName : ' - '
return
}
}
@ -63,7 +65,13 @@ class SwapPanelComponent {
<div id='plugins' class=${css.plugins} >
</div>
`
return this.view
this.header = yo`<header class="navbar navbar-dark bg-dark"><h2 class="navbar-brand"></h2> </header>`
if (!this.opt.displayHeader) this.header.style.display = 'none'
return yo`<div>
${this.header}
${this.view}
</div>`
}
}

@ -131,9 +131,6 @@ class CompilerContainer {
this._view.compileContainer = yo`
<section>
<header class="navbar navbar-dark bg-dark">
<h2 class="navbar-brand">Solidity Compiler</h2>
</header>
<!-- Select Compiler Version -->
<article>
<header class="navbar navbar-light bg-light input-group mb-3">

@ -195,7 +195,6 @@ module.exports = class TestTab {
var el = yo`
<div class="${css.testTabView} card" id="testView">
<div class="${css.infoBox}">
<h2 class="${css.title}">Unit Testing</h2>
Test your smart contract by creating a foo_test.sol file (open ballot_test.sol to see the example).
<br/>
You will find more informations in the <a href="https://remix.readthedocs.io/en/latest/unittesting_tab.html">documentation</a>

Loading…
Cancel
Save