progress status and progress communication done

This commit is contained in:
2024-01-12 12:09:28 +01:00
parent 4569d35a65
commit 756ae1be58
7 changed files with 122 additions and 44 deletions

View File

@@ -4,19 +4,20 @@
Dropdown,
DropdownItem,
DropdownHeader,
DropdownDivider
DropdownDivider,
} from "flowbite-svelte";
import {
ArrowRightFromBracketSolid,
ArrowRightToBracketSolid,
UserSettingsSolid
UserSettingsSolid,
} from "flowbite-svelte-icons";
import ezppLogo from "../public/favicon.png";
import {
currentPage,
currentUser,
launching,
launchStatus
launchPercentage,
launchStatus,
} from "./storage/localStore";
import { Page } from "./consts/pages";
import Login from "./pages/Login.svelte";
@@ -40,9 +41,16 @@
};
window.addEventListener("launchStatusUpdate", (e) => {
const status = (e as CustomEvent).detail;
console.log((e as CustomEvent).detail);
const status = (e as CustomEvent).detail.status;
launchStatus.set(status);
});
window.addEventListener("launchProgressUpdate", (e) => {
console.log((e as CustomEvent).detail);
const progress = (e as CustomEvent).detail.progress;
launchPercentage.set(progress);
});
</script>
<Toaster></Toaster>