From f7044497722f971e5824674d8d80da7013c40176 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 21 Mar 2018 12:51:48 +0100 Subject: [PATCH] remove BasicPanel --- .../remix-debugger/src/ui/BasicPanel.js | 51 ------------------- 1 file changed, 51 deletions(-) delete mode 100644 src/app/debugger/remix-debugger/src/ui/BasicPanel.js diff --git a/src/app/debugger/remix-debugger/src/ui/BasicPanel.js b/src/app/debugger/remix-debugger/src/ui/BasicPanel.js deleted file mode 100644 index 6efed6231c..0000000000 --- a/src/app/debugger/remix-debugger/src/ui/BasicPanel.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict' -var style = require('./styles/basicStyles') -var yo = require('yo-yo') -var remixLib = require('remix-lib') -var ui = remixLib.helpers.ui - -var csjs = require('csjs-inject') - -var css = csjs` - .container { - width: 70%; - } -` - -function BasicPanel (_name, _width, _height) { - this.data - this.name = _name - this.width = _width - this.height = _height - this.view -} - -BasicPanel.prototype.update = function () { - yo.update(this.view, this.render()) -} - -BasicPanel.prototype.hide = function () { - this.view.style.display = 'none' -} - -BasicPanel.prototype.show = function () { - this.view.style.display = 'block' -} - -BasicPanel.prototype.render = function () { - var view = yo` -
-
- ${this.name} -
-
-
${this.data}
-
-
` - if (!this.view) { - this.view = view - } - return view -} - -module.exports = BasicPanel