The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Added sub menus to sidebar
Jonathan Summers-Muirb84cfa64c834
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.tsindex 9a046864654..3b45497a056 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts@@ -152,103 +152,103 @@ export const SocialLoginItems = [{name: 'Apple login',icon: '/docs/img/icons/apple-icon',- url: '/guides/auth/auth-apple',+ url: '/guides/auth/0auth-login/auth-apple',items: [],},{name: 'Azure login',icon: '/docs/img/icons/microsoft-icon',- url: '/guides/auth/auth-azure',+ url: '/guides/auth/0auth-login/auth-azure',items: [],},{name: 'Bitbucket login',icon: '/docs/img/icons/bitbucket-icon',- url: '/guides/auth/auth-bitbucket',+ url: '/guides/auth/0auth-login/auth-bitbucket',items: [],},{name: 'Discord login',icon: '/docs/img/icons/discord-icon',- url: '/guides/auth/auth-discord',+ url: '/guides/auth/0auth-login/auth-discord',items: [],},{name: 'Facebook login',icon: '/docs/img/icons/facebook-icon',- url: '/guides/auth/auth-facebook',+ url: '/guides/auth/0auth-login/auth-facebook',items: [],},{name: 'GitHub login',icon: '/docs/img/icons/github-icon',- url: '/guides/auth/auth-github',+ url: '/guides/auth/0auth-login/auth-github',items: [],isDarkMode: true,},{name: 'Gitlab login',icon: '/docs/img/icons/gitlab-icon',- url: '/guides/auth/auth-gitlab',+ url: '/guides/auth/0auth-login/auth-gitlab',items: [],},{name: 'Google login',icon: '/docs/img/icons/google-icon',- url: '/guides/auth/auth-google',+ url: '/guides/auth/0auth-login/auth-google',items: [],},{name: 'Keycloak login',icon: '/docs/img/icons/keycloak-icon',- url: '/guides/auth/auth-keycloak',+ url: '/guides/auth/0auth-login/auth-keycloak',items: [],},{name: 'LinkedIn login',icon: '/docs/img/icons/linkedin-icon',- url: '/guides/auth/auth-linkedin',+ url: '/guides/auth/0auth-login/auth-linkedin',items: [],},{name: 'Notion login',icon: '/docs/img/icons/notion-icon',- url: '/guides/auth/auth-notion',+ url: '/guides/auth/0auth-login/auth-notion',items: [],},{name: 'Slack login',icon: '/docs/img/icons/slack-icon',- url: '/guides/auth/auth-slack',+ url: '/guides/auth/0auth-login/auth-slack',items: [],},{name: 'Spotify login',icon: '/docs/img/icons/spotify-icon',- url: '/guides/auth/auth-spotify',+ url: '/guides/auth/0auth-login/auth-spotify',items: [],},{name: 'Twitch login',icon: '/docs/img/icons/twitch-icon',- url: '/guides/auth/auth-twitch',+ url: '/guides/auth/0auth-login/auth-twitch',items: [],},{name: 'Twitter login',icon: '/docs/img/icons/twitter-icon',- url: '/guides/auth/auth-twitter',+ url: '/guides/auth/0auth-login/auth-twitter',items: [],},{name: 'WorkOS login',icon: '/docs/img/icons/workos-icon',- url: '/guides/auth/auth-workos',+ url: '/guides/auth/0auth-login/auth-workos',items: [],},]-export const PhoneLogins = [+export const PhoneLoginsItems = [{name: 'Twilio login',icon: '/docs/img/icons/twilio-icon',@@ -288,7 +288,7 @@ export const auth = {url: '/guides/auth/0auth-login',items: [...SocialLoginItems],},- { name: 'Phone Login', url: '/guides/auth/phone-login', items: [] },+ { name: 'Phone Login', url: '/guides/auth/phone-login', items: [...PhoneLoginsItems] },],},{diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsxindex 2ba4c5790f7..a03f8edca30 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx@@ -3,154 +3,197 @@ import { useRouter } from 'next/router'import rehypeFilter from 'react-markdown/lib/rehype-filter'import { IconChevronLeft } from '~/../../packages/ui'import * as NavItems from './NavigationMenu.constants'+import * as Accordion from '@radix-ui/react-accordion'+import { useEffect } from 'react'const NavigationMenuGuideList = ({ currentLevel, setLevel, id }) => {const router = useRouter()const menu = NavItems[id]- //console.log('router', router)+ console.log('router', router)- return (- <div- className={[- 'transition-all ml-8 duration-150 ease-out',+ const url = router.asPath- // enabled- currentLevel === id && 'opacity-100 ml-0 delay-150',- currentLevel === 'home' && 'ml-12',+ const firstLevelRoute = url.split('/').slice(0, 4).join('/')+ console.log('firstLevelRoute', firstLevelRoute)- // disabled- currentLevel !== 'home' && currentLevel !== id ? '-ml-8' : '',- currentLevel !== id ? 'opacity-0 invisible absolute' : '',- ].join(' ')}+ return (+ <Accordion.Root+ collapsible+ key={id}+ type="single"+ className="space-y-0.5"+ value={firstLevelRoute}>- <ul className={'relative w-full flex flex-col gap-0'}>- <Link href={`${menu.parent ?? '/'}`} passHref>- <a- className={[- 'flex items-center gap-1 text-xs group mb-3',- 'text-base transition-all duration-200 text-brand-900 hover:text-brand-1200 hover:cursor-pointer ',- ].join(' ')}- >- <div className="relative w-2">- <div className="transition-all ease-out ml-0 group-hover:-ml-1">- <IconChevronLeft size={10} strokeWidth={3} />+ <div+ className={[+ 'transition-all ml-8 duration-150 ease-out',++ // enabled+ currentLevel === id && 'opacity-100 ml-0 delay-150',+ currentLevel === 'home' && 'ml-12',++ // disabled+ currentLevel !== 'home' && currentLevel !== id ? '-ml-8' : '',+ currentLevel !== id ? 'opacity-0 invisible absolute' : '',+ ].join(' ')}+ >+ <ul className={'relative w-full flex flex-col gap-0'}>+ <Link href={`${menu.parent ?? '/'}`} passHref>+ <a+ className={[+ 'flex items-center gap-1 text-xs group mb-3',+ 'text-base transition-all duration-200 text-brand-900 hover:text-brand-1200 hover:cursor-pointer ',+ ].join(' ')}+ >+ <div className="relative w-2">+ <div className="transition-all ease-out ml-0 group-hover:-ml-1">+ <IconChevronLeft size={10} strokeWidth={3} />+ </div></div>- </div>- <span>Back to Home</span>- </a>- </Link>+ <span>Back to Home</span>+ </a>+ </Link>- <div- className="flex items-center gap-3 my-3+ <div+ className="flex items-center gap-3 my-3invisible md:visible"- >- {/* <div className="w-10 h-10 bg-brand-500 rounded flex items-center justify-center"> */}- <img- src={`${router.basePath}` + menu.icon ?? `/img/icons/menu/${id}.svg`}- className="w-5 rounded"- />- {/* </div> */}- <h2- className={[- ' ',- !menu.title && 'capitalize',- id === router.pathname ? 'text-brand-900' : 'hover:text-brand-900 text-scale-1200',- ].join(' ')}>- {menu.title ?? currentLevel}- </h2>- </div>+ {/* <div className="w-10 h-10 bg-brand-500 rounded flex items-center justify-center"> */}+ <img+ src={`${router.basePath}` + menu.icon ?? `/img/icons/menu/${id}.svg`}+ className="w-5 rounded"+ />+ {/* </div> */}+ <h2+ className={[+ ' ',+ !menu.title && 'capitalize',+ id === router.pathname ? 'text-brand-900' : 'hover:text-brand-900 text-scale-1200',+ ].join(' ')}+ >+ {menu.title ?? currentLevel}+ </h2>+ </div>- {menu.items.map((x, index) => {- // console.log('1st type of link?', x.items && x.items.length > 0)- // console.log()- return (- <div key={x.name}>- {x.items && x.items.length > 0 ? (- <>- {x.items.map((subItem, subItemIndex) => {- // console.log('router', router)- //console.log('subitem url', subItem.url)- return (- <>- {subItemIndex === 0 && (- <>- <div className="h-px w-full bg-green-500 my-3"></div>- <span className="font-mono text-xs uppercase text-scale-1200 font-medium tracking-wider">- {x.name}- </span>- </>- )}- <li key={subItem.name}>- <Link href={`/${subItem.url}`} passHref>- <a- className={[- 'cursor-pointer transition text-sm',- subItem.url === router.pathname- ? 'text-brand-900'- : 'hover:text-brand-900 text-scale-1000',- ].join(' ')}- >- {subItem.name}- </a>- </Link>- </li>- {/* {subItemIndex === x.items.length - 1 && (- <div className="h-px w-full bg-green-500 my-3"></div>- )} */}- </>- )- })}- </>- ) : (- <>- <li>- <Link href={`/${x.url}`} passHref>- <a- className={[- 'cursor-pointer transition text-sm',- x.url === router.pathname- ? 'text-brand-900'- : 'hover:text-brand-900 text-scale-1000',- ].join(' ')}- >- {x.icon && <img className="w-3" src={`${router.basePath}${x.icon}`} />}- {x.name}- </a>- </Link>- </li>- </>- )}- </div>- )- })}- {menu.extras && (- <>- <div className="h-px w-full bg-green-500 my-3"></div>- <span className="font-mono text-xs uppercase text-scale-1200 font-medium tracking-wider mb-2">- Resources- </span>- </>- )}- {menu.extras?.map((x) => {- return (- <div key={x.name}>- <li>- <Link href={`/${x.href}`} passHref>- <a className="cursor-pointer transition text-scale-1100 text-sm hover:text-brand-900 flex gap-3 my-1">- {x.icon && <img className="w-4" src={`${router.basePath}${x.icon}`} />}- {x.name}- </a>- </Link>- </li>- </div>- )- })}- </ul>- </div>+ {menu.items.map((x, index) => {+ // console.log('1st type of link?', x.items && x.items.length > 0)+ // console.log()+ return (+ <div key={x.name}>+ {x.items && x.items.length > 0 ? (+ <>+ {x.items.map((subItem, subItemIndex) => {+ // console.log('router', router)+ //console.log('subitem url', subItem.url)+ let subItemMenuOpen = false++ if (router.asPath.includes(subItem.url)) {+ subItemMenuOpen = true+ }++ return (+ <>+ {subItemIndex === 0 && (+ <>+ <div className="h-px w-full bg-green-500 my-3"></div>+ <span className="font-mono text-xs uppercase text-scale-1200 font-medium tracking-wider">+ {x.name}+ </span>+ </>+ )}+ <Accordion.Item key={subItem.label} value={subItem.url}>+ <li key={subItem.name}>+ <Link href={`/${subItem.url}`} passHref>+ <a+ className={[+ 'cursor-pointer transition text-sm',+ subItem.url === router.pathname+ ? 'text-brand-900'+ : 'hover:text-brand-900 text-scale-1000',+ ].join(' ')}+ >+ {subItem.name}+ </a>+ </Link>+ </li>++ {subItem.items && subItem.items.length > 0 && (+ <Accordion.Content className="transition data-open:animate-slide-down data-closed:animate-slide-up ml-2">+ {subItem.items.map((subSubItem, subSubItemIndex) => {+ return (+ <li key={subItem.name}>+ <Link href={`/${subSubItem.url}`} passHref>+ <a+ className={[+ 'cursor-pointer transition text-sm',+ subSubItem.url === router.pathname+ ? 'text-brand-900'+ : 'hover:text-brand-900 text-scale-1000',+ ].join(' ')}+ >+ {subSubItem.name}+ </a>+ </Link>+ </li>+ )+ })}+ </Accordion.Content>+ )}+ </Accordion.Item>+ </>+ )+ })}+ </>+ ) : (+ <>+ <li>+ <Link href={`/${x.url}`} passHref>+ <a+ className={[+ 'cursor-pointer transition text-sm',+ x.url === router.pathname+ ? 'text-brand-900'+ : 'hover:text-brand-900 text-scale-1000',+ ].join(' ')}+ >+ {x.icon && <img className="w-3" src={`${router.basePath}${x.icon}`} />}+ {x.name}+ </a>+ </Link>+ </li>+ </>+ )}+ </div>+ )+ })}+ {menu.extras && (+ <>+ <div className="h-px w-full bg-green-500 my-3"></div>+ <span className="font-mono text-xs uppercase text-scale-1200 font-medium tracking-wider mb-2">+ Resources+ </span>+ </>+ )}+ {menu.extras?.map((x) => {+ return (+ <div key={x.name}>+ <li>+ <Link href={`/${x.href}`} passHref>+ <a className="cursor-pointer transition text-scale-1100 text-sm hover:text-brand-900 flex gap-3 my-1">+ {x.icon && <img className="w-4" src={`${router.basePath}${x.icon}`} />}+ {x.name}+ </a>+ </Link>+ </li>+ </div>+ )+ })}+ </ul>+ </div>+ </Accordion.Root>)}diff --git a/apps/docs/pages/guides/auth/0auth-login/auth-apple.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-apple.mdxnew file mode 100644index 00000000000..4c48c0a9459--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-apple.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-apple.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/0auth-login/auth-azure.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-azure.mdxnew file mode 100644index 00000000000..1f28b3fb092--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-azure.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-azure.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/0auth-login/auth-bitbucket.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-bitbucket.mdxnew file mode 100644index 00000000000..3d93801bb81--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-bitbucket.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-bitbucket.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/0auth-login/auth-discord.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-discord.mdxnew file mode 100644index 00000000000..70a3a644c2c--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-discord.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-discord.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/0auth-login/auth-facebook.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-facebook.mdxnew file mode 100644index 00000000000..6cd572e0739--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-facebook.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-facebook.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/0auth-login/auth-github.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-github.mdxnew file mode 100644index 00000000000..21b3902d84e--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-github.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-github.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/0auth-login/auth-gitlab.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-gitlab.mdxnew file mode 100644index 00000000000..947f7925efa--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-gitlab.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-gitlab.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/0auth-login/auth-google.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-google.mdxnew file mode 100644index 00000000000..2f445ae278b--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-google.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-google.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/0auth-login/auth-keycloak.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-keycloak.mdxnew file mode 100644index 00000000000..30654785ec5--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-keycloak.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-keycloack.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/0auth-login/auth-linkedin.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-linkedin.mdxnew file mode 100644index 00000000000..3a3e625896e--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-linkedin.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-linkedin.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/0auth-login/auth-notion.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-notion.mdxnew file mode 100644index 00000000000..4554f8cd393--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-notion.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-notion.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/0auth-login/auth-slack.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-slack.mdxnew file mode 100644index 00000000000..5233c193a3f--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-slack.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-slack.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/0auth-login/auth-spotify.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-spotify.mdxnew file mode 100644index 00000000000..1a0797d39c4--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-spotify.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-spotify.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/0auth-login/auth-twilio.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-twilio.mdxnew file mode 100644index 00000000000..2776333bc65--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-twilio.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-twilio.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/0auth-login/auth-twitch.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-twitch.mdxnew file mode 100644index 00000000000..0f912a88b4a--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-twitch.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-twitch.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/0auth-login/auth-twitter.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-twitter.mdxnew file mode 100644index 00000000000..7cad6e48f2a--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-twitter.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-twitter.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/0auth-login/auth-workos.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-workos.mdxnew file mode 100644index 00000000000..4cf92bc3dd6--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-workos.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-workos.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/0auth-login/auth-zoom.mdx b/apps/docs/pages/guides/auth/0auth-login/auth-zoom.mdxnew file mode 100644index 00000000000..aac66bd5d1b--- /dev/null+++ b/apps/docs/pages/guides/auth/0auth-login/auth-zoom.mdx@@ -0,0 +1,13 @@+import Layout from '~/layouts/DefaultGuideLayout'+import oldContent from '~/pages/guides/auth/auth-zoom.mdx'++export const meta = {}++export const Page = ({ children }) => {+ if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true') {+ return oldContent()+ }+ return <Layout meta={meta} children={children} />+}++export default Pagediff --git a/apps/docs/pages/guides/auth/phone-login.mdx b/apps/docs/pages/guides/auth/phone-login.mdxindex a8a618ba220..bf87c09be81 100644--- a/apps/docs/pages/guides/auth/phone-login.mdx+++ b/apps/docs/pages/guides/auth/phone-login.mdx@@ -1,7 +1,7 @@import Layout from '~/layouts/DefaultGuideLayout'import { IconPanel } from 'ui'import Link from 'next/link'-import { PhoneLogins } from '~/components/Navigation/NavigationMenu/NavigationMenu.constants'+import { PhoneLoginsItems } from '~/components/Navigation/NavigationMenu/NavigationMenu.constants'export const meta = {title: 'Login with social',@@ -19,7 +19,7 @@ dasdadsdsddsadasd sdasdsdsadasdasdasdasdasd adsdsddsadasd sdasdsdsadasdasdasdasdasd adsdsddsadasd sdasdsdsadasdasdasdasdasd adsdsddsadasd sdasdsdsadasdasdasdasdasd<div className="grid grid-cols-12 gap-10 not-prose py-16">- {PhoneLogins.map((item) => (+ {PhoneLoginsItems.map((item) => (<Link href={`/${item.url}`} key={item.name} passHref><a className="col-span-4"><IconPanel