The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: update text. more tidying
Jonathan Summers-Muirb9c9e3ee8b3d
diff --git a/www/components/Carousels/ImageCarousel.tsx b/www/components/Carousels/ImageCarousel.tsxindex 8c010bbd0c2..57a633fa3e5 100644--- a/www/components/Carousels/ImageCarousel.tsx+++ b/www/components/Carousels/ImageCarousel.tsx@@ -74,7 +74,7 @@ function ImageCarousel(props: ImageCaoursel) {<div className={props.altTabView ? 'hidden' : 'block'}><Tabsscrollable- type="underlined"+ type={props.altTabView ? 'underlined' : 'pills'}// @ts-ignoreactiveId={imageSwiperActiveIndex.toString()}// @ts-ignorediff --git a/www/components/DarkModeToggle.tsx b/www/components/DarkModeToggle.tsxnew file mode 100644index 00000000000..62cb2bb67bd--- /dev/null+++ b/www/components/DarkModeToggle.tsx@@ -0,0 +1,82 @@+import { useRouter } from 'next/router'++interface Props {+ darkMode: boolean+ updateTheme: Function+}++const SunEmoji = () => (+ <svg width="32" height="32" fill="none">+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M16 2a1.4 1.4 0 011.4 1.4v1.4a1.4 1.4 0 11-2.8 0V3.4A1.4 1.4 0 0116 2zM6.1 6.1a1.4 1.4 0 011.98 0l.99.99a1.4 1.4 0 11-1.98 1.98l-.99-.99a1.4 1.4 0 010-1.98zm19.8 0a1.4 1.4 0 010 1.98l-.99.99a1.4 1.4 0 01-1.98-1.98l.99-.99a1.4 1.4 0 011.98 0zM9 16a7 7 0 1114 0 7 7 0 01-14 0zm-7 0a1.4 1.4 0 011.4-1.4h1.4a1.4 1.4 0 110 2.8H3.4A1.4 1.4 0 012 16zm23.8 0a1.4 1.4 0 011.4-1.4h1.4a1.4 1.4 0 110 2.8h-1.4a1.4 1.4 0 01-1.4-1.4zm-2.87 6.93a1.4 1.4 0 011.98 0l.99.99a1.4 1.4 0 01-1.98 1.98l-.99-.99a1.4 1.4 0 010-1.98zm-15.84 0a1.4 1.4 0 011.98 1.98l-.99.99a1.4 1.4 0 01-1.98-1.98l.99-.99zM16 25.8a1.4 1.4 0 011.4 1.4v1.4a1.4 1.4 0 11-2.8 0v-1.4a1.4 1.4 0 011.4-1.4z"+ fill="url(#paint0_linear)"+ />+ <defs>+ <linearGradient+ id="paint0_linear"+ x1="2"+ y1="2"+ x2="30"+ y2="30"+ gradientUnits="userSpaceOnUse"+ >+ <stop className="transition-all duration-200" stopColor="#bbbbbb" />+ <stop className="transition-all duration-200" offset="1" stopColor="#bbbbbb" />+ </linearGradient>+ </defs>+ </svg>+)++const MoonEmoji = () => (+ <svg+ width="24"+ height="24"+ fill="currentColor"+ className="transition-colors duration-200 text-gray-300"+ >+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M9.353 2.939a1 1 0 01.22 1.08 8 8 0 0010.408 10.408 1 1 0 011.301 1.3A10.003 10.003 0 0112 22C6.477 22 2 17.523 2 12c0-4.207 2.598-7.805 6.273-9.282a1 1 0 011.08.22z"+ />+ </svg>+)++function DarkModeToggle(props: Props) {+ const { darkMode, updateTheme } = props++ const toggleDarkMode = () => {+ localStorage.setItem('supabaseDarkMode', (!darkMode).toString())+ updateTheme(!darkMode)+ }++ return (+ <div className="flex items-center">+ <SunEmoji />+ <button+ type="button"+ aria-pressed="false"+ className={`+ relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer+ transition-colors ease-in-out duration-200 focus:outline-none ${+ darkMode ? 'bg-dark-500' : 'bg-gray-200'+ } mx-5+ `}+ onClick={() => toggleDarkMode()}+ >+ <span className="sr-only">Toggle Themes</span>+ <span+ aria-hidden="true"+ className={`+ ${darkMode ? 'translate-x-5' : 'translate-x-0'} inline-block h-5 w-5 rounded-full+ bg-white dark:bg-dark-700 shadow-lg transform ring-0 transition ease-in-out duration-200+ `}+ />+ </button>+ <MoonEmoji />+ </div>+ )+}+export default DarkModeTogglediff --git a/www/components/Footer/index.tsx b/www/components/Footer/index.tsxindex 9e7d5cfd853..fc6b8c19594 100644--- a/www/components/Footer/index.tsx+++ b/www/components/Footer/index.tsx@@ -2,6 +2,8 @@ import { useState, useEffect } from 'react'import FooterLinks from 'data/Footer.json'import { useRouter } from 'next/router'import SectionContainer from '../Layouts/SectionContainer'+import DarkModeToggle from '../DarkModeToggle'+import SupabaseStatus from './SupabaseStatus'type Props = {darkMode: boolean@@ -12,50 +14,6 @@ const Footer = (props: Props) => {const { basePath } = useRouter()const { darkMode, updateTheme } = props- const toggleDarkMode = () => {- localStorage.setItem('supabaseDarkMode', (!darkMode).toString())- updateTheme(!darkMode)- }-- const SunEmoji = () => (- <svg width="32" height="32" fill="none">- <path- fillRule="evenodd"- clipRule="evenodd"- d="M16 2a1.4 1.4 0 011.4 1.4v1.4a1.4 1.4 0 11-2.8 0V3.4A1.4 1.4 0 0116 2zM6.1 6.1a1.4 1.4 0 011.98 0l.99.99a1.4 1.4 0 11-1.98 1.98l-.99-.99a1.4 1.4 0 010-1.98zm19.8 0a1.4 1.4 0 010 1.98l-.99.99a1.4 1.4 0 01-1.98-1.98l.99-.99a1.4 1.4 0 011.98 0zM9 16a7 7 0 1114 0 7 7 0 01-14 0zm-7 0a1.4 1.4 0 011.4-1.4h1.4a1.4 1.4 0 110 2.8H3.4A1.4 1.4 0 012 16zm23.8 0a1.4 1.4 0 011.4-1.4h1.4a1.4 1.4 0 110 2.8h-1.4a1.4 1.4 0 01-1.4-1.4zm-2.87 6.93a1.4 1.4 0 011.98 0l.99.99a1.4 1.4 0 01-1.98 1.98l-.99-.99a1.4 1.4 0 010-1.98zm-15.84 0a1.4 1.4 0 011.98 1.98l-.99.99a1.4 1.4 0 01-1.98-1.98l.99-.99zM16 25.8a1.4 1.4 0 011.4 1.4v1.4a1.4 1.4 0 11-2.8 0v-1.4a1.4 1.4 0 011.4-1.4z"- fill="url(#paint0_linear)"- />- <defs>- <linearGradient- id="paint0_linear"- x1="2"- y1="2"- x2="30"- y2="30"- gradientUnits="userSpaceOnUse"- >- <stop className="transition-all duration-200" stopColor="#bbbbbb" />- <stop className="transition-all duration-200" offset="1" stopColor="#bbbbbb" />- </linearGradient>- </defs>- </svg>- )-- const MoonEmoji = () => (- <svg- width="24"- height="24"- fill="currentColor"- className="transition-colors duration-200 text-gray-300"- >- <path- fillRule="evenodd"- clipRule="evenodd"- d="M9.353 2.939a1 1 0 01.22 1.08 8 8 0 0010.408 10.408 1 1 0 011.301 1.3A10.003 10.003 0 0112 22C6.477 22 2 17.523 2 12c0-4.207 2.598-7.805 6.273-9.282a1 1 0 011.08.22z"- />- </svg>- )-return (<footerclassName="bg-white dark:bg-dark-800 border-t border-gray-100 dark:border-gray-600"@@ -64,7 +22,6 @@ const Footer = (props: Props) => {<h2 id="footerHeading" className="sr-only">Footer</h2>- {/* <div className="container mx-auto px-8 sm:px-16 xl:px-20 py-12 lg:pt-16 lg:pb-32"> */}<SectionContainer><div className="xl:grid xl:grid-cols-3 xl:gap-8"><div className="space-y-8 xl:col-span-1">@@ -133,30 +90,7 @@ const Footer = (props: Props) => {</div><div className="mt-32 border-t border-gray-100 dark:border-dark-600 pt-8 flex justify-between"><p className="text-base text-gray-400 dark:text-dark-400">© Supabase Inc</p>- <div className="flex items-center">- <SunEmoji />- <button- type="button"- aria-pressed="false"- className={`- relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer- transition-colors ease-in-out duration-200 focus:outline-none ${- darkMode ? 'bg-dark-500' : 'bg-gray-200'- } mx-5- `}- onClick={() => toggleDarkMode()}- >- <span className="sr-only">Toggle Themes</span>- <span- aria-hidden="true"- className={`- ${darkMode ? 'translate-x-5' : 'translate-x-0'} inline-block h-5 w-5 rounded-full- bg-white dark:bg-dark-700 shadow-lg transform ring-0 transition ease-in-out duration-200- `}- />- </button>- <MoonEmoji />- </div>+ <DarkModeToggle darkMode={darkMode} updateTheme={updateTheme} /></div></SectionContainer></footer>diff --git a/www/components/Layouts/Default.tsx b/www/components/Layouts/Default.tsxindex 5c673f5644e..65e8705f3e9 100644--- a/www/components/Layouts/Default.tsx+++ b/www/components/Layouts/Default.tsx@@ -27,7 +27,7 @@ const DefaultLayout = (props: Props) => {return (<>- {!hideHeader && <Nav darkMode={darkMode} />}+ {!hideHeader && <Nav darkMode={darkMode} updateTheme={updateTheme} />}<div className="min-h-screen bg-white dark:bg-gray-800"><main>{children}</main></div>diff --git a/www/components/Nav/index.tsx b/www/components/Nav/index.tsxindex 34c04646e9c..c91fcc61a7a 100644--- a/www/components/Nav/index.tsx+++ b/www/components/Nav/index.tsx@@ -9,8 +9,6 @@ import SolutionsData from 'data/Solutions.json'import Solutions from '~/components/Nav/Product'import Developers from './Developers'-import Company from './Company'-import SectionContainer from '../Layouts/SectionContainer'import { Button } from '@supabase/ui'type Props = {@@ -24,7 +22,6 @@ const Nav = (props: Props) => {const [openProduct, setOpenProduct] = useState(false)const [openDevelopers, setOpenDevelopers] = useState(false)- const [openCompany, setOpenCompany] = useState(false)React.useEffect(() => {if (open) {@@ -43,7 +40,6 @@ const Nav = (props: Props) => {function handleCancel() {setOpenProduct(false)setOpenDevelopers(false)- setOpenCompany(false)}const iconSections = Object.values(SolutionsData).map((solution: any, idx: number) => {@@ -213,21 +209,12 @@ const Nav = (props: Props) => {onClick={() => handleToggle(() => setOpenDevelopers(!openDevelopers))}active={openDevelopers}/>- {/* <FlyOutNavButton- title={'Company'}- onClick={() => handleToggle(() => setOpenCompany(!openCompany))}- active={openCompany}- /> */}-<FlyOut open={openProduct} handleCancel={handleCancel}><Solutions /></FlyOut><FlyOut open={openDevelopers} handleCancel={handleCancel}><Developers /></FlyOut>- {/* <FlyOut open={openCompany} handleCancel={handleCancel}>- <Company />- </FlyOut> */}<ahref="/beta"className={`diff --git a/www/package-lock.json b/www/package-lock.jsonindex 7ea4d6ddf93..e4d0bcbb5cc 100644--- a/www/package-lock.json+++ b/www/package-lock.json@@ -1683,19 +1683,18 @@"resolved": "https://registry.npmjs.org/@opentelemetry/context-base/-/context-base-0.14.0.tgz","integrity": "sha512-sDOAZcYwynHFTbLo6n8kIbLiVF3a3BLkrmehJUyEbT9F+Smbi47kLGS2gG2g0fjBLR/Lr1InPD7kXL7FaTqEkw=="},-<<<<<<< HEAD"@supabase/gotrue-js": {- "version": "1.12.0",- "resolved": "https://registry.npmjs.org/@supabase/gotrue-js/-/gotrue-js-1.12.0.tgz",- "integrity": "sha512-SrOCFmE9s3haX7DwClS3Z9a4M8NfnO06UrnYxlID95r+jyqZYsEcckSUyIUJQRHdeF4UPELrzpVqxOeHiUgkCg==",+ "version": "1.12.2",+ "resolved": "https://registry.npmjs.org/@supabase/gotrue-js/-/gotrue-js-1.12.2.tgz",+ "integrity": "sha512-5kRvMiTqt8wTYyqYmlWfBICSEqYrqnvukwRbXaNQ2GJuSm3Z5CNkLRa9gd1KrLOvo6varTi6M/b8ckcFBe4qxQ==","requires": {"cross-fetch": "^3.0.6"}},"@supabase/postgrest-js": {- "version": "0.26.1",- "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-0.26.1.tgz",- "integrity": "sha512-fD7K6S2bl8JkYqeeZ0hWBWaCz61ktqz2MA4jiugT9FiKITaMgnjekHUwA29KbPsiRRft0HW/bNDRPxrGy+3UNw==",+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-0.28.0.tgz",+ "integrity": "sha512-h7em0UwOy6HK+33kzTOWbOzfB9uXe7DtxNv2JLDcgj9vRN1fSIUSYKrbuwmM93zz3r6ZMpkALXND8S/4fgoXBA==","requires": {"cross-fetch": "^3.0.6"}@@ -1711,25 +1710,20 @@}},"@supabase/supabase-js": {- "version": "1.6.0",- "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-1.6.0.tgz",- "integrity": "sha512-YQKo9AUCfVZtwX2izTb/fnHA7TigJ3gBaroQs1ntSDbu6/v9QVzCWQHh912qe8BbJAx7Bu36OZCeyYml8OlM8w==",+ "version": "1.7.1",+ "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-1.7.1.tgz",+ "integrity": "sha512-DrESDvenjl57m6tqPal1RQ+nKKiR9i1x2lT0ZWl/GKlqnk9bY4JH/rs6GKZ7NGySfk0ccjIQQ/Ih6MO9ASH35A==","requires": {- "@supabase/gotrue-js": "^1.12.0",- "@supabase/postgrest-js": "^0.26.1",- "@supabase/realtime-js": "^1.0.6"+ "@supabase/gotrue-js": "^1.12.2",+ "@supabase/postgrest-js": "^0.28.0",+ "@supabase/realtime-js": "^1.0.6",+ "cross-fetch": "^3.1.0"}},"@supabase/ui": {"version": "0.21.4","resolved": "https://registry.npmjs.org/@supabase/ui/-/ui-0.21.4.tgz","integrity": "sha512-NbsPBWiTCWHjzJpQKNOrt+hR0t4bOiw3b9Gb0mCt6UJ0YuOV7kemEo29Ufz3PVkw54AdJz87KxLQ6V6+rUpdZg==",-=======- "@supabase/ui": {- "version": "0.13.6",- "resolved": "https://registry.npmjs.org/@supabase/ui/-/ui-0.13.6.tgz",- "integrity": "sha512-9RtTrqOk1ybY+rSZheFd1Bk3z6g1YDV3A7lZBUUoTLq5trQ0YFVvyAqNPOrpPBggt2PhdSSgDMz12a9SFQ4OqQ==",->>>>>>> chore/supabase-ui-update"requires": {"lodash": "^4.17.20","prop-types": "^15.7.2",@@ -2602,9 +2596,9 @@}},"cross-fetch": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.0.tgz",- "integrity": "sha512-a+yso9lSpXQI9DH+YjAu/m0dVfP8IVoZDPBLLFcvGpeq3KHNdikkekTOdkHiXEuTq4GBOeO0MfWkE40yzF1w7g==",+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.2.tgz",+ "integrity": "sha512-+JhD65rDNqLbGmB3Gzs3HrEKC0aQnD+XA3SY6RjgkF88jV2q5cTc5+CwxlS3sdmLk98gpPt5CF9XRnPdlxZe6w==","requires": {"node-fetch": "2.6.1"}@@ -6803,6 +6797,11 @@"ssr-window": "^3.0.0"}},+ "swr": {+ "version": "0.5.4",+ "resolved": "https://registry.npmjs.org/swr/-/swr-0.5.4.tgz",+ "integrity": "sha512-TUSxxuC8uP/4JKV22ml91WQ0tbif+9HVhm683xm8KYfwZIW5ogwcnU634dg3x6N7azpIDIOLokoIi+z5vCz/yA=="+ },"tailwindcss": {"version": "2.0.1","resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-2.0.1.tgz",diff --git a/www/package.json b/www/package.jsonindex bb18500d127..baa76a6a357 100644--- a/www/package.json+++ b/www/package.json@@ -36,6 +36,7 @@"remark-gfm": "^1.0.0","remark-html": "10.0.0","swiper": "^6.5.0",+ "swr": "^0.5.4","typescript": "^4.0.3","uuid": "^8.3.2"},diff --git a/www/pages/auth/Auth.tsx b/www/pages/auth/Auth.tsxindex af0195e1021..ba0fce69442 100644--- a/www/pages/auth/Auth.tsx+++ b/www/pages/auth/Auth.tsx@@ -121,11 +121,10 @@ function AuthPage() {<Typography.Title level={4}>Fully integrated</Typography.Title><Typography.Text><p className="text-lg">- Auth built into your project, no external services (liek auth0)ZERO setup.+ Auth built into your project, with no need for external authentication services.</p><p>- Send authentication emails from your own custom domain.Set up once and all email- templates will come from your desired email address.+ Use your own custom domains with SMTP settings.</p></Typography.Text></div>@@ -136,10 +135,9 @@ function AuthPage() {<Typography.Title level={4}>Own your data</Typography.Title><Typography.Text><p className="text-lg">- Use media in your project without needing to reply on external services or learn new- frameworks.+ Keep all your user data in your supabase project so you never have to worry about 3rd party privacy issues.</p>- <p>Supabase is GDPR / CPA Compliant</p>+ <p>Supabase is GDPR / CPA Compliant.</p></Typography.Text></div></div>diff --git a/www/pages/database/Database.tsx b/www/pages/database/Database.tsxindex 13960d0abf0..3ac2e0ec0fe 100644--- a/www/pages/database/Database.tsx+++ b/www/pages/database/Database.tsx@@ -79,7 +79,7 @@ function Database() {/>,<imgclassName="w-full header--dark mr-0 dark:block"- src={`${basePath}/images/product/database/header--light.png`}+ src={`${basePath}/images/product/database/header--dark.png`}/>,]}/>diff --git a/www/public/images/product/database/header--dark.png b/www/public/images/product/database/header--dark.pngnew file mode 100644index 00000000000..a860ede1b50Binary files /dev/null and b/www/public/images/product/database/header--dark.png differ