Skip to content

Variable: authCatalog

Examples / @xmachines/play-solid-demo / authCatalog

const authCatalog: Catalog<
{
catalog: SchemaType<
"object",
{
actions: SchemaType<
"map",
{
description: SchemaType<"string", unknown>;
params: SchemaType<"zod", unknown>;
}
>;
components: SchemaType<
"map",
{
description: SchemaType<"string", unknown>;
example: SchemaType<"any", unknown>;
props: SchemaType<"zod", unknown>;
slots: SchemaType<"array", SchemaType<"string", unknown>>;
}
>;
}
>;
spec: SchemaType<
"object",
{
elements: SchemaType<
"record",
SchemaType<
"object",
{
children: SchemaType<"array", SchemaType<"string", unknown>>;
props: SchemaType<"propsOf", string>;
type: SchemaType<"ref", string>;
visible: SchemaType<"any", unknown>;
}
>
>;
root: SchemaType<"string", unknown>;
}
>;
},
{
actions: {
login: {
description: "Login with username";
params: ZodObject<
{
username: ZodString;
},
$strip
>;
};
logout: {
description: "Logout and return to home";
};
route: {
description: "Navigate to a route by path (e.g. '#home', '#login', '#dashboard')";
params: ZodObject<
{
params: ZodOptional<ZodRecord<ZodString, ZodString>>;
to: ZodString;
},
$strip
>;
};
};
components: {
About: {
props: ZodObject<
{
title: ZodString;
},
$strip
>;
};
Contact: {
props: ZodObject<
{
title: ZodString;
},
$strip
>;
};
Dashboard: {
props: ZodObject<
{
username: ZodString;
welcome: ZodBoolean;
},
$strip
>;
};
Home: {
props: ZodObject<
{
title: ZodString;
},
$strip
>;
};
Login: {
props: ZodObject<
{
title: ZodString;
username: ZodOptional<ZodString>;
},
$strip
>;
};
NavBar: {
props: ZodObject<
{
isAuthenticated: ZodBoolean;
username: ZodNullable<ZodString>;
},
$strip
>;
};
Navigation: {
props: ZodObject<
{
currentPath: ZodString;
isAuthenticated: ZodBoolean;
},
$strip
>;
};
Overview: {
props: ZodObject<
{
title: ZodString;
},
$strip
>;
};
Profile: {
props: ZodObject<
{
username: ZodString;
},
$strip
>;
};
Settings: {
props: ZodObject<
{
section: ZodOptional<ZodString>;
username: ZodString;
},
$strip
>;
};
Stats: {
props: ZodObject<
{
title: ZodString;
},
$strip
>;
};
};
}
>;

Defined in: packages/play-solid/examples/demo/src/catalog.ts:5