very basic client list code

This commit is contained in:
Bruno Windels
2020-11-30 21:05:26 +01:00
parent eded08595a
commit 8659594c22
16 changed files with 482 additions and 15 deletions
+6 -1
View File
@@ -1,9 +1,14 @@
import {xhrRequest} from "./utils/xhr.js";
import {RootViewModel} from "./RootViewModel.js";
import {RootView} from "./RootView.js";
import {guessApplicablePlatforms} from "./client/Platform.js";
export async function main(container) {
const vm = new RootViewModel({request: xhrRequest});
const vm = new RootViewModel({
request: xhrRequest,
openLink: url => location.href = url,
platforms: guessApplicablePlatforms(navigator.userAgent),
});
vm.updateHash(location.hash);
window.__rootvm = vm;
const view = new RootView(vm);