mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 11:24:57 -05:00
docs: fix sidebar contents from old (#8221)
This commit is contained in:
@@ -242,7 +242,7 @@ export const Icons = {
|
||||
></path>
|
||||
</svg>
|
||||
),
|
||||
remix: () => (
|
||||
reactRouter: () => (
|
||||
<svg
|
||||
width="1.2em"
|
||||
height="1.2em"
|
||||
@@ -594,4 +594,19 @@ export const Icons = {
|
||||
<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" />
|
||||
</svg>
|
||||
),
|
||||
electron: (props?: SVGProps<any>) => (
|
||||
<svg
|
||||
className={props?.className}
|
||||
viewBox="0 0 24 24"
|
||||
width="1.2em"
|
||||
height="1.2em"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
>
|
||||
<path
|
||||
d="M12.0111 0c-.85 0-1.5392.6891-1.5392 1.5392 0 .8501.6891 1.5393 1.5392 1.5393.595 0 1.11-.338 1.3662-.832 2.2208 1.2675 3.847 5.4728 3.847 10.3623 0 2.0715-.2891 4.056-.825 5.7685a.3215.3215 0 0 0 .2107.403.322.322 0 0 0 .4033-.2111c.5558-1.7763.8542-3.8251.8542-5.9604 0-5.1927-1.7717-9.686-4.3206-11.0027.001-.0223.0035-.0443.0035-.0669 0-.85-.6891-1.5392-1.5393-1.5392zm0 .6432a.896.896 0 1 1 0 1.792.896.896 0 1 1 0-1.792zm-5.486 4.3052c-2.067.0074-3.6473.6646-4.3885 1.9485-.7375 1.2774-.5267 2.971.5113 4.7813a.3217.3217 0 0 0 .558-.32C2.271 9.7274 2.089 8.266 2.6938 7.2185c.821-1.422 3.033-1.9552 5.9321-1.4271a.3216.3216 0 0 0 .1153-.6329c-.784-.1428-1.5271-.2125-2.216-.21zm11.0522.0176a.3216.3216 0 0 0-.0084.6432c1.8337.0239 3.1556.5956 3.7502 1.6256.8192 1.419.1798 3.5947-1.7182 5.837a.322.322 0 0 0 .0377.4535.3215.3215 0 0 0 .4532-.0377c2.0535-2.426 2.7708-4.8661 1.7845-6.5744-.7257-1.257-2.26-1.9207-4.299-1.9472zm-2.6984.2924a.3225.3225 0 0 0-.0647.0072c-1.8568.3979-3.8333 1.1755-5.7314 2.2714-4.5699 2.6384-7.5924 6.4948-7.3601 9.3717-.4726.2628-.7928.7664-.7928 1.3455 0 .85.6892 1.5392 1.5393 1.5392.85 0 1.5392-.6891 1.5392-1.5392 0-.8501-.6891-1.5393-1.5392-1.5393-.038 0-.0754.003-.1128.0057-.1002-2.5597 2.7434-6.1412 7.048-8.6265 1.8413-1.063 3.7551-1.8163 5.5445-2.1997a.3217.3217 0 0 0-.07-.636zm-2.8787 6.2364a1.1192 1.1192 0 0 0-.2243.0255c-.6012.1301-.983.7225-.8533 1.3238.1302.6012.7226.9832 1.3238.8533.6012-.1302.9832-.7226.8533-1.3238-.1139-.526-.5816-.8844-1.0995-.8788zM4.532 13.341a.321.321 0 0 0-.2318.0835.3214.3214 0 0 0-.0214.4542c1.2682 1.3936 2.9157 2.701 4.7946 3.7857 4.4146 2.5489 9.1056 3.2849 11.5608 1.8392a1.53 1.53 0 0 0 .8966.2899c.8501 0 1.5392-.6891 1.5392-1.5392 0-.8501-.689-1.5393-1.5392-1.5393-.85 0-1.5392.6892-1.5392 1.5393 0 .276.0737.5344.201.7584-2.2448 1.214-6.631.5002-10.7976-1.9054-1.8228-1.0524-3.418-2.3181-4.6404-3.6614a.3206.3206 0 0 0-.2226-.1049zm-2.0628 4.0172a.896.896 0 1 1 0 1.792.896.896 0 1 1 0-1.792zm19.0616 0a.896.896 0 1 1 0 1.792.891.891 0 0 1-.5864-.2194c-.0025-.004-.0039-.0083-.0066-.0123a.3195.3195 0 0 0-.0957-.0914.896.896 0 0 1 .6887-1.4689zm-14.0045 1.368a.3215.3215 0 0 0-.3207.4296C8.2793 22.154 10.036 24 12.0111 24c1.4406 0 2.7735-.9822 3.8128-2.711a.3215.3215 0 0 0-.11-.4413.3219.3219 0 0 0-.4415.11c-.934 1.5537-2.0812 2.399-3.2613 2.399-1.6407 0-3.2075-1.6465-4.2-4.4179a.3216.3216 0 0 0-.2848-.2126z"
|
||||
fill="currentColor"
|
||||
/>
|
||||
</svg>
|
||||
),
|
||||
};
|
||||
|
||||
@@ -5,6 +5,7 @@ import {
|
||||
Book,
|
||||
CircleHelp,
|
||||
Database,
|
||||
FlaskConical,
|
||||
Gauge,
|
||||
Key,
|
||||
KeyRound,
|
||||
@@ -661,6 +662,28 @@ export const contents: Content[] = [
|
||||
</svg>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "Railway",
|
||||
href: "/docs/authentication/railway",
|
||||
icon: () => (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="1.2em"
|
||||
height="1.2em"
|
||||
viewBox="0 0 1024 1024"
|
||||
fill="none"
|
||||
>
|
||||
<path
|
||||
d="M4.756 438.175A520.713 520.713 0 0 0 0 489.735h777.799c-2.716-5.306-6.365-10.09-10.045-14.772-132.97-171.791-204.498-156.896-306.819-161.26-34.114-1.403-57.249-1.967-193.037-1.967-72.677 0-151.688.185-228.628.39-9.96 26.884-19.566 52.942-24.243 74.14h398.571v51.909H4.756ZM783.93 541.696H.399c.82 13.851 2.112 27.517 3.978 40.999h723.39c32.248 0 50.299-18.297 56.162-40.999ZM45.017 724.306S164.941 1018.77 511.46 1024c207.112 0 385.071-123.006 465.907-299.694H45.017Z"
|
||||
fill="currentColor"
|
||||
/>
|
||||
<path
|
||||
d="M511.454 0C319.953 0 153.311 105.16 65.31 260.612c68.771-.144 202.704-.226 202.704-.226h.031v-.051c158.309 0 164.193.707 195.118 1.998l19.149.706c66.7 2.224 148.683 9.384 213.19 58.19 35.015 26.471 85.571 84.896 115.708 126.52 27.861 38.499 35.876 82.756 16.933 125.158-17.436 38.97-54.952 62.215-100.383 62.215H16.69s4.233 17.944 10.58 37.751h970.632A510.385 510.385 0 0 0 1024 512.218C1024.01 229.355 794.532 0 511.454 0Z"
|
||||
fill="currentColor"
|
||||
/>
|
||||
</svg>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "Google",
|
||||
href: "/docs/authentication/google",
|
||||
@@ -1417,11 +1440,10 @@ C0.7,239.6,62.1,0.5,62.2,0.4c0,0,54,13.8,119.9,30.8S302.1,62,302.2,62c0.2,0,0.2,
|
||||
icon: Icons.astro,
|
||||
href: "/docs/integrations/astro",
|
||||
},
|
||||
|
||||
{
|
||||
title: "Remix",
|
||||
icon: Icons.remix,
|
||||
href: "/docs/integrations/remix",
|
||||
title: "React Router v7",
|
||||
icon: Icons.reactRouter,
|
||||
href: "/docs/integrations/react-router",
|
||||
},
|
||||
{
|
||||
title: "Next",
|
||||
@@ -1433,6 +1455,12 @@ C0.7,239.6,62.1,0.5,62.2,0.4c0,0,54,13.8,119.9,30.8S302.1,62,302.2,62c0.2,0,0.2,
|
||||
icon: Icons.nuxt,
|
||||
href: "/docs/integrations/nuxt",
|
||||
},
|
||||
{
|
||||
title: "Electron",
|
||||
icon: Icons.electron,
|
||||
href: "/docs/integrations/electron",
|
||||
isNew: true,
|
||||
},
|
||||
{
|
||||
title: "SvelteKit",
|
||||
icon: Icons.svelteKit,
|
||||
@@ -1672,6 +1700,36 @@ C0.7,239.6,62.1,0.5,62.2,0.4c0,0,54,13.8,119.9,30.8S302.1,62,302.2,62c0.2,0,0.2,
|
||||
title: "API Key",
|
||||
href: "/docs/plugins/api-key",
|
||||
icon: () => <KeyRound className="size-4" />,
|
||||
subpages: [
|
||||
{
|
||||
href: "/docs/plugins/api-key/advanced",
|
||||
title: "Advanced Features",
|
||||
|
||||
// icon: () => <Zap className="size-4" />,
|
||||
},
|
||||
{
|
||||
href: "/docs/plugins/api-key/reference",
|
||||
title: "Reference",
|
||||
// icon: () => (
|
||||
// <svg
|
||||
// xmlns="http://www.w3.org/2000/svg"
|
||||
// viewBox="0 0 24 24"
|
||||
// fill="none"
|
||||
// stroke="currentColor"
|
||||
// strokeWidth="2"
|
||||
// strokeLinecap="round"
|
||||
// strokeLinejoin="round"
|
||||
// className="size-4"
|
||||
// >
|
||||
// <path d="M20 11v6" />
|
||||
// <path d="M20 13h2" />
|
||||
// <path d="M3 21v-2a4 4 0 0 1 4-4h6a4 4 0 0 1 2.072.578" />
|
||||
// <circle cx="10" cy="7" r="4" />
|
||||
// <circle cx="20" cy="19" r="2" />
|
||||
// </svg>
|
||||
// ),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "MCP",
|
||||
@@ -1846,6 +1904,23 @@ C0.7,239.6,62.1,0.5,62.2,0.4c0,0,54,13.8,119.9,30.8S302.1,62,302.2,62c0.2,0,0.2,
|
||||
href: "/docs/plugins/have-i-been-pwned",
|
||||
icon: () => <p className="text-xs">';--</p>,
|
||||
},
|
||||
{
|
||||
title: "i18n",
|
||||
href: "/docs/plugins/i18n",
|
||||
icon: () => (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="1.2em"
|
||||
height="1.2em"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="m12.87 15.07l-2.54-2.51l.03-.03A17.5 17.5 0 0 0 14.07 6H17V4h-7V2H8v2H1v2h11.17C11.5 7.92 10.44 9.75 9 11.35C8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5l3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7l1.62-4.33L19.12 17z"
|
||||
/>
|
||||
</svg>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "Last Login Method",
|
||||
href: "/docs/plugins/last-login-method",
|
||||
@@ -1972,6 +2047,12 @@ C0.7,239.6,62.1,0.5,62.2,0.4c0,0,54,13.8,119.9,30.8S302.1,62,302.2,62c0.2,0,0.2,
|
||||
),
|
||||
href: "/docs/plugins/jwt",
|
||||
},
|
||||
{
|
||||
title: "Test Utils",
|
||||
href: "/docs/plugins/test-utils",
|
||||
icon: () => <FlaskConical className="w-4 h-4" />,
|
||||
isNew: true,
|
||||
},
|
||||
{
|
||||
title: "Payments",
|
||||
group: true,
|
||||
@@ -2656,9 +2737,9 @@ export const examples: Content[] = [
|
||||
icon: Icons.astro,
|
||||
},
|
||||
{
|
||||
title: "Remix",
|
||||
href: "/docs/examples/remix",
|
||||
icon: Icons.remix,
|
||||
title: "React Router v7",
|
||||
href: "/docs/examples/react-router",
|
||||
icon: Icons.reactRouter,
|
||||
},
|
||||
{
|
||||
title: "Next.js",
|
||||
|
||||
Reference in New Issue
Block a user