diff --git a/.gitignore b/.gitignore index af13303645..c664a6e412 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ package-lock.json remix .DS_Store contracts +TODO +.tern-port diff --git a/package.json b/package.json index b9175f126e..2e9a37cf57 100644 --- a/package.json +++ b/package.json @@ -36,9 +36,10 @@ "npm-link-local": "^1.1.0", "npm-run-all": "^4.0.2", "onchange": "^3.2.1", - "remix-core": "latest", - "remix-lib": "latest", - "remix-solidity": "latest", + "remix-core": "/Users/iurimatias/Projects/EthereumFoundation/remix/remix-core", + "remix-lib": "/Users/iurimatias/Projects/EthereumFoundation/remix/remix-lib", + "remix-solidity": "/Users/iurimatias/Projects/EthereumFoundation/remix/remix-solidity", + "remix-tests": "/Users/iurimatias/Projects/EthereumFoundation/remix-tests", "remixd": "git+https://github.com/ethereum/remixd.git", "request": "^2.83.0", "rimraf": "^2.6.1", @@ -52,7 +53,7 @@ "web3": "^0.18.0", "webworkify": "^1.2.1", "yo-yo": "^1.2.2", - "yo-yoify": "^3.1.0" + "yo-yoify": "^3.7.3" }, "dependencies": { "http-server": "0.9.0", diff --git a/src/app/panels/righthand-panel.js b/src/app/panels/righthand-panel.js index 84aff7cceb..bc0136146f 100644 --- a/src/app/panels/righthand-panel.js +++ b/src/app/panels/righthand-panel.js @@ -9,6 +9,7 @@ var AnalysisTab = require('../tabs/analysis-tab') var DebuggerTab = require('../tabs/debugger-tab') var SupportTab = require('../tabs/support-tab') var PluginTab = require('../tabs/plugin-tab') +var TestTab = require('../tabs/test-tab') var PluginManager = require('../plugin/pluginManager') var css = require('./styles/righthand-panel-styles') @@ -54,12 +55,15 @@ function RighthandPanel (appAPI = {}, events = {}, opts = {}) { optionViews.appendChild(debuggerTab.render()) var supportTab = new SupportTab(appAPI, events, opts) optionViews.appendChild(supportTab.render()) + var testTab = new TestTab(appAPI, events, opts) + optionViews.appendChild(testTab.render()) this._view.tabbedMenu.addTab('Compile', 'compileView', optionViews.querySelector('#compileTabView')) this._view.tabbedMenu.addTab('Run', 'runView', optionViews.querySelector('#runTabView')) this._view.tabbedMenu.addTab('Settings', 'settingsView', optionViews.querySelector('#settingsView')) this._view.tabbedMenu.addTab('Analysis', 'staticanalysisView', optionViews.querySelector('#staticanalysisView')) this._view.tabbedMenu.addTab('Debugger', 'debugView', optionViews.querySelector('#debugView')) this._view.tabbedMenu.addTab('Support', 'supportView', optionViews.querySelector('#supportView')) + this._view.tabbedMenu.addTab('Test', 'testView', optionViews.querySelector('#testView')) this._view.tabbedMenu.selectTabByTitle('Compile') self.pluginManager = new PluginManager(opts.pluginAPI, events) diff --git a/src/app/tabs/styles/test-tab-styles.js b/src/app/tabs/styles/test-tab-styles.js new file mode 100644 index 0000000000..882ef5f7eb --- /dev/null +++ b/src/app/tabs/styles/test-tab-styles.js @@ -0,0 +1,56 @@ +var csjs = require('csjs-inject') +var styleGuide = require('../../ui/styles-guide/theme-chooser') +var styles = styleGuide.chooser() + +var css = csjs` +.opts_li { + display: block; + font-weight: bold; + color: ${styles.rightPanel.text_Teriary}; +} +.opts_li.active { + color: ${styles.rightPanel.text_Primary}; +} +.opts_li:hover { + color: ${styles.rightPanel.icon_HoverColor_TogglePanel}; +} +.solIcon { + margin-left: 10px; + margin-right: 30px; + display: flex; + align-self: center; + height: 29px; + width: 20px; + background-color: ${styles.colors.transparent}; +} +a { + color: ${styles.rightPanel.text_link}; +} +#optionViews > div { + display: none; +} +#optionViews .pre { + word-wrap: break-word; + background-color: ${styles.rightPanel.BackgroundColor_Pre}; + border-radius: 3px; + display: inline-block; + padding: 0 0.6em; +} +#optionViews .hide { + display: none; +} +.infoBox { + ${styles.infoTextBox} + margin-bottom: 1em; +} +.textBox { + ${styles.textBoxL} + margin-bottom: 1em; +} +.icon { + height: 70%; + margin-right: 2%; +} +` + +module.exports = css diff --git a/src/app/tabs/test-tab.js b/src/app/tabs/test-tab.js index 864fbfcb52..904e9b1493 100644 --- a/src/app/tabs/test-tab.js +++ b/src/app/tabs/test-tab.js @@ -1,87 +1,49 @@ -// var yo = require('yo-yo') -// var csjs = require('csjs-inject') -// var remixLib = require('remix-lib') -// -// var EventManager = remixLib.EventManager -// var styles = remixLib.ui.themeChooser.chooser() -// -// module.exports = class TestTab { -// constructor (opts = { api: {}, events: {} }) { -// const self = this -// self.event = new EventManager() -// self._api = opts.api -// self._events = opts.events -// self._view = { el: null } -// self.data = {} -// self._components = {} -// } -// render () { -// const self = this -// if (self._view.el) return self._view.el -// self._view.el = yo` -//