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
63 changes: 41 additions & 22 deletions src/pages/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,42 +55,61 @@ export default function About() {
</div>
</section>
<TeamSection name="Web Development Team">
<PersonBox name="somebody" caption="Web Development Team Leader" />
<PersonBox name="that" />
<PersonBox name="I" />
<PersonBox name="used" />
<PersonBox name="to" />
<PersonBox
name="Arnav Borborah"
caption="Web Development Team Leader"
/>
<PersonBox name="Rohan Kewalramani" />
<PersonBox name="Johnny Ni" />
<PersonBox name="Sergio Garcia Perez" />
<PersonBox name="Venkatesh Kamath N" />
<PersonBox name="Arianne Ghislaine Rull" />
<PersonBox name="Yong Yan (Crystal) Liang" />
</TeamSection>
<TeamSection name="App Development Team">
<PersonBox name="somebody" caption="App Development Team Leader" />
<PersonBox name="that" />
<PersonBox name="I" />
<PersonBox name="used" />
<PersonBox name="to" />
<PersonBox name="Sagar Patil" caption="App Development Team Leader" />
<PersonBox name="Srikar Ganti" />
<PersonBox name="Amandeep Saxena" />
<PersonBox name="Brett Woltz" />
<PersonBox name="Abhiram Tamvada" />
<PersonBox name="Gautham Hari" />
<PersonBox name="Elaine Nie" />
</TeamSection>
<TeamSection name="Content Management Team">
<PersonBox name="somebody" caption="Content Management Team Leader" />
<PersonBox name="that" />
<PersonBox name="I" />
<PersonBox name="used" />
<PersonBox name="to" />
<PersonBox name="Sahil Sharma" />
<PersonBox name="Anisha Ganesh" />
<PersonBox name="Kailash Senthilkumar" />
<PersonBox name="Eunice Tovar" />
<PersonBox name="Anastasija Petrovic " />
<PersonBox name="Devish Vaid" />
<PersonBox name="Rushi Patel" />
<PersonBox name="Parshva Mehta" />
<PersonBox name="Kanthi Makineedk" />
<PersonBox name="Soumay Garg" />
<PersonBox name="Adelene Chan" />
<PersonBox name="Bethel Seyoum" />
<PersonBox name="Abbas Moosajee" />
<PersonBox name="Mia Chen" />
</TeamSection>
<TeamSection name="Graphic Design Team">
<PersonBox name="somebody" caption="Graphic Design Team Leader" />
<PersonBox name="that" />
<PersonBox name="I" />
<PersonBox name="used" />
<PersonBox name="to" />
<PersonBox name="Manav Chandaka" />
<PersonBox name="Katharine Hong" />
<PersonBox name="Marwan Abd Elhameed" />
<PersonBox name="Hannah Nguyen" />
<PersonBox name="Mona Wu" />
</TeamSection>
<TeamSection name="Social Media Management Team">
<PersonBox
name="somebody"
caption="Social Media Management Team Leader"
/>
<PersonBox name="that" />
<PersonBox name="I" />
<PersonBox name="used" />
<PersonBox name="to" />
<PersonBox name="Tiffani Baik" />
<PersonBox name="Shubham Kumar" />
<PersonBox name="Megan Hua" />
<PersonBox name="Alina Zahra" />
<PersonBox name="Simran Duggi" />
</TeamSection>
</>
);
Expand Down
44 changes: 22 additions & 22 deletions src/serviceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
// opt-in, read https://bit.ly/CRA-PWA

const isLocalhost = Boolean(
window.location.hostname === 'localhost' ||
window.location.hostname === "localhost" ||
// [::1] is the IPv6 localhost address.
window.location.hostname === '[::1]' ||
window.location.hostname === "[::1]" ||
// 127.0.0.0/8 are considered localhost for IPv4.
window.location.hostname.match(
/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
)
);

export function register(config) {
if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
if (process.env.NODE_ENV === "production" && "serviceWorker" in navigator) {
// The URL constructor is available in all browsers that support SW.
const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);
if (publicUrl.origin !== window.location.origin) {
Expand All @@ -31,7 +31,7 @@ export function register(config) {
return;
}

window.addEventListener('load', () => {
window.addEventListener("load", () => {
const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;

if (isLocalhost) {
Expand All @@ -42,8 +42,8 @@ export function register(config) {
// service worker/PWA documentation.
navigator.serviceWorker.ready.then(() => {
console.log(
'This web app is being served cache-first by a service ' +
'worker. To learn more, visit https://bit.ly/CRA-PWA'
"This web app is being served cache-first by a service " +
"worker. To learn more, visit https://bit.ly/CRA-PWA"
);
});
} else {
Expand All @@ -57,21 +57,21 @@ export function register(config) {
function registerValidSW(swUrl, config) {
navigator.serviceWorker
.register(swUrl)
.then(registration => {
.then((registration) => {
registration.onupdatefound = () => {
const installingWorker = registration.installing;
if (installingWorker == null) {
return;
}
installingWorker.onstatechange = () => {
if (installingWorker.state === 'installed') {
if (installingWorker.state === "installed") {
if (navigator.serviceWorker.controller) {
// At this point, the updated precached content has been fetched,
// but the previous service worker will still serve the older
// content until all client tabs are closed.
console.log(
'New content is available and will be used when all ' +
'tabs for this page are closed. See https://bit.ly/CRA-PWA.'
"New content is available and will be used when all " +
"tabs for this page are closed. See https://bit.ly/CRA-PWA."
);

// Execute callback
Expand All @@ -82,7 +82,7 @@ function registerValidSW(swUrl, config) {
// At this point, everything has been precached.
// It's the perfect time to display a
// "Content is cached for offline use." message.
console.log('Content is cached for offline use.');
console.log("Content is cached for offline use.");

// Execute callback
if (config && config.onSuccess) {
Expand All @@ -93,25 +93,25 @@ function registerValidSW(swUrl, config) {
};
};
})
.catch(error => {
console.error('Error during service worker registration:', error);
.catch((error) => {
console.error("Error during service worker registration:", error);
});
}

function checkValidServiceWorker(swUrl, config) {
// Check if the service worker can be found. If it can't reload the page.
fetch(swUrl, {
headers: { 'Service-Worker': 'script' },
headers: { "Service-Worker": "script" },
})
.then(response => {
.then((response) => {
// Ensure service worker exists, and that we really are getting a JS file.
const contentType = response.headers.get('content-type');
const contentType = response.headers.get("content-type");
if (
response.status === 404 ||
(contentType != null && contentType.indexOf('javascript') === -1)
(contentType != null && contentType.indexOf("javascript") === -1)
) {
// No service worker found. Probably a different app. Reload the page.
navigator.serviceWorker.ready.then(registration => {
navigator.serviceWorker.ready.then((registration) => {
registration.unregister().then(() => {
window.location.reload();
});
Expand All @@ -123,18 +123,18 @@ function checkValidServiceWorker(swUrl, config) {
})
.catch(() => {
console.log(
'No internet connection found. App is running in offline mode.'
"No internet connection found. App is running in offline mode."
);
});
}

export function unregister() {
if ('serviceWorker' in navigator) {
if ("serviceWorker" in navigator) {
navigator.serviceWorker.ready
.then(registration => {
.then((registration) => {
registration.unregister();
})
.catch(error => {
.catch((error) => {
console.error(error.message);
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/setupTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom/extend-expect';
import "@testing-library/jest-dom/extend-expect";