Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed audit.json
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"typecheck": "turbo run typecheck"
},
"dependencies": {
"next": "16.2.3",
"next": "16.2.6",
"typescript": "^5.8.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"drizzle-orm": "0.45.2",
"image-size": "2.0.2",
"minimatch": "10.2.3",
"sanitize-html": "2.17.0",
"sanitize-html": "2.17.4",
"stripe": "^22.0.0",
"superjson": "2.2.3",
"zod": "3.25.53"
Expand Down
1 change: 1 addition & 0 deletions packages/api/src/middleware/security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ const SANITIZE_OPTIONS: sanitizeHtml.IOptions = {
allowedTags: [],
allowedAttributes: {},
disallowedTagsMode: 'discard',
nonTextTags: ['style', 'script', 'textarea', 'noscript', 'option', 'xmp'],
};

export function sanitizeInput(input: unknown, depth: number = 0): unknown {
Expand Down
28 changes: 28 additions & 0 deletions packages/api/src/routers/hackathon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,34 @@ export const hackathonRouter = createTRPCRouter({
return attendees;
}),

updateParticipantStatus: isAdmin
.input(z.object({
hackathonId: z.string().uuid("Invalid hackathon ID"),
participantId: z.string().uuid("Invalid participant ID"),
status: z.enum(["pending", "approved", "rejected", "waitlisted", "checked_in"]),
}))
.mutation(async ({ ctx, input }) => {
const participant = await (ctx.db as DrizzleDB).query.hackathonParticipants.findFirst({
where: and(
eq(hackathonParticipants.id, input.participantId),
eq(hackathonParticipants.hackathonId, input.hackathonId)
),
});

if (!participant) {
throw new TRPCError({ code: "NOT_FOUND", message: "Participant not found" });
}

await (ctx.db as DrizzleDB)
.update(hackathonParticipants)
.set({ registrationStatus: input.status })
.where(eq(hackathonParticipants.id, input.participantId));

ctx.cache.deletePattern('hackathon*');

return { success: true };
}),

analytics: isAdmin
.input(z.object({ hackathonId: z.string().uuid("Invalid hackathon ID") }))
.query(async ({ ctx, input }) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/db/.cache/tsbuildinfo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"react": "^18.3.1 || ^19.0.0"
},
"devDependencies": {
"@next/eslint-plugin-next": "16.2.1",
"@next/eslint-plugin-next": "16.2.6",
"@query/eslint-config": "workspace:*",
"@query/tailwind-config": "workspace:*",
"@query/tsconfig": "workspace:*",
Expand Down
211 changes: 100 additions & 111 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sites/discordBot/temp_checkin.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const https = require('https');

const token = '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';
const token = process.env.NOTION_API_TOKEN;
const pageId = '2aac5c7f-72ad-80bf-a0f9-c66c9626abfb';

function getChildren(id) {
Expand Down
120 changes: 120 additions & 0 deletions sites/hacklytics2027/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sites/hacklytics2027/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"class-variance-authority": "0.7.1",
"clsx": "2.1.1",
"firebase": "^12.13.0",
"next": "16.2.3",
"next": "16.2.6",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-icons": "5.5.0",
"tailwind-merge": "3.5.0"
},
"devDependencies": {
"@next/eslint-plugin-next": "16.2.1",
"@next/eslint-plugin-next": "16.2.6",
"@tailwindcss/postcss": "4.1.8",
"@types/node": "22.15.32",
"@types/react": "^19.1.3",
Expand Down
2 changes: 1 addition & 1 deletion sites/mainweb/.cache/tsbuildinfo.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion sites/mainweb/app/(portal)/admin/analytics/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { trpc } from '@/lib/trpc';
import { useRouter } from 'next/navigation';
import AdminLayout from '@/components/portal/AdminLayout';
import { LiquidGlass } from '@/components/portal/LiquidGlass';
import { Users, Trophy, Calendar, TrendingUp } from 'lucide-react';
import { Users, Trophy, Calendar, TrendingUp, QrCode } from 'lucide-react';
import type { LucideIcon } from 'lucide-react';

interface StatCardProps {
Expand Down Expand Up @@ -91,6 +91,9 @@ export default function AnalyticsPage() {
<div className="relative mb-8 p-6 border border-white/5 bg-gradient-to-br from-accent/8 via-cyan-900/10 to-transparent rounded-2xl overflow-hidden group hover:border-accent/40 transition-all duration-500">
<div className="absolute inset-0 bg-gradient-to-r from-accent/5 via-transparent to-emerald-500/5 opacity-0 group-hover:opacity-100 transition-opacity duration-500" />
<div className="absolute -top-24 -right-24 w-56 h-56 bg-accent/10 rounded-full blur-[100px] opacity-0 group-hover:opacity-100 transition-opacity duration-500" />
<p className="text-[10px] font-mono text-[#00A8A8]/60 uppercase tracking-[0.2em] mb-1 relative z-10 flex items-center gap-2">
<QrCode className="w-3 h-3" /> Club Events
</p>
<h1 className="relative text-3xl font-black text-white tracking-tighter mb-2 group-hover:text-transparent group-hover:bg-clip-text group-hover:bg-gradient-to-r group-hover:from-white group-hover:via-cyan-100 to-gray-400 transition-all duration-500">
Analytics <span className="text-accent italic">Dashboard</span>
</h1>
Expand Down
5 changes: 4 additions & 1 deletion sites/mainweb/app/(portal)/admin/attendees/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useState } from 'react';
import { skipToken } from '@tanstack/react-query';
import AdminLayout from '@/components/portal/AdminLayout';
import { LiquidGlass } from '@/components/portal/LiquidGlass';
import { Download } from 'lucide-react';
import { Download, QrCode } from 'lucide-react';

export default function AttendeesPage() {
const { data: session, status } = useSession();
Expand Down Expand Up @@ -46,6 +46,9 @@ export default function AttendeesPage() {
{/* Page Header */}
<div className="relative mb-6 p-6 border border-white/5 bg-gradient-to-br from-accent/8 via-cyan-900/10 to-transparent rounded-2xl overflow-hidden group hover:border-accent/40 transition-all duration-500">
<div className="absolute inset-0 bg-gradient-to-r from-accent/5 via-transparent to-emerald-500/5 opacity-0 group-hover:opacity-100 transition-opacity duration-500" />
<p className="text-[10px] font-mono text-[#00A8A8]/60 uppercase tracking-[0.2em] mb-1 relative z-10 flex items-center gap-2">
<QrCode className="w-3 h-3" /> Club Events
</p>
<h1 className="relative text-3xl font-black text-white tracking-tighter mb-3 group-hover:text-transparent group-hover:bg-clip-text group-hover:bg-gradient-to-r group-hover:from-accent group-hover:via-cyan-400 group-hover:to-emerald-500 transition-all duration-500">
Attendees <span className="text-accent italic font-bold">Registry</span>
</h1>
Expand Down
4 changes: 4 additions & 0 deletions sites/mainweb/app/(portal)/admin/hackathons/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { getStatusMeta } from '@/components/admin/hackathons/constants';
import { HackathonCard } from '@/components/admin/hackathons/HackathonCard';
import { CreateHackathonForm } from '@/components/admin/hackathons/CreateHackathonForm';
import { EditHackathonForm } from '@/components/admin/hackathons/EditHackathonForm';
import { Zap } from 'lucide-react';

export default function AdminHackathonsPage() {
const { data: session, status } = useSession();
Expand Down Expand Up @@ -42,6 +43,9 @@ export default function AdminHackathonsPage() {
<div className="absolute inset-0 bg-gradient-to-r from-accent/5 via-transparent to-emerald-500/5 opacity-0 group-hover:opacity-100 transition-opacity duration-500" />
<div className="absolute -top-24 -right-24 w-56 h-56 bg-accent/10 rounded-full blur-[100px] opacity-0 group-hover:opacity-100 transition-opacity duration-500" />

<p className="text-[10px] font-mono text-[#00A8A8]/60 uppercase tracking-[0.2em] mb-1 relative z-10 flex items-center gap-2">
<Zap className="w-3 h-3" /> Hackathon Hub
</p>
<h1 className="relative text-3xl font-black text-white tracking-tighter mb-2 group-hover:text-transparent group-hover:bg-clip-text group-hover:bg-gradient-to-r group-hover:from-white group-hover:via-cyan-100 to-gray-400 transition-all duration-500">
Hackathon <span className="text-accent italic">Manager</span>
</h1>
Expand Down
4 changes: 4 additions & 0 deletions sites/mainweb/app/(portal)/admin/judging/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';

import React, { useState, useEffect, useMemo } from 'react';
import { Zap } from 'lucide-react';
import { useSession } from 'next-auth/react';
import { trpc } from '@/lib/trpc';
import { useRouter } from 'next/navigation';
Expand Down Expand Up @@ -137,6 +138,9 @@ export default function AdminResultsPage() {
</svg>
</div>
<div>
<p className="text-[10px] font-mono text-[#00A8A8]/60 uppercase tracking-[0.2em] mb-1 flex items-center gap-2">
<Zap className="w-3 h-3" /> Hackathon Hub
</p>
<h1 className="text-6xl font-black text-white uppercase tracking-tighter mb-1 group-hover:text-transparent group-hover:bg-clip-text group-hover:bg-gradient-to-r group-hover:from-white group-hover:via-cyan-100 to-gray-400 transition-all duration-500">
Voting <span className="text-accent italic">Results</span>
</h1>
Expand Down
10 changes: 8 additions & 2 deletions sites/mainweb/app/(portal)/admin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { QRCodeModal } from '@/components/portal/QRCodeModal';
import { EventFormModal } from '@/components/portal/EventFormModal';
import { LiquidGlass } from '@/components/portal/LiquidGlass';
import AdminLayout from '@/components/portal/AdminLayout';
import { QrCode } from 'lucide-react';


type Event = {
id: string;
Expand Down Expand Up @@ -135,12 +137,16 @@ export default function AdminPage() {
<div className="relative z-10 max-w-7xl mx-auto">
<div className="mb-6 p-5 border border-white/5 bg-gradient-to-br from-accent/5 via-cyan-900/10 to-transparent rounded-2xl relative overflow-hidden group hover:border-accent/30 transition-all duration-500">
<div className="absolute inset-0 bg-gradient-to-r from-accent/5 via-transparent to-emerald-500/5 opacity-0 group-hover:opacity-100 transition-opacity duration-500" />
<p className="text-[10px] font-mono text-[#00A8A8]/60 uppercase tracking-[0.2em] mb-1 relative z-10 flex items-center gap-2">
<QrCode className="w-3 h-3" /> Club Events
</p>
<h1 className="text-2xl font-black text-white tracking-tight mb-2 relative z-10 animate-in fade-in slide-in-from-left-4">
Check-in <span className="text-transparent bg-clip-text bg-gradient-to-r from-accent via-cyan-400 to-emerald-500 italic">Events</span>
Check-in <span className="text-transparent bg-clip-text bg-gradient-to-r from-accent via-cyan-400 to-emerald-500 italic">Manager</span>
</h1>
<p className="text-text-muted text-sm relative z-10">Manage your event check-in locations, QR codes, and attendance tracking.</p>
<p className="text-text-muted text-sm relative z-10">Create events, generate QR codes, and track attendance for general club gatherings.</p>
</div>


{/* View Controls */}
<div className="flex items-center justify-between mb-6">
<div className="flex items-center bg-black/30 border border-white/5 p-2 rounded-xl gap-2">
Expand Down
5 changes: 4 additions & 1 deletion sites/mainweb/app/(portal)/admin/projects/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useRouter } from 'next/navigation';
import { useState } from 'react';
import AdminLayout from '@/components/portal/AdminLayout';
import { LiquidGlass } from '@/components/portal/LiquidGlass';
import { Clock, AlertCircle } from 'lucide-react';
import { Clock, AlertCircle, Zap } from 'lucide-react';
import { skipToken } from '@tanstack/react-query';

export default function ProjectsPage() {
Expand Down Expand Up @@ -54,6 +54,9 @@ export default function ProjectsPage() {
<div className="relative mb-6 p-6 border border-white/5 bg-gradient-to-br from-accent/8 via-cyan-900/12 to-transparent rounded-2xl overflow-hidden group hover:border-accent/40 transition-all duration-500">
<div className="absolute inset-0 bg-gradient-to-r from-accent/5 via-transparent to-emerald-500/5 opacity-0 group-hover:opacity-100 transition-opacity duration-500" />
<div className="absolute -bottom-20 -right-20 w-56 h-56 bg-accent/10 rounded-full blur-[100px] opacity-0 group-hover:opacity-100 transition-opacity duration-500" />
<p className="text-[10px] font-mono text-[#00A8A8]/60 uppercase tracking-[0.2em] mb-1 relative z-10 flex items-center gap-2">
<Zap className="w-3 h-3" /> Hackathon Hub
</p>
<h1 className="relative text-3xl font-black text-white tracking-tighter mb-3 group-hover:text-transparent group-hover:bg-clip-text group-hover:bg-gradient-to-r group-hover:from-accent group-hover:via-cyan-400 group-hover:to-emerald-500 transition-all duration-500">
Projects <span className="text-accent italic font-bold">Manager</span>
</h1>
Expand Down
Loading
Loading