-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlauncher_entry.tsx
More file actions
21 lines (18 loc) · 911 Bytes
/
Copy pathlauncher_entry.tsx
File metadata and controls
21 lines (18 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// src/launcher_entry.tsx
//
// Launcher bundle entry. Mounts the launcher UI only. Imports the slim
// protocols index (metadata only: protocol_name, cluster, display_title,
// learning_goal_hook) so the launcher bundle stays lightweight and does
// not pull in scene runtime, renderer, SVG registry, or scene data.
//
// Builds to dist/launcher.js, loaded by dist/index.html (the launcher
// page). See docs/active_plans/active/web_ui/bundle_audit.md for the
// rationale behind the two-bundle split.
import { render } from "solid-js/web";
import { PROTOCOLS_INDEX_SLIM } from "../generated/protocols_index_slim.js";
import { Launcher } from "./launcher/protocol_launcher.js";
const root = document.getElementById("launcher-root");
if (!(root instanceof HTMLElement)) {
throw new Error("launcher_entry: #launcher-root element not found");
}
render(() => <Launcher index={PROTOCOLS_INDEX_SLIM} />, root);