Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nuxt-modules/supabase
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.2.0
Choose a base ref
...
head repository: nuxt-modules/supabase
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.2.1
Choose a head ref
  • 4 commits
  • 39 files changed
  • 3 contributors

Commits on Apr 18, 2024

  1. refactor(session): useSupabaseSession in useSupabaseUser (#352)

    vinceglb authored Apr 18, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    85845f3 View commit details
  2. docs(installation): use new nuxi module add command (#343)

    danielroe authored Apr 18, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e6eee53 View commit details
  3. chore(deps): updates and move to nuxt/eslint with eslint v9

    larbish committed Apr 18, 2024
    Copy the full SHA
    a5eb1bf View commit details
  4. chore(release): release v1.2.1

    larbish committed Apr 18, 2024
    Copy the full SHA
    d01e46b View commit details
10 changes: 0 additions & 10 deletions .eslintrc

This file was deleted.

2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@


## [1.2.1](https://github.com/nuxt-community/supabase-module/compare/v1.2.0...v1.2.1) (2024-04-18)

# [1.2.0](https://github.com/nuxt-community/supabase-module/compare/v1.1.7...v1.2.0) (2024-03-29)


10 changes: 0 additions & 10 deletions demo/.eslintrc

This file was deleted.

16 changes: 8 additions & 8 deletions demo/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -5,23 +5,23 @@ export default defineNuxtConfig({
// UI lib (will be soon open sourced)
'@nuxthq/ui',
// https://github.com/nuxt-modules/color-mode
'@nuxtjs/color-mode'
'@nuxtjs/color-mode',
],
runtimeConfig: {
public: {
baseUrl: process.env.BASE_URL || 'http://localhost:3000'
}
baseUrl: process.env.BASE_URL || 'http://localhost:3000',
},
},
ui: {
colors: {
primary: 'green'
primary: 'green',
},
icons: ['mdi', 'heroicons', 'heroicons-outline']
icons: ['mdi', 'heroicons', 'heroicons-outline'],
},
supabase: {
redirectOptions: {
login: '/',
callback: '/confirm'
}
}
callback: '/confirm',
},
},
})
19 changes: 9 additions & 10 deletions demo/package.json
Original file line number Diff line number Diff line change
@@ -7,19 +7,18 @@
"dev": "nuxi dev",
"build": "nuxi build",
"start": "node .output/server/index.mjs",
"lint": "eslint ."
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
"devDependencies": {
"@iconify-json/heroicons": "^1.1.13",
"@iconify-json/heroicons-outline": "^1.1.7",
"@iconify-json/mdi": "^1.1.55",
"@iconify-json/heroicons": "^1.1.20",
"@iconify-json/heroicons-outline": "^1.1.10",
"@iconify-json/mdi": "^1.1.66",
"@nuxthq/ui": "^1.2.10",
"@nuxtjs/color-mode": "^3.3.2",
"@nuxtjs/eslint-config-typescript": "^12.1.0",
"@nuxtjs/supabase": "^1.1.3",
"eslint": "^8.53.0",
"nuxt": "^3.8.1",
"typescript": "^5.2.2"
"@nuxtjs/color-mode": "^3.4.0",
"@nuxtjs/supabase": "^1.2.0",
"nuxt": "^3.11.2",
"typescript": "^5.4.5"
},
"resolutions": {
"consola": "^3.0.0"
7 changes: 3 additions & 4 deletions demo/pages/tasks.vue
Original file line number Diff line number Diff line change
@@ -15,16 +15,16 @@ const { data: tasks } = await useAsyncData('tasks', async () => {
return data
})
async function addTask () {
if (newTask.value.trim().length === 0) { return }
async function addTask() {
if (newTask.value.trim().length === 0) return
loading.value = true
const { data } = await client.from('tasks')
.upsert({
user: user.value.id,
title: newTask.value,
completed: false
completed: false,
})
.select('id, title, completed')
.single()
@@ -49,7 +49,6 @@ const fetchTasksFromServerRoute = async () => {
tasksFromServer.value = data
isModalOpen.value = true
}
</script>

<template>
Loading