convert webpack to typescript

This allows us to add a mock library for simulating the real device.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
2023-12-03 16:58:54 +08:00
parent 7ed86a992d
commit 0a3b6fe96e
7 changed files with 219 additions and 126 deletions

View File

@ -63,6 +63,7 @@ class DashboardSection {
var root: HTMLElement = document.createElement("section");
var header: HTMLElement = document.createElement("header");
var h2: HTMLElement = document.createElement("h2");
h2.classList.add("dashboard-section-title");
h2.innerText = this.name;
header.classList.add("dashboard-section-header");
header.appendChild(h2);