organizing frontend

This commit is contained in:
Parker TenBroeck 2026-01-11 11:40:54 -05:00
parent 2c836875d2
commit 2e6330196d
7 changed files with 203 additions and 183 deletions

View file

@ -1,4 +1,4 @@
import { setText } from "./editor.ts";
import { bus } from "./bus.ts";
export type Category =
| "Tutorial"
@ -241,6 +241,6 @@ function buildExamplesDropdown(
}
const selectEl = document.getElementById("exampleSelect") as HTMLSelectElement;
buildExamplesDropdown(selectEl, examples, (picked) => {
setText(picked.machine);
buildExamplesDropdown(selectEl, examples, (example) => {
bus.emit("example/selected", {example});
});