|
|
@ -9,13 +9,10 @@ var css = require('./universal-dapp-styles') |
|
|
|
var MultiParamManager = require('./multiParamManager') |
|
|
|
var MultiParamManager = require('./multiParamManager') |
|
|
|
|
|
|
|
|
|
|
|
function UniversalDAppUI (udapp, opts = {}) { |
|
|
|
function UniversalDAppUI (udapp, opts = {}) { |
|
|
|
var self = this |
|
|
|
|
|
|
|
this.udapp = udapp |
|
|
|
this.udapp = udapp |
|
|
|
self.el = yo`<div class=${css.udapp}></div>` |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
UniversalDAppUI.prototype.reset = function () { |
|
|
|
UniversalDAppUI.prototype.reset = function () { |
|
|
|
this.el.innerHTML = '' |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
UniversalDAppUI.prototype.renderInstance = function (contract, address, contractName) { |
|
|
|
UniversalDAppUI.prototype.renderInstance = function (contract, address, contractName) { |
|
|
|