diff --git a/src/app/contract-tab.js b/src/app/contract-tab.js deleted file mode 100644 index 06fb3a83a2..0000000000 --- a/src/app/contract-tab.js +++ /dev/null @@ -1,125 +0,0 @@ -var yo = require('yo-yo') -const copy = require('clipboard-copy') - -// -------------- styling ---------------------- -var csjs = require('csjs-inject') -var styleGuide = require('./style-guide') -var styles = styleGuide() - -var css = csjs` - .contractTabView { - padding: 2%; - } - .crow { - margin-top: 1em; - display: flex; - } - .col1 extends ${styles.titleL} { - width: 30%; - float: left; - align-self: center; - } - .col1_1 extends ${styles.titleM} { - width: 30%; - float: left; - align-self: center; - } - .col2 extends ${styles.textBoxL}{ - width: 70%; - height: 32px; - float: left; - padding: .8em; - } - .select extends ${styles.dropdown} { - width: 70%; - float: left; - text-align: center; - height: 32px; - } - .contract { - display: block; - margin: 4em 0 2em 0; - } - .copyaddress { - color: #C6CFF7; - margin-right: 0.2em; - margin-top: 0.7em; - cursor: pointer; - } - .selectAddress extends ${styles.dropdown} { - width: 74%; - float: left; - text-align: center; - height: 32px; - } -` - -module.exports = contractTab - -function contractTab (container, appAPI, appEvents, opts) { - function copyAddress () { - copy(document.querySelector('#envView #txorigin').value) - } - var el = yo` -
-
-
- Environment -
- -
-
-
Account
- -
-
-
Gas limit
- -
-
-
Gas Price
- -
-
-
Value
- -
-
-
- ` - appEvents.udapp.register('transactionExecuted', (to, data, lookupOnly, txResult) => { - if (!lookupOnly) el.querySelector('#value').value = '0' - }) - - /* --------------------------------------------------------------------------- - DROPDOWN - --------------------------------------------------------------------------- */ - var selectExEnv = el.querySelector('#selectExEnvOptions') - selectExEnv.addEventListener('change', function (event) { - if (!appAPI.executionContextChange(selectExEnv.options[selectExEnv.selectedIndex].value)) { - selectExEnv.value = appAPI.executionContextProvider() - } - }) - selectExEnv.value = appAPI.executionContextProvider() - container.appendChild(el) -} diff --git a/src/app/righthand-panel.js b/src/app/righthand-panel.js index cce47f4fde..9569d29125 100644 --- a/src/app/righthand-panel.js +++ b/src/app/righthand-panel.js @@ -1,9 +1,7 @@ var csjs = require('csjs-inject') var yo = require('yo-yo') var EventManager = require('ethereum-remix').lib.EventManager - var tabbedMenu = require('./tabbed-menu') -var contractTab = require('./contract-tab') var settingsTab = require('./settings-tab') var analysisTab = require('./analysis-tab') var debuggerTab = require('./debugger-tab') @@ -78,7 +76,6 @@ function RighthandPanel (appAPI, events, opts) { ` - contractTab(optionViews, appAPI, events, opts) settingsTab(optionViews, appAPI, events, opts) analysisTab(optionViews, appAPI, events, opts) debuggerTab(optionViews, appAPI, events, opts)