mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 20:27:44 +00:00
feat: notion provider (#3068)
* feat: add notion provider * chore: lint * chore: add docs for notion provider --------- Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
"use client";
|
||||
|
||||
import { AnimatePresence, motion, MotionConfig } from "framer-motion";
|
||||
import { AsideLink } from "@/components/ui/aside-link";
|
||||
import { Suspense, useEffect, useState } from "react";
|
||||
import { useSearchContext } from "fumadocs-ui/provider";
|
||||
import { usePathname, useRouter } from "next/navigation";
|
||||
import { contents, examples } from "./sidebar-content";
|
||||
import { ChevronDownIcon, Search } from "lucide-react";
|
||||
import { Select, SelectContent, SelectItem, SelectTrigger } from "./ui/select";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { AnimatePresence, motion, MotionConfig } from "framer-motion";
|
||||
import { useSearchContext } from "fumadocs-ui/provider";
|
||||
import { ChevronDownIcon, Search } from "lucide-react";
|
||||
import { usePathname, useRouter } from "next/navigation";
|
||||
import { Suspense, useEffect, useState } from "react";
|
||||
import { contents, examples } from "./sidebar-content";
|
||||
import { Badge } from "./ui/badge";
|
||||
import { Select, SelectContent, SelectItem, SelectTrigger } from "./ui/select";
|
||||
|
||||
export default function ArticleLayout() {
|
||||
const [currentOpen, setCurrentOpen] = useState<number>(0);
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
import {
|
||||
Book,
|
||||
CircleHelp,
|
||||
Database,
|
||||
Gauge,
|
||||
Key,
|
||||
KeyRound,
|
||||
LucideAArrowDown,
|
||||
LucideIcon,
|
||||
Mail,
|
||||
@@ -12,9 +15,6 @@ import {
|
||||
UserCircle,
|
||||
Users2,
|
||||
UserSquare2,
|
||||
Database,
|
||||
KeyRound,
|
||||
Book,
|
||||
} from "lucide-react";
|
||||
import { ReactNode, SVGProps } from "react";
|
||||
import { Icons } from "./icons";
|
||||
@@ -567,6 +567,24 @@ export const contents: Content[] = [
|
||||
</svg>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "Notion",
|
||||
href: "/docs/authentication/notion",
|
||||
isNew: true,
|
||||
icon: () => (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="1.2em"
|
||||
height="1.2em"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.28c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z"
|
||||
/>
|
||||
</svg>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "Tiktok",
|
||||
href: "/docs/authentication/tiktok",
|
||||
|
||||
Reference in New Issue
Block a user