Migrate ui/ (#14)

* Rename js to ts

* Fix all tsc errors
This commit is contained in:
Chenlei Hu
2024-06-14 20:53:25 -04:00
committed by GitHub
parent 1376459cd8
commit 0ef74392ca
8 changed files with 30 additions and 13 deletions

View File

@@ -0,0 +1,9 @@
import { addStylesheet } from "../utils";
addStylesheet(import.meta.url);
export function createSpinner() {
const div = document.createElement("div");
div.innerHTML = `<div class="lds-ring"><div></div><div></div><div></div><div></div></div>`;
return div.firstElementChild;
}