Spaces:
Running
Running
Juan Jimenez Carrero
feat: add mobile-first JS web app (Pollen's new Reachy Mini JS workflow)
a519434 | import type { RobotGestures } from "./robot/gestures"; | |
| import { App } from "./ui/app"; | |
| import "./ui/styles.css"; | |
| /** Dev-only UI harness (`npm run dev` + `?uidev=1`): boots the app with a | |
| * no-op gesture stub so the UI can be exercised without a robot session. | |
| * Never reachable in production — dispatch.ts gates it on import.meta.env.DEV. */ | |
| const gestureStub = new Proxy( | |
| {}, | |
| { | |
| get: | |
| (_target, prop) => | |
| (...args: unknown[]) => { | |
| console.log(`[uidev] gesture: ${String(prop)}`, ...args); | |
| return Promise.resolve(); | |
| }, | |
| }, | |
| ) as RobotGestures; | |
| const root = document.getElementById("root"); | |
| if (root) { | |
| new App(root, gestureStub).start(); | |
| } | |