Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Extra comments removed #239

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
5 changes: 1 addition & 4 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import {
} from '@material-ui/core';
import { MuiPickersUtilsProvider } from '@material-ui/pickers';
import Auth from 'src/components/auth/Auth';
// import CookiesNotification from 'src/components/CookiesNotification';
// import SettingsNotification from 'src/components/SettingsNotification';
import GoogleAnalytics from 'src/components/GoogleAnalytics';
import ScrollReset from 'src/components/ScrollReset';
import useSettings from 'src/hooks/useSettings';
Expand Down Expand Up @@ -80,8 +78,7 @@ function App() {
<Auth>
<ScrollReset />
<GoogleAnalytics />
{/* <CookiesNotification /> */}
{/* <SettingsNotification /> */}

<Routes />
</Auth>
</Router>
Expand Down
2 changes: 0 additions & 2 deletions src/Routes.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/no-array-index-key */
import React, { lazy, Suspense } from 'react';
import { Switch, Route } from 'react-router-dom';
import LoadingScreen from 'src/components/LoadingScreen';
Expand Down Expand Up @@ -298,7 +297,6 @@ const renderRoutes = () => (
)}
/>

{/* Privacy, refund policies, and terms and conditions routes */}
<Route
path={`/privacy`}
exact
Expand Down
4 changes: 1 addition & 3 deletions src/assets/css/prism.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ pre[class*='language-'] {
hyphens: none;
}

/* Code blocks */
pre[class*='language-'] {
padding: 1em;
margin: 0.5em 0;
Expand Down Expand Up @@ -75,8 +74,7 @@ pre[class*='language-'] {
color: rgb(250, 200, 99);
}

.token.boolean {
}


.token.constant {
color: rgb(100, 102, 149);
Expand Down
24 changes: 5 additions & 19 deletions src/assets/css/swiper-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,7 @@

:root {
--swiper-navigation-size: 32px;
/*
--swiper-navigation-color: var(--swiper-theme-color);
*/

}

.swiper-button-prev,
Expand Down Expand Up @@ -242,11 +240,8 @@
display: none;
}

:root {
/*
--swiper-pagination-color: var(--swiper-theme-color);
*/
}



.swiper-pagination {
position: absolute;
Expand All @@ -261,7 +256,6 @@
opacity: 0;
}

/* Common Styles */

.swiper-pagination-fraction,
.swiper-pagination-custom,
Expand All @@ -271,7 +265,6 @@
width: 100%;
}

/* Bullets */

