Reorganize repo structure and standards references
This commit is contained in:
1 parent
3cb93a81be
commit
be2054274d
5885 files changed
+2588
-195
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import type { LoaderFunctionArgs } from "react-router";
|
||||
import { createHotSwapDrillPage } from "@toolctrl/ui-mock";
|
||||
import { HotSwapPageRenderer } from "~/components/ui/hot-swap/HotSwapPageRenderer";
|
||||
|
||||
/**
|
||||
* Hot-swap activation reference route.
|
||||
*
|
||||
* Renders one page through the @toolctrl/ui-app registry shell instead of a
|
||||
* hand-rolled component tree. The descriptor comes from @toolctrl/ui-mock so
|
||||
* the path is fixture-driven and verifiable without a Subframe (or other
|
||||
* design-source) binding yet. Hidden outside development to keep production
|
||||
* surface area unchanged — see docs/ui-inventory/hot-swap-status.md.
|
||||
*/
|
||||
export async function loader(_args: LoaderFunctionArgs) {
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
throw new Response(null, { status: 404 });
|
||||
}
|
||||
return { descriptor: createHotSwapDrillPage() };
|
||||
}
|
||||
|
||||
export default function HotSwapDemo({ loaderData }: { loaderData: Awaited<ReturnType<typeof loader>> }) {
|
||||
return <HotSwapPageRenderer descriptor={loaderData.descriptor} />;
|
||||
}
|
||||
Reference in new issue
Block a user