Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a17513f

Browse filesBrowse files
committed
feature(rc13) upgrade an fix discord link
1 parent 36a5f46 commit a17513f
Copy full SHA for a17513f

File tree

Expand file treeCollapse file tree

4 files changed

+671
-702
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+671
-702
lines changed

‎components/layout/navbar.vue

Copy file name to clipboardExpand all lines: components/layout/navbar.vue
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ watch(user, async () => {
101101
</svg>
102102
</NuxtLink>
103103

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">
105105
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
106106
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"
107107
preserveAspectRatio="xMidYMid">

‎composables/useAuth.ts

Copy file name to clipboardExpand all lines: composables/useAuth.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function useUser(): Promise<IUser|null> {
1313

1414
const cookieHeaders = useRequestHeaders(['cookie'])
1515

16-
const { data } = await useFetch(`/api/auth/getByAuthToken`, {
16+
const { data } = await useFetch<IUser>(`/api/auth/getByAuthToken`, {
1717
headers: cookieHeaders as HeadersInit,
1818
})
1919

@@ -48,7 +48,7 @@ export async function registerWithEmail(
4848
name: string,
4949
email: string,
5050
password: string
51-
): Promise<FormValidation> {
51+
): Promise<FormValidation|undefined> {
5252

5353
try {
5454
const { data, error } = await useFetch<ISession>('/api/auth/register', {
@@ -75,7 +75,7 @@ export async function registerWithEmail(
7575
useState('user').value = data
7676
await useRouter().push('/topics')
7777
}
78-
} catch (e) {
78+
} catch (e: any) {
7979
console.log('error: ' + e.toString())
8080
}
8181
}

‎package.json

Copy file name to clipboardExpand all lines: package.json
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
"prisma:migrate": "dotenv -e .env -- npx prisma migrate deploy --name prod"
1111
},
1212
"devDependencies": {
13-
"@nuxt/content": "^2.1.1",
13+
"@nuxt/content": "^2.2.1",
1414
"@nuxt/postcss8": "^1.1.3",
1515
"@nuxt/test-utils-edge": "^3.0.0-rc.13-27777092.59d8c51",
1616
"@nuxtjs/color-mode": "^3.1.8",
17-
"@nuxtjs/tailwindcss": "^6.0.1",
17+
"@nuxtjs/tailwindcss": "^6.1.3",
1818
"@types/bcrypt": "^5.0.0",
1919
"@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",
2323
"nuxt-icon": "^0.1.7",
2424
"postcss": "^8.4.18",
25-
"tailwindcss": "^3.2.1",
26-
"vitest": "^0.24.3"
25+
"tailwindcss": "^3.2.2",
26+
"vitest": "^0.24.5"
2727
},
2828
"dependencies": {
2929
"@formkit/auto-animate": "^1.0.0-beta.3",

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.