pull/3094/head
Grandschtroumpf 6 years ago
parent 69d26737b3
commit aebacb7ac0
  1. 5
      src/app.js
  2. 5
      src/app/components/panel.js
  3. 1
      src/app/components/vertical-icons.js

@ -321,7 +321,6 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
const appManager = new RemixAppManager(appStore)
registry.put({api: appManager, name: 'appmanager'})
// ----------------- file manager ----------------------------
self._components.fileManager = new FileManager()
const fileManager = self._components.fileManager
@ -366,8 +365,12 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
pluginManagerComponent.setApp(appManager)
pluginManagerComponent.setStore(appStore)
<<<<<<< HEAD
self._components.mainview.init()
=======
self._components.editorpanel.init()
>>>>>>> standard
self._components.fileManager.init()
self._view.mainpanel.appendChild(self._components.mainview.render())
self._view.iconpanel.appendChild(verticalIconsComponent.render())

@ -34,7 +34,7 @@ export class AbstractPanel {
this.events = new EventEmitter()
this.contents = {}
this.active = undefined
// View where the plugin HTMLElement leaves
this.view = yo`<div id="plugins" class="${css.plugins}"></div>`
@ -70,14 +70,13 @@ export class AbstractPanel {
})
}
/**
* Add the plugin to the panel
* @param {String} name the name of the plugin
* @param {HTMLElement} content the HTMLContent of the plugin
*/
add (name, content) {
if (!!this.contents[name]) throw new Error(`Plugin ${name} already rendered`)
if (this.contents[name]) throw new Error(`Plugin ${name} already rendered`)
content.style.height = '100%'
content.style.width = '100%'
content.style.border = '0'

@ -359,7 +359,6 @@ export class VerticalIcons {
}
}
const css = csjs`
.homeIcon {
display: block;

Loading…
Cancel
Save