mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 22:59:11 +03:00
fix: update runes imports from svelte/internal
Co-Authored-By: charis@supabase.io <charis@supabase.io>
This commit is contained in:
1 parent
28e595130a
commit
fbb45658f0
4 files changed
+13
-12
No files matched your search
@@ -2,14 +2,12 @@
|
||||
<script lang="ts">
|
||||
import '../styles.css'
|
||||
import { invalidate } from '$app/navigation'
|
||||
import { createRender } from 'svelte'
|
||||
import { $state, $effect, $props } from 'svelte/internal'
|
||||
|
||||
export let data
|
||||
let { data } = $props()
|
||||
let { supabase, session } = data
|
||||
|
||||
const render = createRender()
|
||||
|
||||
effect(() => {
|
||||
$effect(() => {
|
||||
const { data: authData } = supabase.auth.onAuthStateChange((event, _session) => {
|
||||
if (_session?.expires_at !== session?.expires_at) {
|
||||
invalidate('supabase:auth')
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<!-- src/routes/+page.svelte -->
|
||||
<script lang="ts">
|
||||
import { enhance } from '$app/forms'
|
||||
import { $state, $props } from 'svelte/internal'
|
||||
import type { ActionData, SubmitFunction } from './$types.js'
|
||||
|
||||
export let form: ActionData
|
||||
let { form } = $props<{ form: ActionData }>()
|
||||
let $loading = $state(false)
|
||||
|
||||
const handleSubmit: SubmitFunction = () => {
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
<!-- src/routes/account/+page.svelte -->
|
||||
<script lang="ts">
|
||||
import { enhance } from '$app/forms'
|
||||
import { $state, $props } from 'svelte/internal'
|
||||
import type { SubmitFunction } from '@sveltejs/kit'
|
||||
import Avatar from './Avatar.svelte'
|
||||
|
||||
export let data
|
||||
export let form
|
||||
|
||||
let { data, form } = $props()
|
||||
let { session, supabase, profile } = data
|
||||
|
||||
let $profileForm = $state<HTMLFormElement | null>(null)
|
||||
|
||||
@@ -2,10 +2,13 @@
|
||||
<script lang="ts">
|
||||
import type { SupabaseClient } from '@supabase/supabase-js'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
import { $state, $effect, $props } from 'svelte/internal'
|
||||
|
||||
export let size = 10
|
||||
export let url = ''
|
||||
export let supabase: SupabaseClient
|
||||
let { size = 10, url = '', supabase } = $props<{
|
||||
size?: number
|
||||
url: string
|
||||
supabase: SupabaseClient
|
||||
}>()
|
||||
|
||||
let $avatarUrl = $state<string | null>(null)
|
||||
let $uploading = $state(false)
|
||||
|
||||
Reference in new issue
Block a user