Skip to content

Commit

Permalink
fix: get everything up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
OrJDev committed Oct 8, 2024
1 parent 3721407 commit 0681403
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .changeset/spotty-bikes-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-jd-app": minor
---

fix: get everything up to date
12 changes: 6 additions & 6 deletions src/helpers/packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ const packages = {
// prisma
"@prisma/client": "^5.20.0",
// prpc
"@tanstack/solid-query": "^5.56.2",
"@solid-mediakit/prpc": "^1.2.5",
"@tanstack/solid-query": "^5.59.0",
"@solid-mediakit/prpc": "^1.3.3",
"@solid-mediakit/prpc-plugin": "^1.3.4",
// authjs
"@solid-mediakit/auth": "^2.1.4",
"@solid-mediakit/auth-plugin": "^1.1.2",
"@auth/core": "^0.35.0",
"@auth/prisma-adapter": "^2.5.0",
"@solid-mediakit/auth": "^2.1.6",
"@solid-mediakit/auth-plugin": "^1.1.4",
"@auth/core": "0.35.0",
"@auth/prisma-adapter": "^2.6.0",
// tailwind
postcss: "^8.4.40",
tailwindcss: "^3.4.7",
Expand Down
6 changes: 3 additions & 3 deletions template/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"vite": "^5.1.6"
},
"dependencies": {
"@solidjs/router": "^0.14.5",
"@solidjs/start": "^1.0.6",
"solid-js": "^1.8.23",
"@solidjs/router": "^0.14.7",
"@solidjs/start": "^1.0.8",
"solid-js": "^1.9.2",
"vinxi": "^0.4.3",
"@solidjs/meta": "^0.29.4",
"zod": "^3.22.4"
Expand Down
6 changes: 4 additions & 2 deletions template/index/with-auth-prpc-tw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const AuthShowcase: VoidComponent = () => {
return (
<div class="flex flex-col items-center justify-center gap-4">
<Show
when={session()}
when={session().status === "authenticated"}
fallback={
<button
onClick={() => signIn("discord", { redirectTo: "/" })}
Expand All @@ -64,7 +64,9 @@ const AuthShowcase: VoidComponent = () => {
</button>
}
>
<span class="text-xl text-white">Welcome {session()?.user?.name}</span>
<span class="text-xl text-white">
Welcome {session().data?.user?.name}
</span>
<button
onClick={() => signOut({ redirectTo: "/" })}
class="rounded-full bg-white/10 px-10 py-3 font-semibold text-white no-underline transition hover:bg-white/20"
Expand Down
6 changes: 4 additions & 2 deletions template/index/with-auth-prpc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const AuthShowcase: VoidComponent = () => {
return (
<div class={styles.authContainer}>
<Show
when={session()}
when={session().status === "authenticated"}
fallback={
<button
onClick={() => signIn("discord", { redirectTo: "/" })}
Expand All @@ -65,7 +65,9 @@ const AuthShowcase: VoidComponent = () => {
</button>
}
>
<span class={styles.showcaseText}>Welcome {session()?.user?.name}</span>
<span class={styles.showcaseText}>
Welcome {session()?.data?.user?.name}
</span>
<button
onClick={() => signOut({ redirectTo: "/" })}
class={styles.loginButton}
Expand Down
6 changes: 4 additions & 2 deletions template/index/with-auth-tw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const AuthShowcase: VoidComponent = () => {
return (
<div class="flex flex-col items-center justify-center gap-4">
<Show
when={session()}
when={session().status === "authenticated"}
fallback={
<button
onClick={() => signIn("discord", { redirectTo: "/" })}
Expand All @@ -57,7 +57,9 @@ const AuthShowcase: VoidComponent = () => {
</button>
}
>
<span class="text-xl text-white">Welcome {session()?.user?.name}</span>
<span class="text-xl text-white">
Welcome {session().data?.user?.name}
</span>
<button
onClick={() => signOut({ redirectTo: "/" })}
class="rounded-full bg-white/10 px-10 py-3 font-semibold text-white no-underline transition hover:bg-white/20"
Expand Down
6 changes: 4 additions & 2 deletions template/index/with-auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const AuthShowcase: VoidComponent = () => {
return (
<div class={styles.authContainer}>
<Show
when={session()}
when={session().status === "authenticated"}
fallback={
<button
onClick={() => signIn("discord", { redirectTo: "/" })}
Expand All @@ -58,7 +58,9 @@ const AuthShowcase: VoidComponent = () => {
</button>
}
>
<span class={styles.showcaseText}>Welcome {session()?.user?.name}</span>
<span class={styles.showcaseText}>
Welcome {session()?.data?.user?.name}
</span>
<button
onClick={() => signOut({ redirectTo: "/" })}
class={styles.loginButton}
Expand Down

0 comments on commit 0681403

Please sign in to comment.