Skip to content
This repository was archived by the owner on Jan 4, 2026. It is now read-only.

Commit f01b0c9

Browse files
committed
fix: linting and formatting
1 parent b06b1ec commit f01b0c9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+194
-162
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
> **🚀 WSTACK - Under Development!**
2-
> Enhancing the experience, one update at a time!
2+
> Enhancing the experience, one update at a time!
33
44
<div align="center">
55
<img src="https://github.com/user-attachments/assets/8853f565-3512-494b-8374-c6245c32064e" alt="WSTACK Preview" style="border: 2px solid #ddd; border-radius: 8px; padding: 4px; max-width: 100%;">
66
</div>
77

8-
### 📖 Check out the Documentation Repo (Incomplete at the Moment / Looking for Contributors): **[WSTACK-DOCS](https://github.com/MambaCodes/wstack-docs)**
8+
### 📖 Check out the Documentation Repo (Incomplete at the Moment / Looking for Contributors): **[WSTACK-DOCS](https://github.com/MambaCodes/wstack-docs)**

src/app/(auth)/login/page.tsx

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
'use client'
22

3-
import { signIn, signOut, useSession } from 'next-auth/react'
43
import Image from 'next/image'
5-
import { cn } from "@/lib/utils"
6-
import { Button } from "@/components/ui/button"
4+
import { signIn, signOut, useSession } from 'next-auth/react'
5+
6+
import { Button } from '@/components/ui/button'
77
import {
88
Card,
99
CardContent,
1010
CardDescription,
1111
CardHeader,
1212
CardTitle,
13-
} from "@/components/ui/card"
14-
import { Input } from "@/components/ui/input"
15-
import { Label } from "@/components/ui/label"
13+
} from '@/components/ui/card'
14+
import { Input } from '@/components/ui/input'
15+
import { Label } from '@/components/ui/label'
16+
import { cn } from '@/lib/utils'
1617

