pull/3094/head
yann300 6 years ago
parent cf08df59f6
commit a728cfcd0c
  1. 4
      src/app.js
  2. 8
      src/app/components/plugin-manager-component.js
  3. 2
      src/app/components/vertical-icons-component.js
  4. 2
      src/app/tabs/debugger-tab.js
  5. 6
      src/remixAppManager.js

@ -414,7 +414,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
const verticalIconComponent = new VerticalIconsComponent()
const swapPanelApi = new SwapPanelApi(swapPanelComponent, verticalIconComponent) // eslint-disable-line
const verticalIconsApi = new VerticalIconsApi(verticalIconComponent) // eslint-disable-line
let appStore = new EntityStore('module', { actives: [], ids: [], entities: {} })
const appManager = new RemixAppManager(appStore, swapPanelApi, verticalIconsApi)
registry.put({api: appManager.proxy(), name: 'pluginmanager'})
@ -456,7 +456,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
{ profile: pluginManagerComponent.profile(), api: pluginManagerComponent }])
appManager.registerMany([
{ profile: debug.profile(), api: debug },
{ profile: debug.profile(), api: debug },
{ profile: analysis.profile(), api: analysis },
{ profile: test.profile(), api: test }
])

@ -9,7 +9,7 @@ const EventEmitter = require('events')
class PluginManagerComponent {
constructor () {
this.event = new EventEmitter()
this.event = new EventEmitter()
this.views = {
root: null,
items: {}
@ -60,9 +60,9 @@ class PluginManagerComponent {
var modulesActive = this.store.getActives()
modulesActive.sort(function (a, b) {
var textA = a.profile.name.toUpperCase();
var textB = b.profile.name.toUpperCase();
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
var textA = a.profile.name.toUpperCase()
var textB = b.profile.name.toUpperCase()
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0
})
modulesActive.forEach((mod) => {

@ -17,7 +17,7 @@ class VerticalIconComponent {
addIcon (mod) {
let self = this
this.icons[mod.name] = yo`<div class="${css.icon}" onclick=${(e) => { self._iconClick(mod.name) }} title=${mod.name}><img src="${mod.icon}" alt="${mod.name}" /></div>`
this.icons[mod.name] = yo`<div class="${css.icon}" onclick=${(e) => { self._iconClick(mod.name) }} title=${mod.name}><img src="${mod.icon}" alt="${mod.name}" /></div>`
this.view.appendChild(this.icons[mod.name])
}

@ -35,7 +35,7 @@ class DebuggerTab {
icon: 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB3aWR0aD0iMTc5MiIgaGVpZ2h0PSIxNzkyIiB2aWV3Qm94PSIwIDAgMTc5MiAxNzkyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0xNjk2IDk2MHEwIDI2LTE5IDQ1dC00NSAxOWgtMjI0cTAgMTcxLTY3IDI5MGwyMDggMjA5cTE5IDE5IDE5IDQ1dC0xOSA0NXEtMTggMTktNDUgMTl0LTQ1LTE5bC0xOTgtMTk3cS01IDUtMTUgMTN0LTQyIDI4LjUtNjUgMzYuNS04MiAyOS05NyAxM3YtODk2aC0xMjh2ODk2cS01MSAwLTEwMS41LTEzLjV0LTg3LTMzLTY2LTM5LTQzLjUtMzIuNWwtMTUtMTQtMTgzIDIwN3EtMjAgMjEtNDggMjEtMjQgMC00My0xNi0xOS0xOC0yMC41LTQ0LjV0MTUuNS00Ni41bDIwMi0yMjdxLTU4LTExNC01OC0yNzRoLTIyNHEtMjYgMC00NS0xOXQtMTktNDUgMTktNDUgNDUtMTloMjI0di0yOTRsLTE3My0xNzNxLTE5LTE5LTE5LTQ1dDE5LTQ1IDQ1LTE5IDQ1IDE5bDE3MyAxNzNoODQ0bDE3My0xNzNxMTktMTkgNDUtMTl0NDUgMTkgMTkgNDUtMTkgNDVsLTE3MyAxNzN2Mjk0aDIyNHEyNiAwIDQ1IDE5dDE5IDQ1em0tNDgwLTU3NmgtNjQwcTAtMTMzIDkzLjUtMjI2LjV0MjI2LjUtOTMuNSAyMjYuNSA5My41IDkzLjUgMjI2LjV6Ii8+PC9zdmc+',
description: 'debug transactions'
}
}
}
render () {
const self = this

@ -31,7 +31,7 @@ export class RemixAppManager extends AppManagerApi {
}
// at this point, if it's an iframe plugin, it should have already been rendered (to the DOM)
// either using `location` in json profile or using the optionnal api in the `Plugin` class
// temp
if (entity && name === 'SolidityCompile') {
isActive ? this.data.proxy.register(entity.api) : this.data.proxy.unregister(entity.api)
@ -45,7 +45,7 @@ export class RemixAppManager extends AppManagerApi {
addEntity (entity) {
this.store.add(entity.profile.name, entity)
}
}
resolveLocation (profile, domEl) {
// if there's an icon, we add to the swap panel
@ -53,7 +53,7 @@ export class RemixAppManager extends AppManagerApi {
if (profile.icon) {
this.swapPanelApi.add(profile, domEl)
this.verticalIconsApi.addIcon(profile)
return
return
}
this.hiddenNodes[profile.name] = domEl
document.body.appendChild(domEl)

Loading…
Cancel
Save