diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-nuxt-3.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-nuxt-3.mdx index 844c10dc2a4..3975ab33dcf 100644 --- a/apps/docs/pages/guides/getting-started/tutorials/with-nuxt-3.mdx +++ b/apps/docs/pages/guides/getting-started/tutorials/with-nuxt-3.mdx @@ -66,7 +66,27 @@ export default defineNuxtConfig({ Let's set up a Vue component to manage logins and sign ups. We'll use Magic Links, so users can sign in with their email without using passwords. -```html title=/components/Auth.vue +```vue title=/components/Auth.vue + + - - ``` ### User state @@ -116,7 +117,70 @@ To access the user information, use the composable [useSupabaseUser](https://sup After a user is signed in we can allow them to edit their profile details and manage their account. Let's create a new component for that called `Account.vue`. -```html title=components/Account.vue +```vue title=components/Account.vue + + - - ``` ### Launch! Now that we have all the components in place, let's update `app.vue`: -```html title=app.vue +```vue title=app.vue + + - - ``` Once that's done, run this in a terminal window: @@ -242,7 +247,65 @@ Every Supabase project is configured with [Storage](/docs/guides/storage) for ma Let's create an avatar for the user so that they can upload a profile photo. We can start by creating a new component: -```html title=components/Avatar.vue +```vue title=components/Avatar.vue + + - - ``` ### Add the new widget And then we can add the widget to the Account page: -```html title=components/Account.vue +```vue title=components/Account.vue + + - - ``` That is it! You should now be able to upload a profile photo to Supabase Storage. diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-vue-3.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-vue-3.mdx index b40659546fe..0420638cb95 100644 --- a/apps/docs/pages/guides/getting-started/tutorials/with-vue-3.mdx +++ b/apps/docs/pages/guides/getting-started/tutorials/with-vue-3.mdx @@ -68,30 +68,30 @@ Optionally, update [src/style.css](https://raw.githubusercontent.com/supabase/su Set up an `src/components/Auth.vue` component to manage logins and sign ups. We'll use Magic Links, so users can sign in with their email without using passwords. -```html title=/src/components/Auth.vue +```vue title=/src/components/Auth.vue