Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
init(placeholder: string, urlStr, layoutJson?) {
const _url = new Comms.ESPUrl().url(urlStr);
if (!!_url.param("dashboard")) {
this._dashy = new Dashboard(new ElementContainer())
.target(placeholder)
.hideSingleTabs(true)
.titleVisible(false)
.render()
;
} else {
this._dashy = new Dashy()
.target(placeholder)
.render()
;
}
this._dashy.element()
.on("drop", () => this.dropHandler(this.event()))
.on("dragover", () => this.dragOverHandler(this.event()))
;
if (_url.param("Wuid")) {
logger.debug(`WU Params: ${_url.params()}`);
const baseUrl = `${_url.param("Protocol")}://${_url.param("Hostname")}:${_url.param("Port")}`;
logger.debug(baseUrl);
const result = new Result({ baseUrl }, _url.param("Wuid"), _url.param("ResultName"));
result.fetchRows().then(async (response: any[]) => {
function App(placeholder) {
this._dashy = new marshaller_1.Dashy();
this._dashy
.target(placeholder)
.render();
this.parseUrl();
}
App.prototype.parseUrl = function () {