diff --git a/src/app.js b/src/app.js index 5566c76fdc..4443ad9743 100644 --- a/src/app.js +++ b/src/app.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 } ]) diff --git a/src/app/components/plugin-manager-component.js b/src/app/components/plugin-manager-component.js index 0b24721659..de7c79b0bc 100644 --- a/src/app/components/plugin-manager-component.js +++ b/src/app/components/plugin-manager-component.js @@ -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) => { diff --git a/src/app/components/vertical-icons-component.js b/src/app/components/vertical-icons-component.js index 82afd2ac72..33e8b0d437 100644 --- a/src/app/components/vertical-icons-component.js +++ b/src/app/components/vertical-icons-component.js @@ -17,7 +17,7 @@ class VerticalIconComponent { addIcon (mod) { let self = this - this.icons[mod.name] = yo`
{ self._iconClick(mod.name) }} title=${mod.name}>${mod.name}
` + this.icons[mod.name] = yo`
{ self._iconClick(mod.name) }} title=${mod.name}>${mod.name}
` this.view.appendChild(this.icons[mod.name]) } diff --git a/src/app/tabs/debugger-tab.js b/src/app/tabs/debugger-tab.js index 09bc3e1c97..3bf234f83c 100644 --- a/src/app/tabs/debugger-tab.js +++ b/src/app/tabs/debugger-tab.js @@ -35,7 +35,7 @@ class DebuggerTab { icon: 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB3aWR0aD0iMTc5MiIgaGVpZ2h0PSIxNzkyIiB2aWV3Qm94PSIwIDAgMTc5MiAxNzkyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0xNjk2IDk2MHEwIDI2LTE5IDQ1dC00NSAxOWgtMjI0cTAgMTcxLTY3IDI5MGwyMDggMjA5cTE5IDE5IDE5IDQ1dC0xOSA0NXEtMTggMTktNDUgMTl0LTQ1LTE5bC0xOTgtMTk3cS01IDUtMTUgMTN0LTQyIDI4LjUtNjUgMzYuNS04MiAyOS05NyAxM3YtODk2aC0xMjh2ODk2cS01MSAwLTEwMS41LTEzLjV0LTg3LTMzLTY2LTM5LTQzLjUtMzIuNWwtMTUtMTQtMTgzIDIwN3EtMjAgMjEtNDggMjEtMjQgMC00My0xNi0xOS0xOC0yMC41LTQ0LjV0MTUuNS00Ni41bDIwMi0yMjdxLTU4LTExNC01OC0yNzRoLTIyNHEtMjYgMC00NS0xOXQtMTktNDUgMTktNDUgNDUtMTloMjI0di0yOTRsLTE3My0xNzNxLTE5LTE5LTE5LTQ1dDE5LTQ1IDQ1LTE5IDQ1IDE5bDE3MyAxNzNoODQ0bDE3My0xNzNxMTktMTkgNDUtMTl0NDUgMTkgMTkgNDUtMTkgNDVsLTE3MyAxNzN2Mjk0aDIyNHEyNiAwIDQ1IDE5dDE5IDQ1em0tNDgwLTU3NmgtNjQwcTAtMTMzIDkzLjUtMjI2LjV0MjI2LjUtOTMuNSAyMjYuNSA5My41IDkzLjUgMjI2LjV6Ii8+PC9zdmc+', description: 'debug transactions' } - } + } render () { const self = this diff --git a/src/remixAppManager.js b/src/remixAppManager.js index 76205e946d..b58bd212b3 100644 --- a/src/remixAppManager.js +++ b/src/remixAppManager.js @@ -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)