mirror of
https://github.com/hanzoai/app.git
synced 2026-11-01 11:57:40 +00:00
`app(path)` is `/dev/<path>`, `under(pathname)` reads it back, and `dev(ref)` opens Dev on a run, a repository (`<org>/<repo>`) or a site as its path. `<Rooms path>` carries the address's path, which `useDevHost` reads. A place on `/` is `?chat` alone: Dev's places are paths, whose page signs a stranger in. Claude-Session: https://claude.ai/code/session_01SCPMGSQsLNF2YtHFL4bwyp
882 B
882 B
@hanzo/rooms
The Hanzo workspace — Home, Chat, Inbox, Contacts, Meet, Cal, Drive, Board, Work, Bots and the frame that holds them — as one package that every surface imports.
import { configure, Rooms } from '@hanzo/rooms'
import { Room } from '@hanzo/rooms/Room'
import { CalScheduler } from '@hanzo/rooms/CalScheduler'
configure({ site: '', home: '/home', signUp: '/signup' })
<Rooms router={router} search={search} path={pathname} route={route} Link={Link}>
<Room mode="cal"><CalScheduler /></Room>
</Rooms>
configure() names the host's addresses (where its own pages live, the
gateway and IAM, the plan catalogue to paint first). <Rooms> carries what
moves: the router, the query, the path, the route and the link component. The rooms
import nothing from a host, and their look comes from @hanzo/appearance and
@hanzo/design through @hanzo/ui.