feat: ccos emulator

This commit is contained in:
2026-01-28 18:08:11 +01:00
parent ee8d400ad7
commit 16bf766de9
9 changed files with 178 additions and 41 deletions

View File

@@ -46,15 +46,6 @@
element?.closest<HTMLElement>("[popover]")?.hidePopover();
}
async function connectCC0(event: MouseEvent) {
const { fetchCCOS } = await import("$lib/ccos/ccos");
closePopover();
const ccos = await fetchCCOS();
if (ccos) {
connect(ccos, !event.shiftKey);
}
}
async function connectDevice(event: MouseEvent) {
const port = await navigator.serial.requestPort({
filters: event.shiftKey ? [] : [...PORT_FILTERS.values()],