File tree Expand file tree Collapse file tree 4 files changed +671
-702
lines changed
Filter options
Expand file tree Collapse file tree 4 files changed +671
-702
lines changed
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ watch(user, async () => {
101
101
</svg >
102
102
</NuxtLink >
103
103
104
- <NuxtLink to =" https://discord.gg/tFGTQBdT " class =" text-gray-800 hidden lg:block" >
104
+ <NuxtLink to =" https://discord.gg/9XXEvE43pG " class =" text-gray-800 hidden lg:block" >
105
105
<svg xmlns =" http://www.w3.org/2000/svg" xmlns:xlink =" http://www.w3.org/1999/xlink"
106
106
class =" text-black dark:text-gray-200 h-6 w-6 ml-2 hover:dark:text-purple-400 hover:text-purple-400" viewBox =" 0 -28.5 256 256" version =" 1.1"
107
107
preserveAspectRatio =" xMidYMid" >
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export async function useUser(): Promise<IUser|null> {
13
13
14
14
const cookieHeaders = useRequestHeaders ( [ 'cookie' ] )
15
15
16
- const { data } = await useFetch ( `/api/auth/getByAuthToken` , {
16
+ const { data } = await useFetch < IUser > ( `/api/auth/getByAuthToken` , {
17
17
headers : cookieHeaders as HeadersInit ,
18
18
} )
19
19
@@ -48,7 +48,7 @@ export async function registerWithEmail(
48
48
name : string ,
49
49
email : string ,
50
50
password : string
51
- ) : Promise < FormValidation > {
51
+ ) : Promise < FormValidation | undefined > {
52
52
53
53
try {
54
54
const { data, error } = await useFetch < ISession > ( '/api/auth/register' , {
@@ -75,7 +75,7 @@ export async function registerWithEmail(
75
75
useState ( 'user' ) . value = data
76
76
await useRouter ( ) . push ( '/topics' )
77
77
}
78
- } catch ( e ) {
78
+ } catch ( e : any ) {
79
79
console . log ( 'error: ' + e . toString ( ) )
80
80
}
81
81
}
Original file line number Diff line number Diff line change 10
10
"prisma:migrate" : " dotenv -e .env -- npx prisma migrate deploy --name prod"
11
11
},
12
12
"devDependencies" : {
13
- "@nuxt/content" : " ^2.1 .1" ,
13
+ "@nuxt/content" : " ^2.2 .1" ,
14
14
"@nuxt/postcss8" : " ^1.1.3" ,
15
15
"@nuxt/test-utils-edge" : " ^3.0.0-rc.13-27777092.59d8c51" ,
16
16
"@nuxtjs/color-mode" : " ^3.1.8" ,
17
- "@nuxtjs/tailwindcss" : " ^6.0.1 " ,
17
+ "@nuxtjs/tailwindcss" : " ^6.1.3 " ,
18
18
"@types/bcrypt" : " ^5.0.0" ,
19
19
"@types/uuid" : " ^8.3.4" ,
20
- "autoprefixer" : " ^10.4.12 " ,
21
- "jsdom" : " ^20.0.1 " ,
22
- "nuxt" : " ^3.0.0-rc.12 " ,
20
+ "autoprefixer" : " ^10.4.13 " ,
21
+ "jsdom" : " ^20.0.2 " ,
22
+ "nuxt" : " ^3.0.0-rc.13 " ,
23
23
"nuxt-icon" : " ^0.1.7" ,
24
24
"postcss" : " ^8.4.18" ,
25
- "tailwindcss" : " ^3.2.1 " ,
26
- "vitest" : " ^0.24.3 "
25
+ "tailwindcss" : " ^3.2.2 " ,
26
+ "vitest" : " ^0.24.5 "
27
27
},
28
28
"dependencies" : {
29
29
"@formkit/auto-animate" : " ^1.0.0-beta.3" ,
You can’t perform that action at this time.
0 commit comments