.swiper-pagination-bullets-dynamic {
overflow: hidden;
Expand Down Expand Up @@ -387,7 +380,6 @@ button.swiper-pagination-bullet {
transition: 200ms transform, 200ms right;
}

/* Progress */

.swiper-pagination-progressbar {
background: rgba(0, 0, 0, 0.25);
Expand Down Expand Up @@ -441,12 +433,11 @@ button.swiper-pagination-bullet {
display: none;
}

/* Scrollbar */

.swiper-scrollbar {
border-radius: 10px;
position: relative;
-ms-touch-action: none;
/* -ms-touch-action: none; */
background: rgba(0, 0, 0, 0.1);
}

Expand Down Expand Up @@ -509,11 +500,7 @@ button.swiper-pagination-bullet {

/* Preloader */

:root {
/*
--swiper-preloader-color: var(--swiper-theme-color);
*/
}


.swiper-lazy-preloader {
width: 42px;
Expand Down Expand Up @@ -546,7 +533,6 @@ button.swiper-pagination-bullet {
}
}

/* a11y */

.swiper-container .swiper-notification {
position: absolute;
Expand Down
6 changes: 3 additions & 3 deletions src/components/Course/CourseCardTemplate1.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ const useStyles = makeStyles(theme => ({
},

slide: {
perspective: 0, // create perspective
perspective: 0,
overflow: 'hidden',
// relative is a must if you want to create overlapping layers in children

position: 'relative'
},
background: {
Expand All @@ -92,7 +92,7 @@ const useStyles = makeStyles(theme => ({
gridList: {
flexWrap: 'nowrap',
width: '100%',
// Promote the list into his own layer on Chrome. This cost memory but helps keeping high FPS.

transform: 'translateZ(0)'
},
bottomCardContent: {
Expand Down
7 changes: 3 additions & 4 deletions src/components/Course/CourseCardTemplate2.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ const useStyles = makeStyles(theme => ({
},

slide: {
perspective: 0, // create perspective
perspective: 0,
overflow: 'hidden',
// relative is a must if you want to create overlapping layers in children

position: 'relative'
},
background: {
Expand Down Expand Up @@ -243,8 +243,7 @@ export default function CourseCard({ course }) {
</Box>
</Typography>
</Link>
{/* <Typography style={{fontSize: '0.56rem', padding: '0px 10px'}} variant='caption'>
You will be able to enroll into the course as soon as you successfully completed your online meeting.</Typography> */}

</Card>
</Box>
);
Expand Down
7 changes: 3 additions & 4 deletions src/components/Hero/HeroWithOneButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
import clsx from 'clsx';

import { Box, Container, Typography, makeStyles } from '@material-ui/core';
// import ApplyNowModal from './ApplyNowModal';

const useStyles = makeStyles(theme => ({
root: {
Expand Down Expand Up @@ -40,9 +39,9 @@ function Hero({
title,
subtitle,
subtitleDesign,
className, // className
backgroundImage = null, // Link to the background image if any
component = null, // The Button or any component provided
className,
backgroundImage = null,
component = null,
...rest
}) {
const classes = useStyles();
Expand Down
1 change: 0 additions & 1 deletion src/config/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// or get from process.env.REACT_APP_{var} to handle PROD and DEV environments
export const APP_VERSION = '2.0.0';
export const API_BASE_URL = '/api';
export const ENABLE_REDUX_LOGGER = false;
Expand Down
1 change: 0 additions & 1 deletion src/constants/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/prefer-default-export */
export const THEMES = {
LIGHT: 'LIGHT',
ONE_DARK: 'ONE_DARK',
Expand Down
4 changes: 0 additions & 4 deletions src/data/HomeViewData/HomeViewData.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// event data------------------
export const events = [
{
img: 'https://img.youtube.com/vi/hkx_JFFwM1o/hqdefault.jpg',
Expand Down Expand Up @@ -57,7 +56,6 @@ export const bootcamps = [
}
];

// mentors data----------------

export const mentors = [
{
Expand Down Expand Up @@ -99,7 +97,6 @@ export const mentors = [
}
];

// experience data ---------------------

export const experience = [
{
Expand Down Expand Up @@ -128,7 +125,6 @@ export const experience = [
}
];

// Open source section data-----------------
export const openKnowledgeContent = {
title: 'Open Knowledge',
about: `Our structure is based on generating knowledge flow that is not limited by bottlenecks. We inspire
Expand Down
1 change: 0 additions & 1 deletion src/data/blogAuthors.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// mentors data----------------

export const authors = {
'Anuj Garg': {
Expand Down
36 changes: 3 additions & 33 deletions src/serviceWorker.js
Original file line number Diff line number Diff line change
@@ -1,54 +1,34 @@
/* eslint-disable */
// This optional code is used to register a service worker.
// register() is not called by default.

// This lets the app load faster on subsequent visits in projection, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on subsequent visits to a page, after all the
// existing tabs open on the page have been closed, since previously cached
// resources are updated in the background.

// To learn more about the benefits of this model and instructions on how to
// opt-in, read http://bit.ly/CRA-PWA

const isLocalhost = Boolean(
window.location.hostname === 'localhost' ||
// [::1] is the IPv6 localhost address.
window.location.hostname === '[::1]' ||
// 127.0.0.1/8 is 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 === 'projection' && '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) {
// Our service worker won't work if PUBLIC_URL is on a different origin
// from what our page is served on. This might happen if a CDN is used to
// serve assets; see https://github.com/facebook/create-react-app/issues/2374
return;
}

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

if (isLocalhost) {
// This is running on localhost. Let's check if a service worker still exists or not.
checkValidServiceWorker(swUrl, config);

// Add some additional logging to localhost, pointing developers to the
// 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 http://bit.ly/CRA-PWA'
);
});
} else {
// Is not localhost. Just register service worker
registerValidSW(swUrl, config);
}
});
Expand All @@ -67,25 +47,19 @@ function registerValidSW(swUrl, config) {
installingWorker.onstatechange = () => {
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 http://bit.ly/CRA-PWA.'
);

// Execute callback
if (config && config.onUpdate) {
config.onUpdate(registration);
}
} else {
// 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.');

// Execute callback
if (config && config.onSuccess) {
config.onSuccess(registration);
}
Expand All @@ -100,23 +74,19 @@ function registerValidSW(swUrl, config) {
}

function checkValidServiceWorker(swUrl, config) {
// Check if the service worker can be found. If it can't reload the page.
fetch(swUrl)
.then(response => {
// Ensure service worker exists, and that we really are getting a JS file.
const contentType = response.headers.get('content-type');
if (
response.status === 404 ||
(contentType != null && contentType.indexOf('javascript') === -1)
) {
// No service worker found. Probably a different app. Reload the page.
navigator.serviceWorker.ready.then(registration => {
registration.unregister().then(() => {
window.location.reload();
});
});
} else {
// Service worker found. Proceed as normal.
registerValidSW(swUrl, config);
}
})
Expand Down
1 change: 0 additions & 1 deletion src/views/pages/ApplicationsView/EditApplication.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { useState } from 'react';
import { makeStyles } from '@material-ui/core/styles';
import { Grid, Typography } from '@material-ui/core';
import { ApplicationSteps } from './ApplicationSteps';
// import axios from 'src/utils/axios';

const useStyles = makeStyles(theme => ({
root: {
Expand Down
17 changes: 1 addition & 16 deletions src/views/pages/BlogsView/PublishBlog.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ function Form() {
const [formData, updateFormData] = useState({});
const [submitting, setSubmitting] = useState(0);

// const { enqueueSnackbar } = useSnackbar();

const handleChange = event => {
updateFormData({
Expand All @@ -119,21 +118,7 @@ function Form() {
setSubmitting(1);
e.preventDefault();
formData.source = window.location.href;
// axios({
// method: 'post',
// url:
// 'https://us-central1-codeforcauseorg.cloudfunctions.net/widgets/enquiries',
// data: formData
// })
// .then(response => {
// setSubmitting(0);
// updateFormData({ name: '', email: '', phone: '' });
// enqueueSnackbar('Request Submitted Successfully.');
// })
// .catch(error => {
// enqueueSnackbar('Request Failed. Please check your connection.');
// setSubmitting(0);
// });

};

return (
Expand Down
1 change: 0 additions & 1 deletion src/views/pages/BlogsView/SideBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react';
import PropTypes from 'prop-types';
import { Container, Typography, makeStyles, Box } from '@material-ui/core';
import { Link } from 'react-router-dom';
// import blogs from '../../../data/blogs';

const useStyles = makeStyles(theme => ({
root: {
Expand Down
Loading