Files
nebula.js/commands/serve/web/eHub.js
Christoffer Åström 86886407bd chore: cleanup (#167)
Remove the `.eslintrc.json` in `web`
2019-11-08 13:27:37 +01:00

19 lines
361 B
JavaScript

import { connect } from './connect';
const ul = document.querySelector('#apps ul');
connect().then(qix => {
qix.getDocList().then(list => {
const items = list
.map(
doc => `
<li>
<a href="/dev/app/${encodeURIComponent(doc.qDocId)}">${doc.qTitle}</a>
</li>`
)
.join('');
ul.innerHTML = items;
});
});