The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: fixed warnings
Jonathan Summers-Muir4494ae56bf98
diff --git a/www/components/BuiltWithSupabase/index.tsx b/www/components/BuiltWithSupabase/index.tsxindex ddae873af7a..18156098ea5 100644--- a/www/components/BuiltWithSupabase/index.tsx+++ b/www/components/BuiltWithSupabase/index.tsx@@ -43,7 +43,7 @@ const BuiltExamples = () => {{Examples.slice(0, 6).map((example, i) => {return (<div- className={`col-span-12 lg:col-span-6 xl:col-span-4 ${i > 2 && `sm:hidden lg:block`}`}+ className={`col-span-12 lg:col-span-6 xl:col-span-4 ${i > 2 && `sm:hidden lg:block`}`} key={i}><ExampleCard {...example} /></div>diff --git a/www/components/Carousels/ImageCarousel.tsx b/www/components/Carousels/ImageCarousel.tsxindex f5cfd6b64fb..ff356932acc 100644--- a/www/components/Carousels/ImageCarousel.tsx+++ b/www/components/Carousels/ImageCarousel.tsx@@ -80,6 +80,7 @@ function ImageCarousel(props: ImageCarouselProps) {{props.content.map((content: Content, i) => {return (<Tabs.Panel+ key={i}label={content.label ? content.label : content.title}id={i.toString()}>@@ -139,7 +140,11 @@ function ImageCarousel(props: ImageCarouselProps) {>{props.content.map((content: Content, i: number) => {return (- <Tabs.Panel label={content.label ? content.label : content.title} id={i.toString()}>+ <Tabs.Panel+ label={content.label ? content.label : content.title}+ id={i.toString()}+ key={i}+ ><span></span></Tabs.Panel>)diff --git a/www/components/Carousels/SplitCodeBlockCarousel.tsx b/www/components/Carousels/SplitCodeBlockCarousel.tsxindex a31c0e91b83..50f4f000b53 100644--- a/www/components/Carousels/SplitCodeBlockCarousel.tsx+++ b/www/components/Carousels/SplitCodeBlockCarousel.tsx@@ -90,7 +90,7 @@ function SplitCodeBlockCarousel(props: SplitCodeBlockCarousel) {>{props.content.map((extension, i) => {return (- <SwiperSlide>+ <SwiperSlide key={i}><CodeBlock key={i} lang={extension.lang}>{extension.code}</CodeBlock>diff --git a/www/components/CaseStudies/index.tsx b/www/components/CaseStudies/index.tsxindex 1cbafa8db3f..191db508e53 100644--- a/www/components/CaseStudies/index.tsx+++ b/www/components/CaseStudies/index.tsx@@ -22,7 +22,7 @@ const CaseStudies = () => {</div><div className="mt-5 max-w-lg mx-auto grid gap-5 lg:grid-cols-3 lg:max-w-none">{CaseStudiesData.map((caseStudy: any, idx: number) => (- <a href={caseStudy.url}>+ <a href={caseStudy.url} key={idx}><Cardkey={`caseStudy_${idx}`}hoverablediff --git a/www/components/MadeForDevelopers/index.tsx b/www/components/MadeForDevelopers/index.tsxindex 5761183d99b..6c84fccb4dd 100644--- a/www/components/MadeForDevelopers/index.tsx+++ b/www/components/MadeForDevelopers/index.tsx@@ -5,7 +5,6 @@ import FeatureColumn from '../FeatureColumn'import CodeExamples from 'data/home/api-examples'import DeveloperFeatures from 'data/DeveloperFeatures.json'-import Link from 'next/link'import TextLink from '../TextLink'const MadeForDevelopers = () => {@@ -14,14 +13,9 @@ const MadeForDevelopers = () => {<APISectionautoHeight={true}size="large"- title={[- <span>- Instant APIs- <br /> that do the hard work for you- </span>,- ]}+ title={"Instant APIs that do the hard work for you"}text={[- <p className="lg:text-lg">+ <p className="lg:text-lg" key={'madefordeveloper-para-1'}>We introspect your database to provide APIs instantly. Stop building repetitive CRUDendpoints and focus on your product.</p>,@@ -29,10 +23,10 @@ const MadeForDevelopers = () => {// @ts-ignorecontent={CodeExamples}footer={[- <dl className="grid gap-y-4 grid-cols-12 md:gap-8">- {DeveloperFeatures.map((feature: any, idx: number) => {+ <dl className="grid gap-y-4 grid-cols-12 md:gap-8" key={'madefordeveloper-footer'}>+ {DeveloperFeatures.map((feature: any, i: number) => {return (- <div className="col-span-12 md:col-span-6 lg:col-span-6" key={`dev_feature_${idx}`}>+ <div className="col-span-12 md:col-span-6 lg:col-span-6" key={i}><div className="lg:mt-5"><dt><FeatureColumn title={feature.name} text={feature.description} />diff --git a/www/components/Sections/APISection.tsx b/www/components/Sections/APISection.tsxindex 2508aa36a59..f4ce31c3d41 100644--- a/www/components/Sections/APISection.tsx+++ b/www/components/Sections/APISection.tsx@@ -56,8 +56,8 @@ function APISection(props: Props) {>{props.content &&props.content.map((content: Example, i) => (- <Tabs.Panel label={content.title} id={i.toString()}>- <span></span>+ <Tabs.Panel label={content.title} id={i.toString()} key={i}>+ <span key={i}></span></Tabs.Panel>))}</Tabs>@@ -75,7 +75,7 @@ function APISection(props: Props) {>{props.content &&props.content.map((content: Example, i) => (- <SwiperSlide>+ <SwiperSlide key={i}><CodeBlock key={i} lang={content.lang} size={props.size ? props.size : 'small'}>{content.code}</CodeBlock>diff --git a/www/components/Sections/GithubExamples.tsx b/www/components/Sections/GithubExamples.tsxindex 092ad4caf9a..e89eb73d05b 100644--- a/www/components/Sections/GithubExamples.tsx+++ b/www/components/Sections/GithubExamples.tsx@@ -117,7 +117,7 @@ function GithubExamples() {>{Object.values(Examples).map((example: any, i: number) => {return (- <SwiperSlide>+ <SwiperSlide key={i}><div className="my-8 mr-3 ml-3"><ExampleCard i={i} {...example} /></div>diff --git a/www/components/Sections/ProductHeader.tsx b/www/components/Sections/ProductHeader.tsxindex 266ffea5b35..8f99d38b410 100644--- a/www/components/Sections/ProductHeader.tsx+++ b/www/components/Sections/ProductHeader.tsx@@ -21,17 +21,17 @@ const ProductHeader = (props: Types) => (<div className="flex flex-row mb-4 item-center">{props.icon && <ProductIcon icon={props.icon} />}{props.title && (- <Typography.Title level={4} className="ml-3">+ <Typography.Title level={4} className="ml-3" key={`product-name-${props.title}`}>{props.title}</Typography.Title>)}</div>) : null}- <Typography.Title level={1}>{props.h1}</Typography.Title>+ <Typography.Title level={1} key={`h1`}>{props.h1}</Typography.Title>{props.subheader && (<Typography.Text>- {props.subheader.map((subheader) => {- return <p className="lg:text-lg">{subheader}</p>+ {props.subheader.map((subheader, i) => {+ return <p className="lg:text-lg" key={i}>{subheader}</p>})}</Typography.Text>)}diff --git a/www/components/Sections/TwitterSocialProof.tsx b/www/components/Sections/TwitterSocialProof.tsxindex 5a6e1977880..b496c610cef 100644--- a/www/components/Sections/TwitterSocialProof.tsx+++ b/www/components/Sections/TwitterSocialProof.tsx@@ -103,7 +103,7 @@ function TwitterSocialProof() {>{Examples.map((tweet: any, i: number) => {return (- <SwiperSlide>+ <SwiperSlide key={i}><div className="mr-3 ml-3 cursor-move"><TweetCardkey={i}diff --git a/www/pages/auth/Auth.tsx b/www/pages/auth/Auth.tsxindex 504ba1df025..60f50d552a4 100644--- a/www/pages/auth/Auth.tsx+++ b/www/pages/auth/Auth.tsx@@ -57,7 +57,7 @@ function AuthPage() {icon={Solutions['authentication'].icon}title={Solutions['authentication'].name}h1={[- <span>+ <span key={'authentication-h1'}>Built-in user mangement<br /> (that you can afford)</span>,@@ -68,10 +68,12 @@ function AuthPage() {]}image={[<img+ key={'authentication-header-img--light'}className="w-full header--light block"src={`${basePath}/images/product/auth/header--light.png`}/>,<img+ key={'authentication-header-img--dark'}className="w-full header--dark mr-0 dark:block"src={`${basePath}/images/product/auth/header--dark.png`}/>,diff --git a/www/pages/database/Database.tsx b/www/pages/database/Database.tsxindex 580f534689e..e2ebe19d1fa 100644--- a/www/pages/database/Database.tsx+++ b/www/pages/database/Database.tsx@@ -64,7 +64,7 @@ function Database() {icon={Solutions['database'].icon}title={Solutions['database'].name}h1={[- <span>+ <span key={'database-h1'}>Open source SQL Database<br /> (without the hassle)</span>,@@ -75,10 +75,12 @@ function Database() {]}image={[<img+ key={'database-header-img--light'}className="w-full header--light block"src={`${basePath}/images/product/database/header--light-2.png`}/>,<img+ key={'database-header-img--dark'}className="w-full header--dark mr-0 dark:block"src={`${basePath}/images/product/database/header--dark-2.png`}/>,@@ -186,7 +188,7 @@ function Database() {allowTouchMove={false}><div className="grid grid-cols-12">- <SwiperSlide>+ <SwiperSlide key={0}><SectionContainer className="pt-16 pb-0"><ImageCarouselcontent={TableViewCarouselData}@@ -202,7 +204,7 @@ function Database() {/></SectionContainer></SwiperSlide>- <SwiperSlide>+ <SwiperSlide key={1}><SectionContainer className="pt-16 pb-0"><ImageCarouselcontent={SqlViewCarouselData}