diff --git a/src/static/app.mjs b/src/static/app.mjs index 2372bf2..e2628ce 100644 --- a/src/static/app.mjs +++ b/src/static/app.mjs @@ -3,6 +3,7 @@ import SystemQueryClient from './js/SystemQueryClient.mjs'; import make_router from './js/routes_client.mjs'; +import GlobalUI from './js/ui/GlobalUI.mjs'; import TableView from './js/ui/TableView.mjs'; window.addEventListener("load", async (_event) => { @@ -12,16 +13,11 @@ window.addEventListener("load", async (_event) => { globalThis.sysquery = new SystemQueryClient(); globalThis.sysquery_router = make_router(); globalThis.sysui = { - tableview: new TableView(el_table) + ui: new GlobalUI(), + tableview: new TableView(el_table), } - - - const status = await globalThis.sysquery.status(); - - el_version.replaceChildren( - document.createTextNode(status.version) - ); + await ui.init(); globalThis.sysquery_router.navigate_current_hash(); diff --git a/src/static/index.html b/src/static/index.html index 8e96926..c1d3510 100644 --- a/src/static/index.html +++ b/src/static/index.html @@ -13,7 +13,8 @@