Skip to content
Merged
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
2 changes: 1 addition & 1 deletion functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,4 @@ exports.getLinksPage = onCall(
// await getFirestore().collection("riserData").add(result);

// return { text: "hi" };
// });
// });
14 changes: 14 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@vitejs/plugin-react": "^3.1.0",
"autoprefixer": "^10.4.16",
"eslint": "^8.51.0",
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.33.2",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/HMButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const HMButton = ({ text, color, style, span, link }: Props) => {
style = 'disabled';
}

let key = {
const key = {
filled: {
primary: ['bg-yellow-500'],
secondary: ['bg-blue-500'],
Expand Down
8 changes: 4 additions & 4 deletions src/routes/Events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ const Events = () => {
// Animations
const scrollRef = useRef(null);

let { scrollYProgress } = useScroll({
const { scrollYProgress } = useScroll({
target: scrollRef,
offset: ["start start", "end start"],
});

let y = useTransform(scrollYProgress, [0, 1], ["0%", "80%"]);
let opacityValue = useTransform(scrollYProgress, [0, 0.8], ["100%", "0%"]);
let scaleValue = useTransform(scrollYProgress, [0, 0.8], ["1", "0.9"]);
const y = useTransform(scrollYProgress, [0, 1], ["0%", "80%"]);
const opacityValue = useTransform(scrollYProgress, [0, 0.8], ["100%", "0%"]);
const scaleValue = useTransform(scrollYProgress, [0, 0.8], ["1", "0.9"]);

return (
<div className="w-screen max-w-full">
Expand Down
8 changes: 4 additions & 4 deletions src/routes/MeetTheTeam.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ const MeetTheTeam = () => {
// Animations
const scrollRef = useRef(null);

let { scrollYProgress } = useScroll({
const { scrollYProgress } = useScroll({
target: scrollRef,
offset: ["start start", "end start"],
});

let y = useTransform(scrollYProgress, [0, 1], ["0%", "80%"]);
let opacityValue = useTransform(scrollYProgress, [0, 0.7], ["100%", "0%"]);
let scaleValue = useTransform(scrollYProgress, [0, 0.8], ["1", "0.9"]);
const y = useTransform(scrollYProgress, [0, 1], ["0%", "80%"]);
const opacityValue = useTransform(scrollYProgress, [0, 0.7], ["100%", "0%"]);
const scaleValue = useTransform(scrollYProgress, [0, 0.8], ["1", "0.9"]);

return (
<div>
Expand Down
8 changes: 4 additions & 4 deletions src/routes/Sponsors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ const Sponsors = () => {
// Animations
const scrollRef = useRef(null);

let { scrollYProgress } = useScroll({
const { scrollYProgress } = useScroll({
target: scrollRef,
offset: ["start start", "end start"],
});

let y = useTransform(scrollYProgress, [0, 1], ["0%", "80%"]);
let opacityValue = useTransform(scrollYProgress, [0, 0.7], ["100%", "0%"]);
let scaleValue = useTransform(scrollYProgress, [0, 0.8], ["1", "0.9"]);
const y = useTransform(scrollYProgress, [0, 1], ["0%", "80%"]);
const opacityValue = useTransform(scrollYProgress, [0, 0.7], ["100%", "0%"]);
const scaleValue = useTransform(scrollYProgress, [0, 0.8], ["1", "0.9"]);

return (
<div className="w-screen max-w-full">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/eventPages/GameComplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { RiserOutputData } from "./RiserGame.model";
import { useLocation, useNavigate } from "react-router-dom";

const GameComplete = () => {
let data: RiserOutputData = useLocation().state;
const data: RiserOutputData = useLocation().state;

const navigate = useNavigate();

Expand Down
8 changes: 4 additions & 4 deletions src/routes/eventPages/OWeek.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ export default function RiserGame() {

// Animations
const scrollRef = useRef(null);
let { scrollYProgress } = useScroll({
const { scrollYProgress } = useScroll({
target: scrollRef,
offset: ["start start", "end start"],
});
let y = useTransform(scrollYProgress, [0, 1], ["0%", "80%"]);
let opacityValue = useTransform(scrollYProgress, [0, 0.6], ["100%", "0%"]);
let scaleValue = useTransform(scrollYProgress, [0, 0.9], ["1", "0.9"]);
const y = useTransform(scrollYProgress, [0, 1], ["0%", "80%"]);
const opacityValue = useTransform(scrollYProgress, [0, 0.6], ["100%", "0%"]);
const scaleValue = useTransform(scrollYProgress, [0, 0.9], ["1", "0.9"]);

// Form Field Values
const [firstName, setFirstName] = useState("");
Expand Down
6 changes: 3 additions & 3 deletions src/routes/eventPages/OWeekGame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { RiserGameModel, RiserOutputData, RiserUserInput } from "./RiserGame.mod

const OWeekGame = () => {
const navigate = useNavigate();
let data: RiserUserInput = useLocation().state;
const data: RiserUserInput = useLocation().state;

// If data is empty
useEffect(() => {
Expand All @@ -23,7 +23,7 @@ const OWeekGame = () => {

const [result, setResult] = useState<number[]>([]);

let userGameData: RiserGameModel = {
const userGameData: RiserGameModel = {
name: data.name,
email: data.email,
studentID: data.studentID,
Expand Down Expand Up @@ -75,7 +75,7 @@ const OWeekGame = () => {
alert("Oops! You went over 2024! Your score is disqualified");
result.push(0);
} else {
let tempResult = result;
const tempResult = result;
tempResult.push(time);
setResult(tempResult);
console.log(result);
Expand Down
4 changes: 2 additions & 2 deletions src/services/cleanEmails.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export default function cleanEmail(email: string): string {
// Define the regex pattern
var pattern = /\.(?=.*@)|\+.*(?=@)/g;
const pattern = /\.(?=.*@)|\+.*(?=@)/g;

// Use replace() method to replace matches with an empty string
var outputString = email.replace(pattern, "");
const outputString = email.replace(pattern, "");

return outputString;
}
2 changes: 1 addition & 1 deletion src/services/firestoreServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function isUniqueEmail(id: string): Promise<boolean> {
export async function getRiserLeaderboard(): Promise<RankEntry[]> {
const leaderboardRef = collection(db, "riserData");

let leaderboardData: RankEntry[] = [];
const leaderboardData: RankEntry[] = [];

try {
// Add orderby time when firebase functions implements feature
Expand Down
2 changes: 1 addition & 1 deletion src/services/linksPageServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { LinkItemProps } from "../features/LinkItem/LinkItemProps";

export async function getLinksPage(): Promise<LinkItemProps[]> {
try {
let result = await httpsCallable(functions, "getLinksPage")();
const result = await httpsCallable(functions, "getLinksPage")();

// Storing result to localStorage for faster load times for next visits
localStorage.setItem("links", JSON.stringify(result));
Expand Down
2 changes: 1 addition & 1 deletion src/services/meetTeamServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Member } from "../features/TeamComponent/TeamComponent.model";

export async function getMeetTheTeam(): Promise<Member[]> {
try {
let result = await httpsCallable(functions, "getMeetTheTeam")();
const result = await httpsCallable(functions, "getMeetTheTeam")();
return result.data as Member[];
} catch (e) {
console.log(e);
Expand Down
2 changes: 1 addition & 1 deletion src/services/tournamentServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { TournamentBracketProps } from "../features/TournamentBracket/Tournament

export async function getHackiethonBrackets(): Promise<TournamentBracketProps[]> {
try {
let result = await httpsCallable(functions, "getHackiethonBrackets")();
const result = await httpsCallable(functions, "getHackiethonBrackets")();
return result.data as TournamentBracketProps[];
} catch (e) {
console.log(e);
Expand Down
Loading