Expand description
Pure-Rust URL-routing helpers (M-TRAY.4 / AUT-253, M-BUBBLE.0 / AUT-273).
The browser-facing entry points in crate pull the query string
off window.location.search() and hand it to parse_surface
(for the in-AppShell surface) or parse_mount_point (for the
window-level mount dispatch — AppShell vs Bubble vs DropZone).
Splitting the parse out of the wasm-only path makes it testable
on every OS (no web_sys, no Tauri runtime).
Enums§
- Mount
Point - Which Leptos tree the current page mounts — drives the top-level
dispatch in
crate::run.
Functions§
- parse_
mount_ point - Parse a URL query string (with or without the leading
?) into aMountPoint.?surface=…wins over?mount=…so theAppShellsurface query takes precedence — matters only if both ever appear in the same URL, which they shouldn’t. - parse_
slug - Map a slug to its
AppSection. Accepts bothrecorderandrecordfor the Record variant (the storybook usesrecordin the kebab-case slug; the URL convention is the longerrecorder). - parse_
surface - Parse a URL query string (with or without the leading
?) for asurface=<slug>parameter. Returns the matchingAppSectionorNoneif the param is missing / unrecognised. - surface_
slug - Convert an
AppSectionto its canonical URL slug. Round-trips withparse_slug/parse_surface.