UNPKG

agens-viewer

Version:

Simple AgensGraph web UI client that easy to run and use

17 lines (13 loc) 424 B
import html from 'text-loader!./index.html'; import './style.less'; import { AgensViewerModel } from './js/main'; import * as ko from 'knockout'; const init = () => { let element = document.createElement('div'); element.setAttribute('id', 'app'); element.setAttribute('class', 'app'); element.innerHTML = html; document.body.appendChild(element); ko.applyBindings(new AgensViewerModel(), element); }; init();