The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Prettier lint
Joshen Limca2557f2e8d3
diff --git a/www/components/Button.tsx b/www/components/Button.tsxindex 742544edebb..21f283d29e1 100644--- a/www/components/Button.tsx+++ b/www/components/Button.tsx@@ -32,8 +32,14 @@ const Button = (props: Props) => {className={`relative transition-all ${url ? textClass : ''}`}- >{text}</span>- {url && (<span className={`ml-2 transition-all opacity-0 group-hover:opacity-100 ${arrowClass}`}>→</span>)}+ >+ {text}+ </span>+ {url && (+ <span className={`ml-2 transition-all opacity-0 group-hover:opacity-100 ${arrowClass}`}>+ →+ </span>+ )}</button>)diff --git a/www/components/CountUp.tsx b/www/components/CountUp.tsxindex c9e9de114ac..16597982056 100644--- a/www/components/CountUp.tsx+++ b/www/components/CountUp.tsx@@ -19,7 +19,7 @@ const CountUp = (props: Props) => {useEffect(() => {let frame = 0const totalFrames = Math.round(duration / frameDuration)-+async function handleScroll() {const reference = document.getElementById(referenceElId)if (reference && !animTriggered) {@@ -53,7 +53,6 @@ const CountUp = (props: Props) => {return () => {if (triggerAnimOnScroll) window.removeEventListener('scroll', handleScroll)}-}, [animTriggered])return <span>{Math.floor(count)}</span>diff --git a/www/components/Footer/index.tsx b/www/components/Footer/index.tsxindex 2ceb71f406b..a64db216665 100644--- a/www/components/Footer/index.tsx+++ b/www/components/Footer/index.tsx@@ -66,7 +66,11 @@ const Footer = (props: Props) => {<div className="space-y-8 xl:col-span-1"><imgclassName="h-10 w-auto"- src={darkMode ? `${basePath}/images/logo-dark.png` : `${basePath}/images/logo-light.png`}+ src={+ darkMode+ ? `${basePath}/images/logo-dark.png`+ : `${basePath}/images/logo-light.png`+ }alt="Supabase"/><div className="flex space-x-6">diff --git a/www/components/Meta.tsx b/www/components/Meta.tsxindex 73a445e1850..e2bb754d384 100644--- a/www/components/Meta.tsx+++ b/www/components/Meta.tsx@@ -6,9 +6,23 @@ const Meta = () => {const { basePath } = useRouter()return (<Head>- <link rel="apple-touch-icon" sizes="180x180" href={`${basePath}/favicon/apple-touch-icon.png`} />- <link rel="icon" type="image/png" sizes="32x32" href={`${basePath}/favicon/favicon-32x32.png`} />- <link rel="icon" type="image/png" sizes="16x16" href={`${basePath}/favicon/favicon-16x16.png`} />+ <link+ rel="apple-touch-icon"+ sizes="180x180"+ href={`${basePath}/favicon/apple-touch-icon.png`}+ />+ <link+ rel="icon"+ type="image/png"+ sizes="32x32"+ href={`${basePath}/favicon/favicon-32x32.png`}+ />+ <link+ rel="icon"+ type="image/png"+ sizes="16x16"+ href={`${basePath}/favicon/favicon-16x16.png`}+ /><link rel="manifest" href={`${basePath}/favicon/site.webmanifest`} /><link rel="mask-icon" href={`${basePath}/favicon/safari-pinned-tab.svg`} color="#000000" /><link rel="shortcut icon" href={`${basePath}/favicon/favicon.ico`} />diff --git a/www/components/Nav/Company.tsx b/www/components/Nav/Company.tsxindex 7dcdb917277..e4dadc39f5c 100644--- a/www/components/Nav/Company.tsx+++ b/www/components/Nav/Company.tsx@@ -4,13 +4,13 @@ import BlogPostsData from 'data/BlogPosts.json'type Props = {text: string- description? : string- url? : string- icon? : string+ description?: string+ url?: string+ icon?: string}const Company = () => {- const iconSections = Object.values(CompanyData).map((company : Props) => {+ const iconSections = Object.values(CompanyData).map((company: Props) => {const { text, description, url, icon } = companyconst content = (@@ -27,12 +27,7 @@ const Company = () => {stroke="currentColor"aria-hidden="true">- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d={icon}- />+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d={icon} /></svg><div className="ml-4"><p className="text-base font-medium text-gray-900 dark:text-white">{text}</p>diff --git a/www/components/Nav/Developers.tsx b/www/components/Nav/Developers.tsxindex 276a4abc3b2..ffa5633eb9c 100644--- a/www/components/Nav/Developers.tsx+++ b/www/components/Nav/Developers.tsx@@ -3,18 +3,16 @@ import DevelopersData from 'data/Developers.json'import AnnouncementsData from 'data/Announcements.json'import { useRouter } from 'next/router'-type Props = {text: string- description? : string- url? : string- icon? : string+ description?: string+ url?: string+ icon?: string}-const Developers = () => {const { basePath } = useRouter()- const iconSections = Object.values(DevelopersData).map((company : Props) => {+ const iconSections = Object.values(DevelopersData).map((company: Props) => {const { text, description, url, icon } = companyconst content = (@@ -31,15 +29,10 @@ const Developers = () => {stroke="currentColor"aria-hidden="true">- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d={icon}- />+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d={icon} /></svg><div className="ml-4">- <p className="text-base font-medium text-gray-900 dark:text-white">{text}</p>+ <p className="text-base font-medium text-gray-900 dark:text-white">{text}</p><p className="mt-1 text-sm text-gray-500 dark:text-dark-300">{description}</p></div></a>diff --git a/www/components/Nav/index.tsx b/www/components/Nav/index.tsxindex 68eaf368c6d..e0433966a2d 100644--- a/www/components/Nav/index.tsx+++ b/www/components/Nav/index.tsx@@ -150,10 +150,12 @@ const Nav = (props: Props) => {const FlyOutNavButton = (props: any) => (<div- className={`+ className={+ `inline-flex items-center px-1 border-b-2 border-transparent text-sm font-medium text-gray-500 hover:text-gray-700dark:text-dark-100 cursor-pointer- ` + (props.active )}+ ` + props.active+ }onClick={props.onClick}><>@@ -188,12 +190,20 @@ const Nav = (props: Props) => {<div className="flex-shrink-0 flex items-center"><imgclassName="block lg:hidden h-6 w-auto"- src={darkMode ? `${basePath}/images/logo-dark.png` : `${basePath}/images/logo-light.png`}+ src={+ darkMode+ ? `${basePath}/images/logo-dark.png`+ : `${basePath}/images/logo-light.png`+ }alt="Logo"/><imgclassName="hidden lg:block h-6 w-auto"- src={darkMode ? `${basePath}/images/logo-dark.png` : `${basePath}/images/logo-light.png`}+ src={+ darkMode+ ? `${basePath}/images/logo-dark.png`+ : `${basePath}/images/logo-light.png`+ }alt="Logo"/></div>@@ -252,7 +262,9 @@ const Nav = (props: Props) => {inline-flex items-center border-b-2 border-transparent text-sm font-normal transitionrounded-md px-3 py-1 mr-5 bg-brand-700 text-white hover:bg-brand-800 hidden lg:block`}- >Start your project</a>+ >+ Start your project+ </a><ahref="https://app.supabase.io?auth=signin"className={`diff --git a/www/components/UI/FlyOut.tsx b/www/components/UI/FlyOut.tsxindex 300a5d59b94..91a1edc016d 100644--- a/www/components/UI/FlyOut.tsx+++ b/www/components/UI/FlyOut.tsx@@ -22,7 +22,6 @@ const FlyOut = (props: Props) => {return () => window.removeEventListener('scroll', handleScroll)})-// function handleToggle() {// setShow(!show)// props.handleClick()@@ -75,7 +74,11 @@ const FlyOut = (props: Props) => {><div className="absolute inset-0 flex sm:flex-col lg:flex-row" aria-hidden="true"><div className="bg-white dark:bg-dark-600 sm:w-full sm:h-1/2 lg:w-1/2 lg:h-full" />- <div className={`${singleBgColor ? 'bg-white dark:bg-dark-600' : 'bg-gray-50 dark:bg-dark-500'} sm:w-full sm:h-1/2 lg:w-1/2 lg:h-full`} />+ <div+ className={`${+ singleBgColor ? 'bg-white dark:bg-dark-600' : 'bg-gray-50 dark:bg-dark-500'+ } sm:w-full sm:h-1/2 lg:w-1/2 lg:h-full`}+ />{/* <div className="bg-gray-50 dark:bg-dark-300 md:hidden lg:block lg:w-1/2"></div> */}</div><divdiff --git a/www/pages/beta.tsx b/www/pages/beta.tsxindex 56a7525b20a..b1a2db5aef0 100644--- a/www/pages/beta.tsx+++ b/www/pages/beta.tsx@@ -268,9 +268,15 @@ const Performance = () => {<div className="w-full sm:w-5/6">{metric.stats.map((stat: any, idx: number) => (<div key={`metric_${metric.key}_${idx}`} className="flex items-center">- <p className="w-20 lg:w-24 border-r py-2 pr-4 mr-4 text-left sm:text-right">{stat.name}</p>+ <p className="w-20 lg:w-24 border-r py-2 pr-4 mr-4 text-left sm:text-right">+ {stat.name}+ </p><Bar- color={stat.name === 'Supabase' ? 'bg-brand-600 dark:bg-brand-700' : 'bg-dark-300 dark:bg-dark-400'}+ color={+ stat.name === 'Supabase'+ ? 'bg-brand-600 dark:bg-brand-700'+ : 'bg-dark-300 dark:bg-dark-400'+ }finalPercentage={Math.ceil((stat.value / maxValue) * 100)}/><p className="ml-2">{stat.value}/s</p>