From db8a76878294c9bda840c3289c65defab8e6b601 Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 18 Jan 2019 11:23:37 +0100 Subject: [PATCH] remove uneeded --- src/app/tabs/compile-tab.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 027c8c3143..4dc278b33b 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -1,6 +1,5 @@ -/* global Worker */ +/* global */ const EventEmitter = require('events') -const async = require('async') const $ = require('jquery') const yo = require('yo-yo') const copy = require('clipboard-copy') @@ -13,8 +12,6 @@ const parseContracts = require('../contract/contractParser') const publishOnSwarm = require('../contract/publishOnSwarm') const addTooltip = require('../ui/tooltip') -const styleGuide = require('../ui/styles-guide/theme-chooser') -const styles = styleGuide.chooser() var css = require('./styles/compile-tab-styles') const CompileTabLogic = require('./compileTab/compileTab.js') @@ -70,8 +67,6 @@ class CompileTab { // forwarding the event to the appManager infra self.event.emit('compilationFinished', source.target, source, self.data.selectedVersion, data) } - const compileTab = document.querySelector('.compileView') - compileTab.style.color = styles.colors.black // reset the contractMetadata list (used by the publish action) self.data.contractsDetails = {} // refill the dropdown list @@ -128,6 +123,16 @@ class CompileTab { }) } + profile () { + return { + name: 'solidity', + methods: ['getCompilationResult'], + events: ['compilationFinished'], + icon: 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB3aWR0aD0iMTc5MiIgaGVpZ2h0PSIxNzkyIiB2aWV3Qm94PSIwIDAgMTc5MiAxNzkyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0xNDcyIDBxMjYgMCA0NSAxOXQxOSA0NXYxNjY0cTAgMjYtMTkgNDV0LTQ1IDE5aC0xMjgwcS0yNiAwLTQ1LTE5dC0xOS00NXYtMTY2NHEwLTI2I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gOSAyM3QyMyA5aDY0cTE0IDAgMjMtOXQ5LTIzeiIvPjwvc3ZnPg==', + description: 'compile solidity contracts' + } + } + render () { const self = this if (self._view.el) return self._view.el