1718
export default function Login() {
1819
const { data: session, status } = useSession()
@@ -39,7 +40,10 @@ export default function Login() {
3940
return (
4041
<div className="flex min-h-svh flex-col items-center justify-center gap-6 bg-muted p-6 md:p-10">
4142
<div className="flex w-full max-w-sm flex-col gap-6">
42-
<a href="/" className="flex items-center gap-2 self-center font-medium mt-6">
43+
<a
44+
href="/"
45+
className="mt-6 flex items-center gap-2 self-center font-medium"
46+
>
4347
<Image
4448
src="/wstack-white.svg"
4549
alt="Wstack Logo"
@@ -57,9 +61,9 @@ export default function Login() {
5761
export function LoginForm({
5862
className,
5963
...props
60-
}: React.ComponentPropsWithoutRef<"div">) {
64+
}: React.ComponentPropsWithoutRef<'div'>) {
6165
return (
62-
<div className={cn("flex flex-col gap-6", className)} {...props}>
66+
<div className={cn('flex flex-col gap-6', className)} {...props}>
6367
<Card>
6468
<CardHeader className="text-center">
6569
<CardTitle className="text-xl">Welcome back</CardTitle>
@@ -71,7 +75,11 @@ export function LoginForm({
7175
<form>
7276
<div className="grid gap-6">
7377
<div className="flex flex-col gap-4">
74-
<Button variant="outline" className="w-full" onClick={() => signIn('google')}>
78+
<Button
79+
variant="outline"
80+
className="w-full"
81+
onClick={() => signIn('google')}
82+
>
7583
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
7684
<path
7785
d="M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
@@ -80,7 +88,11 @@ export function LoginForm({
8088
</svg>
8189
Login with Google
8290
</Button>
83-
<Button variant="outline" className="w-full" onClick={() => signIn('github')}>
91+
<Button
92+
variant="outline"
93+
className="w-full"
94+
onClick={() => signIn('github')}
95+
>
8496
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
8597
<path
8698
d="M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701"
@@ -122,7 +134,7 @@ export function LoginForm({
122134
</Button>
123135
</div>
124136
<div className="text-center text-sm">
125-
Don&apos;t have an account?{" "}
137+
Don&apos;t have an account?{' '}
126138
<a href="#" className="underline underline-offset-4">
127139
Sign up
128140
</a>
@@ -131,8 +143,8 @@ export function LoginForm({
131143
</form>
132144
</CardContent>
133145
</Card>
134-
<div className="text-balance text-center text-xs text-muted-foreground [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-primary ">
135-
By clicking continue, you agree to our <a href="#">Terms of Service</a>{" "}
146+
<div className="text-balance text-center text-xs text-muted-foreground [&_a]:underline [&_a]:underline-offset-4 [&_a]:hover:text-primary">
147+
By clicking continue, you agree to our <a href="#">Terms of Service</a>{' '}
136148
and <a href="#">Privacy Policy</a>.
137149
</div>
138150
</div>

src/app/(protected)/dashboard/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
'use client'
22

3-
import { useSession } from 'next-auth/react'
43
import { useRouter } from 'next/navigation'
5-
import { useEffect } from 'react'
4+
import { useSession } from 'next-auth/react'
65
import { signOut } from 'next-auth/react'
6+
import { useEffect } from 'react'
77
export default function Dashboard() {
88
const { data: session, status } = useSession()
99
const router = useRouter()

src/app/api/[...route]/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { handle } from 'hono/vercel'
2+
23
import app from '@/server/server'
34

45
export const GET = handle(app)
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { authOptions } from '@/lib/auth'
21
import NextAuth from 'next-auth'
32

3+
import { authOptions } from '@/lib/auth'
4+
45
const handler = NextAuth(authOptions)
56

67
export { handler as GET, handler as POST }

src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import type { Metadata } from 'next'
22
import { Geist, Geist_Mono } from 'next/font/google'
3+
34
import './globals.css'
45
import { Providers } from './provider'
6+
57
import { ThemeProvider } from '@/components/theme-provider'
68

79
const geistSans = Geist({

src/app/page.tsx

Lines changed: 41 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
'use client'
2-
import { useState } from 'react'
3-
import Login from './(auth)/login/page'
42
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
5-
3+
import { ArrowRight } from 'lucide-react'
64
import Image from 'next/image'
7-
import Link from "next/link"
8-
import { ArrowRight } from "lucide-react"
9-
import { Spotlight } from "@/components/spotlight-new";
5+
import Link from 'next/link'
6+
import { useState } from 'react'
7+
8+
import { Spotlight } from '@/components/spotlight-new'
109

1110
export default function Home() {
1211
const [queryClient] = useState(() => new QueryClient())
1312

1413
return (
1514
<QueryClientProvider client={queryClient}>
16-
<div className="flex min-h-screen flex-col items-center justify-between p-6 md:p-16 bg-black/[0.96] text-white relative overflow-hidden">
15+
<div className="relative flex min-h-screen flex-col items-center justify-between overflow-hidden bg-black/[0.96] p-6 text-white md:p-16">
1716
<Spotlight />
18-
<div className="z-10 w-full max-w-5xl items-center justify-between font-mono text-sm flex">
17+
<div className="z-10 flex w-full max-w-5xl items-center justify-between font-mono text-sm">
1918
<p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-800 bg-gradient-to-b from-zinc-900 pb-6 pt-8 backdrop-blur-2xl md:static md:w-auto md:rounded-xl md:border md:bg-gray-900 md:p-4">
2019
Get started by editing&nbsp;
2120
<code className="font-mono font-bold">src/app/page.tsx</code>
@@ -27,13 +26,20 @@ export default function Home() {
2726
target="_blank"
2827
rel="noopener noreferrer"
2928
>
30-
By <Image src="/mamba-white.svg" alt="Wstack Logo" width={150} height={66} priority />
29+
By{' '}
30+
<Image
31+
src="/mamba-white.svg"
32+
alt="Wstack Logo"
33+
width={150}
34+
height={66}
35+
priority
36+
/>
3137
</Link>
3238
</div>
3339
</div>
3440

3541
<div className="flex flex-col items-center justify-center text-center">
36-
<div className="relative flex place-items-center mb-8 md:mt-12 mt-24">
42+
<div className="relative mb-8 mt-24 flex place-items-center md:mt-12">
3743
<Image
3844
src="/wstack-white.svg"
3945
alt="Wstack Logo"
@@ -42,42 +48,42 @@ export default function Home() {
4248
priority
4349
className="relative dark:drop-shadow-[0_0_1.2rem_#ffffff70]"
4450
/>
45-
<span className='text-xs font-medium text-cyan-200'>BETA</span>
51+
<span className="text-xs font-medium text-cyan-200">BETA</span>
4652
</div>
4753

48-
<h1 className={` text-2xl md:text-3xl lg:text-4xl mb-6 max-w-3xl`}>
54+
<h1 className={'mb-6 max-w-3xl text-2xl md:text-3xl lg:text-4xl'}>
4955
The only starter kit you need to launch your startup—period.
5056
</h1>
5157
</div>
5258

53-
<div className="mb-32 grid text-center lg:mb-0 lg:grid-cols-3 lg:text-left gap-8 max-w-5xl">
59+
<div className="mb-32 grid max-w-5xl gap-8 text-center lg:mb-0 lg:grid-cols-3 lg:text-left">
5460
<Link
5561
href="https://github.com/MambaCodes/wstack"
5662
className="group rounded-lg border border-gray-800 px-5 py-4 transition-colors hover:border-gray-500 hover:bg-gray-900"
5763
>
58-
<h2 className={` mb-3 text-2xl font-semibold`}>
59-
Tech Stack{" "}
64+
<h2 className={'mb-3 text-2xl font-semibold'}>
65+
Tech Stack{' '}
6066
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
6167
<ArrowRight className="inline h-5 w-5" />
6268
</span>
6369
</h2>
64-
<p className={` m-0 max-w-[30ch] text-sm opacity-70`}>
70+
<p className={'m-0 max-w-[30ch] text-sm opacity-70'}>
6571
See why we chose this stack.
6672
</p>
6773
</Link>
6874

6975
<Link
7076
href="https://github.com/MambaCodes/wstack-docs"
71-
target='_blank'
77+
target="_blank"
7278
className="group rounded-lg border border-gray-800 px-5 py-4 transition-colors hover:border-gray-500 hover:bg-gray-900"
7379
>
74-
<h2 className={` mb-3 text-2xl font-semibold`}>
75-
Documentation{" "}
80+
<h2 className={'mb-3 text-2xl font-semibold'}>
81+
Documentation{' '}
7682
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
7783
<ArrowRight className="inline h-5 w-5" />
7884
</span>
7985
</h2>
80-
<p className={` m-0 max-w-[30ch] text-sm opacity-70`}>
86+
<p className={'m-0 max-w-[30ch] text-sm opacity-70'}>
8187
Find in-depth information about Wstack features and API.
8288
</p>
8389
</Link>
@@ -86,29 +92,29 @@ export default function Home() {
8692
href="https://github.com/MambaCodes/wstack"
8793
className="group rounded-lg border border-gray-800 px-5 py-4 transition-colors hover:border-gray-500 hover:bg-gray-900"
8894
>
89-
<h2 className={` mb-3 text-2xl font-semibold`}>
90-
Templates{" "}
95+
<h2 className={'mb-3 text-2xl font-semibold'}>
96+
Templates{' '}
9197
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
9298
<ArrowRight className="inline h-5 w-5" />
9399
</span>
94100
</h2>
95-
<p className={` m-0 max-w-[30ch] text-sm opacity-70`}>
101+
<p className={'m-0 max-w-[30ch] text-sm opacity-70'}>
96102
Discover and deploy boilerplate example Wstack projects.
97103
</p>
98104
</Link>
99105

100106
<Link
101107
href="https://github.com/MambaCodes/wstack-docs"
102-
target='_blank'
108+
target="_blank"
103109
className="group rounded-lg border border-gray-800 px-5 py-4 transition-colors hover:border-gray-500 hover:bg-gray-900"
104110
>
105-
<h2 className={` mb-3 text-2xl font-semibold`}>
106-
Prompts{" "}
111+
<h2 className={'mb-3 text-2xl font-semibold'}>
112+
Prompts{' '}
107113
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
108114
<ArrowRight className="inline h-5 w-5" />
109115
</span>
110116
</h2>
111-
<p className={` m-0 max-w-[30ch] text-sm opacity-70`}>
117+
<p className={'m-0 max-w-[30ch] text-sm opacity-70'}>
112118
AI-focused starter kit with pre-built prompts.
113119
</p>
114120
</Link>
@@ -117,34 +123,34 @@ export default function Home() {
117123
href="/login"
118124
className="group rounded-lg border border-gray-800 px-5 py-4 transition-colors hover:border-gray-500 hover:bg-gray-900"
119125
>
120-
<h2 className={` mb-3 text-2xl font-semibold`}>
121-
Authentication{" "}
126+
<h2 className={'mb-3 text-2xl font-semibold'}>
127+
Authentication{' '}
122128
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
123129
<ArrowRight className="inline h-5 w-5" />
124130
</span>
125131
</h2>
126-
<p className={` m-0 max-w-[30ch] text-sm opacity-70`}>
132+
<p className={'m-0 max-w-[30ch] text-sm opacity-70'}>
127133
See how we use NextAuth for Wstack.
128134
</p>
129135
</Link>
130136

131137
<Link
132138
href="https://discord.gg/VFyDEVWx7s"
133139
className="group rounded-lg border border-gray-800 px-5 py-4 transition-colors hover:border-gray-500 hover:bg-gray-900"
134-
target='_blank'
140+
target="_blank"
135141
>
136-
<h2 className={` mb-3 text-2xl font-semibold`}>
137-
Contact{" "}
142+
<h2 className={'mb-3 text-2xl font-semibold'}>
143+
Contact{' '}
138144
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
139145
<ArrowRight className="inline h-5 w-5" />
140146
</span>
141147
</h2>
142-
<p className={` m-0 max-w-[30ch] text-sm opacity-70`}>
148+
<p className={'m-0 max-w-[30ch] text-sm opacity-70'}>
143149
Get in touch with us on Discord.
144150
</p>
145151
</Link>
146152
</div>
147-
</div>
153+
</div>
148154
</QueryClientProvider>
149155
)
150156
}

src/components/ProtectedLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

3-
import { useSession } from 'next-auth/react'
43
import { useRouter } from 'next/navigation'
4+
import { useSession } from 'next-auth/react'
55
import { ReactNode, useEffect } from 'react'
66

77
export default function ProtectedLayout({ children }: { children: ReactNode }) {

src/components/mode-toggle.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
'use client'
22

33
import { MoonIcon, SunIcon } from 'lucide-react'
4+
import { useTheme } from 'next-themes'
5+
46
import { Button } from '@/components/ui/button'
57
import {
68
DropdownMenu,
79
DropdownMenuContent,
810
DropdownMenuItem,
911
DropdownMenuTrigger,
1012
} from '@/components/ui/dropdown-menu'
11-
import { useTheme } from 'next-themes'
1213

1314
export function ModeToggle() {
1415
const { setTheme } = useTheme()

0 commit comments

Comments
 (0)