From c13db73a603ba17bbe03178f9147c5159624d183 Mon Sep 17 00:00:00 2001 From: Roj Date: Tue, 5 Apr 2022 13:47:18 +0300 Subject: [PATCH 1/2] chore: correct "JavaScript" cases --- about/docs/careers/developer-success.mdx | 2 +- about/docs/careers/front-end-developers.mdx | 2 +- .../nuxtjs-user-management/plugins/README.md | 2 +- .../interfaces/Home/Home.constants.ts | 2 +- .../StoragePolicies/StoragePoliciesEditor.js | 2 +- web/docs/about.mdx | 2 +- web/docs/guides/api.mdx | 8 ++++---- web/docs/guides/auth/auth-email.mdx | 4 ++-- web/docs/guides/auth/auth-magic-link.mdx | 4 ++-- web/docs/guides/auth/auth-messagebird.mdx | 10 +++++----- web/docs/guides/auth/auth-twilio.mdx | 10 +++++----- web/docs/guides/auth/auth-vonage.mdx | 10 +++++----- web/docs/guides/database/arrays.mdx | 6 +++--- web/docs/guides/database/extensions/plv8.mdx | 12 ++++++------ web/docs/guides/database/full-text-search.mdx | 18 +++++++++--------- web/docs/guides/database/sql-to-api.mdx | 10 +++++----- web/docs/guides/examples.mdx | 2 +- web/sidebars.js | 2 +- 18 files changed, 54 insertions(+), 54 deletions(-) diff --git a/about/docs/careers/developer-success.mdx b/about/docs/careers/developer-success.mdx index 25a81df2d7c..e7be5de18a2 100644 --- a/about/docs/careers/developer-success.mdx +++ b/about/docs/careers/developer-success.mdx @@ -34,7 +34,7 @@ Supabase is hiring Developer Success Engineers. Help us build the easiest databa ## Bonus if you: -- Are a Polyglot developer, with some skill in NodeJS/Javascript. +- Are a Polyglot developer, with some skill in Node.js/JavaScript. - Have PostgreSQL experience. ## About Supabase diff --git a/about/docs/careers/front-end-developers.mdx b/about/docs/careers/front-end-developers.mdx index 5f0768f27c5..3f190eaef65 100644 --- a/about/docs/careers/front-end-developers.mdx +++ b/about/docs/careers/front-end-developers.mdx @@ -42,7 +42,7 @@ You've worked in multi disciplinary teams before, working with designers, develo ## Must have skills -- 5+ years experience in web development (Javascript, HTML5, CSS3, SCSS/LESS). +- 5+ years experience in web development (JavaScript, HTML5, CSS3, SCSS/LESS). - Have an understanding of modern JS (ES6 etc). - Experience with Node. - Experience with React (We use NextJS everywhere). diff --git a/examples/nuxtjs-user-management/plugins/README.md b/examples/nuxtjs-user-management/plugins/README.md index ca1f9d8a452..1736413ee11 100644 --- a/examples/nuxtjs-user-management/plugins/README.md +++ b/examples/nuxtjs-user-management/plugins/README.md @@ -2,6 +2,6 @@ **This directory is not required, you can delete it if you don't want to use it.** -This directory contains Javascript plugins that you want to run before mounting the root Vue.js application. +This directory contains JavaScript plugins that you want to run before mounting the root Vue.js application. More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/plugins). diff --git a/studio/components/interfaces/Home/Home.constants.ts b/studio/components/interfaces/Home/Home.constants.ts index d49bcb8907e..f2cab0a2e69 100644 --- a/studio/components/interfaces/Home/Home.constants.ts +++ b/studio/components/interfaces/Home/Home.constants.ts @@ -1,6 +1,6 @@ export const CLIENT_LIBRARIES = [ { - language: 'Javascript', + language: 'JavaScript', officialSupport: true, releaseState: undefined, docsUrl: 'https://supabase.com/docs/reference/javascript/installing', diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js index 1dc41d7b7c5..7ec39085dad 100644 --- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js +++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js @@ -55,7 +55,7 @@ const PolicyAllowedOperations = ({ allowedOperations = [], onToggleOperation = (

Based on the operations you have selected, you can use any of the highlighted functions in - the supabase-js Javascript library + the supabase-js JavaScript library

