Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added external links file #214

Merged
merged 1 commit into from
Sep 22, 2024
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
104 changes: 104 additions & 0 deletions src/data/links.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
const links = {
// calendar subscription links
calendar: {
JCR_EVENTS: "https://calendar.google.com/calendar/ical/webmaster%40thejcr.co.uk/public/basic.ics",
SOC_EVENTS: "https://calendar.google.com/calendar/ical/72ffd45359a103efdda8c306de56f775f3005d51aaed7e8111b8d1f175575157%40group.calendar.google.com/public/basic.ics",
JCR_EXEC_MEETINGS: "https://calendar.google.com/calendar/ical/da5521c8c3b2c5e4461b8d84e3058d6874f5d6a13cd1f636b9693cfb40b76146%40group.calendar.google.com/public/basic.ics",
JCR_COUNCIL_MEETINGS: "https://calendar.google.com/calendar/ical/e0ea2c5ec1fb4dba96b45c86b06e46ffb2be9abf8b43ba317c6e9a3bd22d5ce9%40group.calendar.google.com/public/basic.ics",
JCR_OPEN_MEETINGS: "https://calendar.google.com/calendar/ical/6d53ff189078c025f719062586b21cbb6f84b256915d6f97d13069d25747b8b3%40group.calendar.google.com/public/basic.ics",
FRESHERS: "https://calendar.google.com/calendar/ical/98f933efaa927a1b41a85f92bba67e064a0270676b3c1241ca901610f556ea84%40group.calendar.google.com/public/basic.ics",
FRESHERS_OPTIONAL: "https://calendar.google.com/calendar/ical/f47cb082566f93a9a682f20026f24aace73dc0203899ace553a6e54aaf2ca555%40group.calendar.google.com/public/basic.ics"
},
// general resources
general: {
INTRANET: "https://intranet.christs.cam.ac.uk",
TUTOR_TIMETABLE: "https://intranet.christs.cam.ac.uksystem/files/2023-10/2023-24%20Undergraduate%20Open%20Tutorial%20Hours_0.pdf",
CAMCARD_BALANCE: "https://intranet.christs.cam.ac.uk/Shibboleth.sso/Login?target=%2Fshibboleth%2Flogin%3Fshiblogin%3D1%26destination%3D%2Fmealbooking%2FEPOS.aspx",
PRINTING_BALANCE: "https://www.christs.cam.ac.uk/cp",
JCR_INSTAGRAM: "https://www.instagram.com/christsjcr/",
JCR_FACEBOOK: "https://www.facebook.com/ChristsJCR",
GITHUB: "https://github.com/christsjcr/website",
COLLEGE_MAP: "https://www.christs.cam.ac.uk/sites/default/files/inline-images/collegemap_1.jpg"
},
// upper hall or formal hall related
meals: {
UPPER_HALL_MENU: "https://intranet.christs.cam.ac.uk/upper-hall-menus",
MEAL_BOOKING: "https://intranet.christs.cam.ac.uk/Shibboleth.sso/Login?target=%2Fshibboleth%2Flogin%3Fshiblogin%3D1%26destination%3D%2Fmealbooking%2F",
MEAL_TIMES: "https://intranet.christs.cam.ac.uk/meal-times"
},
facilities: {
ROOM_BOOKING: "https://christscollege.roombookingsystem.co.uk/overviewday",
FAULT_REPORTING: "https://intranet.christs.cam.ac.uk/fault-reporting",
AIRBED: "https://christscollege.roombookingsystem.co.uk/user/overviewweek",
ROOM_DATABASE: "https://intranet.christs.cam.ac.uk/app/rooms/undergraduate",
POOL_RULES: "https://docs.google.com/document/d/1mUff1QpIWbGjHwP4iUH2HNjor-md7eKDX2UGbEPFHEk/edit?usp=sharinge"
},
// important contacts
contacts: {
PORTERS_PHONE: "tel:01223334900",
PORTERS_EMAIL: "mailto:porters@christs.cam.ac.uk",
PANTHER_TAXI_WEBSITE: "https://www.panthertaxis.co.uk",
VEEZU_APP: "https://www.veezu.co.uk/cambridge",
PANTHER_TAXI_PHONE: "tel:01223715715"
},
academic: {
TIMETABLES: "https://timetable.cam.ac.uk",
MOODLE: "https://www.vle.cam.ac.uk/login/index.php",
CHRISTS_LIBRARY_ARCHIVES: "https://www.christs.cam.ac.uk/library-archives",
CHRISTS_LIBRARY: "https://www.christs.cam.ac.uk/library",
IDISCOVER: "https://idiscover.lib.cam.ac.uk/primo-explore/search?vid=44CAM_PROD",
CAMSIS: "https://camsis.cam.ac.uk/psp/ravenprod/?cmd=login",
CAMCORS: "https://www.camcors.cam.ac.uk/"
},
careers: {
UNI_CAREER_SERVICE: "https://www.careers.cam.ac.uk/",
HANDSHAKE: "https://www.joinhandshake.co.uk/",
ALUMNI_DATABASE: "https://alumni.christs.cam.ac.uk/ccc-list"
},
welfare: {
JCR_WELFARE_GUIDE: "https://drive.google.com/file/d/10B4hgiyuOBksYWfDC988anwTu8_0r_fu/view?usp=drive_link",
JCR_WELFARE_INSTAGRAM: "https://www.instagram.com/christswelfare/",
COLLEGE_NURSE_BOOKING: "https://christ-college.uk2.cliniko.com/bookings",
CAM_STUDENT_ADVICE: "https://www.cambridgesu.co.uk/support/advice/",
CAM_STUDENT_ADVICE_CONTACT: "https://www.cambridgesu.co.uk/support/advice/contact/",
NHS_LOCAL: "https://www.cpft.nhs.uk/",
COLLEGE_NURSE: "https://intranet.christs.cam.ac.uk/college-nurse-0",
ICASH: "https://www.icash.nhs.uk/",
TOGETHERALL: "https://togetherall.com/en-gb/",
SAMARITANS: "https://www.samaritans.org/",
CAM_NIGHTLINE: "https://cambridge.nightline.ac.uk/",
CAM_NIGHTLINE_MESSAGING: "https://im.cambridge.nightline.ac.uk/webim/",
SHOUT: "https://giveusashout.org/",
LIBRARY_ASSISTIVE_RESOURCES: "https://www.christs.cam.ac.uk/assist",
DISABILITY_RESOURCE_CENTRE: "https://www.disability.admin.cam.ac.uk/students/advice-support-for-students",
DRC_SUPPORT_FORM: "https://www.disability.admin.cam.ac.uk/student-information-form",
SU_DISABLED_STUDENTS: "https://www.disabled.cusu.cam.ac.uk/",
LGBT_SWITCHBOARD: "https://switchboard.lgbt/",
LGBT_SWITCHBOARD_MESSAGING: "https://switchboard.lgbt/contact",
LIBRARY_WELLBEING: "https://www.christs.cam.ac.uk/libwellbeing"
},
finance: {
COLLEGE_GRANTS: "https://intranet.christs.cam.ac.uk/college-grants-and-awards",
SU_FINANCE: "https://www.cambridgesu.co.uk/advice/information/finance/",
FINANCIAL_SUPPORT_HOME: "https://www.christs.cam.ac.uk/admissions/undergraduate-admissions/finances/financial-support-home-students",
FINANCIAL_SUPPORT_OVERSEAS: "https://www.christs.cam.ac.uk/international-students/financial-support",
JCR_FUNDING_REQUEST_FORM: "https://docs.google.com/forms/d/e/1FAIpQLSf9hatciSfMqo-IH1Vmok2X1MtLizfOlMmk8RViTpVp-dDmzg/viewform?usp=sf_link",
FLEXIBLE_GRANT: "https://forms.office.com/e/kYUFX14fRm",
CAM_BURSARY: "https://www.cambridgestudents.cam.ac.uk/cambridge-bursary",
EXTERNAL_GRANTS: "https://intranet.christs.cam.ac.uk/information-other-awards-and-grants"
},
// for jcr use (open to college to view for transparency)
internal: {
GOOGLE_DRIVE: "https://drive.google.com/drive/folders/1T1LXnm76V5rMzHxrLuzkmb8RMcHhrDBE?usp=drive_link",
EMAIL_LOGIN_INSTRUCTION: "https://docs.google.com/document/d/1B5sLX0fic28d83C9RmUXbpxEsV8sRdGaL9S18sHTVIk/edit?usp=sharing",
MINUTES_FOLDER: "https://drive.google.com/drive/folders/1RTdysf_izP9xddA0btJDxFM0a27xDMcQ?usp=sharing",
UPDATE_SOCIETY_FORM: "https://docs.google.com/forms/d/e/1FAIpQLSfTnmDLCwVwiblfuTXfJzC64iIhH3ooZFJCkNIYG2p-Bn0wWg/viewform?usp=sf_link",
ALUMNI_WEBSITE_CREDS: "https://drive.google.com/file/d/1uGR_BrL7kvHU0iMnjfRpKJr0jBf09a9d/view?usp=sharing"
},
freshers: {
FRESHERS_GUIDE: "https://drive.google.com/file/d/14EI6qLV49_kLvd9GedcMl5qMNUGW_VaJ/view?usp=drive_link",
INTERNATIONAL_GUIDE: "https://drive.google.com/file/d/1NE1HYnA1JaFH1e7nRfF9fxNMcgazLnzB/view?usp=drive_link"
}
}

