Merge pull request #2147 from ethereum/removeRemoveingPlugins

remove cleanup of plugins before new workspace load
pull/3094/head
Liana Husikyan 6 years ago committed by GitHub
commit 95d8b1f4b2
  1. 8
      src/app/ui/landing-page/landing-page.js
  2. 70
      src/app/ui/landing-page/section.js

@ -23,14 +23,8 @@ let css = csjs`
.homeContainer {
user-select:none;
}
.jumbotronContainer {
/* margin: 50px 60px 0; */
/* width: 80%; */
}
.thisJumboton {
padding: 2.5rem 0rem;
/* display: flex;*/
/* justify-content: space-between;*/
margin-bottom: 4rem;
}
.hpLogoContainer {
@ -183,7 +177,7 @@ export class LandingPage extends ViewPlugin {
document.location.reload()
}
let container = yo`<div class="${css.homeContainer} bg-light">
<div class="${css.jumbotronContainer}">
<div>
<div class="alert alert-info clearfix ${css.thisJumboton}">
<div class="${css.headlineContainer}">
<h2 class="">The new layout has arrived</h2>

@ -1,70 +0,0 @@
let yo = require('yo-yo')
let csjs = require('csjs-inject')
var css = csjs`
.text {
cursor: pointer;
font-weight: normal;
max-width: 300px;
user-select: none;
padding-left: 14px;
}
.text:hover {
font-weight: bold;
}
.link {
cursor: pointer;
font-weight: normal;
text-decoration : none;
user-select: none;
padding-left: 14px;
}
.link:hover {
font-weight: bold;
text-decoration : none;
}
`
class Section {
constructor (title, actions) {
this.title = title
this.actions = actions
}
render () {
let sectionLook = yo`
<div class="card border-0 bg-light text-dark p-1" style="min-width: 300px; min-height: 180px;">
<div class="card-header h5 font-weight-bold" style="user-select: none;">${this.title}</div>
<p></p>
</div>
`
for (var i = 0; i < this.actions.length; i++) {
if (this.actions[i].type === `callback`) {
sectionLook.appendChild(yo`
<div>
<span class="${css.text} h6 text-dark" onclick=${this.actions[i].payload} >
${this.actions[i].label}
</span>
</div>
`)
} else if (this.actions[i].type === `link`) {
sectionLook.appendChild(yo`
<div >
<a class="${css.link} text-dark h6 text-decoration-none" href=${this.actions[i].payload} target="_blank" >
${this.actions[i].label}
</a>
</div>
`)
}
}
if (!this._view) {
this._view = sectionLook
}
return this._view
}
}
module.exports = Section
Loading…
Cancel
Save