+
User Info
@@ -67,9 +67,9 @@ export default async function Page({ params }: { params: { slug: string } }) {
/>
+
{user.firstName} {user.lastName}
- @{user.hackerTag}
+
+ @{user.hackerTag}
+
{/*
{team.bio}
*/} -No Results :(
-No Results :(
+Contact Us
-- Have a question and want to reach out? Feel free to use one of the contact methods - listed here! +
+ Contact Us +
++ Have a question and want to reach out? Feel free to + use one of the contact methods listed here!
Dashboard
Welcome,
-{user.firstName}
+Welcome,
++ {user.firstName} +
- {user.firstName} -
-@{user.hackerTag}
-{guild}
-- {c.hackathonName}{" "} - {c.itteration} -
-{`${format( - c.startDate, - "h:mma, MMM d, yyyy" - )}`}
-{c.prettyLocation}
-Psst! Click To Enlarge QR Code
+ {user.firstName} +
++ @{user.hackerTag} +
++ {guild} +
++ {c.hackathonName}{" "} + + {c.itteration} + +
+{`${format( + c.startDate, + "h:mma, MMM d, yyyy", + )}`}
++ {c.prettyLocation} +
+Psst! Click To Enlarge QR Code
+- Bug with Scheduling was found. Fix Coming soon! -
-- Christian
-+ Bug with Scheduling was found. Fix Coming soon! +
+- Christian
+{c.hackathonName}
-
+
Team
-
- New Team
+
+ New Team
diff --git a/apps/web/src/app/dash/team/page.tsx b/apps/web/src/app/dash/team/page.tsx
index ffc13e25..302bca9e 100644
--- a/apps/web/src/app/dash/team/page.tsx
+++ b/apps/web/src/app/dash/team/page.tsx
@@ -40,17 +40,20 @@ export default async function Page() {
if (!user.teamID) {
return (
-
-
+
+
{c.hackathonName}
-
+
Team
-
-
+
+
You are not currently in a team.
-
+
How do Teams work?
@@ -63,16 +66,25 @@ export default async function Page() {
-
- Invitations
+
+
+ Invitations
+
{user.invites.length > 0 ? (
user.invites.map((invite) => (
-
-
- {invite.team.name}
- ~{invite.team.tag}
+
+
+
+ {invite.team.name}
+
+
+ ~{invite.team.tag}
+
-
+
View Team
@@ -91,11 +103,11 @@ export default async function Page() {
if (!user.team) return null;
const team = user.team;
return (
-
-
+
+
-
+
Team
@@ -107,9 +119,9 @@ export default async function Page() {
-
-
-
+
+
+
- {team.name}
- ~{team.tag}
- {team.bio}
-
+
+ {team.name}
+
+
+ ~{team.tag}
+
+ {team.bio}
+
- Est. {team.createdAt.toDateString().split(" ").slice(1).join(" ")}
+ Est.{" "}
+ {team.createdAt
+ .toDateString()
+ .split(" ")
+ .slice(1)
+ .join(" ")}
(
-
-
+
+
- {member.firstName} {member.lastName}
+ {member.firstName}{" "}
+ {member.lastName}
-
+
@{member.hackerTag}
diff --git a/apps/web/src/app/discord-verify/linked/page.tsx b/apps/web/src/app/discord-verify/linked/page.tsx
index 1d41de77..5c50965a 100644
--- a/apps/web/src/app/discord-verify/linked/page.tsx
+++ b/apps/web/src/app/discord-verify/linked/page.tsx
@@ -5,17 +5,19 @@ import { CheckCircleIcon } from "lucide-react";
export default function Page() {
return (
-
-
- Discord Verification
-
+
+
+
+ Discord Verification
+
+
Your Discord account is Linked!
-
- To unlink, go to your {c.hackathonName} account settings to unlink before linking a new
- one.
+
+ To unlink, go to your {c.hackathonName} account settings to
+ unlink before linking a new one.
Account Settings
diff --git a/apps/web/src/app/discord-verify/page.tsx b/apps/web/src/app/discord-verify/page.tsx
index 676b9c34..ff8e88c7 100644
--- a/apps/web/src/app/discord-verify/page.tsx
+++ b/apps/web/src/app/discord-verify/page.tsx
@@ -54,7 +54,10 @@ export default async function Page({
const verification = await db.query.discordVerification.findFirst({
where: and(
eq(discordVerification.code, passedCode),
- or(eq(discordVerification.status, "pending"), eq(discordVerification.status, "expired"))
+ or(
+ eq(discordVerification.status, "pending"),
+ eq(discordVerification.status, "expired"),
+ ),
),
});
@@ -71,10 +74,10 @@ export default async function Page({
.set({ status: "expired" })
.where(eq(discordVerification.code, passedCode));
return (
-
+
- This verification link has expired. Please click the verify button in discord again to
- generate a new one.
+ This verification link has expired. Please click the verify
+ button in discord again to generate a new one.
);
@@ -87,14 +90,14 @@ export default async function Page({
return (
<>
-
-
+
+
@@ -102,11 +105,11 @@ export default async function Page({
height={100}
width={100}
alt="Discord Profile Photo"
- className="rounded-full aspect-square max-w-[75px]"
+ className="aspect-square max-w-[75px] rounded-full"
src={c.icon.md}
/>
-
+
Link @{verification.discordName} to your
diff --git a/apps/web/src/app/globals.css b/apps/web/src/app/globals.css
index 2d8a8675..e9da860e 100644
--- a/apps/web/src/app/globals.css
+++ b/apps/web/src/app/globals.css
@@ -42,8 +42,6 @@
--gradient-color-2: #94a33d;
--gradient-color-3: #babc34;
--gradient-color-4: #b5bf63;
-
-
}
.dark {
--background: 240 10% 3.9%;
@@ -79,7 +77,6 @@
}
}
-
@layer base {
* {
@apply border-border;
@@ -88,14 +85,13 @@
@apply bg-background text-foreground;
}
}
-@layer utilities{
+@layer utilities {
.arrow_animate {
- animation: arrow 2s infinite;
- }
+ animation: arrow 2s infinite;
+ }
}
@keyframes arrow {
0% {
-
transform: translate(0px);
}
@@ -106,7 +102,6 @@
100% {
transform: translate(0px);
}
-
}
.no-select {
@@ -144,7 +139,6 @@
@keyframes arrow {
0% {
-
transform: translate(0px);
}
diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx
index 7276068c..bb38418d 100644
--- a/apps/web/src/app/layout.tsx
+++ b/apps/web/src/app/layout.tsx
@@ -4,7 +4,11 @@ import { cookies } from "next/headers";
import { Analytics } from "@vercel/analytics/react";
import { defaultTheme } from "config";
-export default function RootLayout({ children }: { children: React.ReactNode }) {
+export default function RootLayout({
+ children,
+}: {
+ children: React.ReactNode;
+}) {
const theme = cookies().get("hk_theme")?.value || defaultTheme;
return (
diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx
index 1ac1956d..d83a943a 100644
--- a/apps/web/src/app/page.tsx
+++ b/apps/web/src/app/page.tsx
@@ -18,7 +18,7 @@ const oswald = Oswald({
export default function Home() {
return (
-
+
diff --git a/apps/web/src/app/register/page.tsx b/apps/web/src/app/register/page.tsx
index e5ed350b..188ce88a 100644
--- a/apps/web/src/app/register/page.tsx
+++ b/apps/web/src/app/register/page.tsx
@@ -28,31 +28,40 @@ export default async function Page() {
return redirect("/dash");
}
- const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (string | null)[] =
- await kv.mget(
- "config:registration:registrationEnabled",
- "config:registration:secretRegistrationEnabled"
- );
+ const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (
+ | string
+ | null
+ )[] = await kv.mget(
+ "config:registration:registrationEnabled",
+ "config:registration:secretRegistrationEnabled",
+ );
if (parseRedisBoolean(defaultRegistrationEnabled, true) === true) {
return (
<>
-
- Register
+
+
+ Register
+
- Welcome Hacker! Please fill out the form below to
- complete your registration for {c.hackathonName}.
+ Welcome Hacker!{" "}
+ Please fill out the form below to complete your
+ registration for {c.hackathonName}.
-
+
Psttt... Running into a issue? Please let us know on{" "}
Discord
!
-
+
>
@@ -60,26 +69,28 @@ export default async function Page() {
}
return (
-
-
+
+
{c.hackathonName}
- {/* Why is this not a component? This same code is in here and insideo of sign-up */}
-
+ {/* Why is this not a component? This same code is in here and insideo of sign-up */}
+
Registration
-
- Registration Is Currently Closed
+
+
+ Registration Is Currently Closed
+
- If you believe this is a mistake or have any questions, feel free to reach out to us at{" "}
- {c.issueEmail}!
+ If you believe this is a mistake or have any questions, feel
+ free to reach out to us at {c.issueEmail}!
Return Home
-
+
Already registered?
-
+
Sign-in.
diff --git a/apps/web/src/app/rsvp/page.tsx b/apps/web/src/app/rsvp/page.tsx
index b5bf90ec..0bd5d2cd 100644
--- a/apps/web/src/app/rsvp/page.tsx
+++ b/apps/web/src/app/rsvp/page.tsx
@@ -41,16 +41,21 @@ export default async function RsvpPage({
// TODO: fix type jank here
if (
- parseRedisBoolean(rsvpEnabled as string | boolean | null | undefined, true) === true ||
+ parseRedisBoolean(
+ rsvpEnabled as string | boolean | null | undefined,
+ true,
+ ) === true ||
user.rsvp === true
) {
return (
<>
-
-
- {c.hackathonName}
-
+
+
+
+ {c.hackathonName}
+
+
RSVP
@@ -59,19 +64,20 @@ export default async function RsvpPage({
);
} else {
return (
-
-
+
+
{c.hackathonName}
-
+
RSVP
-
-
+
+
RSVPs Are Currently Closed
-
- We have currently reached capacity for RSVPs. However, we still encourage you to show up
- for walk-ins! If you have any questions or concerns, feel free to ask on{" "}
+
+ We have currently reached capacity for RSVPs. However,
+ we still encourage you to show up for walk-ins! If you
+ have any questions or concerns, feel free to ask on{" "}
Discord
{" "}
diff --git a/apps/web/src/app/schedule/[id]/page.tsx b/apps/web/src/app/schedule/[id]/page.tsx
index d40e6633..dc45b9c6 100644
--- a/apps/web/src/app/schedule/[id]/page.tsx
+++ b/apps/web/src/app/schedule/[id]/page.tsx
@@ -8,7 +8,10 @@ import Navbar from "@/components/shared/Navbar";
export default async function Page({ params }: { params: { id: string } }) {
if (!params || !params.id || isNaN(parseInt(params.id))) {
return (
-
+
);
}
@@ -20,7 +23,9 @@ export default async function Page({ params }: { params: { id: string } }) {
return (
);
}
diff --git a/apps/web/src/app/settings/account/page.tsx b/apps/web/src/app/settings/account/page.tsx
index 3602f6e0..c9cd28cf 100644
--- a/apps/web/src/app/settings/account/page.tsx
+++ b/apps/web/src/app/settings/account/page.tsx
@@ -6,13 +6,13 @@ import { db } from "db";
import { redirect } from "next/navigation";
export default async function Page() {
- const { userId } = auth();
- const user = await db.query.users.findFirst({
- with: { registrationData: true },
- where: eq(users.clerkID, userId!),
- });
- if (!user) return redirect("/sign-in");
- return ;
+ const { userId } = auth();
+ const user = await db.query.users.findFirst({
+ with: { registrationData: true },
+ where: eq(users.clerkID, userId!),
+ });
+ if (!user) return redirect("/sign-in");
+ return ;
}
export const runtime = "edge";
diff --git a/apps/web/src/app/settings/layout.tsx b/apps/web/src/app/settings/layout.tsx
index 248f704c..fbfb40d2 100644
--- a/apps/web/src/app/settings/layout.tsx
+++ b/apps/web/src/app/settings/layout.tsx
@@ -7,39 +7,39 @@ import { Settings } from "lucide-react";
import ClientToast from "@/components/shared/ClientToast";
export default async function ({ children }: { children: ReactNode }) {
- const { userId } = await auth();
- const user = await currentUser();
+ const { userId } = await auth();
+ const user = await currentUser();
- if (!user || !userId) {
- return redirect("/sign-in");
- }
+ if (!user || !userId) {
+ return redirect("/sign-in");
+ }
- if (!user.publicMetadata.registrationComplete) {
- return redirect("/register");
- }
+ if (!user.publicMetadata.registrationComplete) {
+ return redirect("/register");
+ }
- return (
- <>
-
-
-
-
-
-
-
-
- Settings
-
-
-
-
-
- {/* */}
-
-
-
- {children}
-
- >
- );
+ return (
+ <>
+
+
+
+
+
+
+
+
+ Settings
+
+
+
+
+
+ {/* */}
+
+
+
+ {children}
+
+ >
+ );
}
diff --git a/apps/web/src/app/settings/profile/page.tsx b/apps/web/src/app/settings/profile/page.tsx
index 3e243c50..6140f8bb 100644
--- a/apps/web/src/app/settings/profile/page.tsx
+++ b/apps/web/src/app/settings/profile/page.tsx
@@ -5,22 +5,22 @@ import { eq } from "db/drizzle";
import { auth } from "@clerk/nextjs";
export default async function Page() {
- const { userId } = auth();
- if (!userId) throw new Error("User not found");
- const user = await db.query.users.findFirst({
- where: eq(users.clerkID, userId),
- with: {
- profileData: true,
- registrationData: true,
- },
- });
- if (!user) throw new Error("User not found");
- return (
-
- );
+ const { userId } = auth();
+ if (!userId) throw new Error("User not found");
+ const user = await db.query.users.findFirst({
+ where: eq(users.clerkID, userId),
+ with: {
+ profileData: true,
+ registrationData: true,
+ },
+ });
+ if (!user) throw new Error("User not found");
+ return (
+
+ );
}
export const runtime = "edge";
diff --git a/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx b/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
index 7be35932..057a6407 100644
--- a/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
+++ b/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
@@ -6,40 +6,47 @@ import { Button } from "@/components/shadcn/ui/button";
import Link from "next/link";
export default async function Page() {
- const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (string | null)[] =
- await kv.mget(
- "config:registration:registrationEnabled",
- "config:registration:secretRegistrationEnabled"
- );
+ const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (
+ | string
+ | null
+ )[] = await kv.mget(
+ "config:registration:registrationEnabled",
+ "config:registration:secretRegistrationEnabled",
+ );
if (parseRedisBoolean(defaultRegistrationEnabled, true) === true) {
return (
-
+
);
}
return (
-
-
+
+
{c.hackathonName}
-
+
Registration
-
- Registration Is Currently Closed
+
+
+ Registration Is Currently Closed
+
- If you believe this is a mistake or have any questions, feel free to reach out to us at{" "}
- {c.issueEmail}!
+ If you believe this is a mistake or have any questions, feel
+ free to reach out to us at {c.issueEmail}!
Return Home
-
+
Already registered?{" "}
-
+
Sign-in.
diff --git a/apps/web/src/app/team/[tag]/page.tsx b/apps/web/src/app/team/[tag]/page.tsx
index 49ffd857..e1a0c5ab 100644
--- a/apps/web/src/app/team/[tag]/page.tsx
+++ b/apps/web/src/app/team/[tag]/page.tsx
@@ -25,9 +25,9 @@ export default async function Page({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
- {team.name}
- {team.bio && team.bio.length > 0 && {team.bio}
}
-
+ {team.name}
+ {team.bio && team.bio.length > 0 && (
+ {team.bio}
+ )}
+
{team.members.map((member) => (
-
+
-
+
{member.firstName} {member.lastName}
-
+
@{member.hackerTag}
diff --git a/apps/web/src/app/user/[tag]/page.tsx b/apps/web/src/app/user/[tag]/page.tsx
index dac2a9bd..db7a3dc7 100644
--- a/apps/web/src/app/user/[tag]/page.tsx
+++ b/apps/web/src/app/user/[tag]/page.tsx
@@ -22,11 +22,11 @@ export default async function ({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
-
+
-
+
{user.firstName} {user.lastName}
-
- @{user.hackerTag}
+
+
+ @{user.hackerTag}
+
- {user.registrationData.GitHub && user.registrationData.GitHub.length > 0 && (
-
-
- {user.registrationData.GitHub}
-
- )}
- {user.registrationData.LinkedIn && user.registrationData.LinkedIn.length > 0 && (
-
-
- {user.registrationData.LinkedIn}
-
- )}
+ {user.registrationData.GitHub &&
+ user.registrationData.GitHub.length > 0 && (
+
+
+ {user.registrationData.GitHub}
+
+ )}
+ {user.registrationData.LinkedIn &&
+ user.registrationData.LinkedIn.length > 0 && (
+
+
+ {user.registrationData.LinkedIn}
+
+ )}
{user.registrationData.PersonalWebsite &&
- user.registrationData.PersonalWebsite.length > 0 && (
+ user.registrationData.PersonalWebsite.length >
+ 0 && (
- {user.registrationData.PersonalWebsite.replace("https://", "").replace(
- "http://",
- ""
- )}
+ {user.registrationData.PersonalWebsite.replace(
+ "https://",
+ "",
+ ).replace("http://", "")}
)}
-
+
About
{user.profileData.bio}
- {user.profileData.skills && (user.profileData.skills as string[]).length > 0 ? (
+ {user.profileData.skills &&
+ (user.profileData.skills as string[]).length > 0 ? (
<>
- Skills
- {(user.profileData.skills as string[]).join(", ")}
+ Skills
+
+ {(user.profileData.skills as string[]).join(
+ ", ",
+ )}
+
>
) : null}
diff --git a/apps/web/src/components/admin/events/EventColumns.tsx b/apps/web/src/components/admin/events/EventColumns.tsx
index 863fe428..792da88f 100644
--- a/apps/web/src/components/admin/events/EventColumns.tsx
+++ b/apps/web/src/components/admin/events/EventColumns.tsx
@@ -39,7 +39,9 @@ export const columns: ColumnDef[] = [
variant={"outline"}
style={{
borderColor:
- (c.eventTypes as Record)[row.original.type] || c.eventTypes.Other,
+ (c.eventTypes as Record)[
+ row.original.type
+ ] || c.eventTypes.Other,
}}
>
{row.original.type}
diff --git a/apps/web/src/components/admin/events/EventDataTable.tsx b/apps/web/src/components/admin/events/EventDataTable.tsx
index 5981fae5..0af4a9dc 100644
--- a/apps/web/src/components/admin/events/EventDataTable.tsx
+++ b/apps/web/src/components/admin/events/EventDataTable.tsx
@@ -1,6 +1,11 @@
"use client";
-import { ColumnDef, flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-table";
+import {
+ ColumnDef,
+ flexRender,
+ getCoreRowModel,
+ useReactTable,
+} from "@tanstack/react-table";
import {
Table,
@@ -19,7 +24,10 @@ interface DataTableProps {
data: TData[];
}
-export function DataTable({ columns, data }: DataTableProps) {
+export function DataTable({
+ columns,
+ data,
+}: DataTableProps) {
const table = useReactTable({
data,
columns,
@@ -37,7 +45,11 @@ export function DataTable({ columns, data }: DataTableProps
{header.isPlaceholder
? null
- : flexRender(header.column.columnDef.header, header.getContext())}
+ : flexRender(
+ header.column.columnDef
+ .header,
+ header.getContext(),
+ )}
);
})}
@@ -47,17 +59,26 @@ export function DataTable({ columns, data }: DataTableProps
{table.getRowModel().rows?.length ? (
table.getRowModel().rows.map((row) => (
-
+
{row.getVisibleCells().map((cell) => (
- {flexRender(cell.column.columnDef.cell, cell.getContext())}
+ {flexRender(
+ cell.column.columnDef.cell,
+ cell.getContext(),
+ )}
))}
))
) : (
-
+
No results.
diff --git a/apps/web/src/components/admin/events/NewEventForm.tsx b/apps/web/src/components/admin/events/NewEventForm.tsx
index 5c64ded5..e20a7bed 100644
--- a/apps/web/src/components/admin/events/NewEventForm.tsx
+++ b/apps/web/src/components/admin/events/NewEventForm.tsx
@@ -39,7 +39,7 @@ interface NewEventFormProps {
const formSchema = newEventValidator.merge(
z.object({
type: z.enum(Object.keys(c.eventTypes) as any),
- })
+ }),
);
export default function NewEventForm({ defaultDate }: NewEventFormProps) {
@@ -71,7 +71,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
alert("Event Created Successfully! Redirecting to event page...");
router.push(res.data.redirect);
} else {
- alert("Failed to create event, please try again. Error:\n\n" + res.error);
+ alert(
+ "Failed to create event, please try again. Error:\n\n" +
+ res.error,
+ );
}
}
@@ -87,7 +90,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
- Generally its best to keep this short and consise
+
+ Generally its best to keep this short and
+ consise
+
)}
@@ -115,7 +121,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
render={({ field }) => (
Event Type
-
New Team
+New Team
{c.hackathonName}
-
+
Team
-
-
+
+
You are not currently in a team.
-
+
How do Teams work?
@@ -63,16 +66,25 @@ export default async function Page() {
-
- Invitations
+
+
+ Invitations
+
{user.invites.length > 0 ? (
user.invites.map((invite) => (
-
-
- {invite.team.name}
- ~{invite.team.tag}
+
+
+
+ {invite.team.name}
+
+
+ ~{invite.team.tag}
+
-
+
View Team
@@ -91,11 +103,11 @@ export default async function Page() {
if (!user.team) return null;
const team = user.team;
return (
-
-
+
+
-
+
Team
@@ -107,9 +119,9 @@ export default async function Page() {
-
-
-
+
+
+
- {team.name}
- ~{team.tag}
- {team.bio}
-
+
+ {team.name}
+
+
+ ~{team.tag}
+
+ {team.bio}
+
- Est. {team.createdAt.toDateString().split(" ").slice(1).join(" ")}
+ Est.{" "}
+ {team.createdAt
+ .toDateString()
+ .split(" ")
+ .slice(1)
+ .join(" ")}
(
-
-
+
+
- {member.firstName} {member.lastName}
+ {member.firstName}{" "}
+ {member.lastName}
-
+
@{member.hackerTag}
diff --git a/apps/web/src/app/discord-verify/linked/page.tsx b/apps/web/src/app/discord-verify/linked/page.tsx
index 1d41de77..5c50965a 100644
--- a/apps/web/src/app/discord-verify/linked/page.tsx
+++ b/apps/web/src/app/discord-verify/linked/page.tsx
@@ -5,17 +5,19 @@ import { CheckCircleIcon } from "lucide-react";
export default function Page() {
return (
-
-
- Discord Verification
-
+
+
+
+ Discord Verification
+
+
Your Discord account is Linked!
-
- To unlink, go to your {c.hackathonName} account settings to unlink before linking a new
- one.
+
+ To unlink, go to your {c.hackathonName} account settings to
+ unlink before linking a new one.
Account Settings
diff --git a/apps/web/src/app/discord-verify/page.tsx b/apps/web/src/app/discord-verify/page.tsx
index 676b9c34..ff8e88c7 100644
--- a/apps/web/src/app/discord-verify/page.tsx
+++ b/apps/web/src/app/discord-verify/page.tsx
@@ -54,7 +54,10 @@ export default async function Page({
const verification = await db.query.discordVerification.findFirst({
where: and(
eq(discordVerification.code, passedCode),
- or(eq(discordVerification.status, "pending"), eq(discordVerification.status, "expired"))
+ or(
+ eq(discordVerification.status, "pending"),
+ eq(discordVerification.status, "expired"),
+ ),
),
});
@@ -71,10 +74,10 @@ export default async function Page({
.set({ status: "expired" })
.where(eq(discordVerification.code, passedCode));
return (
-
+
- This verification link has expired. Please click the verify button in discord again to
- generate a new one.
+ This verification link has expired. Please click the verify
+ button in discord again to generate a new one.
);
@@ -87,14 +90,14 @@ export default async function Page({
return (
<>
-
-
+
+
@@ -102,11 +105,11 @@ export default async function Page({
height={100}
width={100}
alt="Discord Profile Photo"
- className="rounded-full aspect-square max-w-[75px]"
+ className="aspect-square max-w-[75px] rounded-full"
src={c.icon.md}
/>
-
+
Link @{verification.discordName} to your
diff --git a/apps/web/src/app/globals.css b/apps/web/src/app/globals.css
index 2d8a8675..e9da860e 100644
--- a/apps/web/src/app/globals.css
+++ b/apps/web/src/app/globals.css
@@ -42,8 +42,6 @@
--gradient-color-2: #94a33d;
--gradient-color-3: #babc34;
--gradient-color-4: #b5bf63;
-
-
}
.dark {
--background: 240 10% 3.9%;
@@ -79,7 +77,6 @@
}
}
-
@layer base {
* {
@apply border-border;
@@ -88,14 +85,13 @@
@apply bg-background text-foreground;
}
}
-@layer utilities{
+@layer utilities {
.arrow_animate {
- animation: arrow 2s infinite;
- }
+ animation: arrow 2s infinite;
+ }
}
@keyframes arrow {
0% {
-
transform: translate(0px);
}
@@ -106,7 +102,6 @@
100% {
transform: translate(0px);
}
-
}
.no-select {
@@ -144,7 +139,6 @@
@keyframes arrow {
0% {
-
transform: translate(0px);
}
diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx
index 7276068c..bb38418d 100644
--- a/apps/web/src/app/layout.tsx
+++ b/apps/web/src/app/layout.tsx
@@ -4,7 +4,11 @@ import { cookies } from "next/headers";
import { Analytics } from "@vercel/analytics/react";
import { defaultTheme } from "config";
-export default function RootLayout({ children }: { children: React.ReactNode }) {
+export default function RootLayout({
+ children,
+}: {
+ children: React.ReactNode;
+}) {
const theme = cookies().get("hk_theme")?.value || defaultTheme;
return (
diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx
index 1ac1956d..d83a943a 100644
--- a/apps/web/src/app/page.tsx
+++ b/apps/web/src/app/page.tsx
@@ -18,7 +18,7 @@ const oswald = Oswald({
export default function Home() {
return (
-
+
diff --git a/apps/web/src/app/register/page.tsx b/apps/web/src/app/register/page.tsx
index e5ed350b..188ce88a 100644
--- a/apps/web/src/app/register/page.tsx
+++ b/apps/web/src/app/register/page.tsx
@@ -28,31 +28,40 @@ export default async function Page() {
return redirect("/dash");
}
- const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (string | null)[] =
- await kv.mget(
- "config:registration:registrationEnabled",
- "config:registration:secretRegistrationEnabled"
- );
+ const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (
+ | string
+ | null
+ )[] = await kv.mget(
+ "config:registration:registrationEnabled",
+ "config:registration:secretRegistrationEnabled",
+ );
if (parseRedisBoolean(defaultRegistrationEnabled, true) === true) {
return (
<>
-
- Register
+
+
+ Register
+
- Welcome Hacker! Please fill out the form below to
- complete your registration for {c.hackathonName}.
+ Welcome Hacker!{" "}
+ Please fill out the form below to complete your
+ registration for {c.hackathonName}.
-
+
Psttt... Running into a issue? Please let us know on{" "}
Discord
!
-
+
>
@@ -60,26 +69,28 @@ export default async function Page() {
}
return (
-
-
+
+
{c.hackathonName}
- {/* Why is this not a component? This same code is in here and insideo of sign-up */}
-
+ {/* Why is this not a component? This same code is in here and insideo of sign-up */}
+
Registration
-
- Registration Is Currently Closed
+
+
+ Registration Is Currently Closed
+
- If you believe this is a mistake or have any questions, feel free to reach out to us at{" "}
- {c.issueEmail}!
+ If you believe this is a mistake or have any questions, feel
+ free to reach out to us at {c.issueEmail}!
Return Home
-
+
Already registered?
-
+
Sign-in.
diff --git a/apps/web/src/app/rsvp/page.tsx b/apps/web/src/app/rsvp/page.tsx
index b5bf90ec..0bd5d2cd 100644
--- a/apps/web/src/app/rsvp/page.tsx
+++ b/apps/web/src/app/rsvp/page.tsx
@@ -41,16 +41,21 @@ export default async function RsvpPage({
// TODO: fix type jank here
if (
- parseRedisBoolean(rsvpEnabled as string | boolean | null | undefined, true) === true ||
+ parseRedisBoolean(
+ rsvpEnabled as string | boolean | null | undefined,
+ true,
+ ) === true ||
user.rsvp === true
) {
return (
<>
-
-
- {c.hackathonName}
-
+
+
+
+ {c.hackathonName}
+
+
RSVP
@@ -59,19 +64,20 @@ export default async function RsvpPage({
);
} else {
return (
-
-
+
+
{c.hackathonName}
-
+
RSVP
-
-
+
+
RSVPs Are Currently Closed
-
- We have currently reached capacity for RSVPs. However, we still encourage you to show up
- for walk-ins! If you have any questions or concerns, feel free to ask on{" "}
+
+ We have currently reached capacity for RSVPs. However,
+ we still encourage you to show up for walk-ins! If you
+ have any questions or concerns, feel free to ask on{" "}
Discord
{" "}
diff --git a/apps/web/src/app/schedule/[id]/page.tsx b/apps/web/src/app/schedule/[id]/page.tsx
index d40e6633..dc45b9c6 100644
--- a/apps/web/src/app/schedule/[id]/page.tsx
+++ b/apps/web/src/app/schedule/[id]/page.tsx
@@ -8,7 +8,10 @@ import Navbar from "@/components/shared/Navbar";
export default async function Page({ params }: { params: { id: string } }) {
if (!params || !params.id || isNaN(parseInt(params.id))) {
return (
-
+
);
}
@@ -20,7 +23,9 @@ export default async function Page({ params }: { params: { id: string } }) {
return (
);
}
diff --git a/apps/web/src/app/settings/account/page.tsx b/apps/web/src/app/settings/account/page.tsx
index 3602f6e0..c9cd28cf 100644
--- a/apps/web/src/app/settings/account/page.tsx
+++ b/apps/web/src/app/settings/account/page.tsx
@@ -6,13 +6,13 @@ import { db } from "db";
import { redirect } from "next/navigation";
export default async function Page() {
- const { userId } = auth();
- const user = await db.query.users.findFirst({
- with: { registrationData: true },
- where: eq(users.clerkID, userId!),
- });
- if (!user) return redirect("/sign-in");
- return ;
+ const { userId } = auth();
+ const user = await db.query.users.findFirst({
+ with: { registrationData: true },
+ where: eq(users.clerkID, userId!),
+ });
+ if (!user) return redirect("/sign-in");
+ return ;
}
export const runtime = "edge";
diff --git a/apps/web/src/app/settings/layout.tsx b/apps/web/src/app/settings/layout.tsx
index 248f704c..fbfb40d2 100644
--- a/apps/web/src/app/settings/layout.tsx
+++ b/apps/web/src/app/settings/layout.tsx
@@ -7,39 +7,39 @@ import { Settings } from "lucide-react";
import ClientToast from "@/components/shared/ClientToast";
export default async function ({ children }: { children: ReactNode }) {
- const { userId } = await auth();
- const user = await currentUser();
+ const { userId } = await auth();
+ const user = await currentUser();
- if (!user || !userId) {
- return redirect("/sign-in");
- }
+ if (!user || !userId) {
+ return redirect("/sign-in");
+ }
- if (!user.publicMetadata.registrationComplete) {
- return redirect("/register");
- }
+ if (!user.publicMetadata.registrationComplete) {
+ return redirect("/register");
+ }
- return (
- <>
-
-
-
-
-
-
-
-
- Settings
-
-
-
-
-
- {/* */}
-
-
-
- {children}
-
- >
- );
+ return (
+ <>
+
+
+
+
+
+
+
+
+ Settings
+
+
+
+
+
+ {/* */}
+
+
+
+ {children}
+
+ >
+ );
}
diff --git a/apps/web/src/app/settings/profile/page.tsx b/apps/web/src/app/settings/profile/page.tsx
index 3e243c50..6140f8bb 100644
--- a/apps/web/src/app/settings/profile/page.tsx
+++ b/apps/web/src/app/settings/profile/page.tsx
@@ -5,22 +5,22 @@ import { eq } from "db/drizzle";
import { auth } from "@clerk/nextjs";
export default async function Page() {
- const { userId } = auth();
- if (!userId) throw new Error("User not found");
- const user = await db.query.users.findFirst({
- where: eq(users.clerkID, userId),
- with: {
- profileData: true,
- registrationData: true,
- },
- });
- if (!user) throw new Error("User not found");
- return (
-
- );
+ const { userId } = auth();
+ if (!userId) throw new Error("User not found");
+ const user = await db.query.users.findFirst({
+ where: eq(users.clerkID, userId),
+ with: {
+ profileData: true,
+ registrationData: true,
+ },
+ });
+ if (!user) throw new Error("User not found");
+ return (
+
+ );
}
export const runtime = "edge";
diff --git a/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx b/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
index 7be35932..057a6407 100644
--- a/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
+++ b/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
@@ -6,40 +6,47 @@ import { Button } from "@/components/shadcn/ui/button";
import Link from "next/link";
export default async function Page() {
- const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (string | null)[] =
- await kv.mget(
- "config:registration:registrationEnabled",
- "config:registration:secretRegistrationEnabled"
- );
+ const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (
+ | string
+ | null
+ )[] = await kv.mget(
+ "config:registration:registrationEnabled",
+ "config:registration:secretRegistrationEnabled",
+ );
if (parseRedisBoolean(defaultRegistrationEnabled, true) === true) {
return (
-
+
);
}
return (
-
-
+
+
{c.hackathonName}
-
+
Registration
-
- Registration Is Currently Closed
+
+
+ Registration Is Currently Closed
+
- If you believe this is a mistake or have any questions, feel free to reach out to us at{" "}
- {c.issueEmail}!
+ If you believe this is a mistake or have any questions, feel
+ free to reach out to us at {c.issueEmail}!
Return Home
-
+
Already registered?{" "}
-
+
Sign-in.
diff --git a/apps/web/src/app/team/[tag]/page.tsx b/apps/web/src/app/team/[tag]/page.tsx
index 49ffd857..e1a0c5ab 100644
--- a/apps/web/src/app/team/[tag]/page.tsx
+++ b/apps/web/src/app/team/[tag]/page.tsx
@@ -25,9 +25,9 @@ export default async function Page({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
- {team.name}
- {team.bio && team.bio.length > 0 && {team.bio}
}
-
+ {team.name}
+ {team.bio && team.bio.length > 0 && (
+ {team.bio}
+ )}
+
{team.members.map((member) => (
-
+
-
+
{member.firstName} {member.lastName}
-
+
@{member.hackerTag}
diff --git a/apps/web/src/app/user/[tag]/page.tsx b/apps/web/src/app/user/[tag]/page.tsx
index dac2a9bd..db7a3dc7 100644
--- a/apps/web/src/app/user/[tag]/page.tsx
+++ b/apps/web/src/app/user/[tag]/page.tsx
@@ -22,11 +22,11 @@ export default async function ({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
-
+
-
+
{user.firstName} {user.lastName}
-
- @{user.hackerTag}
+
+
+ @{user.hackerTag}
+
- {user.registrationData.GitHub && user.registrationData.GitHub.length > 0 && (
-
-
- {user.registrationData.GitHub}
-
- )}
- {user.registrationData.LinkedIn && user.registrationData.LinkedIn.length > 0 && (
-
-
- {user.registrationData.LinkedIn}
-
- )}
+ {user.registrationData.GitHub &&
+ user.registrationData.GitHub.length > 0 && (
+
+
+ {user.registrationData.GitHub}
+
+ )}
+ {user.registrationData.LinkedIn &&
+ user.registrationData.LinkedIn.length > 0 && (
+
+
+ {user.registrationData.LinkedIn}
+
+ )}
{user.registrationData.PersonalWebsite &&
- user.registrationData.PersonalWebsite.length > 0 && (
+ user.registrationData.PersonalWebsite.length >
+ 0 && (
- {user.registrationData.PersonalWebsite.replace("https://", "").replace(
- "http://",
- ""
- )}
+ {user.registrationData.PersonalWebsite.replace(
+ "https://",
+ "",
+ ).replace("http://", "")}
)}
-
+
About
{user.profileData.bio}
- {user.profileData.skills && (user.profileData.skills as string[]).length > 0 ? (
+ {user.profileData.skills &&
+ (user.profileData.skills as string[]).length > 0 ? (
<>
- Skills
- {(user.profileData.skills as string[]).join(", ")}
+ Skills
+
+ {(user.profileData.skills as string[]).join(
+ ", ",
+ )}
+
>
) : null}
diff --git a/apps/web/src/components/admin/events/EventColumns.tsx b/apps/web/src/components/admin/events/EventColumns.tsx
index 863fe428..792da88f 100644
--- a/apps/web/src/components/admin/events/EventColumns.tsx
+++ b/apps/web/src/components/admin/events/EventColumns.tsx
@@ -39,7 +39,9 @@ export const columns: ColumnDef[] = [
variant={"outline"}
style={{
borderColor:
- (c.eventTypes as Record)[row.original.type] || c.eventTypes.Other,
+ (c.eventTypes as Record)[
+ row.original.type
+ ] || c.eventTypes.Other,
}}
>
{row.original.type}
diff --git a/apps/web/src/components/admin/events/EventDataTable.tsx b/apps/web/src/components/admin/events/EventDataTable.tsx
index 5981fae5..0af4a9dc 100644
--- a/apps/web/src/components/admin/events/EventDataTable.tsx
+++ b/apps/web/src/components/admin/events/EventDataTable.tsx
@@ -1,6 +1,11 @@
"use client";
-import { ColumnDef, flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-table";
+import {
+ ColumnDef,
+ flexRender,
+ getCoreRowModel,
+ useReactTable,
+} from "@tanstack/react-table";
import {
Table,
@@ -19,7 +24,10 @@ interface DataTableProps {
data: TData[];
}
-export function DataTable({ columns, data }: DataTableProps) {
+export function DataTable({
+ columns,
+ data,
+}: DataTableProps) {
const table = useReactTable({
data,
columns,
@@ -37,7 +45,11 @@ export function DataTable({ columns, data }: DataTableProps
{header.isPlaceholder
? null
- : flexRender(header.column.columnDef.header, header.getContext())}
+ : flexRender(
+ header.column.columnDef
+ .header,
+ header.getContext(),
+ )}
);
})}
@@ -47,17 +59,26 @@ export function DataTable({ columns, data }: DataTableProps
{table.getRowModel().rows?.length ? (
table.getRowModel().rows.map((row) => (
-
+
{row.getVisibleCells().map((cell) => (
- {flexRender(cell.column.columnDef.cell, cell.getContext())}
+ {flexRender(
+ cell.column.columnDef.cell,
+ cell.getContext(),
+ )}
))}
))
) : (
-
+
No results.
diff --git a/apps/web/src/components/admin/events/NewEventForm.tsx b/apps/web/src/components/admin/events/NewEventForm.tsx
index 5c64ded5..e20a7bed 100644
--- a/apps/web/src/components/admin/events/NewEventForm.tsx
+++ b/apps/web/src/components/admin/events/NewEventForm.tsx
@@ -39,7 +39,7 @@ interface NewEventFormProps {
const formSchema = newEventValidator.merge(
z.object({
type: z.enum(Object.keys(c.eventTypes) as any),
- })
+ }),
);
export default function NewEventForm({ defaultDate }: NewEventFormProps) {
@@ -71,7 +71,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
alert("Event Created Successfully! Redirecting to event page...");
router.push(res.data.redirect);
} else {
- alert("Failed to create event, please try again. Error:\n\n" + res.error);
+ alert(
+ "Failed to create event, please try again. Error:\n\n" +
+ res.error,
+ );
}
}
@@ -87,7 +90,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
- Generally its best to keep this short and consise
+
+ Generally its best to keep this short and
+ consise
+
)}
@@ -115,7 +121,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
render={({ field }) => (
Event Type
-
You are not currently in a team.
- + How do Teams work?Invitations
++ Invitations +
{user.invites.length > 0 ? ( user.invites.map((invite) => ( -{invite.team.name}
-~{invite.team.tag}
++ {invite.team.name} +
++ ~{invite.team.tag} +
+
Team
@@ -107,9 +119,9 @@ export default async function Page() {
{team.name}
-~{team.tag}
-{team.bio}
-+ {team.name} +
++ ~{team.tag} +
+{team.bio}
+- {member.firstName} {member.lastName} + {member.firstName}{" "} + {member.lastName}
-
+
@{member.hackerTag}
Discord Verification
-
+
+
+
+ Discord Verification
+
+
Your Discord account is Linked!
-
- To unlink, go to your {c.hackathonName} account settings to unlink before linking a new
- one.
+
+ To unlink, go to your {c.hackathonName} account settings to
+ unlink before linking a new one.
Account Settings
diff --git a/apps/web/src/app/discord-verify/page.tsx b/apps/web/src/app/discord-verify/page.tsx
index 676b9c34..ff8e88c7 100644
--- a/apps/web/src/app/discord-verify/page.tsx
+++ b/apps/web/src/app/discord-verify/page.tsx
@@ -54,7 +54,10 @@ export default async function Page({
const verification = await db.query.discordVerification.findFirst({
where: and(
eq(discordVerification.code, passedCode),
- or(eq(discordVerification.status, "pending"), eq(discordVerification.status, "expired"))
+ or(
+ eq(discordVerification.status, "pending"),
+ eq(discordVerification.status, "expired"),
+ ),
),
});
@@ -71,10 +74,10 @@ export default async function Page({
.set({ status: "expired" })
.where(eq(discordVerification.code, passedCode));
return (
-
+
- This verification link has expired. Please click the verify button in discord again to
- generate a new one.
+ This verification link has expired. Please click the verify
+ button in discord again to generate a new one.
);
@@ -87,14 +90,14 @@ export default async function Page({
return (
<>
-
-
+
+
@@ -102,11 +105,11 @@ export default async function Page({
height={100}
width={100}
alt="Discord Profile Photo"
- className="rounded-full aspect-square max-w-[75px]"
+ className="aspect-square max-w-[75px] rounded-full"
src={c.icon.md}
/>
-
+
Link @{verification.discordName} to your
diff --git a/apps/web/src/app/globals.css b/apps/web/src/app/globals.css
index 2d8a8675..e9da860e 100644
--- a/apps/web/src/app/globals.css
+++ b/apps/web/src/app/globals.css
@@ -42,8 +42,6 @@
--gradient-color-2: #94a33d;
--gradient-color-3: #babc34;
--gradient-color-4: #b5bf63;
-
-
}
.dark {
--background: 240 10% 3.9%;
@@ -79,7 +77,6 @@
}
}
-
@layer base {
* {
@apply border-border;
@@ -88,14 +85,13 @@
@apply bg-background text-foreground;
}
}
-@layer utilities{
+@layer utilities {
.arrow_animate {
- animation: arrow 2s infinite;
- }
+ animation: arrow 2s infinite;
+ }
}
@keyframes arrow {
0% {
-
transform: translate(0px);
}
@@ -106,7 +102,6 @@
100% {
transform: translate(0px);
}
-
}
.no-select {
@@ -144,7 +139,6 @@
@keyframes arrow {
0% {
-
transform: translate(0px);
}
diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx
index 7276068c..bb38418d 100644
--- a/apps/web/src/app/layout.tsx
+++ b/apps/web/src/app/layout.tsx
@@ -4,7 +4,11 @@ import { cookies } from "next/headers";
import { Analytics } from "@vercel/analytics/react";
import { defaultTheme } from "config";
-export default function RootLayout({ children }: { children: React.ReactNode }) {
+export default function RootLayout({
+ children,
+}: {
+ children: React.ReactNode;
+}) {
const theme = cookies().get("hk_theme")?.value || defaultTheme;
return (
diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx
index 1ac1956d..d83a943a 100644
--- a/apps/web/src/app/page.tsx
+++ b/apps/web/src/app/page.tsx
@@ -18,7 +18,7 @@ const oswald = Oswald({
export default function Home() {
return (
-
+
diff --git a/apps/web/src/app/register/page.tsx b/apps/web/src/app/register/page.tsx
index e5ed350b..188ce88a 100644
--- a/apps/web/src/app/register/page.tsx
+++ b/apps/web/src/app/register/page.tsx
@@ -28,31 +28,40 @@ export default async function Page() {
return redirect("/dash");
}
- const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (string | null)[] =
- await kv.mget(
- "config:registration:registrationEnabled",
- "config:registration:secretRegistrationEnabled"
- );
+ const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (
+ | string
+ | null
+ )[] = await kv.mget(
+ "config:registration:registrationEnabled",
+ "config:registration:secretRegistrationEnabled",
+ );
if (parseRedisBoolean(defaultRegistrationEnabled, true) === true) {
return (
<>
-
- Register
+
+
+ Register
+
- Welcome Hacker! Please fill out the form below to
- complete your registration for {c.hackathonName}.
+ Welcome Hacker!{" "}
+ Please fill out the form below to complete your
+ registration for {c.hackathonName}.
-
+
Psttt... Running into a issue? Please let us know on{" "}
Discord
!
-
+
>
@@ -60,26 +69,28 @@ export default async function Page() {
}
return (
-
-
+
+
{c.hackathonName}
- {/* Why is this not a component? This same code is in here and insideo of sign-up */}
-
+ {/* Why is this not a component? This same code is in here and insideo of sign-up */}
+
Registration
-
- Registration Is Currently Closed
+
+
+ Registration Is Currently Closed
+
- If you believe this is a mistake or have any questions, feel free to reach out to us at{" "}
- {c.issueEmail}!
+ If you believe this is a mistake or have any questions, feel
+ free to reach out to us at {c.issueEmail}!
Return Home
-
+
Already registered?
-
+
Sign-in.
diff --git a/apps/web/src/app/rsvp/page.tsx b/apps/web/src/app/rsvp/page.tsx
index b5bf90ec..0bd5d2cd 100644
--- a/apps/web/src/app/rsvp/page.tsx
+++ b/apps/web/src/app/rsvp/page.tsx
@@ -41,16 +41,21 @@ export default async function RsvpPage({
// TODO: fix type jank here
if (
- parseRedisBoolean(rsvpEnabled as string | boolean | null | undefined, true) === true ||
+ parseRedisBoolean(
+ rsvpEnabled as string | boolean | null | undefined,
+ true,
+ ) === true ||
user.rsvp === true
) {
return (
<>
-
-
- {c.hackathonName}
-
+
+
+
+ {c.hackathonName}
+
+
RSVP
@@ -59,19 +64,20 @@ export default async function RsvpPage({
);
} else {
return (
-
-
+
+
{c.hackathonName}
-
+
RSVP
-
-
+
+
RSVPs Are Currently Closed
-
- We have currently reached capacity for RSVPs. However, we still encourage you to show up
- for walk-ins! If you have any questions or concerns, feel free to ask on{" "}
+
+ We have currently reached capacity for RSVPs. However,
+ we still encourage you to show up for walk-ins! If you
+ have any questions or concerns, feel free to ask on{" "}
Discord
{" "}
diff --git a/apps/web/src/app/schedule/[id]/page.tsx b/apps/web/src/app/schedule/[id]/page.tsx
index d40e6633..dc45b9c6 100644
--- a/apps/web/src/app/schedule/[id]/page.tsx
+++ b/apps/web/src/app/schedule/[id]/page.tsx
@@ -8,7 +8,10 @@ import Navbar from "@/components/shared/Navbar";
export default async function Page({ params }: { params: { id: string } }) {
if (!params || !params.id || isNaN(parseInt(params.id))) {
return (
-
+
);
}
@@ -20,7 +23,9 @@ export default async function Page({ params }: { params: { id: string } }) {
return (
);
}
diff --git a/apps/web/src/app/settings/account/page.tsx b/apps/web/src/app/settings/account/page.tsx
index 3602f6e0..c9cd28cf 100644
--- a/apps/web/src/app/settings/account/page.tsx
+++ b/apps/web/src/app/settings/account/page.tsx
@@ -6,13 +6,13 @@ import { db } from "db";
import { redirect } from "next/navigation";
export default async function Page() {
- const { userId } = auth();
- const user = await db.query.users.findFirst({
- with: { registrationData: true },
- where: eq(users.clerkID, userId!),
- });
- if (!user) return redirect("/sign-in");
- return ;
+ const { userId } = auth();
+ const user = await db.query.users.findFirst({
+ with: { registrationData: true },
+ where: eq(users.clerkID, userId!),
+ });
+ if (!user) return redirect("/sign-in");
+ return ;
}
export const runtime = "edge";
diff --git a/apps/web/src/app/settings/layout.tsx b/apps/web/src/app/settings/layout.tsx
index 248f704c..fbfb40d2 100644
--- a/apps/web/src/app/settings/layout.tsx
+++ b/apps/web/src/app/settings/layout.tsx
@@ -7,39 +7,39 @@ import { Settings } from "lucide-react";
import ClientToast from "@/components/shared/ClientToast";
export default async function ({ children }: { children: ReactNode }) {
- const { userId } = await auth();
- const user = await currentUser();
+ const { userId } = await auth();
+ const user = await currentUser();
- if (!user || !userId) {
- return redirect("/sign-in");
- }
+ if (!user || !userId) {
+ return redirect("/sign-in");
+ }
- if (!user.publicMetadata.registrationComplete) {
- return redirect("/register");
- }
+ if (!user.publicMetadata.registrationComplete) {
+ return redirect("/register");
+ }
- return (
- <>
-
-
-
-
-
-
-
-
- Settings
-
-
-
-
-
- {/* */}
-
-
-
- {children}
-
- >
- );
+ return (
+ <>
+
+
+
+
+
+
+
+
+ Settings
+
+
+
+
+
+ {/* */}
+
+
+
+ {children}
+
+ >
+ );
}
diff --git a/apps/web/src/app/settings/profile/page.tsx b/apps/web/src/app/settings/profile/page.tsx
index 3e243c50..6140f8bb 100644
--- a/apps/web/src/app/settings/profile/page.tsx
+++ b/apps/web/src/app/settings/profile/page.tsx
@@ -5,22 +5,22 @@ import { eq } from "db/drizzle";
import { auth } from "@clerk/nextjs";
export default async function Page() {
- const { userId } = auth();
- if (!userId) throw new Error("User not found");
- const user = await db.query.users.findFirst({
- where: eq(users.clerkID, userId),
- with: {
- profileData: true,
- registrationData: true,
- },
- });
- if (!user) throw new Error("User not found");
- return (
-
- );
+ const { userId } = auth();
+ if (!userId) throw new Error("User not found");
+ const user = await db.query.users.findFirst({
+ where: eq(users.clerkID, userId),
+ with: {
+ profileData: true,
+ registrationData: true,
+ },
+ });
+ if (!user) throw new Error("User not found");
+ return (
+
+ );
}
export const runtime = "edge";
diff --git a/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx b/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
index 7be35932..057a6407 100644
--- a/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
+++ b/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
@@ -6,40 +6,47 @@ import { Button } from "@/components/shadcn/ui/button";
import Link from "next/link";
export default async function Page() {
- const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (string | null)[] =
- await kv.mget(
- "config:registration:registrationEnabled",
- "config:registration:secretRegistrationEnabled"
- );
+ const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (
+ | string
+ | null
+ )[] = await kv.mget(
+ "config:registration:registrationEnabled",
+ "config:registration:secretRegistrationEnabled",
+ );
if (parseRedisBoolean(defaultRegistrationEnabled, true) === true) {
return (
-
+
);
}
return (
-
-
+
+
{c.hackathonName}
-
+
Registration
-
- Registration Is Currently Closed
+
+
+ Registration Is Currently Closed
+
- If you believe this is a mistake or have any questions, feel free to reach out to us at{" "}
- {c.issueEmail}!
+ If you believe this is a mistake or have any questions, feel
+ free to reach out to us at {c.issueEmail}!
Return Home
-
+
Already registered?{" "}
-
+
Sign-in.
diff --git a/apps/web/src/app/team/[tag]/page.tsx b/apps/web/src/app/team/[tag]/page.tsx
index 49ffd857..e1a0c5ab 100644
--- a/apps/web/src/app/team/[tag]/page.tsx
+++ b/apps/web/src/app/team/[tag]/page.tsx
@@ -25,9 +25,9 @@ export default async function Page({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
- {team.name}
- {team.bio && team.bio.length > 0 && {team.bio}
}
-
+ {team.name}
+ {team.bio && team.bio.length > 0 && (
+ {team.bio}
+ )}
+
{team.members.map((member) => (
-
+
-
+
{member.firstName} {member.lastName}
-
+
@{member.hackerTag}
diff --git a/apps/web/src/app/user/[tag]/page.tsx b/apps/web/src/app/user/[tag]/page.tsx
index dac2a9bd..db7a3dc7 100644
--- a/apps/web/src/app/user/[tag]/page.tsx
+++ b/apps/web/src/app/user/[tag]/page.tsx
@@ -22,11 +22,11 @@ export default async function ({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
-
+
-
+
{user.firstName} {user.lastName}
-
- @{user.hackerTag}
+
+
+ @{user.hackerTag}
+
- {user.registrationData.GitHub && user.registrationData.GitHub.length > 0 && (
-
-
- {user.registrationData.GitHub}
-
- )}
- {user.registrationData.LinkedIn && user.registrationData.LinkedIn.length > 0 && (
-
-
- {user.registrationData.LinkedIn}
-
- )}
+ {user.registrationData.GitHub &&
+ user.registrationData.GitHub.length > 0 && (
+
+
+ {user.registrationData.GitHub}
+
+ )}
+ {user.registrationData.LinkedIn &&
+ user.registrationData.LinkedIn.length > 0 && (
+
+
+ {user.registrationData.LinkedIn}
+
+ )}
{user.registrationData.PersonalWebsite &&
- user.registrationData.PersonalWebsite.length > 0 && (
+ user.registrationData.PersonalWebsite.length >
+ 0 && (
- {user.registrationData.PersonalWebsite.replace("https://", "").replace(
- "http://",
- ""
- )}
+ {user.registrationData.PersonalWebsite.replace(
+ "https://",
+ "",
+ ).replace("http://", "")}
)}
-
+
About
{user.profileData.bio}
- {user.profileData.skills && (user.profileData.skills as string[]).length > 0 ? (
+ {user.profileData.skills &&
+ (user.profileData.skills as string[]).length > 0 ? (
<>
- Skills
- {(user.profileData.skills as string[]).join(", ")}
+ Skills
+
+ {(user.profileData.skills as string[]).join(
+ ", ",
+ )}
+
>
) : null}
diff --git a/apps/web/src/components/admin/events/EventColumns.tsx b/apps/web/src/components/admin/events/EventColumns.tsx
index 863fe428..792da88f 100644
--- a/apps/web/src/components/admin/events/EventColumns.tsx
+++ b/apps/web/src/components/admin/events/EventColumns.tsx
@@ -39,7 +39,9 @@ export const columns: ColumnDef[] = [
variant={"outline"}
style={{
borderColor:
- (c.eventTypes as Record)[row.original.type] || c.eventTypes.Other,
+ (c.eventTypes as Record)[
+ row.original.type
+ ] || c.eventTypes.Other,
}}
>
{row.original.type}
diff --git a/apps/web/src/components/admin/events/EventDataTable.tsx b/apps/web/src/components/admin/events/EventDataTable.tsx
index 5981fae5..0af4a9dc 100644
--- a/apps/web/src/components/admin/events/EventDataTable.tsx
+++ b/apps/web/src/components/admin/events/EventDataTable.tsx
@@ -1,6 +1,11 @@
"use client";
-import { ColumnDef, flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-table";
+import {
+ ColumnDef,
+ flexRender,
+ getCoreRowModel,
+ useReactTable,
+} from "@tanstack/react-table";
import {
Table,
@@ -19,7 +24,10 @@ interface DataTableProps {
data: TData[];
}
-export function DataTable({ columns, data }: DataTableProps) {
+export function DataTable({
+ columns,
+ data,
+}: DataTableProps) {
const table = useReactTable({
data,
columns,
@@ -37,7 +45,11 @@ export function DataTable({ columns, data }: DataTableProps
{header.isPlaceholder
? null
- : flexRender(header.column.columnDef.header, header.getContext())}
+ : flexRender(
+ header.column.columnDef
+ .header,
+ header.getContext(),
+ )}
);
})}
@@ -47,17 +59,26 @@ export function DataTable({ columns, data }: DataTableProps
{table.getRowModel().rows?.length ? (
table.getRowModel().rows.map((row) => (
-
+
{row.getVisibleCells().map((cell) => (
- {flexRender(cell.column.columnDef.cell, cell.getContext())}
+ {flexRender(
+ cell.column.columnDef.cell,
+ cell.getContext(),
+ )}
))}
))
) : (
-
+
No results.
diff --git a/apps/web/src/components/admin/events/NewEventForm.tsx b/apps/web/src/components/admin/events/NewEventForm.tsx
index 5c64ded5..e20a7bed 100644
--- a/apps/web/src/components/admin/events/NewEventForm.tsx
+++ b/apps/web/src/components/admin/events/NewEventForm.tsx
@@ -39,7 +39,7 @@ interface NewEventFormProps {
const formSchema = newEventValidator.merge(
z.object({
type: z.enum(Object.keys(c.eventTypes) as any),
- })
+ }),
);
export default function NewEventForm({ defaultDate }: NewEventFormProps) {
@@ -71,7 +71,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
alert("Event Created Successfully! Redirecting to event page...");
router.push(res.data.redirect);
} else {
- alert("Failed to create event, please try again. Error:\n\n" + res.error);
+ alert(
+ "Failed to create event, please try again. Error:\n\n" +
+ res.error,
+ );
}
}
@@ -87,7 +90,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
- Generally its best to keep this short and consise
+
+ Generally its best to keep this short and
+ consise
+
)}
@@ -115,7 +121,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
render={({ field }) => (
Event Type
-
+ Discord Verification +
+
Your Discord account is Linked!
-
- To unlink, go to your {c.hackathonName} account settings to unlink before linking a new - one. +
+ To unlink, go to your {c.hackathonName} account settings to + unlink before linking a new one.
- This verification link has expired. Please click the verify button in discord again to - generate a new one. + This verification link has expired. Please click the verify + button in discord again to generate a new one.
+
Link @{verification.discordName} to your
diff --git a/apps/web/src/app/globals.css b/apps/web/src/app/globals.css
index 2d8a8675..e9da860e 100644
--- a/apps/web/src/app/globals.css
+++ b/apps/web/src/app/globals.css
@@ -42,8 +42,6 @@
--gradient-color-2: #94a33d;
--gradient-color-3: #babc34;
--gradient-color-4: #b5bf63;
-
-
}
.dark {
--background: 240 10% 3.9%;
@@ -79,7 +77,6 @@
}
}
-
@layer base {
* {
@apply border-border;
@@ -88,14 +85,13 @@
@apply bg-background text-foreground;
}
}
-@layer utilities{
+@layer utilities {
.arrow_animate {
- animation: arrow 2s infinite;
- }
+ animation: arrow 2s infinite;
+ }
}
@keyframes arrow {
0% {
-
transform: translate(0px);
}
@@ -106,7 +102,6 @@
100% {
transform: translate(0px);
}
-
}
.no-select {
@@ -144,7 +139,6 @@
@keyframes arrow {
0% {
-
transform: translate(0px);
}
diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx
index 7276068c..bb38418d 100644
--- a/apps/web/src/app/layout.tsx
+++ b/apps/web/src/app/layout.tsx
@@ -4,7 +4,11 @@ import { cookies } from "next/headers";
import { Analytics } from "@vercel/analytics/react";
import { defaultTheme } from "config";
-export default function RootLayout({ children }: { children: React.ReactNode }) {
+export default function RootLayout({
+ children,
+}: {
+ children: React.ReactNode;
+}) {
const theme = cookies().get("hk_theme")?.value || defaultTheme;
return (
diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx
index 1ac1956d..d83a943a 100644
--- a/apps/web/src/app/page.tsx
+++ b/apps/web/src/app/page.tsx
@@ -18,7 +18,7 @@ const oswald = Oswald({
export default function Home() {
return (
-
+
diff --git a/apps/web/src/app/register/page.tsx b/apps/web/src/app/register/page.tsx
index e5ed350b..188ce88a 100644
--- a/apps/web/src/app/register/page.tsx
+++ b/apps/web/src/app/register/page.tsx
@@ -28,31 +28,40 @@ export default async function Page() {
return redirect("/dash");
}
- const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (string | null)[] =
- await kv.mget(
- "config:registration:registrationEnabled",
- "config:registration:secretRegistrationEnabled"
- );
+ const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (
+ | string
+ | null
+ )[] = await kv.mget(
+ "config:registration:registrationEnabled",
+ "config:registration:secretRegistrationEnabled",
+ );
if (parseRedisBoolean(defaultRegistrationEnabled, true) === true) {
return (
<>
-
- Register
+
+
+ Register
+
- Welcome Hacker! Please fill out the form below to
- complete your registration for {c.hackathonName}.
+ Welcome Hacker!{" "}
+ Please fill out the form below to complete your
+ registration for {c.hackathonName}.
-
+
Psttt... Running into a issue? Please let us know on{" "}
Discord
!
-
+
>
@@ -60,26 +69,28 @@ export default async function Page() {
}
return (
-
-
+
+
{c.hackathonName}
- {/* Why is this not a component? This same code is in here and insideo of sign-up */}
-
+ {/* Why is this not a component? This same code is in here and insideo of sign-up */}
+
Registration
-
- Registration Is Currently Closed
+
+
+ Registration Is Currently Closed
+
- If you believe this is a mistake or have any questions, feel free to reach out to us at{" "}
- {c.issueEmail}!
+ If you believe this is a mistake or have any questions, feel
+ free to reach out to us at {c.issueEmail}!
Return Home
-
+
Already registered?
-
+
Sign-in.
diff --git a/apps/web/src/app/rsvp/page.tsx b/apps/web/src/app/rsvp/page.tsx
index b5bf90ec..0bd5d2cd 100644
--- a/apps/web/src/app/rsvp/page.tsx
+++ b/apps/web/src/app/rsvp/page.tsx
@@ -41,16 +41,21 @@ export default async function RsvpPage({
// TODO: fix type jank here
if (
- parseRedisBoolean(rsvpEnabled as string | boolean | null | undefined, true) === true ||
+ parseRedisBoolean(
+ rsvpEnabled as string | boolean | null | undefined,
+ true,
+ ) === true ||
user.rsvp === true
) {
return (
<>
-
-
- {c.hackathonName}
-
+
+
+
+ {c.hackathonName}
+
+
RSVP
@@ -59,19 +64,20 @@ export default async function RsvpPage({
);
} else {
return (
-
-
+
+
{c.hackathonName}
-
+
RSVP
-
-
+
+
RSVPs Are Currently Closed
-
- We have currently reached capacity for RSVPs. However, we still encourage you to show up
- for walk-ins! If you have any questions or concerns, feel free to ask on{" "}
+
+ We have currently reached capacity for RSVPs. However,
+ we still encourage you to show up for walk-ins! If you
+ have any questions or concerns, feel free to ask on{" "}
Discord
{" "}
diff --git a/apps/web/src/app/schedule/[id]/page.tsx b/apps/web/src/app/schedule/[id]/page.tsx
index d40e6633..dc45b9c6 100644
--- a/apps/web/src/app/schedule/[id]/page.tsx
+++ b/apps/web/src/app/schedule/[id]/page.tsx
@@ -8,7 +8,10 @@ import Navbar from "@/components/shared/Navbar";
export default async function Page({ params }: { params: { id: string } }) {
if (!params || !params.id || isNaN(parseInt(params.id))) {
return (
-
+
);
}
@@ -20,7 +23,9 @@ export default async function Page({ params }: { params: { id: string } }) {
return (
);
}
diff --git a/apps/web/src/app/settings/account/page.tsx b/apps/web/src/app/settings/account/page.tsx
index 3602f6e0..c9cd28cf 100644
--- a/apps/web/src/app/settings/account/page.tsx
+++ b/apps/web/src/app/settings/account/page.tsx
@@ -6,13 +6,13 @@ import { db } from "db";
import { redirect } from "next/navigation";
export default async function Page() {
- const { userId } = auth();
- const user = await db.query.users.findFirst({
- with: { registrationData: true },
- where: eq(users.clerkID, userId!),
- });
- if (!user) return redirect("/sign-in");
- return ;
+ const { userId } = auth();
+ const user = await db.query.users.findFirst({
+ with: { registrationData: true },
+ where: eq(users.clerkID, userId!),
+ });
+ if (!user) return redirect("/sign-in");
+ return ;
}
export const runtime = "edge";
diff --git a/apps/web/src/app/settings/layout.tsx b/apps/web/src/app/settings/layout.tsx
index 248f704c..fbfb40d2 100644
--- a/apps/web/src/app/settings/layout.tsx
+++ b/apps/web/src/app/settings/layout.tsx
@@ -7,39 +7,39 @@ import { Settings } from "lucide-react";
import ClientToast from "@/components/shared/ClientToast";
export default async function ({ children }: { children: ReactNode }) {
- const { userId } = await auth();
- const user = await currentUser();
+ const { userId } = await auth();
+ const user = await currentUser();
- if (!user || !userId) {
- return redirect("/sign-in");
- }
+ if (!user || !userId) {
+ return redirect("/sign-in");
+ }
- if (!user.publicMetadata.registrationComplete) {
- return redirect("/register");
- }
+ if (!user.publicMetadata.registrationComplete) {
+ return redirect("/register");
+ }
- return (
- <>
-
-
-
-
-
-
-
-
- Settings
-
-
-
-
-
- {/* */}
-
-
-
- {children}
-
- >
- );
+ return (
+ <>
+
+
+
+
+
+
+
+
+ Settings
+
+
+
+
+
+ {/* */}
+
+
+
+ {children}
+
+ >
+ );
}
diff --git a/apps/web/src/app/settings/profile/page.tsx b/apps/web/src/app/settings/profile/page.tsx
index 3e243c50..6140f8bb 100644
--- a/apps/web/src/app/settings/profile/page.tsx
+++ b/apps/web/src/app/settings/profile/page.tsx
@@ -5,22 +5,22 @@ import { eq } from "db/drizzle";
import { auth } from "@clerk/nextjs";
export default async function Page() {
- const { userId } = auth();
- if (!userId) throw new Error("User not found");
- const user = await db.query.users.findFirst({
- where: eq(users.clerkID, userId),
- with: {
- profileData: true,
- registrationData: true,
- },
- });
- if (!user) throw new Error("User not found");
- return (
-
- );
+ const { userId } = auth();
+ if (!userId) throw new Error("User not found");
+ const user = await db.query.users.findFirst({
+ where: eq(users.clerkID, userId),
+ with: {
+ profileData: true,
+ registrationData: true,
+ },
+ });
+ if (!user) throw new Error("User not found");
+ return (
+
+ );
}
export const runtime = "edge";
diff --git a/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx b/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
index 7be35932..057a6407 100644
--- a/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
+++ b/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
@@ -6,40 +6,47 @@ import { Button } from "@/components/shadcn/ui/button";
import Link from "next/link";
export default async function Page() {
- const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (string | null)[] =
- await kv.mget(
- "config:registration:registrationEnabled",
- "config:registration:secretRegistrationEnabled"
- );
+ const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (
+ | string
+ | null
+ )[] = await kv.mget(
+ "config:registration:registrationEnabled",
+ "config:registration:secretRegistrationEnabled",
+ );
if (parseRedisBoolean(defaultRegistrationEnabled, true) === true) {
return (
-
+
);
}
return (
-
-
+
+
{c.hackathonName}
-
+
Registration
-
- Registration Is Currently Closed
+
+
+ Registration Is Currently Closed
+
- If you believe this is a mistake or have any questions, feel free to reach out to us at{" "}
- {c.issueEmail}!
+ If you believe this is a mistake or have any questions, feel
+ free to reach out to us at {c.issueEmail}!
Return Home
-
+
Already registered?{" "}
-
+
Sign-in.
diff --git a/apps/web/src/app/team/[tag]/page.tsx b/apps/web/src/app/team/[tag]/page.tsx
index 49ffd857..e1a0c5ab 100644
--- a/apps/web/src/app/team/[tag]/page.tsx
+++ b/apps/web/src/app/team/[tag]/page.tsx
@@ -25,9 +25,9 @@ export default async function Page({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
- {team.name}
- {team.bio && team.bio.length > 0 && {team.bio}
}
-
+ {team.name}
+ {team.bio && team.bio.length > 0 && (
+ {team.bio}
+ )}
+
{team.members.map((member) => (
-
+
-
+
{member.firstName} {member.lastName}
-
+
@{member.hackerTag}
diff --git a/apps/web/src/app/user/[tag]/page.tsx b/apps/web/src/app/user/[tag]/page.tsx
index dac2a9bd..db7a3dc7 100644
--- a/apps/web/src/app/user/[tag]/page.tsx
+++ b/apps/web/src/app/user/[tag]/page.tsx
@@ -22,11 +22,11 @@ export default async function ({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
-
+
-
+
{user.firstName} {user.lastName}
-
- @{user.hackerTag}
+
+
+ @{user.hackerTag}
+
- {user.registrationData.GitHub && user.registrationData.GitHub.length > 0 && (
-
-
- {user.registrationData.GitHub}
-
- )}
- {user.registrationData.LinkedIn && user.registrationData.LinkedIn.length > 0 && (
-
-
- {user.registrationData.LinkedIn}
-
- )}
+ {user.registrationData.GitHub &&
+ user.registrationData.GitHub.length > 0 && (
+
+
+ {user.registrationData.GitHub}
+
+ )}
+ {user.registrationData.LinkedIn &&
+ user.registrationData.LinkedIn.length > 0 && (
+
+
+ {user.registrationData.LinkedIn}
+
+ )}
{user.registrationData.PersonalWebsite &&
- user.registrationData.PersonalWebsite.length > 0 && (
+ user.registrationData.PersonalWebsite.length >
+ 0 && (
- {user.registrationData.PersonalWebsite.replace("https://", "").replace(
- "http://",
- ""
- )}
+ {user.registrationData.PersonalWebsite.replace(
+ "https://",
+ "",
+ ).replace("http://", "")}
)}
-
+
About
{user.profileData.bio}
- {user.profileData.skills && (user.profileData.skills as string[]).length > 0 ? (
+ {user.profileData.skills &&
+ (user.profileData.skills as string[]).length > 0 ? (
<>
- Skills
- {(user.profileData.skills as string[]).join(", ")}
+ Skills
+
+ {(user.profileData.skills as string[]).join(
+ ", ",
+ )}
+
>
) : null}
diff --git a/apps/web/src/components/admin/events/EventColumns.tsx b/apps/web/src/components/admin/events/EventColumns.tsx
index 863fe428..792da88f 100644
--- a/apps/web/src/components/admin/events/EventColumns.tsx
+++ b/apps/web/src/components/admin/events/EventColumns.tsx
@@ -39,7 +39,9 @@ export const columns: ColumnDef[] = [
variant={"outline"}
style={{
borderColor:
- (c.eventTypes as Record)[row.original.type] || c.eventTypes.Other,
+ (c.eventTypes as Record)[
+ row.original.type
+ ] || c.eventTypes.Other,
}}
>
{row.original.type}
diff --git a/apps/web/src/components/admin/events/EventDataTable.tsx b/apps/web/src/components/admin/events/EventDataTable.tsx
index 5981fae5..0af4a9dc 100644
--- a/apps/web/src/components/admin/events/EventDataTable.tsx
+++ b/apps/web/src/components/admin/events/EventDataTable.tsx
@@ -1,6 +1,11 @@
"use client";
-import { ColumnDef, flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-table";
+import {
+ ColumnDef,
+ flexRender,
+ getCoreRowModel,
+ useReactTable,
+} from "@tanstack/react-table";
import {
Table,
@@ -19,7 +24,10 @@ interface DataTableProps {
data: TData[];
}
-export function DataTable({ columns, data }: DataTableProps) {
+export function DataTable({
+ columns,
+ data,
+}: DataTableProps) {
const table = useReactTable({
data,
columns,
@@ -37,7 +45,11 @@ export function DataTable({ columns, data }: DataTableProps
{header.isPlaceholder
? null
- : flexRender(header.column.columnDef.header, header.getContext())}
+ : flexRender(
+ header.column.columnDef
+ .header,
+ header.getContext(),
+ )}
);
})}
@@ -47,17 +59,26 @@ export function DataTable({ columns, data }: DataTableProps
{table.getRowModel().rows?.length ? (
table.getRowModel().rows.map((row) => (
-
+
{row.getVisibleCells().map((cell) => (
- {flexRender(cell.column.columnDef.cell, cell.getContext())}
+ {flexRender(
+ cell.column.columnDef.cell,
+ cell.getContext(),
+ )}
))}
))
) : (
-
+
No results.
diff --git a/apps/web/src/components/admin/events/NewEventForm.tsx b/apps/web/src/components/admin/events/NewEventForm.tsx
index 5c64ded5..e20a7bed 100644
--- a/apps/web/src/components/admin/events/NewEventForm.tsx
+++ b/apps/web/src/components/admin/events/NewEventForm.tsx
@@ -39,7 +39,7 @@ interface NewEventFormProps {
const formSchema = newEventValidator.merge(
z.object({
type: z.enum(Object.keys(c.eventTypes) as any),
- })
+ }),
);
export default function NewEventForm({ defaultDate }: NewEventFormProps) {
@@ -71,7 +71,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
alert("Event Created Successfully! Redirecting to event page...");
router.push(res.data.redirect);
} else {
- alert("Failed to create event, please try again. Error:\n\n" + res.error);
+ alert(
+ "Failed to create event, please try again. Error:\n\n" +
+ res.error,
+ );
}
}
@@ -87,7 +90,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
- Generally its best to keep this short and consise
+
+ Generally its best to keep this short and
+ consise
+
)}
@@ -115,7 +121,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
render={({ field }) => (
Event Type
-
diff --git a/apps/web/src/app/globals.css b/apps/web/src/app/globals.css index 2d8a8675..e9da860e 100644 --- a/apps/web/src/app/globals.css +++ b/apps/web/src/app/globals.css @@ -42,8 +42,6 @@ --gradient-color-2: #94a33d; --gradient-color-3: #babc34; --gradient-color-4: #b5bf63; - - } .dark { --background: 240 10% 3.9%; @@ -79,7 +77,6 @@ } } - @layer base { * { @apply border-border; @@ -88,14 +85,13 @@ @apply bg-background text-foreground; } } -@layer utilities{ +@layer utilities { .arrow_animate { - animation: arrow 2s infinite; - } + animation: arrow 2s infinite; + } } @keyframes arrow { 0% { - transform: translate(0px); } @@ -106,7 +102,6 @@ 100% { transform: translate(0px); } - } .no-select { @@ -144,7 +139,6 @@ @keyframes arrow { 0% { - transform: translate(0px); } diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx index 7276068c..bb38418d 100644 --- a/apps/web/src/app/layout.tsx +++ b/apps/web/src/app/layout.tsx @@ -4,7 +4,11 @@ import { cookies } from "next/headers"; import { Analytics } from "@vercel/analytics/react"; import { defaultTheme } from "config"; -export default function RootLayout({ children }: { children: React.ReactNode }) { +export default function RootLayout({ + children, +}: { + children: React.ReactNode; +}) { const theme = cookies().get("hk_theme")?.value || defaultTheme; return (
Register
++ Register +
- Welcome Hacker! Please fill out the form below to - complete your registration for {c.hackathonName}. + Welcome Hacker!{" "} + Please fill out the form below to complete your + registration for {c.hackathonName}.
-+
Psttt... Running into a issue? Please let us know on{" "} Discord !
-{c.hackathonName}
- {/* Why is this not a component? This same code is in here and insideo of sign-up */} -
+ {/* Why is this not a component? This same code is in here and insideo of sign-up */}
+
Registration
-
- Registration Is Currently Closed
+
+
+ Registration Is Currently Closed
+
- If you believe this is a mistake or have any questions, feel free to reach out to us at{" "}
- {c.issueEmail}!
+ If you believe this is a mistake or have any questions, feel
+ free to reach out to us at {c.issueEmail}!
Return Home
-
+
Already registered?
-
+
Sign-in.
diff --git a/apps/web/src/app/rsvp/page.tsx b/apps/web/src/app/rsvp/page.tsx
index b5bf90ec..0bd5d2cd 100644
--- a/apps/web/src/app/rsvp/page.tsx
+++ b/apps/web/src/app/rsvp/page.tsx
@@ -41,16 +41,21 @@ export default async function RsvpPage({
// TODO: fix type jank here
if (
- parseRedisBoolean(rsvpEnabled as string | boolean | null | undefined, true) === true ||
+ parseRedisBoolean(
+ rsvpEnabled as string | boolean | null | undefined,
+ true,
+ ) === true ||
user.rsvp === true
) {
return (
<>
-
-
- {c.hackathonName}
-
+
+
+
+ {c.hackathonName}
+
+
RSVP
@@ -59,19 +64,20 @@ export default async function RsvpPage({
);
} else {
return (
-
-
+
+
{c.hackathonName}
-
+
RSVP
-
-
+
+
RSVPs Are Currently Closed
-
- We have currently reached capacity for RSVPs. However, we still encourage you to show up
- for walk-ins! If you have any questions or concerns, feel free to ask on{" "}
+
+ We have currently reached capacity for RSVPs. However,
+ we still encourage you to show up for walk-ins! If you
+ have any questions or concerns, feel free to ask on{" "}
Discord
{" "}
diff --git a/apps/web/src/app/schedule/[id]/page.tsx b/apps/web/src/app/schedule/[id]/page.tsx
index d40e6633..dc45b9c6 100644
--- a/apps/web/src/app/schedule/[id]/page.tsx
+++ b/apps/web/src/app/schedule/[id]/page.tsx
@@ -8,7 +8,10 @@ import Navbar from "@/components/shared/Navbar";
export default async function Page({ params }: { params: { id: string } }) {
if (!params || !params.id || isNaN(parseInt(params.id))) {
return (
-
+
);
}
@@ -20,7 +23,9 @@ export default async function Page({ params }: { params: { id: string } }) {
return (
);
}
diff --git a/apps/web/src/app/settings/account/page.tsx b/apps/web/src/app/settings/account/page.tsx
index 3602f6e0..c9cd28cf 100644
--- a/apps/web/src/app/settings/account/page.tsx
+++ b/apps/web/src/app/settings/account/page.tsx
@@ -6,13 +6,13 @@ import { db } from "db";
import { redirect } from "next/navigation";
export default async function Page() {
- const { userId } = auth();
- const user = await db.query.users.findFirst({
- with: { registrationData: true },
- where: eq(users.clerkID, userId!),
- });
- if (!user) return redirect("/sign-in");
- return ;
+ const { userId } = auth();
+ const user = await db.query.users.findFirst({
+ with: { registrationData: true },
+ where: eq(users.clerkID, userId!),
+ });
+ if (!user) return redirect("/sign-in");
+ return ;
}
export const runtime = "edge";
diff --git a/apps/web/src/app/settings/layout.tsx b/apps/web/src/app/settings/layout.tsx
index 248f704c..fbfb40d2 100644
--- a/apps/web/src/app/settings/layout.tsx
+++ b/apps/web/src/app/settings/layout.tsx
@@ -7,39 +7,39 @@ import { Settings } from "lucide-react";
import ClientToast from "@/components/shared/ClientToast";
export default async function ({ children }: { children: ReactNode }) {
- const { userId } = await auth();
- const user = await currentUser();
+ const { userId } = await auth();
+ const user = await currentUser();
- if (!user || !userId) {
- return redirect("/sign-in");
- }
+ if (!user || !userId) {
+ return redirect("/sign-in");
+ }
- if (!user.publicMetadata.registrationComplete) {
- return redirect("/register");
- }
+ if (!user.publicMetadata.registrationComplete) {
+ return redirect("/register");
+ }
- return (
- <>
-
-
-
-
-
-
-
-
- Settings
-
-
-
-
-
- {/* */}
-
-
-
- {children}
-
- >
- );
+ return (
+ <>
+
+
+
+
+
+
+
+
+ Settings
+
+
+
+
+
+ {/* */}
+
+
+
+ {children}
+
+ >
+ );
}
diff --git a/apps/web/src/app/settings/profile/page.tsx b/apps/web/src/app/settings/profile/page.tsx
index 3e243c50..6140f8bb 100644
--- a/apps/web/src/app/settings/profile/page.tsx
+++ b/apps/web/src/app/settings/profile/page.tsx
@@ -5,22 +5,22 @@ import { eq } from "db/drizzle";
import { auth } from "@clerk/nextjs";
export default async function Page() {
- const { userId } = auth();
- if (!userId) throw new Error("User not found");
- const user = await db.query.users.findFirst({
- where: eq(users.clerkID, userId),
- with: {
- profileData: true,
- registrationData: true,
- },
- });
- if (!user) throw new Error("User not found");
- return (
-
- );
+ const { userId } = auth();
+ if (!userId) throw new Error("User not found");
+ const user = await db.query.users.findFirst({
+ where: eq(users.clerkID, userId),
+ with: {
+ profileData: true,
+ registrationData: true,
+ },
+ });
+ if (!user) throw new Error("User not found");
+ return (
+
+ );
}
export const runtime = "edge";
diff --git a/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx b/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
index 7be35932..057a6407 100644
--- a/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
+++ b/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
@@ -6,40 +6,47 @@ import { Button } from "@/components/shadcn/ui/button";
import Link from "next/link";
export default async function Page() {
- const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (string | null)[] =
- await kv.mget(
- "config:registration:registrationEnabled",
- "config:registration:secretRegistrationEnabled"
- );
+ const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (
+ | string
+ | null
+ )[] = await kv.mget(
+ "config:registration:registrationEnabled",
+ "config:registration:secretRegistrationEnabled",
+ );
if (parseRedisBoolean(defaultRegistrationEnabled, true) === true) {
return (
-
+
);
}
return (
-
-
+
+
{c.hackathonName}
-
+
Registration
-
- Registration Is Currently Closed
+
+
+ Registration Is Currently Closed
+
- If you believe this is a mistake or have any questions, feel free to reach out to us at{" "}
- {c.issueEmail}!
+ If you believe this is a mistake or have any questions, feel
+ free to reach out to us at {c.issueEmail}!
Return Home
-
+
Already registered?{" "}
-
+
Sign-in.
diff --git a/apps/web/src/app/team/[tag]/page.tsx b/apps/web/src/app/team/[tag]/page.tsx
index 49ffd857..e1a0c5ab 100644
--- a/apps/web/src/app/team/[tag]/page.tsx
+++ b/apps/web/src/app/team/[tag]/page.tsx
@@ -25,9 +25,9 @@ export default async function Page({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
- {team.name}
- {team.bio && team.bio.length > 0 && {team.bio}
}
-
+ {team.name}
+ {team.bio && team.bio.length > 0 && (
+ {team.bio}
+ )}
+
{team.members.map((member) => (
-
+
-
+
{member.firstName} {member.lastName}
-
+
@{member.hackerTag}
diff --git a/apps/web/src/app/user/[tag]/page.tsx b/apps/web/src/app/user/[tag]/page.tsx
index dac2a9bd..db7a3dc7 100644
--- a/apps/web/src/app/user/[tag]/page.tsx
+++ b/apps/web/src/app/user/[tag]/page.tsx
@@ -22,11 +22,11 @@ export default async function ({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
-
+
-
+
{user.firstName} {user.lastName}
-
- @{user.hackerTag}
+
+
+ @{user.hackerTag}
+
- {user.registrationData.GitHub && user.registrationData.GitHub.length > 0 && (
-
-
- {user.registrationData.GitHub}
-
- )}
- {user.registrationData.LinkedIn && user.registrationData.LinkedIn.length > 0 && (
-
-
- {user.registrationData.LinkedIn}
-
- )}
+ {user.registrationData.GitHub &&
+ user.registrationData.GitHub.length > 0 && (
+
+
+ {user.registrationData.GitHub}
+
+ )}
+ {user.registrationData.LinkedIn &&
+ user.registrationData.LinkedIn.length > 0 && (
+
+
+ {user.registrationData.LinkedIn}
+
+ )}
{user.registrationData.PersonalWebsite &&
- user.registrationData.PersonalWebsite.length > 0 && (
+ user.registrationData.PersonalWebsite.length >
+ 0 && (
- {user.registrationData.PersonalWebsite.replace("https://", "").replace(
- "http://",
- ""
- )}
+ {user.registrationData.PersonalWebsite.replace(
+ "https://",
+ "",
+ ).replace("http://", "")}
)}
-
+
About
{user.profileData.bio}
- {user.profileData.skills && (user.profileData.skills as string[]).length > 0 ? (
+ {user.profileData.skills &&
+ (user.profileData.skills as string[]).length > 0 ? (
<>
- Skills
- {(user.profileData.skills as string[]).join(", ")}
+ Skills
+
+ {(user.profileData.skills as string[]).join(
+ ", ",
+ )}
+
>
) : null}
diff --git a/apps/web/src/components/admin/events/EventColumns.tsx b/apps/web/src/components/admin/events/EventColumns.tsx
index 863fe428..792da88f 100644
--- a/apps/web/src/components/admin/events/EventColumns.tsx
+++ b/apps/web/src/components/admin/events/EventColumns.tsx
@@ -39,7 +39,9 @@ export const columns: ColumnDef[] = [
variant={"outline"}
style={{
borderColor:
- (c.eventTypes as Record)[row.original.type] || c.eventTypes.Other,
+ (c.eventTypes as Record)[
+ row.original.type
+ ] || c.eventTypes.Other,
}}
>
{row.original.type}
diff --git a/apps/web/src/components/admin/events/EventDataTable.tsx b/apps/web/src/components/admin/events/EventDataTable.tsx
index 5981fae5..0af4a9dc 100644
--- a/apps/web/src/components/admin/events/EventDataTable.tsx
+++ b/apps/web/src/components/admin/events/EventDataTable.tsx
@@ -1,6 +1,11 @@
"use client";
-import { ColumnDef, flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-table";
+import {
+ ColumnDef,
+ flexRender,
+ getCoreRowModel,
+ useReactTable,
+} from "@tanstack/react-table";
import {
Table,
@@ -19,7 +24,10 @@ interface DataTableProps {
data: TData[];
}
-export function DataTable({ columns, data }: DataTableProps) {
+export function DataTable({
+ columns,
+ data,
+}: DataTableProps) {
const table = useReactTable({
data,
columns,
@@ -37,7 +45,11 @@ export function DataTable({ columns, data }: DataTableProps
{header.isPlaceholder
? null
- : flexRender(header.column.columnDef.header, header.getContext())}
+ : flexRender(
+ header.column.columnDef
+ .header,
+ header.getContext(),
+ )}
);
})}
@@ -47,17 +59,26 @@ export function DataTable({ columns, data }: DataTableProps
{table.getRowModel().rows?.length ? (
table.getRowModel().rows.map((row) => (
-
+
{row.getVisibleCells().map((cell) => (
- {flexRender(cell.column.columnDef.cell, cell.getContext())}
+ {flexRender(
+ cell.column.columnDef.cell,
+ cell.getContext(),
+ )}
))}
))
) : (
-
+
No results.
diff --git a/apps/web/src/components/admin/events/NewEventForm.tsx b/apps/web/src/components/admin/events/NewEventForm.tsx
index 5c64ded5..e20a7bed 100644
--- a/apps/web/src/components/admin/events/NewEventForm.tsx
+++ b/apps/web/src/components/admin/events/NewEventForm.tsx
@@ -39,7 +39,7 @@ interface NewEventFormProps {
const formSchema = newEventValidator.merge(
z.object({
type: z.enum(Object.keys(c.eventTypes) as any),
- })
+ }),
);
export default function NewEventForm({ defaultDate }: NewEventFormProps) {
@@ -71,7 +71,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
alert("Event Created Successfully! Redirecting to event page...");
router.push(res.data.redirect);
} else {
- alert("Failed to create event, please try again. Error:\n\n" + res.error);
+ alert(
+ "Failed to create event, please try again. Error:\n\n" +
+ res.error,
+ );
}
}
@@ -87,7 +90,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
- Generally its best to keep this short and consise
+
+ Generally its best to keep this short and
+ consise
+
)}
@@ -115,7 +121,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
render={({ field }) => (
Event Type
-
Registration Is Currently Closed
++ Registration Is Currently Closed +
- If you believe this is a mistake or have any questions, feel free to reach out to us at{" "} - {c.issueEmail}! + If you believe this is a mistake or have any questions, feel + free to reach out to us at {c.issueEmail}!
+
Already registered? - + Sign-in.
diff --git a/apps/web/src/app/rsvp/page.tsx b/apps/web/src/app/rsvp/page.tsx index b5bf90ec..0bd5d2cd 100644 --- a/apps/web/src/app/rsvp/page.tsx +++ b/apps/web/src/app/rsvp/page.tsx @@ -41,16 +41,21 @@ export default async function RsvpPage({ // TODO: fix type jank here if ( - parseRedisBoolean(rsvpEnabled as string | boolean | null | undefined, true) === true || + parseRedisBoolean( + rsvpEnabled as string | boolean | null | undefined, + true, + ) === true || user.rsvp === true ) { return ( <>{c.hackathonName}
-
+
+
+
+ {c.hackathonName}
+
+
RSVP
@@ -59,19 +64,20 @@ export default async function RsvpPage({
);
} else {
return (
-
-
+
+
{c.hackathonName}
-
+
RSVP
-
-
+
+
RSVPs Are Currently Closed
-
- We have currently reached capacity for RSVPs. However, we still encourage you to show up
- for walk-ins! If you have any questions or concerns, feel free to ask on{" "}
+
+ We have currently reached capacity for RSVPs. However,
+ we still encourage you to show up for walk-ins! If you
+ have any questions or concerns, feel free to ask on{" "}
Discord
{" "}
diff --git a/apps/web/src/app/schedule/[id]/page.tsx b/apps/web/src/app/schedule/[id]/page.tsx
index d40e6633..dc45b9c6 100644
--- a/apps/web/src/app/schedule/[id]/page.tsx
+++ b/apps/web/src/app/schedule/[id]/page.tsx
@@ -8,7 +8,10 @@ import Navbar from "@/components/shared/Navbar";
export default async function Page({ params }: { params: { id: string } }) {
if (!params || !params.id || isNaN(parseInt(params.id))) {
return (
-
+
);
}
@@ -20,7 +23,9 @@ export default async function Page({ params }: { params: { id: string } }) {
return (
);
}
diff --git a/apps/web/src/app/settings/account/page.tsx b/apps/web/src/app/settings/account/page.tsx
index 3602f6e0..c9cd28cf 100644
--- a/apps/web/src/app/settings/account/page.tsx
+++ b/apps/web/src/app/settings/account/page.tsx
@@ -6,13 +6,13 @@ import { db } from "db";
import { redirect } from "next/navigation";
export default async function Page() {
- const { userId } = auth();
- const user = await db.query.users.findFirst({
- with: { registrationData: true },
- where: eq(users.clerkID, userId!),
- });
- if (!user) return redirect("/sign-in");
- return ;
+ const { userId } = auth();
+ const user = await db.query.users.findFirst({
+ with: { registrationData: true },
+ where: eq(users.clerkID, userId!),
+ });
+ if (!user) return redirect("/sign-in");
+ return ;
}
export const runtime = "edge";
diff --git a/apps/web/src/app/settings/layout.tsx b/apps/web/src/app/settings/layout.tsx
index 248f704c..fbfb40d2 100644
--- a/apps/web/src/app/settings/layout.tsx
+++ b/apps/web/src/app/settings/layout.tsx
@@ -7,39 +7,39 @@ import { Settings } from "lucide-react";
import ClientToast from "@/components/shared/ClientToast";
export default async function ({ children }: { children: ReactNode }) {
- const { userId } = await auth();
- const user = await currentUser();
+ const { userId } = await auth();
+ const user = await currentUser();
- if (!user || !userId) {
- return redirect("/sign-in");
- }
+ if (!user || !userId) {
+ return redirect("/sign-in");
+ }
- if (!user.publicMetadata.registrationComplete) {
- return redirect("/register");
- }
+ if (!user.publicMetadata.registrationComplete) {
+ return redirect("/register");
+ }
- return (
- <>
-
-
-
-
-
-
-
-
- Settings
-
-
-
-
-
- {/* */}
-
-
-
- {children}
-
- >
- );
+ return (
+ <>
+
+
+
+
+
+
+
+
+ Settings
+
+
+
+
+
+ {/* */}
+
+
+
+ {children}
+
+ >
+ );
}
diff --git a/apps/web/src/app/settings/profile/page.tsx b/apps/web/src/app/settings/profile/page.tsx
index 3e243c50..6140f8bb 100644
--- a/apps/web/src/app/settings/profile/page.tsx
+++ b/apps/web/src/app/settings/profile/page.tsx
@@ -5,22 +5,22 @@ import { eq } from "db/drizzle";
import { auth } from "@clerk/nextjs";
export default async function Page() {
- const { userId } = auth();
- if (!userId) throw new Error("User not found");
- const user = await db.query.users.findFirst({
- where: eq(users.clerkID, userId),
- with: {
- profileData: true,
- registrationData: true,
- },
- });
- if (!user) throw new Error("User not found");
- return (
-
- );
+ const { userId } = auth();
+ if (!userId) throw new Error("User not found");
+ const user = await db.query.users.findFirst({
+ where: eq(users.clerkID, userId),
+ with: {
+ profileData: true,
+ registrationData: true,
+ },
+ });
+ if (!user) throw new Error("User not found");
+ return (
+
+ );
}
export const runtime = "edge";
diff --git a/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx b/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
index 7be35932..057a6407 100644
--- a/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
+++ b/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
@@ -6,40 +6,47 @@ import { Button } from "@/components/shadcn/ui/button";
import Link from "next/link";
export default async function Page() {
- const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (string | null)[] =
- await kv.mget(
- "config:registration:registrationEnabled",
- "config:registration:secretRegistrationEnabled"
- );
+ const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (
+ | string
+ | null
+ )[] = await kv.mget(
+ "config:registration:registrationEnabled",
+ "config:registration:secretRegistrationEnabled",
+ );
if (parseRedisBoolean(defaultRegistrationEnabled, true) === true) {
return (
-
+
);
}
return (
-
-
+
+
{c.hackathonName}
-
+
Registration
-
- Registration Is Currently Closed
+
+
+ Registration Is Currently Closed
+
- If you believe this is a mistake or have any questions, feel free to reach out to us at{" "}
- {c.issueEmail}!
+ If you believe this is a mistake or have any questions, feel
+ free to reach out to us at {c.issueEmail}!
Return Home
-
+
Already registered?{" "}
-
+
Sign-in.
diff --git a/apps/web/src/app/team/[tag]/page.tsx b/apps/web/src/app/team/[tag]/page.tsx
index 49ffd857..e1a0c5ab 100644
--- a/apps/web/src/app/team/[tag]/page.tsx
+++ b/apps/web/src/app/team/[tag]/page.tsx
@@ -25,9 +25,9 @@ export default async function Page({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
- {team.name}
- {team.bio && team.bio.length > 0 && {team.bio}
}
-
+ {team.name}
+ {team.bio && team.bio.length > 0 && (
+ {team.bio}
+ )}
+
{team.members.map((member) => (
-
+
-
+
{member.firstName} {member.lastName}
-
+
@{member.hackerTag}
diff --git a/apps/web/src/app/user/[tag]/page.tsx b/apps/web/src/app/user/[tag]/page.tsx
index dac2a9bd..db7a3dc7 100644
--- a/apps/web/src/app/user/[tag]/page.tsx
+++ b/apps/web/src/app/user/[tag]/page.tsx
@@ -22,11 +22,11 @@ export default async function ({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
-
+
-
+
{user.firstName} {user.lastName}
-
- @{user.hackerTag}
+
+
+ @{user.hackerTag}
+
- {user.registrationData.GitHub && user.registrationData.GitHub.length > 0 && (
-
-
- {user.registrationData.GitHub}
-
- )}
- {user.registrationData.LinkedIn && user.registrationData.LinkedIn.length > 0 && (
-
-
- {user.registrationData.LinkedIn}
-
- )}
+ {user.registrationData.GitHub &&
+ user.registrationData.GitHub.length > 0 && (
+
+
+ {user.registrationData.GitHub}
+
+ )}
+ {user.registrationData.LinkedIn &&
+ user.registrationData.LinkedIn.length > 0 && (
+
+
+ {user.registrationData.LinkedIn}
+
+ )}
{user.registrationData.PersonalWebsite &&
- user.registrationData.PersonalWebsite.length > 0 && (
+ user.registrationData.PersonalWebsite.length >
+ 0 && (
- {user.registrationData.PersonalWebsite.replace("https://", "").replace(
- "http://",
- ""
- )}
+ {user.registrationData.PersonalWebsite.replace(
+ "https://",
+ "",
+ ).replace("http://", "")}
)}
-
+
About
{user.profileData.bio}
- {user.profileData.skills && (user.profileData.skills as string[]).length > 0 ? (
+ {user.profileData.skills &&
+ (user.profileData.skills as string[]).length > 0 ? (
<>
- Skills
- {(user.profileData.skills as string[]).join(", ")}
+ Skills
+
+ {(user.profileData.skills as string[]).join(
+ ", ",
+ )}
+
>
) : null}
diff --git a/apps/web/src/components/admin/events/EventColumns.tsx b/apps/web/src/components/admin/events/EventColumns.tsx
index 863fe428..792da88f 100644
--- a/apps/web/src/components/admin/events/EventColumns.tsx
+++ b/apps/web/src/components/admin/events/EventColumns.tsx
@@ -39,7 +39,9 @@ export const columns: ColumnDef[] = [
variant={"outline"}
style={{
borderColor:
- (c.eventTypes as Record)[row.original.type] || c.eventTypes.Other,
+ (c.eventTypes as Record)[
+ row.original.type
+ ] || c.eventTypes.Other,
}}
>
{row.original.type}
diff --git a/apps/web/src/components/admin/events/EventDataTable.tsx b/apps/web/src/components/admin/events/EventDataTable.tsx
index 5981fae5..0af4a9dc 100644
--- a/apps/web/src/components/admin/events/EventDataTable.tsx
+++ b/apps/web/src/components/admin/events/EventDataTable.tsx
@@ -1,6 +1,11 @@
"use client";
-import { ColumnDef, flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-table";
+import {
+ ColumnDef,
+ flexRender,
+ getCoreRowModel,
+ useReactTable,
+} from "@tanstack/react-table";
import {
Table,
@@ -19,7 +24,10 @@ interface DataTableProps {
data: TData[];
}
-export function DataTable({ columns, data }: DataTableProps) {
+export function DataTable({
+ columns,
+ data,
+}: DataTableProps) {
const table = useReactTable({
data,
columns,
@@ -37,7 +45,11 @@ export function DataTable({ columns, data }: DataTableProps
{header.isPlaceholder
? null
- : flexRender(header.column.columnDef.header, header.getContext())}
+ : flexRender(
+ header.column.columnDef
+ .header,
+ header.getContext(),
+ )}
);
})}
@@ -47,17 +59,26 @@ export function DataTable({ columns, data }: DataTableProps
{table.getRowModel().rows?.length ? (
table.getRowModel().rows.map((row) => (
-
+
{row.getVisibleCells().map((cell) => (
- {flexRender(cell.column.columnDef.cell, cell.getContext())}
+ {flexRender(
+ cell.column.columnDef.cell,
+ cell.getContext(),
+ )}
))}
))
) : (
-
+
No results.
diff --git a/apps/web/src/components/admin/events/NewEventForm.tsx b/apps/web/src/components/admin/events/NewEventForm.tsx
index 5c64ded5..e20a7bed 100644
--- a/apps/web/src/components/admin/events/NewEventForm.tsx
+++ b/apps/web/src/components/admin/events/NewEventForm.tsx
@@ -39,7 +39,7 @@ interface NewEventFormProps {
const formSchema = newEventValidator.merge(
z.object({
type: z.enum(Object.keys(c.eventTypes) as any),
- })
+ }),
);
export default function NewEventForm({ defaultDate }: NewEventFormProps) {
@@ -71,7 +71,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
alert("Event Created Successfully! Redirecting to event page...");
router.push(res.data.redirect);
} else {
- alert("Failed to create event, please try again. Error:\n\n" + res.error);
+ alert(
+ "Failed to create event, please try again. Error:\n\n" +
+ res.error,
+ );
}
}
@@ -87,7 +90,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
- Generally its best to keep this short and consise
+
+ Generally its best to keep this short and
+ consise
+
)}
@@ -115,7 +121,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
render={({ field }) => (
Event Type
-
+ {c.hackathonName} +
+RSVP
{c.hackathonName}
-
+
RSVP
-
-
+
+
RSVPs Are Currently Closed
-
- We have currently reached capacity for RSVPs. However, we still encourage you to show up
- for walk-ins! If you have any questions or concerns, feel free to ask on{" "}
+
+ We have currently reached capacity for RSVPs. However,
+ we still encourage you to show up for walk-ins! If you
+ have any questions or concerns, feel free to ask on{" "}
Discord
{" "}
diff --git a/apps/web/src/app/schedule/[id]/page.tsx b/apps/web/src/app/schedule/[id]/page.tsx
index d40e6633..dc45b9c6 100644
--- a/apps/web/src/app/schedule/[id]/page.tsx
+++ b/apps/web/src/app/schedule/[id]/page.tsx
@@ -8,7 +8,10 @@ import Navbar from "@/components/shared/Navbar";
export default async function Page({ params }: { params: { id: string } }) {
if (!params || !params.id || isNaN(parseInt(params.id))) {
return (
-
+
);
}
@@ -20,7 +23,9 @@ export default async function Page({ params }: { params: { id: string } }) {
return (
);
}
diff --git a/apps/web/src/app/settings/account/page.tsx b/apps/web/src/app/settings/account/page.tsx
index 3602f6e0..c9cd28cf 100644
--- a/apps/web/src/app/settings/account/page.tsx
+++ b/apps/web/src/app/settings/account/page.tsx
@@ -6,13 +6,13 @@ import { db } from "db";
import { redirect } from "next/navigation";
export default async function Page() {
- const { userId } = auth();
- const user = await db.query.users.findFirst({
- with: { registrationData: true },
- where: eq(users.clerkID, userId!),
- });
- if (!user) return redirect("/sign-in");
- return ;
+ const { userId } = auth();
+ const user = await db.query.users.findFirst({
+ with: { registrationData: true },
+ where: eq(users.clerkID, userId!),
+ });
+ if (!user) return redirect("/sign-in");
+ return ;
}
export const runtime = "edge";
diff --git a/apps/web/src/app/settings/layout.tsx b/apps/web/src/app/settings/layout.tsx
index 248f704c..fbfb40d2 100644
--- a/apps/web/src/app/settings/layout.tsx
+++ b/apps/web/src/app/settings/layout.tsx
@@ -7,39 +7,39 @@ import { Settings } from "lucide-react";
import ClientToast from "@/components/shared/ClientToast";
export default async function ({ children }: { children: ReactNode }) {
- const { userId } = await auth();
- const user = await currentUser();
+ const { userId } = await auth();
+ const user = await currentUser();
- if (!user || !userId) {
- return redirect("/sign-in");
- }
+ if (!user || !userId) {
+ return redirect("/sign-in");
+ }
- if (!user.publicMetadata.registrationComplete) {
- return redirect("/register");
- }
+ if (!user.publicMetadata.registrationComplete) {
+ return redirect("/register");
+ }
- return (
- <>
-
-
-
-
-
-
-
-
- Settings
-
-
-
-
-
- {/* */}
-
-
-
- {children}
-
- >
- );
+ return (
+ <>
+
+
+
+
+
+
+
+
+ Settings
+
+
+
+
+
+ {/* */}
+
+
+
+ {children}
+
+ >
+ );
}
diff --git a/apps/web/src/app/settings/profile/page.tsx b/apps/web/src/app/settings/profile/page.tsx
index 3e243c50..6140f8bb 100644
--- a/apps/web/src/app/settings/profile/page.tsx
+++ b/apps/web/src/app/settings/profile/page.tsx
@@ -5,22 +5,22 @@ import { eq } from "db/drizzle";
import { auth } from "@clerk/nextjs";
export default async function Page() {
- const { userId } = auth();
- if (!userId) throw new Error("User not found");
- const user = await db.query.users.findFirst({
- where: eq(users.clerkID, userId),
- with: {
- profileData: true,
- registrationData: true,
- },
- });
- if (!user) throw new Error("User not found");
- return (
-
- );
+ const { userId } = auth();
+ if (!userId) throw new Error("User not found");
+ const user = await db.query.users.findFirst({
+ where: eq(users.clerkID, userId),
+ with: {
+ profileData: true,
+ registrationData: true,
+ },
+ });
+ if (!user) throw new Error("User not found");
+ return (
+
+ );
}
export const runtime = "edge";
diff --git a/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx b/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
index 7be35932..057a6407 100644
--- a/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
+++ b/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
@@ -6,40 +6,47 @@ import { Button } from "@/components/shadcn/ui/button";
import Link from "next/link";
export default async function Page() {
- const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (string | null)[] =
- await kv.mget(
- "config:registration:registrationEnabled",
- "config:registration:secretRegistrationEnabled"
- );
+ const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (
+ | string
+ | null
+ )[] = await kv.mget(
+ "config:registration:registrationEnabled",
+ "config:registration:secretRegistrationEnabled",
+ );
if (parseRedisBoolean(defaultRegistrationEnabled, true) === true) {
return (
-
+
);
}
return (
-
-
+
+
{c.hackathonName}
-
+
Registration
-
- Registration Is Currently Closed
+
+
+ Registration Is Currently Closed
+
- If you believe this is a mistake or have any questions, feel free to reach out to us at{" "}
- {c.issueEmail}!
+ If you believe this is a mistake or have any questions, feel
+ free to reach out to us at {c.issueEmail}!
Return Home
-
+
Already registered?{" "}
-
+
Sign-in.
diff --git a/apps/web/src/app/team/[tag]/page.tsx b/apps/web/src/app/team/[tag]/page.tsx
index 49ffd857..e1a0c5ab 100644
--- a/apps/web/src/app/team/[tag]/page.tsx
+++ b/apps/web/src/app/team/[tag]/page.tsx
@@ -25,9 +25,9 @@ export default async function Page({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
- {team.name}
- {team.bio && team.bio.length > 0 && {team.bio}
}
-
+ {team.name}
+ {team.bio && team.bio.length > 0 && (
+ {team.bio}
+ )}
+
{team.members.map((member) => (
-
+
-
+
{member.firstName} {member.lastName}
-
+
@{member.hackerTag}
diff --git a/apps/web/src/app/user/[tag]/page.tsx b/apps/web/src/app/user/[tag]/page.tsx
index dac2a9bd..db7a3dc7 100644
--- a/apps/web/src/app/user/[tag]/page.tsx
+++ b/apps/web/src/app/user/[tag]/page.tsx
@@ -22,11 +22,11 @@ export default async function ({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
-
+
-
+
{user.firstName} {user.lastName}
-
- @{user.hackerTag}
+
+
+ @{user.hackerTag}
+
- {user.registrationData.GitHub && user.registrationData.GitHub.length > 0 && (
-
-
- {user.registrationData.GitHub}
-
- )}
- {user.registrationData.LinkedIn && user.registrationData.LinkedIn.length > 0 && (
-
-
- {user.registrationData.LinkedIn}
-
- )}
+ {user.registrationData.GitHub &&
+ user.registrationData.GitHub.length > 0 && (
+
+
+ {user.registrationData.GitHub}
+
+ )}
+ {user.registrationData.LinkedIn &&
+ user.registrationData.LinkedIn.length > 0 && (
+
+
+ {user.registrationData.LinkedIn}
+
+ )}
{user.registrationData.PersonalWebsite &&
- user.registrationData.PersonalWebsite.length > 0 && (
+ user.registrationData.PersonalWebsite.length >
+ 0 && (
- {user.registrationData.PersonalWebsite.replace("https://", "").replace(
- "http://",
- ""
- )}
+ {user.registrationData.PersonalWebsite.replace(
+ "https://",
+ "",
+ ).replace("http://", "")}
)}
-
+
About
{user.profileData.bio}
- {user.profileData.skills && (user.profileData.skills as string[]).length > 0 ? (
+ {user.profileData.skills &&
+ (user.profileData.skills as string[]).length > 0 ? (
<>
- Skills
- {(user.profileData.skills as string[]).join(", ")}
+ Skills
+
+ {(user.profileData.skills as string[]).join(
+ ", ",
+ )}
+
>
) : null}
diff --git a/apps/web/src/components/admin/events/EventColumns.tsx b/apps/web/src/components/admin/events/EventColumns.tsx
index 863fe428..792da88f 100644
--- a/apps/web/src/components/admin/events/EventColumns.tsx
+++ b/apps/web/src/components/admin/events/EventColumns.tsx
@@ -39,7 +39,9 @@ export const columns: ColumnDef[] = [
variant={"outline"}
style={{
borderColor:
- (c.eventTypes as Record)[row.original.type] || c.eventTypes.Other,
+ (c.eventTypes as Record)[
+ row.original.type
+ ] || c.eventTypes.Other,
}}
>
{row.original.type}
diff --git a/apps/web/src/components/admin/events/EventDataTable.tsx b/apps/web/src/components/admin/events/EventDataTable.tsx
index 5981fae5..0af4a9dc 100644
--- a/apps/web/src/components/admin/events/EventDataTable.tsx
+++ b/apps/web/src/components/admin/events/EventDataTable.tsx
@@ -1,6 +1,11 @@
"use client";
-import { ColumnDef, flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-table";
+import {
+ ColumnDef,
+ flexRender,
+ getCoreRowModel,
+ useReactTable,
+} from "@tanstack/react-table";
import {
Table,
@@ -19,7 +24,10 @@ interface DataTableProps {
data: TData[];
}
-export function DataTable({ columns, data }: DataTableProps) {
+export function DataTable({
+ columns,
+ data,
+}: DataTableProps) {
const table = useReactTable({
data,
columns,
@@ -37,7 +45,11 @@ export function DataTable({ columns, data }: DataTableProps
{header.isPlaceholder
? null
- : flexRender(header.column.columnDef.header, header.getContext())}
+ : flexRender(
+ header.column.columnDef
+ .header,
+ header.getContext(),
+ )}
);
})}
@@ -47,17 +59,26 @@ export function DataTable({ columns, data }: DataTableProps
{table.getRowModel().rows?.length ? (
table.getRowModel().rows.map((row) => (
-
+
{row.getVisibleCells().map((cell) => (
- {flexRender(cell.column.columnDef.cell, cell.getContext())}
+ {flexRender(
+ cell.column.columnDef.cell,
+ cell.getContext(),
+ )}
))}
))
) : (
-
+
No results.
diff --git a/apps/web/src/components/admin/events/NewEventForm.tsx b/apps/web/src/components/admin/events/NewEventForm.tsx
index 5c64ded5..e20a7bed 100644
--- a/apps/web/src/components/admin/events/NewEventForm.tsx
+++ b/apps/web/src/components/admin/events/NewEventForm.tsx
@@ -39,7 +39,7 @@ interface NewEventFormProps {
const formSchema = newEventValidator.merge(
z.object({
type: z.enum(Object.keys(c.eventTypes) as any),
- })
+ }),
);
export default function NewEventForm({ defaultDate }: NewEventFormProps) {
@@ -71,7 +71,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
alert("Event Created Successfully! Redirecting to event page...");
router.push(res.data.redirect);
} else {
- alert("Failed to create event, please try again. Error:\n\n" + res.error);
+ alert(
+ "Failed to create event, please try again. Error:\n\n" +
+ res.error,
+ );
}
}
@@ -87,7 +90,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
- Generally its best to keep this short and consise
+
+ Generally its best to keep this short and
+ consise
+
)}
@@ -115,7 +121,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
render={({ field }) => (
Event Type
-
+
+
RSVPs Are Currently Closed
-
- We have currently reached capacity for RSVPs. However, we still encourage you to show up
- for walk-ins! If you have any questions or concerns, feel free to ask on{" "}
+
+ We have currently reached capacity for RSVPs. However,
+ we still encourage you to show up for walk-ins! If you
+ have any questions or concerns, feel free to ask on{" "}
Discord
{" "}
diff --git a/apps/web/src/app/schedule/[id]/page.tsx b/apps/web/src/app/schedule/[id]/page.tsx
index d40e6633..dc45b9c6 100644
--- a/apps/web/src/app/schedule/[id]/page.tsx
+++ b/apps/web/src/app/schedule/[id]/page.tsx
@@ -8,7 +8,10 @@ import Navbar from "@/components/shared/Navbar";
export default async function Page({ params }: { params: { id: string } }) {
if (!params || !params.id || isNaN(parseInt(params.id))) {
return (
-
+
);
}
@@ -20,7 +23,9 @@ export default async function Page({ params }: { params: { id: string } }) {
return (
);
}
diff --git a/apps/web/src/app/settings/account/page.tsx b/apps/web/src/app/settings/account/page.tsx
index 3602f6e0..c9cd28cf 100644
--- a/apps/web/src/app/settings/account/page.tsx
+++ b/apps/web/src/app/settings/account/page.tsx
@@ -6,13 +6,13 @@ import { db } from "db";
import { redirect } from "next/navigation";
export default async function Page() {
- const { userId } = auth();
- const user = await db.query.users.findFirst({
- with: { registrationData: true },
- where: eq(users.clerkID, userId!),
- });
- if (!user) return redirect("/sign-in");
- return ;
+ const { userId } = auth();
+ const user = await db.query.users.findFirst({
+ with: { registrationData: true },
+ where: eq(users.clerkID, userId!),
+ });
+ if (!user) return redirect("/sign-in");
+ return ;
}
export const runtime = "edge";
diff --git a/apps/web/src/app/settings/layout.tsx b/apps/web/src/app/settings/layout.tsx
index 248f704c..fbfb40d2 100644
--- a/apps/web/src/app/settings/layout.tsx
+++ b/apps/web/src/app/settings/layout.tsx
@@ -7,39 +7,39 @@ import { Settings } from "lucide-react";
import ClientToast from "@/components/shared/ClientToast";
export default async function ({ children }: { children: ReactNode }) {
- const { userId } = await auth();
- const user = await currentUser();
+ const { userId } = await auth();
+ const user = await currentUser();
- if (!user || !userId) {
- return redirect("/sign-in");
- }
+ if (!user || !userId) {
+ return redirect("/sign-in");
+ }
- if (!user.publicMetadata.registrationComplete) {
- return redirect("/register");
- }
+ if (!user.publicMetadata.registrationComplete) {
+ return redirect("/register");
+ }
- return (
- <>
-
-
-
-
-
-
-
-
- Settings
-
-
-
-
-
- {/* */}
-
-
-
- {children}
-
- >
- );
+ return (
+ <>
+
+
+
+
+
+
+
+
+ Settings
+
+
+
+
+
+ {/* */}
+
+
+
+ {children}
+
+ >
+ );
}
diff --git a/apps/web/src/app/settings/profile/page.tsx b/apps/web/src/app/settings/profile/page.tsx
index 3e243c50..6140f8bb 100644
--- a/apps/web/src/app/settings/profile/page.tsx
+++ b/apps/web/src/app/settings/profile/page.tsx
@@ -5,22 +5,22 @@ import { eq } from "db/drizzle";
import { auth } from "@clerk/nextjs";
export default async function Page() {
- const { userId } = auth();
- if (!userId) throw new Error("User not found");
- const user = await db.query.users.findFirst({
- where: eq(users.clerkID, userId),
- with: {
- profileData: true,
- registrationData: true,
- },
- });
- if (!user) throw new Error("User not found");
- return (
-
- );
+ const { userId } = auth();
+ if (!userId) throw new Error("User not found");
+ const user = await db.query.users.findFirst({
+ where: eq(users.clerkID, userId),
+ with: {
+ profileData: true,
+ registrationData: true,
+ },
+ });
+ if (!user) throw new Error("User not found");
+ return (
+
+ );
}
export const runtime = "edge";
diff --git a/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx b/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
index 7be35932..057a6407 100644
--- a/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
+++ b/apps/web/src/app/sign-up/[[...sign-up]]/page.tsx
@@ -6,40 +6,47 @@ import { Button } from "@/components/shadcn/ui/button";
import Link from "next/link";
export default async function Page() {
- const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (string | null)[] =
- await kv.mget(
- "config:registration:registrationEnabled",
- "config:registration:secretRegistrationEnabled"
- );
+ const [defaultRegistrationEnabled, defaultSecretRegistrationEnabled]: (
+ | string
+ | null
+ )[] = await kv.mget(
+ "config:registration:registrationEnabled",
+ "config:registration:secretRegistrationEnabled",
+ );
if (parseRedisBoolean(defaultRegistrationEnabled, true) === true) {
return (
-
+
);
}
return (
-
-
+
+
{c.hackathonName}
-
+
Registration
-
- Registration Is Currently Closed
+
+
+ Registration Is Currently Closed
+
- If you believe this is a mistake or have any questions, feel free to reach out to us at{" "}
- {c.issueEmail}!
+ If you believe this is a mistake or have any questions, feel
+ free to reach out to us at {c.issueEmail}!
Return Home
-
+
Already registered?{" "}
-
+
Sign-in.
diff --git a/apps/web/src/app/team/[tag]/page.tsx b/apps/web/src/app/team/[tag]/page.tsx
index 49ffd857..e1a0c5ab 100644
--- a/apps/web/src/app/team/[tag]/page.tsx
+++ b/apps/web/src/app/team/[tag]/page.tsx
@@ -25,9 +25,9 @@ export default async function Page({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
- {team.name}
- {team.bio && team.bio.length > 0 && {team.bio}
}
-
+ {team.name}
+ {team.bio && team.bio.length > 0 && (
+ {team.bio}
+ )}
+
{team.members.map((member) => (
-
+
-
+
{member.firstName} {member.lastName}
-
+
@{member.hackerTag}
diff --git a/apps/web/src/app/user/[tag]/page.tsx b/apps/web/src/app/user/[tag]/page.tsx
index dac2a9bd..db7a3dc7 100644
--- a/apps/web/src/app/user/[tag]/page.tsx
+++ b/apps/web/src/app/user/[tag]/page.tsx
@@ -22,11 +22,11 @@ export default async function ({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
-
+
-
+
{user.firstName} {user.lastName}
-
- @{user.hackerTag}
+
+
+ @{user.hackerTag}
+
- {user.registrationData.GitHub && user.registrationData.GitHub.length > 0 && (
-
-
- {user.registrationData.GitHub}
-
- )}
- {user.registrationData.LinkedIn && user.registrationData.LinkedIn.length > 0 && (
-
-
- {user.registrationData.LinkedIn}
-
- )}
+ {user.registrationData.GitHub &&
+ user.registrationData.GitHub.length > 0 && (
+
+
+ {user.registrationData.GitHub}
+
+ )}
+ {user.registrationData.LinkedIn &&
+ user.registrationData.LinkedIn.length > 0 && (
+
+
+ {user.registrationData.LinkedIn}
+
+ )}
{user.registrationData.PersonalWebsite &&
- user.registrationData.PersonalWebsite.length > 0 && (
+ user.registrationData.PersonalWebsite.length >
+ 0 && (
- {user.registrationData.PersonalWebsite.replace("https://", "").replace(
- "http://",
- ""
- )}
+ {user.registrationData.PersonalWebsite.replace(
+ "https://",
+ "",
+ ).replace("http://", "")}
)}
-
+
About
{user.profileData.bio}
- {user.profileData.skills && (user.profileData.skills as string[]).length > 0 ? (
+ {user.profileData.skills &&
+ (user.profileData.skills as string[]).length > 0 ? (
<>
- Skills
- {(user.profileData.skills as string[]).join(", ")}
+ Skills
+
+ {(user.profileData.skills as string[]).join(
+ ", ",
+ )}
+
>
) : null}
diff --git a/apps/web/src/components/admin/events/EventColumns.tsx b/apps/web/src/components/admin/events/EventColumns.tsx
index 863fe428..792da88f 100644
--- a/apps/web/src/components/admin/events/EventColumns.tsx
+++ b/apps/web/src/components/admin/events/EventColumns.tsx
@@ -39,7 +39,9 @@ export const columns: ColumnDef[] = [
variant={"outline"}
style={{
borderColor:
- (c.eventTypes as Record)[row.original.type] || c.eventTypes.Other,
+ (c.eventTypes as Record)[
+ row.original.type
+ ] || c.eventTypes.Other,
}}
>
{row.original.type}
diff --git a/apps/web/src/components/admin/events/EventDataTable.tsx b/apps/web/src/components/admin/events/EventDataTable.tsx
index 5981fae5..0af4a9dc 100644
--- a/apps/web/src/components/admin/events/EventDataTable.tsx
+++ b/apps/web/src/components/admin/events/EventDataTable.tsx
@@ -1,6 +1,11 @@
"use client";
-import { ColumnDef, flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-table";
+import {
+ ColumnDef,
+ flexRender,
+ getCoreRowModel,
+ useReactTable,
+} from "@tanstack/react-table";
import {
Table,
@@ -19,7 +24,10 @@ interface DataTableProps {
data: TData[];
}
-export function DataTable({ columns, data }: DataTableProps) {
+export function DataTable({
+ columns,
+ data,
+}: DataTableProps) {
const table = useReactTable({
data,
columns,
@@ -37,7 +45,11 @@ export function DataTable({ columns, data }: DataTableProps
{header.isPlaceholder
? null
- : flexRender(header.column.columnDef.header, header.getContext())}
+ : flexRender(
+ header.column.columnDef
+ .header,
+ header.getContext(),
+ )}
);
})}
@@ -47,17 +59,26 @@ export function DataTable({ columns, data }: DataTableProps
{table.getRowModel().rows?.length ? (
table.getRowModel().rows.map((row) => (
-
+
{row.getVisibleCells().map((cell) => (
- {flexRender(cell.column.columnDef.cell, cell.getContext())}
+ {flexRender(
+ cell.column.columnDef.cell,
+ cell.getContext(),
+ )}
))}
))
) : (
-
+
No results.
diff --git a/apps/web/src/components/admin/events/NewEventForm.tsx b/apps/web/src/components/admin/events/NewEventForm.tsx
index 5c64ded5..e20a7bed 100644
--- a/apps/web/src/components/admin/events/NewEventForm.tsx
+++ b/apps/web/src/components/admin/events/NewEventForm.tsx
@@ -39,7 +39,7 @@ interface NewEventFormProps {
const formSchema = newEventValidator.merge(
z.object({
type: z.enum(Object.keys(c.eventTypes) as any),
- })
+ }),
);
export default function NewEventForm({ defaultDate }: NewEventFormProps) {
@@ -71,7 +71,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
alert("Event Created Successfully! Redirecting to event page...");
router.push(res.data.redirect);
} else {
- alert("Failed to create event, please try again. Error:\n\n" + res.error);
+ alert(
+ "Failed to create event, please try again. Error:\n\n" +
+ res.error,
+ );
}
}
@@ -87,7 +90,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
- Generally its best to keep this short and consise
+
+ Generally its best to keep this short and
+ consise
+
)}
@@ -115,7 +121,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
render={({ field }) => (
Event Type
-
RSVPs Are Currently Closed
-- We have currently reached capacity for RSVPs. However, we still encourage you to show up - for walk-ins! If you have any questions or concerns, feel free to ask on{" "} +
+ We have currently reached capacity for RSVPs. However,
+ we still encourage you to show up for walk-ins! If you
+ have any questions or concerns, feel free to ask on{" "}
Discord
{" "}
diff --git a/apps/web/src/app/schedule/[id]/page.tsx b/apps/web/src/app/schedule/[id]/page.tsx
index d40e6633..dc45b9c6 100644
--- a/apps/web/src/app/schedule/[id]/page.tsx
+++ b/apps/web/src/app/schedule/[id]/page.tsx
@@ -8,7 +8,10 @@ import Navbar from "@/components/shared/Navbar";
export default async function Page({ params }: { params: { id: string } }) {
if (!params || !params.id || isNaN(parseInt(params.id))) {
return (
-
-
- Settings
-
-
+
+ Settings
+
+ {c.hackathonName}
-
+
Registration
-
- Registration Is Currently Closed
+
+
+ Registration Is Currently Closed
+
- If you believe this is a mistake or have any questions, feel free to reach out to us at{" "}
- {c.issueEmail}!
+ If you believe this is a mistake or have any questions, feel
+ free to reach out to us at {c.issueEmail}!
Return Home
-
+
Already registered?{" "}
-
+
Sign-in.
diff --git a/apps/web/src/app/team/[tag]/page.tsx b/apps/web/src/app/team/[tag]/page.tsx
index 49ffd857..e1a0c5ab 100644
--- a/apps/web/src/app/team/[tag]/page.tsx
+++ b/apps/web/src/app/team/[tag]/page.tsx
@@ -25,9 +25,9 @@ export default async function Page({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
- {team.name}
- {team.bio && team.bio.length > 0 && {team.bio}
}
-
+ {team.name}
+ {team.bio && team.bio.length > 0 && (
+ {team.bio}
+ )}
+
{team.members.map((member) => (
-
+
-
+
{member.firstName} {member.lastName}
-
+
@{member.hackerTag}
diff --git a/apps/web/src/app/user/[tag]/page.tsx b/apps/web/src/app/user/[tag]/page.tsx
index dac2a9bd..db7a3dc7 100644
--- a/apps/web/src/app/user/[tag]/page.tsx
+++ b/apps/web/src/app/user/[tag]/page.tsx
@@ -22,11 +22,11 @@ export default async function ({ params }: { params: { tag: string } }) {
return (
<>
-
-
-
+
+
+
-
+
-
+
{user.firstName} {user.lastName}
-
- @{user.hackerTag}
+
+
+ @{user.hackerTag}
+
- {user.registrationData.GitHub && user.registrationData.GitHub.length > 0 && (
-
-
- {user.registrationData.GitHub}
-
- )}
- {user.registrationData.LinkedIn && user.registrationData.LinkedIn.length > 0 && (
-
-
- {user.registrationData.LinkedIn}
-
- )}
+ {user.registrationData.GitHub &&
+ user.registrationData.GitHub.length > 0 && (
+
+
+ {user.registrationData.GitHub}
+
+ )}
+ {user.registrationData.LinkedIn &&
+ user.registrationData.LinkedIn.length > 0 && (
+
+
+ {user.registrationData.LinkedIn}
+
+ )}
{user.registrationData.PersonalWebsite &&
- user.registrationData.PersonalWebsite.length > 0 && (
+ user.registrationData.PersonalWebsite.length >
+ 0 && (
- {user.registrationData.PersonalWebsite.replace("https://", "").replace(
- "http://",
- ""
- )}
+ {user.registrationData.PersonalWebsite.replace(
+ "https://",
+ "",
+ ).replace("http://", "")}
)}
-
+
About
{user.profileData.bio}
- {user.profileData.skills && (user.profileData.skills as string[]).length > 0 ? (
+ {user.profileData.skills &&
+ (user.profileData.skills as string[]).length > 0 ? (
<>
- Skills
- {(user.profileData.skills as string[]).join(", ")}
+ Skills
+
+ {(user.profileData.skills as string[]).join(
+ ", ",
+ )}
+
>
) : null}
diff --git a/apps/web/src/components/admin/events/EventColumns.tsx b/apps/web/src/components/admin/events/EventColumns.tsx
index 863fe428..792da88f 100644
--- a/apps/web/src/components/admin/events/EventColumns.tsx
+++ b/apps/web/src/components/admin/events/EventColumns.tsx
@@ -39,7 +39,9 @@ export const columns: ColumnDef[] = [
variant={"outline"}
style={{
borderColor:
- (c.eventTypes as Record)[row.original.type] || c.eventTypes.Other,
+ (c.eventTypes as Record)[
+ row.original.type
+ ] || c.eventTypes.Other,
}}
>
{row.original.type}
diff --git a/apps/web/src/components/admin/events/EventDataTable.tsx b/apps/web/src/components/admin/events/EventDataTable.tsx
index 5981fae5..0af4a9dc 100644
--- a/apps/web/src/components/admin/events/EventDataTable.tsx
+++ b/apps/web/src/components/admin/events/EventDataTable.tsx
@@ -1,6 +1,11 @@
"use client";
-import { ColumnDef, flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-table";
+import {
+ ColumnDef,
+ flexRender,
+ getCoreRowModel,
+ useReactTable,
+} from "@tanstack/react-table";
import {
Table,
@@ -19,7 +24,10 @@ interface DataTableProps {
data: TData[];
}
-export function DataTable({ columns, data }: DataTableProps) {
+export function DataTable({
+ columns,
+ data,
+}: DataTableProps) {
const table = useReactTable({
data,
columns,
@@ -37,7 +45,11 @@ export function DataTable({ columns, data }: DataTableProps
{header.isPlaceholder
? null
- : flexRender(header.column.columnDef.header, header.getContext())}
+ : flexRender(
+ header.column.columnDef
+ .header,
+ header.getContext(),
+ )}
);
})}
@@ -47,17 +59,26 @@ export function DataTable({ columns, data }: DataTableProps
{table.getRowModel().rows?.length ? (
table.getRowModel().rows.map((row) => (
-
+
{row.getVisibleCells().map((cell) => (
- {flexRender(cell.column.columnDef.cell, cell.getContext())}
+ {flexRender(
+ cell.column.columnDef.cell,
+ cell.getContext(),
+ )}
))}
))
) : (
-
+
No results.
diff --git a/apps/web/src/components/admin/events/NewEventForm.tsx b/apps/web/src/components/admin/events/NewEventForm.tsx
index 5c64ded5..e20a7bed 100644
--- a/apps/web/src/components/admin/events/NewEventForm.tsx
+++ b/apps/web/src/components/admin/events/NewEventForm.tsx
@@ -39,7 +39,7 @@ interface NewEventFormProps {
const formSchema = newEventValidator.merge(
z.object({
type: z.enum(Object.keys(c.eventTypes) as any),
- })
+ }),
);
export default function NewEventForm({ defaultDate }: NewEventFormProps) {
@@ -71,7 +71,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
alert("Event Created Successfully! Redirecting to event page...");
router.push(res.data.redirect);
} else {
- alert("Failed to create event, please try again. Error:\n\n" + res.error);
+ alert(
+ "Failed to create event, please try again. Error:\n\n" +
+ res.error,
+ );
}
}
@@ -87,7 +90,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
- Generally its best to keep this short and consise
+
+ Generally its best to keep this short and
+ consise
+
)}
@@ -115,7 +121,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
render={({ field }) => (
Event Type
-
Registration Is Currently Closed
++ Registration Is Currently Closed +
- If you believe this is a mistake or have any questions, feel free to reach out to us at{" "} - {c.issueEmail}! + If you believe this is a mistake or have any questions, feel + free to reach out to us at {c.issueEmail}!
+
Already registered?{" "} - + Sign-in.
diff --git a/apps/web/src/app/team/[tag]/page.tsx b/apps/web/src/app/team/[tag]/page.tsx index 49ffd857..e1a0c5ab 100644 --- a/apps/web/src/app/team/[tag]/page.tsx +++ b/apps/web/src/app/team/[tag]/page.tsx @@ -25,9 +25,9 @@ export default async function Page({ params }: { params: { tag: string } }) { return ( <>{team.name}
- {team.bio && team.bio.length > 0 &&{team.bio}
} -{team.name}
+ {team.bio && team.bio.length > 0 && ( +{team.bio}
+ )} +{member.firstName} {member.lastName}
-+
@{member.hackerTag}
+
{user.firstName} {user.lastName}
-
- @{user.hackerTag}
+
+
+ @{user.hackerTag}
+
- {user.registrationData.GitHub && user.registrationData.GitHub.length > 0 && (
-
-
- {user.registrationData.GitHub}
-
- )}
- {user.registrationData.LinkedIn && user.registrationData.LinkedIn.length > 0 && (
-
-
- {user.registrationData.LinkedIn}
-
- )}
+ {user.registrationData.GitHub &&
+ user.registrationData.GitHub.length > 0 && (
+
+
+ {user.registrationData.GitHub}
+
+ )}
+ {user.registrationData.LinkedIn &&
+ user.registrationData.LinkedIn.length > 0 && (
+
+
+ {user.registrationData.LinkedIn}
+
+ )}
{user.registrationData.PersonalWebsite &&
- user.registrationData.PersonalWebsite.length > 0 && (
+ user.registrationData.PersonalWebsite.length >
+ 0 && (
- {user.registrationData.PersonalWebsite.replace("https://", "").replace(
- "http://",
- ""
- )}
+ {user.registrationData.PersonalWebsite.replace(
+ "https://",
+ "",
+ ).replace("http://", "")}
)}
-
+
About
{user.profileData.bio}
- {user.profileData.skills && (user.profileData.skills as string[]).length > 0 ? (
+ {user.profileData.skills &&
+ (user.profileData.skills as string[]).length > 0 ? (
<>
- Skills
- {(user.profileData.skills as string[]).join(", ")}
+ Skills
+
+ {(user.profileData.skills as string[]).join(
+ ", ",
+ )}
+
>
) : null}
diff --git a/apps/web/src/components/admin/events/EventColumns.tsx b/apps/web/src/components/admin/events/EventColumns.tsx
index 863fe428..792da88f 100644
--- a/apps/web/src/components/admin/events/EventColumns.tsx
+++ b/apps/web/src/components/admin/events/EventColumns.tsx
@@ -39,7 +39,9 @@ export const columns: ColumnDef[] = [
variant={"outline"}
style={{
borderColor:
- (c.eventTypes as Record)[row.original.type] || c.eventTypes.Other,
+ (c.eventTypes as Record)[
+ row.original.type
+ ] || c.eventTypes.Other,
}}
>
{row.original.type}
diff --git a/apps/web/src/components/admin/events/EventDataTable.tsx b/apps/web/src/components/admin/events/EventDataTable.tsx
index 5981fae5..0af4a9dc 100644
--- a/apps/web/src/components/admin/events/EventDataTable.tsx
+++ b/apps/web/src/components/admin/events/EventDataTable.tsx
@@ -1,6 +1,11 @@
"use client";
-import { ColumnDef, flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-table";
+import {
+ ColumnDef,
+ flexRender,
+ getCoreRowModel,
+ useReactTable,
+} from "@tanstack/react-table";
import {
Table,
@@ -19,7 +24,10 @@ interface DataTableProps {
data: TData[];
}
-export function DataTable({ columns, data }: DataTableProps) {
+export function DataTable({
+ columns,
+ data,
+}: DataTableProps) {
const table = useReactTable({
data,
columns,
@@ -37,7 +45,11 @@ export function DataTable({ columns, data }: DataTableProps
{header.isPlaceholder
? null
- : flexRender(header.column.columnDef.header, header.getContext())}
+ : flexRender(
+ header.column.columnDef
+ .header,
+ header.getContext(),
+ )}
);
})}
@@ -47,17 +59,26 @@ export function DataTable({ columns, data }: DataTableProps
{table.getRowModel().rows?.length ? (
table.getRowModel().rows.map((row) => (
-
+
{row.getVisibleCells().map((cell) => (
- {flexRender(cell.column.columnDef.cell, cell.getContext())}
+ {flexRender(
+ cell.column.columnDef.cell,
+ cell.getContext(),
+ )}
))}
))
) : (
-
+
No results.
diff --git a/apps/web/src/components/admin/events/NewEventForm.tsx b/apps/web/src/components/admin/events/NewEventForm.tsx
index 5c64ded5..e20a7bed 100644
--- a/apps/web/src/components/admin/events/NewEventForm.tsx
+++ b/apps/web/src/components/admin/events/NewEventForm.tsx
@@ -39,7 +39,7 @@ interface NewEventFormProps {
const formSchema = newEventValidator.merge(
z.object({
type: z.enum(Object.keys(c.eventTypes) as any),
- })
+ }),
);
export default function NewEventForm({ defaultDate }: NewEventFormProps) {
@@ -71,7 +71,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
alert("Event Created Successfully! Redirecting to event page...");
router.push(res.data.redirect);
} else {
- alert("Failed to create event, please try again. Error:\n\n" + res.error);
+ alert(
+ "Failed to create event, please try again. Error:\n\n" +
+ res.error,
+ );
}
}
@@ -87,7 +90,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
- Generally its best to keep this short and consise
+
+ Generally its best to keep this short and
+ consise
+
)}
@@ -115,7 +121,10 @@ export default function NewEventForm({ defaultDate }: NewEventFormProps) {
render={({ field }) => (
Event Type
-
@{user.hackerTag}
++ @{user.hackerTag} +
About
Skills
-{(user.profileData.skills as string[]).join(", ")}
+Skills
++ {(user.profileData.skills as string[]).join( + ", ", + )} +
> ) : null}