From f2a9aec58ab4acb90365dd9cc20bc2adb51764fb Mon Sep 17 00:00:00 2001 From: Terry Sutton Date: Wed, 25 Jan 2023 17:16:56 -0330 Subject: [PATCH 01/43] Add Postgres Resources section to menu --- .../NavigationMenu.constants.ts | 32 +++++++++++++++++++ .../NavigationMenuGuideList.tsx | 13 ++++++-- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts index c55fd5fc084..39ae9d278cd 100644 --- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts +++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts @@ -610,6 +610,38 @@ export const resources = { }, ], }, + { + name: 'Postgres resources', + url: undefined, + items: [ + { name: 'Basics', url: '/guides/resources/postgres' }, + { name: 'Managing Postgres Databases', url: '/' }, + { name: 'RLS Policies', url: '/' }, + { name: '...', url: '/' }, + { + name: 'Child 1', + url: '/guides/resources/postgres/child1', + items: [ + { + name: 'grandchild1', + url: '/guides/resources/postgres/child1/grandchild1', + items: [], + }, + ], + }, + { + name: 'Child 2', + url: '/guides/resources/postgres/child2', + items: [ + { + name: 'grandchild2', + url: '/guides/resources/postgres/child2/grandchild2', + items: [], + }, + ], + }, + ], + }, ], } diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx index b0a5a9c78e1..7e52d424832 100644 --- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx +++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideList.tsx @@ -12,8 +12,17 @@ const NavigationMenuGuideList: React.FC = ({ id, active }) => { // get url const url = router.asPath - // remove the end of the url if a deep link - const firstLevelRoute = url?.split('/')?.slice(0, 4)?.join('/') + + // We need to decide how deep we want the menu to be for matching urls + // if the links are really deep, we don't want to match all the way out + // But we need to reach out further to make the structure of /resources/postgres/ work + // look at /resources/postgres/ vs /auth/phone-login for how these are different + let firstLevelRoute + if (url.includes('resources/postgres/')) { + firstLevelRoute = url?.split('/')?.slice(0, 5)?.join('/') + } else { + firstLevelRoute = url?.split('/')?.slice(0, 4)?.join('/') + } return ( Date: Thu, 26 Jan 2023 08:35:26 -0330 Subject: [PATCH 02/43] Add docs --- apps/docs/pages/guides/resources/postgres.mdx | 14 ++++++++++++++ .../resources/postgres/child1/grandchild1.mdx | 13 +++++++++++++ .../guides/resources/postgres/child1/index.mdx | 13 +++++++++++++ .../resources/postgres/child2/grandchild2.mdx | 14 ++++++++++++++ .../guides/resources/postgres/child2/index.mdx | 13 +++++++++++++ .../docs/pages/guides/resources/postgres/index.mdx | 13 +++++++++++++ 6 files changed, 80 insertions(+) create mode 100644 apps/docs/pages/guides/resources/postgres.mdx create mode 100644 apps/docs/pages/guides/resources/postgres/child1/grandchild1.mdx create mode 100644 apps/docs/pages/guides/resources/postgres/child1/index.mdx create mode 100644 apps/docs/pages/guides/resources/postgres/child2/grandchild2.mdx create mode 100644 apps/docs/pages/guides/resources/postgres/child2/index.mdx create mode 100644 apps/docs/pages/guides/resources/postgres/index.mdx diff --git a/apps/docs/pages/guides/resources/postgres.mdx b/apps/docs/pages/guides/resources/postgres.mdx new file mode 100644 index 00000000000..69ee3ebfce1 --- /dev/null +++ b/apps/docs/pages/guides/resources/postgres.mdx @@ -0,0 +1,14 @@ +import Layout from '~/layouts/DefaultGuideLayout' + +export const meta = { + id: 'postgres-resources', + title: 'Postgres Resources', + description: + 'Resources to help you get up to speed with Postgres, the database powering Supabase.', +} + +postgres index page + +export const Page = ({ children }) => + +export default Page diff --git a/apps/docs/pages/guides/resources/postgres/child1/grandchild1.mdx b/apps/docs/pages/guides/resources/postgres/child1/grandchild1.mdx new file mode 100644 index 00000000000..9519bc91d0b --- /dev/null +++ b/apps/docs/pages/guides/resources/postgres/child1/grandchild1.mdx @@ -0,0 +1,13 @@ +import Layout from '~/layouts/DefaultGuideLayout' + +export const meta = { + id: 'creating-a-table', + title: 'Creating a table', + description: 'creating a table.........', +} + +creating a table......... + +export const Page = ({ children }) => + +export default Page diff --git a/apps/docs/pages/guides/resources/postgres/child1/index.mdx b/apps/docs/pages/guides/resources/postgres/child1/index.mdx new file mode 100644 index 00000000000..ed2bc75854a --- /dev/null +++ b/apps/docs/pages/guides/resources/postgres/child1/index.mdx @@ -0,0 +1,13 @@ +import Layout from '~/layouts/DefaultGuideLayout' + +export const meta = { + title: 'Postgres Basics', + description: + 'Resources to help you get up to speed with Postgres, the database powering Supabase.', +} + +postgres basics index.mdx + +export const Page = ({ children }) => + +export default Page diff --git a/apps/docs/pages/guides/resources/postgres/child2/grandchild2.mdx b/apps/docs/pages/guides/resources/postgres/child2/grandchild2.mdx new file mode 100644 index 00000000000..2ad98ad3ada --- /dev/null +++ b/apps/docs/pages/guides/resources/postgres/child2/grandchild2.mdx @@ -0,0 +1,14 @@ +import Layout from '~/layouts/DefaultGuideLayout' + +export const meta = { + id: 'updating-a-table', + title: 'Updating a table', + description: + 'Resources to help you get up to speed with Postgres, the database powering Supabase.', +} + +updating a table......... + +export const Page = ({ children }) => + +export default Page diff --git a/apps/docs/pages/guides/resources/postgres/child2/index.mdx b/apps/docs/pages/guides/resources/postgres/child2/index.mdx new file mode 100644 index 00000000000..efb0f833d84 --- /dev/null +++ b/apps/docs/pages/guides/resources/postgres/child2/index.mdx @@ -0,0 +1,13 @@ +import Layout from '~/layouts/DefaultGuideLayout' + +export const meta = { + title: 'Managing a table', + description: + 'Resources to help you get up to speed with Postgres, the database powering Supabase.', +} + +managing a table + +export const Page = ({ children }) => + +export default Page diff --git a/apps/docs/pages/guides/resources/postgres/index.mdx b/apps/docs/pages/guides/resources/postgres/index.mdx new file mode 100644 index 00000000000..432c46533f2 --- /dev/null +++ b/apps/docs/pages/guides/resources/postgres/index.mdx @@ -0,0 +1,13 @@ +import Layout from '~/layouts/DefaultGuideLayout' + +export const meta = { + title: 'Postgres resources', + description: + 'Resources to help you get up to speed with Postgres, the database powering Supabase.', +} + +Postgres resources + +export const Page = ({ children }) => + +export default Page From 02bed732d11b6e78335832c53c849b8b872d06a8 Mon Sep 17 00:00:00 2001 From: Terry Sutton Date: Thu, 26 Jan 2023 08:43:23 -0330 Subject: [PATCH 03/43] Re-remove cli section --- .../NavigationMenu.constants.ts | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts index 650061cdc8d..ab1a5a3cbce 100644 --- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts +++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts @@ -611,26 +611,6 @@ export const resources = { }, ], }, - { - name: 'Supabase CLI', - items: [ - { - name: 'Overview', - url: '/guides/resources/supabase-cli', - items: [], - }, - { - name: 'Local Development', - url: '/guides/resources/supabase-cli/local-development', - items: [], - }, - { - name: 'Managing Environments', - url: '/guides/resources/supabase-cli/managing-environments', - items: [], - }, - ], - }, { name: 'Postgres resources', url: undefined, From b5f04db5cfc2949255dd2f93fbb3ed841d271444 Mon Sep 17 00:00:00 2001 From: Terry Sutton Date: Thu, 26 Jan 2023 08:52:38 -0330 Subject: [PATCH 04/43] Update titles --- .../pages/guides/resources/postgres/child1/grandchild1.mdx | 5 ++--- apps/docs/pages/guides/resources/postgres/child1/index.mdx | 4 ++-- .../pages/guides/resources/postgres/child2/grandchild2.mdx | 5 ++--- apps/docs/pages/guides/resources/postgres/child2/index.mdx | 4 ++-- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/apps/docs/pages/guides/resources/postgres/child1/grandchild1.mdx b/apps/docs/pages/guides/resources/postgres/child1/grandchild1.mdx index 9519bc91d0b..fa81fc8c23a 100644 --- a/apps/docs/pages/guides/resources/postgres/child1/grandchild1.mdx +++ b/apps/docs/pages/guides/resources/postgres/child1/grandchild1.mdx @@ -1,12 +1,11 @@ import Layout from '~/layouts/DefaultGuideLayout' export const meta = { - id: 'creating-a-table', - title: 'Creating a table', + title: 'Grandchild1', description: 'creating a table.........', } -creating a table......... +Grandchild 1.... export const Page = ({ children }) => diff --git a/apps/docs/pages/guides/resources/postgres/child1/index.mdx b/apps/docs/pages/guides/resources/postgres/child1/index.mdx index ed2bc75854a..291eebbfd91 100644 --- a/apps/docs/pages/guides/resources/postgres/child1/index.mdx +++ b/apps/docs/pages/guides/resources/postgres/child1/index.mdx @@ -1,12 +1,12 @@ import Layout from '~/layouts/DefaultGuideLayout' export const meta = { - title: 'Postgres Basics', + title: 'Child 1', description: 'Resources to help you get up to speed with Postgres, the database powering Supabase.', } -postgres basics index.mdx +Child 1 export const Page = ({ children }) => diff --git a/apps/docs/pages/guides/resources/postgres/child2/grandchild2.mdx b/apps/docs/pages/guides/resources/postgres/child2/grandchild2.mdx index 2ad98ad3ada..8234c354286 100644 --- a/apps/docs/pages/guides/resources/postgres/child2/grandchild2.mdx +++ b/apps/docs/pages/guides/resources/postgres/child2/grandchild2.mdx @@ -1,13 +1,12 @@ import Layout from '~/layouts/DefaultGuideLayout' export const meta = { - id: 'updating-a-table', - title: 'Updating a table', + title: 'Grandchild2', description: 'Resources to help you get up to speed with Postgres, the database powering Supabase.', } -updating a table......... +Grandchild 2 export const Page = ({ children }) => diff --git a/apps/docs/pages/guides/resources/postgres/child2/index.mdx b/apps/docs/pages/guides/resources/postgres/child2/index.mdx index efb0f833d84..cafdace4f7d 100644 --- a/apps/docs/pages/guides/resources/postgres/child2/index.mdx +++ b/apps/docs/pages/guides/resources/postgres/child2/index.mdx @@ -1,12 +1,12 @@ import Layout from '~/layouts/DefaultGuideLayout' export const meta = { - title: 'Managing a table', + title: 'Child2', description: 'Resources to help you get up to speed with Postgres, the database powering Supabase.', } -managing a table +Child2..... export const Page = ({ children }) => From 3078756d312f6436606c5603a684fabcbbd8b776 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20P=C3=A1pai?= Date: Sun, 29 Jan 2023 10:27:13 +0100 Subject: [PATCH 05/43] remove unused import --- .../docs/pages/guides/getting-started/tutorials/with-angular.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx index b76748ad8aa..f2126059188 100644 --- a/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx +++ b/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx @@ -62,7 +62,6 @@ import { User, } from '@supabase/supabase-js' import { environment } from 'src/environments/environment' -import { Database } from 'src/schema' export interface Profile { id?: string From c3fd3271a46844482c6cc0dce4810afffccf81f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20P=C3=A1pai?= Date: Sun, 29 Jan 2023 10:37:25 +0100 Subject: [PATCH 06/43] update AuthComponent onInit --- .../guides/getting-started/tutorials/with-angular.mdx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx index f2126059188..4930812ee08 100644 --- a/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx +++ b/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx @@ -135,7 +135,7 @@ Let's set up an Angular component to manage logins and sign ups. We'll use Magic Create an **AuthComponent** with `ng g c auth` Angular CLI command. ```ts title=src/app/auth/auth.component.ts -import { Component, OnInit } from '@angular/core' +import { Component } from '@angular/core' import { FormBuilder } from '@angular/forms' import { SupabaseService } from '../supabase.service' @@ -144,7 +144,7 @@ import { SupabaseService } from '../supabase.service' templateUrl: './auth.component.html', styleUrls: ['./auth.component.css'], }) -export class AuthComponent implements OnInit { +export class AuthComponent { loading = false signInForm = this.formBuilder.group({ @@ -156,8 +156,6 @@ export class AuthComponent implements OnInit { private readonly formBuilder: FormBuilder ) {} - ngOnInit(): void {} - async onSubmit(): Promise { try { this.loading = true @@ -175,6 +173,7 @@ export class AuthComponent implements OnInit { } } } + ``` ```html title=src/app/auth/auth.component.html From 49b72848f3a124e8bdb354364c0a9e11cd14dce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20P=C3=A1pai?= Date: Sun, 29 Jan 2023 10:38:08 +0100 Subject: [PATCH 07/43] remove new line --- .../docs/pages/guides/getting-started/tutorials/with-angular.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx index 4930812ee08..46a166043ec 100644 --- a/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx +++ b/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx @@ -173,7 +173,6 @@ export class AuthComponent { } } } - ``` ```html title=src/app/auth/auth.component.html From 624913ea0ec19efb34e8fa1c4d6e5849aa429bcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20P=C3=A1pai?= Date: Sun, 29 Jan 2023 10:45:56 +0100 Subject: [PATCH 08/43] remove oninit for avatar --- .../guides/getting-started/tutorials/with-angular.mdx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx index 46a166043ec..d6d1cfec7f8 100644 --- a/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx +++ b/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx @@ -403,16 +403,16 @@ Let's create an avatar for the user so that they can upload a profile photo. Create an **AvatarComponent** with `ng g c avatar` Angular CLI command. ```ts title=src/app/avatar/avatar.component.ts -import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core' -import { SafeResourceUrl, DomSanitizer } from '@angular/platform-browser' +import { Component, EventEmitter, Input, Output } from '@angular/core' +import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser' import { SupabaseService } from '../supabase.service' @Component({ selector: 'app-avatar', templateUrl: './avatar.component.html', - styleUrls: ['./avatar.component.css'], + styleUrls: ['./avatar.component.scss'], }) -export class AvatarComponent implements OnInit { +export class AvatarComponent { _avatarUrl: SafeResourceUrl | undefined uploading = false @@ -427,8 +427,6 @@ export class AvatarComponent implements OnInit { constructor(private readonly supabase: SupabaseService, private readonly dom: DomSanitizer) {} - ngOnInit(): void {} - async downloadImage(path: string) { try { const { data } = await this.supabase.downLoadImage(path) From b2c191e03ed08cde42ef43f014f0c54c6172f9f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20P=C3=A1pai?= Date: Sun, 29 Jan 2023 10:46:35 +0100 Subject: [PATCH 09/43] fix --- .../pages/guides/getting-started/tutorials/with-angular.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx index d6d1cfec7f8..ae2870332c2 100644 --- a/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx +++ b/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx @@ -404,13 +404,13 @@ Create an **AvatarComponent** with `ng g c avatar` Angular CLI command. ```ts title=src/app/avatar/avatar.component.ts import { Component, EventEmitter, Input, Output } from '@angular/core' -import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser' +import { SafeResourceUrl, DomSanitizer } from '@angular/platform-browser' import { SupabaseService } from '../supabase.service' @Component({ selector: 'app-avatar', templateUrl: './avatar.component.html', - styleUrls: ['./avatar.component.scss'], + styleUrls: ['./avatar.component.css'], }) export class AvatarComponent { _avatarUrl: SafeResourceUrl | undefined From f827ebcbb8d4cc663b6bcec8927ffd06b4307a46 Mon Sep 17 00:00:00 2001 From: Alaister Young Date: Wed, 1 Feb 2023 17:50:02 +1100 Subject: [PATCH 10/43] chore: move docs/www videos to supabase storage --- apps/docs/components/MDX/project_setup.mdx | 14 +- apps/docs/pages/guides/api.mdx | 36 ++++- apps/docs/pages/guides/auth/overview.mdx | 21 ++- apps/docs/pages/guides/database.mdx | 26 ++- .../database/connecting-to-postgres.mdx | 21 ++- .../docs/pages/guides/database/extensions.mdx | 7 +- apps/docs/pages/guides/database/overview.mdx | 26 ++- .../pages/guides/database/replication.mdx | 7 +- apps/docs/pages/guides/database/tables.mdx | 7 +- .../tutorials/with-redwoodjs.mdx | 14 +- .../pages/guides/integrations/plasmic.mdx | 6 +- .../2020-08-02-supabase-alpha-july-2020.mdx | 10 +- apps/www/_blog/2020-08-05-supabase-auth.mdx | 24 ++- .../2020-09-03-supabase-alpha-august-2020.mdx | 24 ++- ...20-10-03-supabase-alpha-september-2020.mdx | 21 ++- ...0-12-13-supabase-dashboard-performance.mdx | 7 +- ...2021-01-02-supabase-beta-december-2020.mdx | 21 ++- apps/www/_blog/2021-07-27-storage-beta.mdx | 6 +- .../2022-03-29-graphql-now-available.mdx | 2 +- .../_blog/2022-03-30-supabase-enterprise.mdx | 21 ++- .../2022-03-31-supabase-edge-functions.mdx | 4 +- apps/www/data/home/admin-access.json | 4 +- apps/www/pages/beta.tsx | 149 +++++++++--------- 23 files changed, 349 insertions(+), 129 deletions(-) diff --git a/apps/docs/components/MDX/project_setup.mdx b/apps/docs/components/MDX/project_setup.mdx index 9efe03df58e..233d8584a4b 100644 --- a/apps/docs/components/MDX/project_setup.mdx +++ b/apps/docs/components/MDX/project_setup.mdx @@ -32,7 +32,12 @@ or you can just copy/paste the SQL from below and run it yourself. 3. Click **Run**. @@ -53,5 +58,10 @@ We just need to get the URL and `anon` key from the API settings. 3. Find your API `URL`, `anon`, and `service_role` keys on this page. diff --git a/apps/docs/pages/guides/api.mdx b/apps/docs/pages/guides/api.mdx index c8fe10114a6..6e5535877ce 100644 --- a/apps/docs/pages/guides/api.mdx +++ b/apps/docs/pages/guides/api.mdx @@ -84,7 +84,14 @@ This creates a corresponding route `todos` which can accept `GET`, `POST`, `PATC 1. Click **Save**. @@ -112,7 +119,14 @@ Every Supabase project has a unique API URL. Your API is secured behind an API g 3. Find your API `URL`, `anon`, and `service_role` keys on this page. The REST API and the GraphQL API are both accessible through this URL: @@ -141,7 +155,14 @@ Let's view the documentation for a `countries` table which we created in our dat 3. Switch between the JavaScript and the cURL docs using the tabs. #### GraphQL @@ -286,7 +307,14 @@ By default Realtime is disabled on your database. Let's turn on Realtime for the 4. Control which tables broadcast changes by selecting **Source** and toggling each table. diff --git a/apps/docs/pages/guides/auth/overview.mdx b/apps/docs/pages/guides/auth/overview.mdx index d46b0eb3e9d..3fad7f4e21a 100644 --- a/apps/docs/pages/guides/auth/overview.mdx +++ b/apps/docs/pages/guides/auth/overview.mdx @@ -115,7 +115,12 @@ Get started with our [Row Level Security Guides](/docs/guides/auth/row-level-sec Authentication only gets you so far. When you need granular authorization rules, nothing beats PostgreSQL's [Row Level Security (RLS)](https://www.postgresql.org/docs/current/ddl-rowsecurity.html). Supabase makes it simple to turn RLS on and off. ### Policies @@ -123,7 +128,12 @@ Authentication only gets you so far. When you need granular authorization rules, [Policies](https://www.postgresql.org/docs/current/sql-createpolicy.html) are PostgreSQL's rule engine. They are incredibly powerful and flexible, allowing you to write complex SQL rules which fit your unique business needs. With policies, your database becomes the rules engine. Instead of repetitively filtering your queries, like this ... @@ -171,7 +181,12 @@ Supabase provides multiple endpoints to authenticate and manage your users: When users sign up, Supabase assigns them a unique ID. You can reference this ID anywhere in your database. For example, you might create a `profiles` table referencing `id` in the `auth.users` table using a `user_id` field. export const Page = ({ children }) => diff --git a/apps/docs/pages/guides/database.mdx b/apps/docs/pages/guides/database.mdx index 7efa2ad7513..ba2b7bec2c3 100644 --- a/apps/docs/pages/guides/database.mdx +++ b/apps/docs/pages/guides/database.mdx @@ -34,7 +34,10 @@ You don't have to be a database expert to start using Supabase. Our table view m Dig into the relationships within your data. ### Clone tables @@ -42,7 +45,12 @@ Dig into the relationships within your data. You can duplicate your tables, just like you would inside a spreadsheet. ### The SQL Editor @@ -50,7 +58,12 @@ You can duplicate your tables, just like you would inside a spreadsheet. Supabase comes with a SQL Editor. You can also save your favorite queries to run later! ### Additional features @@ -74,7 +87,12 @@ To expand the functionality of your Postgres database, you can use extensions. You can enable Postgres extensions with the click of a button within the Supabase dashboard. [Learn more](/docs/guides/database/extensions) about all the extensions provided on Supabase. diff --git a/apps/docs/pages/guides/database/connecting-to-postgres.mdx b/apps/docs/pages/guides/database/connecting-to-postgres.mdx index 13bade73e20..2dd50aa5058 100644 --- a/apps/docs/pages/guides/database/connecting-to-postgres.mdx +++ b/apps/docs/pages/guides/database/connecting-to-postgres.mdx @@ -45,7 +45,12 @@ You cannot manage the database schema via the API (for security reasons). To do You can find the API URL and Keys in the [Dashboard](https://app.supabase.com/project/_/settings/api). ## Direct connections @@ -59,7 +64,12 @@ Every Supabase project provides a full Postgres database. You can connect to the 3. Find your Connection Info and Connection String. Direct connections are on port `5432`. ## Connection Pool @@ -104,7 +114,12 @@ This is the most granular option. Connections are returned to the pool after eve 3. Find your Connection Info and Connection String. Connection pooling is on port `6543`. ## Connecting with SSL diff --git a/apps/docs/pages/guides/database/extensions.mdx b/apps/docs/pages/guides/database/extensions.mdx index 6ae1fd74546..14b562fb52a 100644 --- a/apps/docs/pages/guides/database/extensions.mdx +++ b/apps/docs/pages/guides/database/extensions.mdx @@ -24,7 +24,12 @@ Supabase has pre-installed some of the most useful open source extensions. 3. Enable or disable an extension. diff --git a/apps/docs/pages/guides/database/overview.mdx b/apps/docs/pages/guides/database/overview.mdx index 7efa2ad7513..ba2b7bec2c3 100644 --- a/apps/docs/pages/guides/database/overview.mdx +++ b/apps/docs/pages/guides/database/overview.mdx @@ -34,7 +34,10 @@ You don't have to be a database expert to start using Supabase. Our table view m Dig into the relationships within your data. ### Clone tables @@ -42,7 +45,12 @@ Dig into the relationships within your data. You can duplicate your tables, just like you would inside a spreadsheet. ### The SQL Editor @@ -50,7 +58,12 @@ You can duplicate your tables, just like you would inside a spreadsheet. Supabase comes with a SQL Editor. You can also save your favorite queries to run later! ### Additional features @@ -74,7 +87,12 @@ To expand the functionality of your Postgres database, you can use extensions. You can enable Postgres extensions with the click of a button within the Supabase dashboard. [Learn more](/docs/guides/database/extensions) about all the extensions provided on Supabase. diff --git a/apps/docs/pages/guides/database/replication.mdx b/apps/docs/pages/guides/database/replication.mdx index e7c349ca91f..97b05f449f7 100644 --- a/apps/docs/pages/guides/database/replication.mdx +++ b/apps/docs/pages/guides/database/replication.mdx @@ -21,7 +21,12 @@ Replication is done through _publications_, a method of choosing which changes t 4. Control which tables broadcast changes by selecting **Source** and toggling each table. ## Create a publication diff --git a/apps/docs/pages/guides/database/tables.mdx b/apps/docs/pages/guides/database/tables.mdx index 65367022480..d62cf82fb7a 100644 --- a/apps/docs/pages/guides/database/tables.mdx +++ b/apps/docs/pages/guides/database/tables.mdx @@ -41,7 +41,12 @@ and run the SQL queries yourself. 1. Go to the [Table Editor](https://app.supabase.com/project/_/editor) page in the Dashboard. diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-redwoodjs.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-redwoodjs.mdx index 6fd481ea9cc..36f6fcc3d8b 100644 --- a/apps/docs/pages/guides/getting-started/tutorials/with-redwoodjs.mdx +++ b/apps/docs/pages/guides/getting-started/tutorials/with-redwoodjs.mdx @@ -129,7 +129,12 @@ or you can just copy/paste the SQL from below and run it yourself. 3. Click **Run**. @@ -204,7 +209,12 @@ We just need to get the URL as well as the `anon`, `service_role` and `JWT_SECRE 2. Find your API `URL`, `anon`, and `service_role` keys on this page. ## Building the App diff --git a/apps/docs/pages/guides/integrations/plasmic.mdx b/apps/docs/pages/guides/integrations/plasmic.mdx index 2ca62ccabcb..bb08788da46 100644 --- a/apps/docs/pages/guides/integrations/plasmic.mdx +++ b/apps/docs/pages/guides/integrations/plasmic.mdx @@ -106,7 +106,7 @@ To tell Plasmic to look for your code components on your dev server, you’ll ne #### Add, delete, and download rows @@ -49,7 +52,10 @@ Last month we made it easy to drill into your table relationships. This month, w We're making it easier to manipulate your data. Next month, you'll be able to add and remove columns directly from the Table view. ### New Postgres Extensions diff --git a/apps/www/_blog/2020-08-05-supabase-auth.mdx b/apps/www/_blog/2020-08-05-supabase-auth.mdx index 1b908510843..9a70729569f 100644 --- a/apps/www/_blog/2020-08-05-supabase-auth.mdx +++ b/apps/www/_blog/2020-08-05-supabase-auth.mdx @@ -37,7 +37,13 @@ Supabase Auth provides all the backend services you need to authenticate and aut Supabase makes it simple to onboard your users with our new `supabase.auth.signUp()` and `supabase.auth.signIn()` [functions](/docs/guides/auth). ### Row Level Security @@ -45,7 +51,13 @@ Supabase makes it simple to onboard your users with our new `supabase.auth.signU Authentication only gets you so far. When you need granular authorization rules, nothing beats PostgreSQL's [Row Level Security](https://www.postgresql.org/docs/current/ddl-rowsecurity.html). Supabase makes it simple to turn RLS on and off. ### Policies @@ -53,7 +65,13 @@ Authentication only gets you so far. When you need granular authorization rules, [Policies](https://www.postgresql.org/docs/current/sql-createpolicy.html) are PostgreSQL's rule engine. They are incredibly powerful and flexible, allowing you to write complex SQL rules which fit your unique business needs. With policies, your database becomes the rules engine. Instead of repetitively filtering your queries, like this ... diff --git a/apps/www/_blog/2020-09-03-supabase-alpha-august-2020.mdx b/apps/www/_blog/2020-09-03-supabase-alpha-august-2020.mdx index ce57ec62933..675ff57ab42 100644 --- a/apps/www/_blog/2020-09-03-supabase-alpha-august-2020.mdx +++ b/apps/www/_blog/2020-09-03-supabase-alpha-august-2020.mdx @@ -31,7 +31,13 @@ Watch a full demo: Set up tables and columns directly from the table view. ### Invite your team @@ -39,7 +45,13 @@ Set up tables and columns directly from the table view. You can now invite team members to your organisation. ### Auth: Email Confirmations @@ -47,7 +59,13 @@ You can now invite team members to your organisation. You can now enable Email Confirmations for new users. This can be toggled on or off and the template for this email can be edited via the dashboard. ### TypeScript support diff --git a/apps/www/_blog/2020-10-03-supabase-alpha-september-2020.mdx b/apps/www/_blog/2020-10-03-supabase-alpha-september-2020.mdx index 4a803ba8360..8c8a114047c 100644 --- a/apps/www/_blog/2020-10-03-supabase-alpha-september-2020.mdx +++ b/apps/www/_blog/2020-10-03-supabase-alpha-september-2020.mdx @@ -38,7 +38,12 @@ We've released OAuth logins! You can now enable third-party logins on your app f You can duplicate your tables, just like you would inside a spreadsheet. ### Enable and disable extensions @@ -46,7 +51,12 @@ You can duplicate your tables, just like you would inside a spreadsheet. Extensions are easier to use. You can enable Postgres extensions with the click of a button. ### Save your favorite queries @@ -54,7 +64,12 @@ Extensions are easier to use. You can enable Postgres extensions with the click The SQL editor now stores your query history in your browser. You can also save your favorite queries to run later! ### GitHub Discussions diff --git a/apps/www/_blog/2020-12-13-supabase-dashboard-performance.mdx b/apps/www/_blog/2020-12-13-supabase-dashboard-performance.mdx index af301f4309a..6e347e6e264 100644 --- a/apps/www/_blog/2020-12-13-supabase-dashboard-performance.mdx +++ b/apps/www/_blog/2020-12-13-supabase-dashboard-performance.mdx @@ -74,7 +74,12 @@ Thanks to some skilled haxors (well, weak passwords mainly) we had crypto miners The spreadsheet import is triggered when the user is creating a new table. However the code was previously loaded every time the page was visited - even when a new table was not being created. This made it a good candidate for lazy loading. Using [Next.js dynamic imports](https://nextjs.org/docs/advanced-features/dynamic-import) we are able to load this component (313 kb brotlied) dynamically, whenever the user clicks the "Add content" button. We use the same technique to lazy load some Lottie animations which are relatively large. diff --git a/apps/www/_blog/2021-01-02-supabase-beta-december-2020.mdx b/apps/www/_blog/2021-01-02-supabase-beta-december-2020.mdx index 507b63ff479..0c54eb6dc63 100644 --- a/apps/www/_blog/2021-01-02-supabase-beta-december-2020.mdx +++ b/apps/www/_blog/2021-01-02-supabase-beta-december-2020.mdx @@ -40,7 +40,12 @@ We spent months working on Performance, Security, and Reliability. Read more on Add comments and descriptions to your Tables directly from our auto-generated docs. Descriptions are stored as PostgreSQL comments (https://postgresql.org/docs/current/sql-comment.html), and are exposed over your OpenAPI spec. ### Table View now has realtime changes @@ -48,7 +53,12 @@ Add comments and descriptions to your Tables directly from our auto-generated do Any updates that happen to your database are reflected in the Table View immediately. ### Table Pagination @@ -56,7 +66,12 @@ Any updates that happen to your database are reflected in the Table View immedia Our table view now has pagination - better for working with large data sets. ### Supabase raised a Seed Round diff --git a/apps/www/_blog/2021-07-27-storage-beta.mdx b/apps/www/_blog/2021-07-27-storage-beta.mdx index f416eb38feb..f77502e0fef 100644 --- a/apps/www/_blog/2021-07-27-storage-beta.mdx +++ b/apps/www/_blog/2021-07-27-storage-beta.mdx @@ -21,7 +21,7 @@ Clients can use the `Content-Range` HTTP header to request specific parts of a f To simplify pricing, we've merged the “Pro” and “Pay as you go” tiers and introduced monthly spend caps to avoid nasty billing surprises. @@ -136,7 +141,12 @@ We're also retaining our soft limits while we manage the transition to granular ### Database Add-ons Today we're releasing self-serve Database Add-ons. @@ -149,7 +159,12 @@ Today, Database Add-ons are available for a small set of customers. We will prog ### New Log Explorer Today we're releasing a brand new [Log Explorer](/docs/guides/platform/logs) in the Supabase Dashboard. diff --git a/apps/www/_blog/2022-03-31-supabase-edge-functions.mdx b/apps/www/_blog/2022-03-31-supabase-edge-functions.mdx index fe17cc6ef21..a5786d651a6 100644 --- a/apps/www/_blog/2022-03-31-supabase-edge-functions.mdx +++ b/apps/www/_blog/2022-03-31-supabase-edge-functions.mdx @@ -80,7 +80,7 @@ We've [extended the Supabase CLI](https://supabase.com/docs/guides/local-develop Our observability pipeline has been built [using Logflare](https://supabase.com/blog/supabase-acquires-logflare). Structured logs from your Edge Functions get sent to Logflare, which also processes them into metrics. Your Supabase Dashboard is able to reach out to Logflare endpoints, and with some of the [(not so) secret sauce](https://supabase.com/blog/supabase-studio) from our front-end team, you get responsive charts and logs for your Edge Functions. diff --git a/apps/www/data/home/admin-access.json b/apps/www/data/home/admin-access.json index 9ca4d408f4e..ff4f1a6cc7b 100644 --- a/apps/www/data/home/admin-access.json +++ b/apps/www/data/home/admin-access.json @@ -11,7 +11,7 @@ "label": "SQL Editor", "title": "In-built SQL editor for when you need greater control", "text": "Write, save, and execute SQL queries directly on our dashboard, with templates to save you time. Run common queries and even build applications using our growing list of templates.", - "video_url": "videos/tabSqlEditor.mp4", + "video_url": "https://obuldanrptloktxcffvn.supabase.co/storage/v1/object/public/videos/marketing/tabSqlEditor.mp4", "youtube_id": "Hch1mZPZ53A", "cta": "Explore SQL Editor", "url": "/database" @@ -20,7 +20,7 @@ "label": "Auth rules", "title": "User management as straight-forward as it can be", "text": "Easily manage your users with Supabase Auth, with email logins, magic links, and third-party logins. Create complex access policies with SQL rules to fit your unique business needs.", - "video_url": "videos/tabAuthRules.mp4", + "video_url": "https://obuldanrptloktxcffvn.supabase.co/storage/v1/object/public/videos/marketing/tabAuthRules.mp4", "youtube_id": "vP319FCIZ6Y", "cta": "Explore Auth", "url": "/auth" diff --git a/apps/www/pages/beta.tsx b/apps/www/pages/beta.tsx index e4bb383d555..1338c3935f0 100644 --- a/apps/www/pages/beta.tsx +++ b/apps/www/pages/beta.tsx @@ -28,7 +28,7 @@ const NavFlyOutMenu = (props: any) => { return ( <> -
+
{segments.flat().map((segment: any) => (
{ bg-white px-4 py-4 sm:border-l lg:col-span-4 lg:px-6 lg:py-10`} >

- + 0{segment.no} {segment.name} @@ -53,12 +53,12 @@ const NavFlyOutMenu = (props: any) => { const VideoShot = (props: any) => { const { src } = props return ( -

+
-
-
-
-
+
+
+
+