export default links;
7 changes: 4 additions & 3 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import "../app.scss";
import type { NavbarItem } from "$components/Navbar.svelte";
import Navbar from "$components/Navbar.svelte";
import links from "$data/links";

import { library } from "@fortawesome/fontawesome-svg-core";
import {
Expand Down Expand Up @@ -112,7 +113,7 @@
<div class="level is-mobile">
<div class="level-item has-text-centered">
<TrackedLink
href="https://www.instagram.com/christsjcr/"
href={ links.general.JCR_INSTAGRAM }
id="instagram"
external>
<span class="icon is-large">
Expand All @@ -123,7 +124,7 @@
</div>
<div class="level-item has-text-centered">
<TrackedLink
href="https://www.facebook.com/ChristsJCR"
href={ links.general.JCR_FACEBOOK }
id="facebook"
external>
<span class="icon is-large">
Expand All @@ -134,7 +135,7 @@
</div>
</div>
<p>© Christ's JCR 2023</p>
<a rel="external" href="https://github.com/christsjcr/website"
<a rel="external" href={ links.general.GITHUB }
>Source</a>
</div>
</footer>
Expand Down
24 changes: 9 additions & 15 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts">
import NotificationLink from "$components/elements/NotificationLink.svelte";
import PageHeader from "$components/PageHeader.svelte";
import week from "$lib/week";
import UpperHallMenu from "$components/features/UpperHallMenu.svelte";
import TrackedLink from "$components/elements/TrackedLink.svelte";
import width, { desktop } from "$lib/width";
import links from "$data/links"
</script>

<PageHeader
Expand Down Expand Up @@ -76,16 +76,13 @@
<ul class="list">
<li>
<TrackedLink
href={`https://intranet.christs.cam.ac.uk/upper-hall-menus#Week${week()}`}
href={ links.meals.UPPER_HALL_MENU }
id="intranet-menu"
external>Menu</TrackedLink>
</li>
<li>
<TrackedLink
href={
"https://intranet.christs.cam.ac.uk/Shibboleth.sso/Login" +
"?target=%2Fshibboleth%2Flogin%3Fshiblogin%3D1%26destination%3D%2Fmealbooking%2F"
}
href={ links.meals.MEAL_BOOKING }
id="meal-booking"
external>Meal booking</TrackedLink>
</li>
Expand All @@ -98,13 +95,13 @@
<ul class="list">
<li>
<TrackedLink
href="https://christscollege.roombookingsystem.co.uk/overviewday"
href={ links.facilities.ROOM_BOOKING }
id="room-booking"
external>Room booking</TrackedLink>
</li>
<li>
<TrackedLink
href="https://intranet.christs.cam.ac.uk/fault-reporting"
href={ links.facilities.FAULT_REPORTING }
id="fault-reporting"
external>Fault reporting</TrackedLink>
</li>
Expand All @@ -117,12 +114,12 @@
<ul class="list">
<li>
<TrackedLink
href="tel:+44-1223-334900"
href={ links.contacts.PORTERS_PHONE }
id="phone-porters">+44 1223 334900</TrackedLink>
</li>
<li>
<TrackedLink
href="mailto:porters@christs.cam.ac.uk"
href={ links.contacts.PORTERS_EMAIL }
id="email-porters"
>porters@christs.cam.ac.uk</TrackedLink>
</li>
Expand All @@ -135,16 +132,13 @@
<ul class="list">
<li>
<TrackedLink
href={
"https://docs.google.com/forms/d/e/1FAIpQLSf9hatciSfMqo-IH1Vmok2X1MtLizfOlMmk8RViTpVp-dDmzg/viewform"
+ "?usp=sf_link"
}
href={ links.finance.JCR_FUNDING_REQUEST_FORM }
id="JCR-funding-form"
external>Unified JCR Funding Form</TrackedLink>
</li>
<li>
<TrackedLink
href="https://forms.office.com/e/kYUFX14fRm"
href={ links.finance.FLEXIBLE_GRANT }
id="flexible-grant"
external>Flexible Grant 2023/24</TrackedLink>
</li>
Expand Down
9 changes: 5 additions & 4 deletions src/routes/about/meetings/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import TrackedLink from "$components/elements/TrackedLink.svelte";
import Calendar from "$components/events/Calendar.svelte";
import PageHeader from "$components/PageHeader.svelte";
import links from "$data/links"
import {
term,
startDate,
Expand Down Expand Up @@ -59,26 +60,26 @@
<h3>Meeting Minutes</h3>
<p>
You can access the minutes for all meetings <TrackedLink
href="https://drive.google.com/drive/u/2/folders/1gr4x820W2ZcDi8RGAz7fYeOEMiBLx6jA"
href={ links.internal.MINUTES_FOLDER }
id="meeting-minutes">here</TrackedLink
>.
</p>

<h2 class="title is-2">{term} Term</h2>
<p>
<a href={"https://calendar.google.com/calendar/ical/da5521c8c3b2c5e4461b8d84e3058d6874f5d6a13cd1f636b9693cfb40b76146%40group.calendar.google.com/public/basic.ics"}>
<a href={ links.calendar.JCR_EXEC_MEETINGS }>
<button class="button is-success"
>Subscribe to Exec Meetings</button>
</a>
</p>
<p>
<a href={"https://calendar.google.com/calendar/ical/e0ea2c5ec1fb4dba96b45c86b06e46ffb2be9abf8b43ba317c6e9a3bd22d5ce9%40group.calendar.google.com/public/basic.ics"}>
<a href={ links.calendar.JCR_COUNCIL_MEETINGS }>
<button class="button is-primary"
>Subscribe to Council Meetings</button>
</a>
</p>
<p>
<a href={"https://calendar.google.com/calendar/ical/6d53ff189078c025f719062586b21cbb6f84b256915d6f97d13069d25747b8b3%40group.calendar.google.com/public/basic.ics"}>
<a href={ links.calendar.JCR_OPEN_MEETINGS }>
<button class="button is-link"
>Subscribe to Open Meetings</button>
</a>
Expand Down
21 changes: 8 additions & 13 deletions src/routes/get-involved/freshers/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import NotificationLink from "$components/elements/NotificationLink.svelte";
import PageHeader from "$components/PageHeader.svelte";
import { calendarDetails, startDate, endDate } from "./freshers";
import links from "$data/links"
</script>

<PageHeader
Expand Down Expand Up @@ -35,14 +36,14 @@
<div class="columns">
<div class="column">
<NotificationLink
href="https://drive.google.com/file/d/14EI6qLV49_kLvd9GedcMl5qMNUGW_VaJ/view?usp=drive_link"
href={ links.freshers.FRESHERS_GUIDE }
title="Freshers' Guide 🐣"
external
compact />
</div>
<div class="column">
<NotificationLink
href="https://drive.google.com/file/d/1NE1HYnA1JaFH1e7nRfF9fxNMcgazLnzB/view?usp=drive_link"
href={ links.freshers.INTERNATIONAL_GUIDE }
title="International Freshers' Guide ✈️"
external
compact />
Expand All @@ -51,14 +52,14 @@
<div class="columns">
<div class="column">
<NotificationLink
href="https://drive.google.com/file/d/10B4hgiyuOBksYWfDC988anwTu8_0r_fu/view?usp=drive_link"
href={ links.welfare.JCR_WELFARE_GUIDE }
title="Welfare Guide 💛"
external
compact />
</div>
<div class="column">
<NotificationLink
href="https://www.timetable.cam.ac.uk"
href={ links.academic.TIMETABLES }
title="Academic Timetable 📚"
external
compact />
Expand All @@ -75,20 +76,14 @@
<div class="columns">
<div class="column is-narrow">
<a
href={
"https://calendar.google.com/calendar/ical/\
98f933efaa927a1b41a85f92bba67e064a0270676b3c1241ca901610f556ea84%40group.calendar.google.com/public/basic.ics"
}>
href={ links.calendar.FRESHERS }>
<button class="button is-success"
>Subscribe to Compulsory Events</button>
</a>
</div>
<div class="column is-narrow">
<a
href={
"https://calendar.google.com/calendar/ical/\
f47cb082566f93a9a682f20026f24aace73dc0203899ace553a6e54aaf2ca555%40group.calendar.google.com/public/basic.ics"
}>
href={ links.calendar.FRESHERS_OPTIONAL }>
<button class="button is-primary"
>Subscribe to Optional Events</button>
</a>
Expand All @@ -106,7 +101,7 @@
<figure class="image">
<img
alt="Map of College"
src="https://www.christs.cam.ac.uk/sites/default/files/inline-images/collegemap_1.jpg"
src={ links.general.COLLEGE_MAP }
loading="lazy" />
</figure>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/routes/get-involved/societies/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import SocietyCard from "./Society.svelte";
import { societies, type Society } from "./societies";
import NotificationLink from "$components/elements/NotificationLink.svelte";
import links from "$data/links"

function copy(society: Society): Society & { search: string } {
return {
Expand Down Expand Up @@ -77,7 +78,7 @@
<div class="columns mt-2">
<div class="column">
<NotificationLink
href="https://docs.google.com/forms/d/e/1FAIpQLSfTnmDLCwVwiblfuTXfJzC64iIhH3ooZFJCkNIYG2p-Bn0wWg/viewform?usp=sf_link"
href={ links.internal.UPDATE_SOCIETY_FORM }
title="Update Society Info 🔄"
content="Is information about your society incorrect or out-of-date? Fill in the society update form."
external />
Expand Down
3 changes: 2 additions & 1 deletion src/routes/get-involved/societies/Society.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import Tag from "./Tag.svelte";
import Markdown from "$components/markdown/Markdown.svelte";
import ExternalLink from "$components/markdown/ExternalLink.svelte";
import links from "$data/links"

export let society: Society;
let expanded = false;
Expand Down Expand Up @@ -290,7 +291,7 @@
</div>
<div class="column has-text-right is-narrow ml-5">
<ExternalLink
href="https://docs.google.com/forms/d/e/1FAIpQLSfTnmDLCwVwiblfuTXfJzC64iIhH3ooZFJCkNIYG2p-Bn0wWg/viewform?usp=sf_link"
href={ links.internal.UPDATE_SOCIETY_FORM }
>Edit</ExternalLink>
</div>
</div>
Expand Down
Loading
Loading