From 39c91e124e4e14f5982bfa337b0c8cf7157aa0e4 Mon Sep 17 00:00:00 2001 From: ericnd Date: Thu, 29 Aug 2024 15:04:33 +1000 Subject: [PATCH] removed original resources page --- src/data/navLinksData.ts | 26 +------ src/pages/resources/exam-bank.tsx | 122 ------------------------------ src/pages/resources/index.tsx | 37 --------- src/pages/resources/latex.tsx | 99 ------------------------ src/pages/resources/matlab.tsx | 67 ---------------- src/pages/resources/r.tsx | 54 ------------- src/pages/resources/revision.tsx | 74 ------------------ src/pages/resources/sheets.tsx | 79 ------------------- 8 files changed, 4 insertions(+), 554 deletions(-) delete mode 100644 src/pages/resources/exam-bank.tsx delete mode 100644 src/pages/resources/index.tsx delete mode 100644 src/pages/resources/latex.tsx delete mode 100644 src/pages/resources/matlab.tsx delete mode 100644 src/pages/resources/r.tsx delete mode 100644 src/pages/resources/revision.tsx delete mode 100644 src/pages/resources/sheets.tsx diff --git a/src/data/navLinksData.ts b/src/data/navLinksData.ts index f887bbc2..a5fb94a5 100644 --- a/src/data/navLinksData.ts +++ b/src/data/navLinksData.ts @@ -40,30 +40,12 @@ const navLinks: navLink[] = [ dropdown: [], mobileOnly: false }, - // TODO: use resourceData + + // You can actually just add an entire link and it will work (thanks alvin) { name: "Resources", - route: "/resources", - dropdown: [ - { name: "Our Resources", subRoute: "/", useRelativeRoute: true }, - { name: "First Year Exam Bank", subRoute: "/exam-bank", useRelativeRoute: true }, - { name: "Revision Lectures", subRoute: "/revision", useRelativeRoute: true }, - { name: "Revision Sheets", subRoute: "/sheets", useRelativeRoute: true }, - { name: "LaTeX Guide", subRoute: "/latex", useRelativeRoute: true }, - { name: "MATLAB Guide", subRoute: "/matlab", useRelativeRoute: true }, - { name: "R Guide", subRoute: "/r", useRelativeRoute: true }, - { name: "Applications", subRoute: "/applications", useRelativeRoute: false }, - { - name: "First Year Guide", - subRoute: "/files/resources/misc/mathsoc-firstyearguide.pdf", - useRelativeRoute: false - }, - { - name: "HSC Tips & Tricks", - subRoute: "/files/resources/misc/HSC-Tips-and-Tricks-Booklet-2019.pdf", - useRelativeRoute: false - } - ], + route: "https://drive.google.com/drive/folders/1v7WrVhAzZxtIhkEXeDMUiaoKF8jHkV96?usp=sharing", + dropdown: [], mobileOnly: false }, { diff --git a/src/pages/resources/exam-bank.tsx b/src/pages/resources/exam-bank.tsx deleted file mode 100644 index e6ed2e6a..00000000 --- a/src/pages/resources/exam-bank.tsx +++ /dev/null @@ -1,122 +0,0 @@ -// Library Imports -import React from "react"; -import Head from "next/head"; -import { Typography } from "@mui/material"; - -// Component Imports -import PageBody from "components/PageBody"; -import WholePageBox from "src/components/WholePageBox"; -import ResourceHero from "src/components/ResourceHero"; -import Tile from "components/Tile"; - -// Styling -import styles from "src/styles/examBank.module.scss"; - -// Data -import { RevisionTile } from "src/data/revisionData"; -import { examBankInfo } from "src/data/resourceData"; -import { fetchSubjectResources } from "src/lib/api"; - -interface ExamBankProps { - examBankData: RevisionTile[]; - oldExamBankData: RevisionTile[]; -} -const ExamBank: React.FC = ({ examBankData, oldExamBankData }) => { - return ( -
- - {examBankInfo.title} - MathSoc - - - - - - - These are solutions to sample lab tests created by MathSoc. Please let us know if you - find any errors! - - - Your lab tests will involve questions very similar to those in the sample question - banks. Basically they'll change the numbers to make sure you think about how to - solve the problem, rather than remember the letters, digits etc. - - - What we have prepared are responses to sample questions generated from the question - bank. You should always try to do the problems first yourself first. Should you get - stuck, however, you can refer to our samples here to guide you back on the right track! - - - To get good marks, you should definitely not be relying on these solutions at all in the - end. You should have attempted the sample questions on MapleTA often enough to handle it - all yourself! - - - Note that these solutions are NOT endorsed by the UNSW School of Mathematics & - Statistics, and that errors may exist. If you find answers that are incorrect, please - send us a message, and we’ll try to address the question as soon as possible. - - Good luck studying 🙂 - (More solutions are currently being written.) - -
-
-
- {examBankData.map((tileData) => ( - - ))} -
-
-
- - - The following resources were used in the old semester model, where tutorial tests were - present instead of laboratory tests. We have chosen to keep these resources to respect - the work of the education teams before ours. - - - We will NOT be disclosing these past tutorial tests as they are copyrighted to UNSW - School of Mathematics and Statistics, and we have not obtained any permission to - distribute them. - - -
-
-
- {oldExamBankData.map((tileData) => ( - - ))} -
-
-
-
- ); -}; - -export const getStaticProps = async () => { - const allExamBankData = await fetchSubjectResources(/Sample Paper/); - const examBankData = [...allExamBankData]; - const oldExamBankData = [...allExamBankData]; - for (let i = 0; i < examBankData.length; i++) { - examBankData[i] = { ...examBankData[i] }; - oldExamBankData[i] = { ...oldExamBankData[i] }; - examBankData[i].revisionLinks = examBankData[i].revisionLinks.filter( - (revisionLink) => !/OLD /.test(revisionLink.groupHeader) - ); - oldExamBankData[i].revisionLinks = oldExamBankData[i].revisionLinks.filter((revisionLink) => - /OLD /.test(revisionLink.groupHeader) - ); - } - - return { - props: { - examBankData: examBankData.filter((data) => data.revisionLinks.length > 0), - oldExamBankData: oldExamBankData.filter((data) => data.revisionLinks.length > 0) - } - }; -}; -export default ExamBank; diff --git a/src/pages/resources/index.tsx b/src/pages/resources/index.tsx deleted file mode 100644 index 74bf67f7..00000000 --- a/src/pages/resources/index.tsx +++ /dev/null @@ -1,37 +0,0 @@ -// Library Imports -import React from "react"; -import Head from "next/head"; - -// Component Imports -import PageBody from "components/PageBody"; -import Hero from "src/components/Hero"; -import Strip from "components/Strip"; - -// Styling -import styles from "src/styles/resources.module.scss"; - -// Data -import resourceInfo from "src/data/resourceData"; - -const Resources: React.FC = () => { - return ( -
- - Resources - MathSoc - - - - -
    - {resourceInfo.map((resource, index) => ( -
  • - -
  • - ))} -
