Skip to content

Commit f638d1c

Browse files
Fix/performance (#557)
* ignored swc files * optimized code
1 parent e48bbef commit f638d1c

Some content is hidden

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

43 files changed

+137
-32
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,9 @@ bun.lockb
4141
package-lock.json
4242
yarn.lock
4343

44+
**/public/sw.js
45+
**/public/workbox-*.js
46+
**/public/worker-*.js
47+
**/public/sw.js.map
48+
**/public/workbox-*.js.map
49+
**/public/worker-*.js.map

public/robots.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
User-agent: *
2+
Allow: /
3+
Disallow: /admin/*
4+
Disallow: /manage/*
5+
6+
Sitemap: https://job.vineet.tech/sitemap.xml

src/app/(auth)/verify-email/[token]/EmailVerificationLinkExpired.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,19 @@ export const EmailVerificationLinkExpired = ({ token }: { token: string }) => {
3939
>
4040
{!isEmailSent ? (
4141
<Link href={APP_PATHS.SIGNIN}>
42-
<Button className="w-full" disabled={isLoading}>
42+
<Button
43+
className="w-full"
44+
disabled={isLoading}
45+
aria-label="login-redirect"
46+
>
4347
Go to Login
4448
</Button>
4549
</Link>
4650
) : (
4751
<Link href={APP_PATHS.SIGNIN} onClick={handleResendClick}>
48-
<Button className="w-full">Resend Verification Email</Button>
52+
<Button className="w-full" aria-label="resend">
53+
Resend Verification Email
54+
</Button>
4955
</Link>
5056
)}
5157
</FormContainer>

src/app/(auth)/verify-email/[token]/page.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ const EmailVerifiedSuccess = () => {
2929
}
3030
>
3131
<Link href={APP_PATHS.SIGNIN}>
32-
<Button className="w-full">Go to Login</Button>
32+
<Button className="w-full" aria-label="login">
33+
Go to Login
34+
</Button>
3335
</Link>
3436
</FormContainer>
3537
</div>
@@ -44,7 +46,9 @@ const EmailVerificationLinkNotFound = () => {
4446
description={'The verification link you used is invalid or not found.'}
4547
>
4648
<Link href={APP_PATHS.SIGNUP}>
47-
<Button className="w-full">Go to Signup</Button>
49+
<Button className="w-full" aria-label="signip-redirect">
50+
Go to Signup
51+
</Button>
4852
</Link>
4953
</FormContainer>
5054
</div>

src/app/[...404]/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const Custom404Page = () => {
4343
<Button
4444
asChild
4545
className="bg-blue-600 hover:bg-blue-700 text-white font-semibold py-2 px-6 rounded-full transition-colors duration-300"
46+
aria-label="home-redirect"
4647
>
4748
<Link href="/">
4849
<span className="flex items-center">

src/app/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const satoshi = localFont({
1919
export const metadata: Metadata = {
2020
title: '100xJobs',
2121
description: 'Get your dream job',
22+
// icons: '/main.png',
2223
};
2324

2425
export default async function RootLayout({

src/components/ApproveJobDialog.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const ApproveJobDialog = ({
4343
className="mt-2"
4444
variant={'secondary'}
4545
onClick={handleClick}
46+
aria-label="approve"
4647
>
4748
Approve
4849
</Button>

src/components/DeleteDialog.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ const JobDialog = ({ job }: { job: JobType }) => {
7474
className="mt-2"
7575
variant={job.deleted ? 'secondary' : 'destructive'}
7676
onClick={handelToggle}
77+
aria-label="delete"
7778
>
7879
{job.deleted ? 'Restore' : 'Delete'}
7980
</Button>

src/components/Faqs.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default function Faqs() {
3636
className="flex w-full justify-between items-center cursor-pointer focus:outline-none dark:bg-[#0F172A] bg-[#F1F5F9] p-4 rounded-xl"
3737
onClick={() => toggleExpand(i)}
3838
aria-expanded={expandedIndex === i}
39+
aria-label="toggle-expand"
3940
>
4041
<p className="text-left font-medium dark:text-white text-gray-900">
4142
{faq.question}

src/components/FaqsGetintouchCard.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ export default function FaqsGetintouchCard() {
66
<p className="font-semibold md:text-base text-xs">
77
Can&apos;t find what you&apos;re looking for?
88
</p>
9-
<Button className="md:text-base text-xs">Get in touch</Button>
9+
<Button className="md:text-base text-xs" aria-label="get-in-touch">
10+
Get in touch
11+
</Button>
1012
</div>
1113
);
1214
}

0 commit comments

Comments
 (0)