The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: remove old files
Jonathan Summers-Muir34c22b3abdef
diff --git a/www/components/Brand/Badges.tsx b/www/components/Brand/Badges.tsxdeleted file mode 100644index 2e33214f76d..00000000000--- a/www/components/Brand/Badges.tsx+++ /dev/null@@ -1,91 +0,0 @@-import { useState } from 'react'-// Import Swiper React components-import { Button, IconDownload, Tabs, Typography } from '@supabase/ui'-import { Swiper, SwiperSlide } from 'swiper/react'-import CodeBlock from '../CodeBlock/CodeBlock'-import Link from 'next/link'--interface Example {- lang: 'js' | 'py' | 'sql'- title: string- code: string-}--interface Props {- size?: 'small' | 'large'- content: Example[]- title: string | React.ReactNode- footer?: React.ReactNode- text?: React.ReactNode- autoHeight?: boolean- documentation_link?: string-}--function APISection(props: Props) {- // store API swiper instance- const [apiSwiper, setApiSwiper] = useState(undefined)- const [apiSwiperActiveIndex, setApiSwiperActiveIndex] = useState(0)-- function handleApiSwiperNavChange(e: number) {- setApiSwiperActiveIndex(e)- // @ts-ignore- apiSwiper.slideTo(e)- }-- return (- <div className="grid grid-cols-12 lg:gap-16">- <div className="col-span-12 lg:col-span-5 xl:col-span-5 pb-8">- <Typography.Title level={2}>{props.title}</Typography.Title>- <Typography.Text>{props.text}</Typography.Text>- {props.documentation_link && (- <Link href={props.documentation_link} as={props.documentation_link}>- <a>- <Button size="small" className="mt-4" type="default" iconRight={<IconDownload />}>- Download Full Badge Kit- </Button>- </a>- </Link>- )}- {props.footer && <div className="py-8">{props.footer}</div>}- </div>- <div className="col-span-12 lg:col-span-7 xl:col-span-6 xl:col-start-7 sbui-tabs--alt">- <Tabs- scrollable- activeId={apiSwiperActiveIndex.toString()}- onChange={(id: string) => handleApiSwiperNavChange(Number(id))}- >- {props.content &&- props.content.map((content: Example, i) => (- <Tabs.Panel label={content.title} id={i.toString()} key={i}>- <span key={i}></span>- </Tabs.Panel>- ))}- </Tabs>- <div className="border border-gray-100 dark:border-gray-600 rounded-md bg-gray-800 overflow-hidden">- <Swiper- // @ts-ignore- onSwiper={setApiSwiper}- style={{ zIndex: 0 }}- initialSlide={apiSwiperActiveIndex}- spaceBetween={0}- slidesPerView={1}- speed={300}- allowTouchMove={false}- autoHeight={props.autoHeight ? props.autoHeight : false}- >- {props.content &&- props.content.map((content: Example, i) => (- <SwiperSlide key={i}>- <CodeBlock key={i} lang={content.lang} size={props.size ? props.size : 'small'}>- {content.code}- </CodeBlock>- </SwiperSlide>- ))}- </Swiper>- </div>- </div>- </div>- )-}--export default APISectiondiff --git a/www/components/Brand/BrandHero.tsx b/www/components/Brand/BrandHero.tsxdeleted file mode 100644index dc864d12aeb..00000000000--- a/www/components/Brand/BrandHero.tsx+++ /dev/null@@ -1,89 +0,0 @@-import { Button, IconDownload, Space, Typography } from '@supabase/ui'-import Link from 'next/link'-import { useRouter } from 'next/router'-import SectionContainer from '../Layouts/SectionContainer'--const BrandHero = () => {- const { basePath } = useRouter()-- return (- <div className="overflow-hidden">- <SectionContainer className="pb-0 pt-24">- <div className="relative">- <main className="">- <div className="mx-auto">- <div className="lg:grid lg:grid-cols-12 lg:gap-16">- <div className="md:max-w-2xl md:mx-auto lg:col-span-6 lg:text-left lg:flex lg:items-center">- <div className="sm:mx-auto md:w-3/4 lg:w-full lg:mx-0">- <h1 className="mt-4 text-4xl text-gray-800 dark:text-white sm:mt-5 sm:leading-none lg:mt-6 lg:text-5xl xl:text-6xl">- <span className="block text-gray-800 dark:text-white">Supabase</span>- <span className="text-brand-600 md:ml-0 block">Assets And Mediakit</span>- </h1>- <Typography.Text>- <p className="mt-5 text-base sm:mt-5 lg:text-lg ">- Download our full kit, or choose between a selection of SVG's and code snippets. Logos- are availiable in both dark and light themes, and badges come in green and black.- </p>- </Typography.Text>- <Space>- <Link- href="https://app.supabase.io/api/login"- as="https://app.supabase.io/api/login"- >- <a>- <Button className="mt-10 py-3" size="medium" iconRight={<IconDownload />}>- Download All- </Button>- </a>- </Link>- <Link href="https://app.supabase.io/docs" as="https://supabase.io/docs">- <a>- <Button- className="mt-10 py-3"- size="medium"- type="text"- >- Contact Us- </Button>- </a>- </Link>- </Space>- </div>- </div>- <div className="flex content-center mt-16 sm:mt-24 lg:absolute lg:-right-80 lg:w-9/12 lg:mt-0 lg:col-span-6 xl:relative xl:right-0 xl:w-full">- <div className="flex flex-col items-center justify-center relative w-full rounded-md">- <div className="w-full rounded-t-md h-5 bg-dark-700 flex items-center justify-start px-2">- <div className="h-2 w-2 mr-2 rounded-full bg-dark-500" />- <div className="h-2 w-2 mr-2 rounded-full bg-dark-500" />- <div className="h-2 w-2 mr-2 rounded-full bg-dark-500" />- </div>- <div- className="w-full relative bg-dark-900 shadow-lg"- style={{ padding: '56.25% 0 0 0' }}- >- <iframe- title="Demo video showcasing Supabase"- className="absolute w-full h-full rounded-b-md"- src="https://www.youtube-nocookie.com/embed/dBOSUER_5T4?playlist=dBOSUER_5T4&autoplay=1&loop=1&controls=0&modestbranding=1&rel=0&disablekb=1&mute=1&muted=1"- style={{ top: 0, left: 0 }}- frameBorder="0"- allow="autoplay; modestbranding; encrypted-media"- />- </div>- {/*- Replace src with the following if have preference:- Vimeo: https://player.vimeo.com/video/485959063?loop=1&autoplay=1- Youtube: https://www.youtube-nocookie.com/embed/dBOSUER_5T4?playlist=dBOSUER_5T4&autoplay=1&loop=1&controls=0&modestbranding=1&rel=0&disablekb=1&mute=1&muted=1- */}- </div>- </div>- </div>- </div>- </main>- </div>- </SectionContainer>- </div>- )-}--export default BrandHerodiff --git a/www/components/Brand/Logos.tsx b/www/components/Brand/Logos.tsxdeleted file mode 100644index 038a2a33b27..00000000000--- a/www/components/Brand/Logos.tsx+++ /dev/null@@ -1,154 +0,0 @@-import { useState } from 'react'-import { createClient } from '@supabase/supabase-js'-import { Button, Card, Auth, Space, Tabs, Typography, IconCopy, IconDownload } from '@supabase/ui'-import CodeBlock from '../CodeBlock/CodeBlock'-// Import Swiper React components-import { Swiper, SwiperSlide } from 'swiper/react'-import Link from 'next/link'-import { useRouter } from 'next/router'--function AuthComponentExample() {- const { basePath } = useRouter()-- // store API swiper instance- const [imageSwiper, setImageSwiper] = useState(undefined)- const [imageSwiperActiveIndex, setImageSwiperActiveIndex] = useState(0)-- function handleNavChange(e: number) {- console.log(e)- setImageSwiperActiveIndex(e)- // @ts-ignore- imageSwiper.slideTo(e)- }-- const AuthContainer = (props: any) => {- const { user } = Auth.useUser()- if (user) {- return (- <>- <Typography.Text>Signed in: {user.email}</Typography.Text>- <Button block onClick={() => props.supabaseClient.auth.signOut()}>- Sign out- </Button>- </>- )- }- return props.children- }-- return (- <div className="sbui-tabs--alt">- {/* <Tabs- activeId={imageSwiperActiveIndex.toString()}- onChange={(id: string) => handleNavChange(Number(id))}- >- <Tabs.Panel label="Preview" id="0" icon={<IconSearch />}>- <span></span>- </Tabs.Panel>- <Tabs.Panel label="Code" icon={<IconCode />} id="1">- <span></span>- </Tabs.Panel>- </Tabs> */}- <div- className={`relative bg-white dark:bg-gray-800 py-2 pb-16 border dark:border-gray-600 auth-container`}- >- <Swiper- // @ts-ignore- onSwiper={setImageSwiper}- style={{ zIndex: 0 }}- initialSlide={0}- spaceBetween={0}- slidesPerView={1}- speed={300}- autoHeight={true}- allowTouchMove={false}- >- <SwiperSlide key={1}>- <div className="pt-8" style={{ maxWidth: '420px', margin: '0 auto' }}>- <Card>- <Space size={8} direction="vertical">- <Link href="/" as="/">- <img- className="w-48"- src={- `${basePath}/images/logo-light.png`- }- alt="Logo"- />- </Link>- <Space>- <Link- href="https://app.supabase.io/api/login"- as="https://app.supabase.io/api/login"- >- <a>- <Button className="py-3" size="medium" iconRight={<IconCopy />}>- Copy SVG- </Button>- </a>- </Link>- <Link- href="https://app.supabase.io/api/login"- as="https://app.supabase.io/api/login"- >- <a>- <Button className="py-3" size="medium" iconRight={<IconDownload />}>- Download PNG- </Button>- </a>- </Link>- </Space>- </Space>- </Card>-- </div>- </SwiperSlide>-- <SwiperSlide key={2}>- <div className="p-8">- <CodeBlock- children={`import React, { useState } from 'react'-import { Auth, Typography, Button } from '@supabase/ui'-import { createClient } from '@supabase/supabase-js'--export default function app() {- const supabase = createClient(- "https://YOUR-PROJECT-ID.supabase.co",- "YOUR-PUBLIC-ANON-KEY"- );-- function Container(props: any) {- const { user } = Auth.useUser();- if (user) {- return (- <div>- <Typography.Text>Signed in: {user.email}</Typography.Text>- <Button block onClick={() => props.supabaseClient.auth.signOut()}>- Sign out- </Button>- </div>- )- }- return props.children;- };-- return (- <Auth.UserContextProvider supabaseClient={supabase}>- <Container supabaseClient={supabase}>- <Auth supabaseClient={supabase} />- </Container>- </Auth.UserContextProvider>- );-}-`}- lang="js"- />- </div>- </SwiperSlide>- </Swiper>- </div>- </div>- )-}--export default AuthComponentExample\ No newline at end of file