From 2fb2e8588f8c216d5d06bf3ead6c5d06e2adb333 Mon Sep 17 00:00:00 2001 From: Bereket Engida Date: Mon, 25 Nov 2024 20:46:29 +0300 Subject: [PATCH] docs: add github icon on nav --- docs/components/nav-bar.tsx | 19 +- docs/components/nav-link.tsx | 7 +- docs/components/side-bar.tsx | 344 +++++++++++----------- docs/content/changelog/index.mdx | 6 + packages/better-auth/src/types/options.ts | 12 + 5 files changed, 220 insertions(+), 168 deletions(-) diff --git a/docs/components/nav-bar.tsx b/docs/components/nav-bar.tsx index 4a6be411..83649b80 100644 --- a/docs/components/nav-bar.tsx +++ b/docs/components/nav-bar.tsx @@ -27,6 +27,23 @@ export const Navbar = () => { {menu.name} ))} + + + + + @@ -53,6 +70,6 @@ export const navMenu = [ }, { name: "community", - path: "https://discord.gg/GYC3W7tZzb", + path: "https://github.com/better-auth/better-auth", }, ]; diff --git a/docs/components/nav-link.tsx b/docs/components/nav-link.tsx index 05df3fe4..06399685 100644 --- a/docs/components/nav-link.tsx +++ b/docs/components/nav-link.tsx @@ -6,15 +6,17 @@ import { useSelectedLayoutSegment } from "next/navigation"; type Props = { href: string; children: React.ReactNode; + className?: string; + external?: boolean; }; -export const NavLink = ({ href, children }: Props) => { +export const NavLink = ({ href, children, className, external }: Props) => { const segment = useSelectedLayoutSegment(); const isActive = segment === href.slice(1) || (segment === null && href === "/"); return ( -
  • +
  • { "group-hover:text-foreground", isActive ? "text-foreground" : "text-muted-foreground", )} + target={external ? "_blank" : "_parent"} > {children} diff --git a/docs/components/side-bar.tsx b/docs/components/side-bar.tsx index 7892b378..530e325c 100644 --- a/docs/components/side-bar.tsx +++ b/docs/components/side-bar.tsx @@ -17,6 +17,10 @@ import { } from "./ui/select"; import { loglib } from "@loglib/tracker"; import { cn } from "@/lib/utils"; +import { GitHubIcon } from "@/app/changelogs/_components/icons"; +import Link from "next/link"; +import { Button } from "./ui/button"; +import { Separator } from "./ui/separator"; export default function ArticleLayout() { const [currentOpen, setCurrentOpen] = useState(0); @@ -44,173 +48,183 @@ export default function ArticleLayout() { return (
    -
    ); diff --git a/docs/content/changelog/index.mdx b/docs/content/changelog/index.mdx index 0147a7a6..022608cd 100644 --- a/docs/content/changelog/index.mdx +++ b/docs/content/changelog/index.mdx @@ -3,6 +3,12 @@ title: Basic Usage description: Getting started with Better Auth --- +## v1.0 date=Nov 22, 2024 + +The first stable release of Better Auth is now available! + +[Read the release notes](https://better-auth.com/v1). + ## v0.6.0 date=Oct 26, 2024 - Email OTP Plugin diff --git a/packages/better-auth/src/types/options.ts b/packages/better-auth/src/types/options.ts index f8634ced..e863313c 100644 --- a/packages/better-auth/src/types/options.ts +++ b/packages/better-auth/src/types/options.ts @@ -75,6 +75,12 @@ export interface BetterAuthOptions { | { dialect: Dialect; type: KyselyDatabaseType; + /** + * casing for table names + * + * @default "camel" + */ + casing?: "snake" | "camel"; } | { /** @@ -85,6 +91,12 @@ export interface BetterAuthOptions { * Database type between postgres, mysql and sqlite */ type: KyselyDatabaseType; + /** + * casing for table names + * + * @default "camel" + */ + casing?: "snake" | "camel"; }; /** * Secondary storage configuration