-
-
- ); -}; - -export default Resources; diff --git a/src/pages/resources/latex.tsx b/src/pages/resources/latex.tsx deleted file mode 100644 index 1758aa4b..00000000 --- a/src/pages/resources/latex.tsx +++ /dev/null @@ -1,99 +0,0 @@ -// Library Imports -import React from "react"; -import Head from "next/head"; -import Script from "next/script"; -import { Typography } from "@mui/material"; - -// Component Imports -import PageBody from "components/PageBody"; -import WholePageBox from "src/components/WholePageBox"; -import ResourceHero from "src/components/ResourceHero"; - -// Data -import { latexInfo } from "src/data/resourceData"; -import { YTEmbed } from "components/YTEmbed"; - -const Latex: React.FC = () => { - return ( -
- - {latexInfo.title} - MathSoc - - {/* TODO: CodeCogs API https://editor.codecogs.com/docs/4-API.php */} - - - - - - LaTeX is essentially treated as an efficient, neat and effective means of typesetting, - where mathematics tends to play a large role in. It is one of the most commonly used - typesetting tools in existence, and arguably superior to Word in certain circumstances. - - - In 2020, MathSoc teamed up with CSESoc to present a LaTeX seminar online. Thanks to - Nicholas Berridge-Argent for presenting, and providing the resources{" "} - - here - - ! A recording of the seminar can be found on YouTube{" "} - - here - - , and below. - - - - Our Education Director in 2019, Rui Tong, compiled an Introduction to LaTeX guide to - help many users start off with the software and commands. Although it is intended for - introductory means, it was designed to provide as much of the basics as required for - generic use as well. The guide can be found{" "} - - here - - . - - - Back in 2015, our then-Education director Brenden Trinh presented the first Introductory - LaTeX seminar. This seminar covers most of the foundations with LaTeX, demonstrating how - to get started and providing a basic view of a typical LaTeX document structure. The - files used in the presentation can be found{" "} - - here - - . - - - For those looking to get started with LaTeX, check out the{" "} - - CodeCogs Equation Editor - - , an interactive tool for writing LaTeX from an equation editor. - - - -
- ); -}; - -export default Latex; diff --git a/src/pages/resources/matlab.tsx b/src/pages/resources/matlab.tsx deleted file mode 100644 index f5788aa7..00000000 --- a/src/pages/resources/matlab.tsx +++ /dev/null @@ -1,67 +0,0 @@ -// Library Imports -import React from "react"; -import Head from "next/head"; -import { Typography } from "@mui/material"; - -// Component Imports -import PageBody from "components/PageBody"; -import WholePageBox from "src/components/WholePageBox"; -import ResourceHero from "src/components/ResourceHero"; - -// Data -import { matlabInfo } from "src/data/resourceData"; - -const Revision: React.FC = () => { - return ( -
- - {matlabInfo.title} - MathSoc - - - - - - You: I want to learn a programming language. - Me, an intellectual: MATLAB. - - Hey friends, the slaves at MathSoc have created an Interactive MATLAB guide, which can - be accessed{" "} - - here - - . It is meant to supplement the MATH1151/MATH1251{" "} - - online modules - - , and contains 4 fun little projects to sink your teeth into. Note that it builds on, - and does not replace, those modules which are excellent and comprehensive resources in - itself. - - - To access it, please export all given files into the same folder and double click on the - one that says ‘open this’. - - - Please do not hesitate to contact us if you have any questions, suggestions or spot any - mistakes! 🙂 - - - -
- ); -}; - -export default Revision; diff --git a/src/pages/resources/r.tsx b/src/pages/resources/r.tsx deleted file mode 100644 index bc337b28..00000000 --- a/src/pages/resources/r.tsx +++ /dev/null @@ -1,54 +0,0 @@ -// Library Imports -import React from "react"; -import Head from "next/head"; -import { Typography } from "@mui/material"; - -// Component Imports -import PageBody from "components/PageBody"; -import WholePageBox from "src/components/WholePageBox"; -import ResourceHero from "src/components/ResourceHero"; - -// Data -import { rInfo } from "src/data/resourceData"; - -const R: React.FC = () => { - return ( -
- - {rInfo.title} - MathSoc - - - - - - - In 2021, MathSoc collaborated with BINFSOC for an introduction to R workshop, which was - presented by Merry Chu. - - - Our workshop slides can be found{" "} - - here - - , as well as the recording{" "} - - here - - . - - - -
- ); -}; - -export default R; diff --git a/src/pages/resources/revision.tsx b/src/pages/resources/revision.tsx deleted file mode 100644 index 713e4107..00000000 --- a/src/pages/resources/revision.tsx +++ /dev/null @@ -1,74 +0,0 @@ -// Library Imports -import React from "react"; -import Head from "next/head"; -import { Typography } from "@mui/material"; - -// Component Imports -import PageBody from "components/PageBody"; -import WholePageBox from "components/WholePageBox"; -import ResourceHero from "src/components/ResourceHero"; -import Tile from "components/Tile"; - -// Styling -import styles from "src/styles/revision.module.scss"; - -// Data -import { RevisionTile } from "src/data/revisionData"; -import { revisionInfo } from "src/data/resourceData"; -import { fetchSubjectResources } from "src/lib/api"; - -interface RevisionProps { - revisionData: RevisionTile[]; -} - -const Revision: React.FC = ({ revisionData }) => { - return ( -
- - {revisionInfo.title} - Mathsoc - - - - - - - Here, you’ll find the slides and solutions for the revision seminars we held for UNSW - Mathematics courses. All the best for your revision 😊 -
-
- Huge thanks to our Education team who worked tirelessly to bring you this material and - present the revision seminars. -
-
- Please note that - despite our best efforts in keeping our resources error-free, occasionally, one may slip - past us. If you do happen to notice one, please do let us know ASAP by clicking here! - These resources are NOT endorsed by the School of Mathematics and Statistics. -
-
-
-
-
- {revisionData.map((tileData) => ( - - ))} -
-
-
-
- ); -}; - -export const getStaticProps = async () => { - return { - props: { - revisionData: await fetchSubjectResources(/Revision Seminar|Workshop/) - } - }; -}; -export default Revision; diff --git a/src/pages/resources/sheets.tsx b/src/pages/resources/sheets.tsx deleted file mode 100644 index 9fffa8a0..00000000 --- a/src/pages/resources/sheets.tsx +++ /dev/null @@ -1,79 +0,0 @@ -// Library Imports -import React from "react"; -import Head from "next/head"; -import { Link, Typography } from "@mui/material"; - -// Component Imports -import PageBody from "components/PageBody"; -import WholePageBox from "components/WholePageBox"; -import ResourceHero from "src/components/ResourceHero"; -import DocumentTile from "components/DocumentTile"; - -// Styling -import styles from "src/styles/revision.module.scss"; - -// Data -import { RevisionSheetTile } from "src/data/revisionSheetData"; -import { revisionSheetInfo } from "src/data/resourceData"; -import { fetchSubjectResources } from "src/lib/api"; -interface RevisionProps { - revisionSheetData: RevisionSheetTile[]; -} - -const RevisionSheets: React.FC = ({ revisionSheetData }) => { - return ( -
- - {revisionSheetInfo.title} - Mathsoc - - - - - - - Here, you’ll quick revision sheets for Mathematics courses. -
-
- Huge thanks to our Education team who worked tirelessly to bring you this material. -
-
- Please note that - despite our best efforts in keeping our resources error-free, occasionally, one may slip - past us. If you do happen to notice one, please do let us know ASAP by  - - clicking here - - ! These resources are NOT endorsed by the School of Mathematics and Statistics. -
-
-
-
-
-
- {revisionSheetData.map((tileData) => ( - - ))} -
-
-
- ); -}; - -export const getStaticProps = async () => { - return { - props: { - revisionSheetData: (await fetchSubjectResources(/Cheat Sheet/i)).map((resource) => ({ - courseCode: resource.courseCode, - courseTitle: resource.courseTitle, - path: resource.revisionLinks[0].groupLinks[0].path - })) - } - }; -}; - -export default RevisionSheets;