forked from ethereum/remix-ide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,32 @@ | ||
var yo = require('yo-yo') | ||
var css = require('./styles/analysis-tab-styles') | ||
var csjs = require('csjs-inject') | ||
var remixLib = require('remix-lib') | ||
|
||
function analysisTab (api = {}, events = {}, opts = {}) { | ||
var el = yo` | ||
<div class="${css.analysisTabView} "id="staticanalysisView"> | ||
</div> | ||
` | ||
return { render () { return el } } | ||
} | ||
var EventManager = remixLib.EventManager | ||
|
||
module.exports = analysisTab | ||
module.exports = class AnalysisTab { | ||
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` | ||
<div class="${css.analysisTabView} "id="staticanalysisView"></div>` | ||
return self._view.el | ||
} | ||
} | ||
const css = csjs` | ||
.analysisTabView { | ||
padding: 2%; | ||
padding-bottom: 3em; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
` |
This file was deleted.
Oops, something went wrong.