diff --git a/web/docs/about.mdx b/web/docs/about.mdx index 67a2be47967..2fd2d7ed03d 100755 --- a/web/docs/about.mdx +++ b/web/docs/about.mdx @@ -33,7 +33,7 @@ const frameworks = [ }, { name: 'Flutter', logo: DartLogo, href: '/docs/guides/with-flutter' }, { - name: 'Javascript', + name: 'JavaScript', logo: JavascriptLogo, href: 'https://github.com/supabase/supabase/tree/master/examples/javascript-auth', }, diff --git a/web/docs/guides/api.mdx b/web/docs/guides/api.mdx index a7fb8dfc992..b0169cc15fd 100644 --- a/web/docs/guides/api.mdx +++ b/web/docs/guides/api.mdx @@ -158,7 +158,7 @@ values={[ ```sh 1. Go to the "API" section. 2. Find "todos" in the "Tables and Views" section. -3. Switch between the Javascript and the cURL docs using the tabs. +3. Switch between the JavaScript and the cURL docs using the tabs. ``` @@ -174,12 +174,12 @@ using the API URL (`[SUPABASE_URL]`) and Key (`[SUPABASE_ANON_KEY]`) we provided - + ```javascript // Initialize the JS client diff --git a/web/docs/guides/auth/auth-email.mdx b/web/docs/guides/auth/auth-email.mdx index e2c3811c9e1..b044cf8a56f 100644 --- a/web/docs/guides/auth/auth-email.mdx +++ b/web/docs/guides/auth/auth-email.mdx @@ -12,7 +12,7 @@ import TabItem from '@theme/TabItem' Setting up Email logins for your Supabase application. - Add Email authenticator to your [Supabase Project](https://app.supabase.io) -- Add the login code to your application - [Javascript](https://github.com/supabase/supabase-js) | [Dart](https://github.com/supabase/supabase-dart) +- Add the login code to your application - [JavaScript](https://github.com/supabase/supabase-js) | [Dart](https://github.com/supabase/supabase-dart) ## Add Email into your Supabase Project @@ -27,7 +27,7 @@ Setting up Email logins for your Supabase application. Add logins using our client libraries: -- [Javascript](/docs/reference/javascript/auth-signin#sign-in-with-email) +- [JavaScript](/docs/reference/javascript/auth-signin#sign-in-with-email) - [Dart](/docs/reference/dart/auth-signin#sign-in-with-email) @@ -118,7 +118,7 @@ You should present a form to the user so they can input the 6 digit pin, then se @@ -165,7 +165,7 @@ Also now that the mobile has been verified, the user can use the number and pass @@ -202,7 +202,7 @@ In javascript we can use the `signIn` method with a single parameter: `phone` @@ -233,7 +233,7 @@ The second step is the same as the previous section, you need to collect the 6-d diff --git a/web/docs/guides/auth/auth-twilio.mdx b/web/docs/guides/auth/auth-twilio.mdx index 8186dce707e..e7b9839cb91 100644 --- a/web/docs/guides/auth/auth-twilio.mdx +++ b/web/docs/guides/auth/auth-twilio.mdx @@ -100,7 +100,7 @@ Using supabase-js on the client you'll want to use the same `signUp` method that @@ -135,7 +135,7 @@ You should present a form to the user so they can input the 6 digit pin, then se @@ -182,7 +182,7 @@ Also now that the mobile has been verified, the user can use the number and pass @@ -219,7 +219,7 @@ In javascript we can use the `signIn` method with a single parameter: `phone` @@ -250,7 +250,7 @@ The second step is the same as the previous section, you need to collect the 6-d diff --git a/web/docs/guides/auth/auth-vonage.mdx b/web/docs/guides/auth/auth-vonage.mdx index b9bb13551d5..63709aa6753 100644 --- a/web/docs/guides/auth/auth-vonage.mdx +++ b/web/docs/guides/auth/auth-vonage.mdx @@ -75,7 +75,7 @@ Using supabase-js on the client you'll want to use the same `signUp` method that @@ -110,7 +110,7 @@ You should present a form to the user so they can input the 6 digit pin, then se @@ -157,7 +157,7 @@ Also now that the mobile has been verified, the user can use the number and pass @@ -194,7 +194,7 @@ In javascript we can use the `signIn` method with a single parameter: `phone` @@ -225,7 +225,7 @@ The second step is the same as the previous section, you need to collect the 6-d diff --git a/web/docs/guides/database/arrays.mdx b/web/docs/guides/database/arrays.mdx index 4b0afcabbba..4d3341a5021 100644 --- a/web/docs/guides/database/arrays.mdx +++ b/web/docs/guides/database/arrays.mdx @@ -8,7 +8,7 @@ import Tabs from '@theme/Tabs' import TabItem from '@theme/TabItem' PostgreSQL supports flexible [array types](https://www.postgresql.org/docs/12/arrays.html). -These arrays are also supported in the Supabase dashboard and in the Javascript API. +These arrays are also supported in the Supabase dashboard and in the API. ## Steps @@ -79,7 +79,7 @@ INSERT INTO arraytest (id, textarray) VALUES (1, ARRAY['Harry', 'Larry', 'Moe']) -To insert a record from the Javascript client: +To insert a record from the client: ```js const { data, error } = await supabase @@ -131,7 +131,7 @@ Your first array data! ### Query Array Data -To query an array, PostgreSQL uses 1-based arrays, so be careful, since you're probably used to 0-based arrays in Javascript. +To query an array, PostgreSQL uses 1-based arrays, so be careful, since you're probably used to 0-based arrays in . diff --git a/web/docs/guides/database/full-text-search.mdx b/web/docs/guides/database/full-text-search.mdx index c043e80298e..9ae1550ada4 100644 --- a/web/docs/guides/database/full-text-search.mdx +++ b/web/docs/guides/database/full-text-search.mdx @@ -91,7 +91,7 @@ Take the following example: defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, - {label: 'Javascript', value: 'JS'}, + {label: 'JavaScript', value: 'JS'}, {label: 'Dart', value: 'DART'}, ]}> @@ -135,7 +135,7 @@ example above: defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, - {label: 'Javascript', value: 'JS'}, + {label: 'JavaScript', value: 'JS'}, {label: 'Dart', value: 'DART'}, ]}> @@ -180,7 +180,7 @@ To find all `books` where the `description` contain the word `big`: defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, - {label: 'Javascript', value: 'JS'}, + {label: 'JavaScript', value: 'JS'}, {label: 'Dart', value: 'DART'}, {label: 'Data', value: 'Data'}, ]}> @@ -269,7 +269,7 @@ To find all `books` where `description` contains BOTH of the words `little` and defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, - {label: 'Javascript', value: 'JS'}, + {label: 'JavaScript', value: 'JS'}, {label: 'Dart', value: 'DART'}, {label: 'Data', value: 'Data'}, ]}> @@ -324,7 +324,7 @@ To find all `books` where `description` contain ANY of the words `little` or `bi defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, - {label: 'Javascript', value: 'JS'}, + {label: 'JavaScript', value: 'JS'}, {label: 'Dart', value: 'DART'}, {label: 'Data', value: 'Data'}, ]}> @@ -429,7 +429,7 @@ Now that we've created and populated our index, we can search it using the same defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, - {label: 'Javascript', value: 'JS'}, + {label: 'JavaScript', value: 'JS'}, {label: 'Dart', value: 'DART'}, {label: 'Data', value: 'Data'}, ]}> @@ -490,7 +490,7 @@ For example, to find the phrase `big dreams`, where the a match for "big" is fol defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, - {label: 'Javascript', value: 'JS'}, + {label: 'JavaScript', value: 'JS'}, {label: 'Dart', value: 'DART'}, ]}> @@ -535,7 +535,7 @@ We can also use the `<->` to find words within a certain distance of eachother. defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, - {label: 'Javascript', value: 'JS'}, + {label: 'JavaScript', value: 'JS'}, {label: 'Dart', value: 'DART'}, ]}> @@ -583,7 +583,7 @@ For example, to find records that have the word `big` but not `little`: defaultValue="SQL" values={[ {label: 'SQL', value: 'SQL'}, - {label: 'Javascript', value: 'JS'}, + {label: 'JavaScript', value: 'JS'}, {label: 'Dart', value: 'DART'}, ]}> diff --git a/web/docs/guides/database/sql-to-api.mdx b/web/docs/guides/database/sql-to-api.mdx index 570166e3267..6cba7fc175c 100644 --- a/web/docs/guides/database/sql-to-api.mdx +++ b/web/docs/guides/database/sql-to-api.mdx @@ -1,7 +1,7 @@ --- id: sql-to-api -title: 'Converting SQL to Javascript API' -description: Implementing common SQL patterns in the Javascript API +title: 'Converting SQL to API' +description: Implementing common SQL patterns in the API --- import Tabs from '@theme/Tabs' @@ -78,6 +78,6 @@ const { data, error } = await supabase - [Supabase Account - Free Tier OK](https://supabase.com) - [Postgrest Operators](https://postgrest.org/en/stable/api.html#operators) -- [Supabase Javascript API: select](/docs/reference/javascript/select) -- [Supabase Javascript API: modifiers](/docs/reference/javascript/using-modifiers) -- [Supabase Javascript API: filters](/docs/reference/javascript/using-filters) +- [Supabase API: select](/docs/reference/javascript/select) +- [Supabase API: modifiers](/docs/reference/javascript/using-modifiers) +- [Supabase API: filters](/docs/reference/javascript/using-filters) diff --git a/web/docs/guides/examples.mdx b/web/docs/guides/examples.mdx index 077ff5ca371..cd9eefc9174 100644 --- a/web/docs/guides/examples.mdx +++ b/web/docs/guides/examples.mdx @@ -67,7 +67,7 @@ Build a basic Todo List with Supabase and your favorite frontend framework: ### Auth examples -- [Supabase Auth with vanilla Javascript.](https://github.com/supabase/supabase/tree/master/examples/javascript-auth). Use Supabase without any frontend frameworks. +- [Supabase Auth with vanilla JavaScript.](https://github.com/supabase/supabase/tree/master/examples/javascript-auth). Use Supabase without any frontend frameworks. - [Supabase Auth with Next.js SSR.](https://github.com/supabase/supabase/tree/master/examples/nextjs-with-supabase-auth) Uses cookies to persist auth between the server and the client. - [Supabase Auth with RedwoodJS.](https://redwood-playground-auth.netlify.app/supabase) Try out Supabase authentication in the [RedwoodJS](https://redwoodjs.com) Authentication Playground complete with OAuth support and code samples. diff --git a/web/sidebars.js b/web/sidebars.js index 961dfd8ab69..eb2df627c33 100755 --- a/web/sidebars.js +++ b/web/sidebars.js @@ -13,7 +13,7 @@ module.exports = { supabaseClient: [ { type: 'category', - label: 'Javascript', + label: 'JavaScript', collapsed: false, items: supabaseClient.docs, }, From 9aa62d767ea47ebec8054a46a1bfae24fbf5da8a Mon Sep 17 00:00:00 2001 From: Roj Date: Mon, 18 Apr 2022 19:57:18 +0300 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com> --- web/docs/guides/database/arrays.mdx | 6 +++--- web/docs/guides/database/extensions/plv8.mdx | 10 +++++----- web/docs/guides/database/sql-to-api.mdx | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/web/docs/guides/database/arrays.mdx b/web/docs/guides/database/arrays.mdx index 4d3341a5021..2d71ec4c437 100644 --- a/web/docs/guides/database/arrays.mdx +++ b/web/docs/guides/database/arrays.mdx @@ -8,7 +8,7 @@ import Tabs from '@theme/Tabs' import TabItem from '@theme/TabItem' PostgreSQL supports flexible [array types](https://www.postgresql.org/docs/12/arrays.html). -These arrays are also supported in the Supabase dashboard and in the API. +These arrays are also supported in the Supabase dashboard and in the JavaScript API. ## Steps @@ -79,7 +79,7 @@ INSERT INTO arraytest (id, textarray) VALUES (1, ARRAY['Harry', 'Larry', 'Moe']) -To insert a record from the client: +To insert a record from the JavaScript client: ```js const { data, error } = await supabase @@ -131,7 +131,7 @@ Your first array data! ### Query Array Data -To query an array, PostgreSQL uses 1-based arrays, so be careful, since you're probably used to 0-based arrays in . +To query an array, PostgreSQL uses 1-based arrays, so be careful, since you're probably used to 0-based arrays in JavaScript.