Skip to content

Commit 68d8022

Browse files
chore: remove comments
1 parent 658c249 commit 68d8022

14 files changed

Lines changed: 63 additions & 23 deletions

File tree

26.5 KB
Loading
-11.2 KB
Binary file not shown.

frontend/src/components/RegistrationForm/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const useStyles = makeStyles((theme: Theme) =>
2727

2828
const RegistrationForm: React.FC = () => {
2929
const classes = useStyles();
30-
// const [login, setLogin] = useState(true);
3130
const [page, setPage] = useState(0);
3231
const heading = ["Login", "Sign Up", "Reset Password"];
3332
const component = [
@@ -39,14 +38,12 @@ const RegistrationForm: React.FC = () => {
3938
return (
4039
<Paper className={classes.main}>
4140
<Typography className={classes.title} align="center">
42-
{/* {login ? "Login" : "Sign Up"} */}
4341
{heading[page]}
4442
</Typography>
4543
<GoogleButton />
4644
<Typography className={classes.or} align="center">
4745
OR
4846
</Typography>
49-
{/* {login ? <Login setLogin={setLogin} /> : <Signup setLogin={setLogin} />} */}
5047
{component[page]}
5148
</Paper>
5249
);

frontend/src/components/aboutUs/ContactUs.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const useStyles = makeStyles((theme: Theme) =>
1010
[theme.breakpoints.down("md")]: {
1111
paddingTop: 0,
1212
},
13-
minHeight: "10vh",
13+
minHeight: "9vh",
1414
background: "var(--svg-bg)",
1515
},
1616
flexbox: {
@@ -69,7 +69,7 @@ const ContactUs: React.FC = () => {
6969
Contribute to the website{" "}
7070
<Link
7171
underline="always"
72-
href="https://google.com"
72+
href="https://github.com/BitByte-TPC/TPC-website"
7373
target="_blank"
7474
className={classes.icon}
7575
>

frontend/src/components/aboutUs/style.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.container {
2-
height: 100vh;
2+
height: 91vh;
33
grid-area: about;
44
background-image: url("../../images/about\ us\ –\ 1.png");
55
background-size: cover;

frontend/src/pages/Projects/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from "react";
22
import NavBar from "../../components/Navs/Navbar";
33
import { createStyles, makeStyles } from "@material-ui/core/styles";
4-
// import { Container } from "@material-ui/core";
54
import ProjectCardv2 from "src/components/Cards/ProjectCardv2";
65
import { projectlist } from "./projectlist";
76
import useWindowDimensions from "../../utils/useWindowDimensions";

frontend/src/pages/Projects/projectlist.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ export const projectlist = [
3333
image: "/images/projects/comrade.png",
3434
},
3535
{
36-
projectName: "Path Finding Algorithm Visualizer",
37-
lang: "Python",
36+
projectName: "Collab Draw",
37+
lang: "Typescript",
3838
description:
39-
"Visualization of some of popular path finding algorithms using python",
39+
"It's a drawing app that syncs with other browsers using web sockets.",
4040
dev: "Aksh Bansal",
41-
url: "https://github.com/Aksh-Bansal-dev/PathfindingAlgo-Visualization",
42-
image: "/images/projects/pathfinding.png",
41+
url: "https://github.com/Aksh-Bansal-dev/collab-draw",
42+
image: "/images/projects/collabdraw.png",
4343
},
4444
];

frontend/src/pages/homePage/style.module.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.home {
22
min-height: 100vh;
3-
/* grid-area: home; */
43
position: relative;
54
display: grid;
65
grid-template-columns: 66fr 33fr;

server/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ app.use(express.json());
1919
app.use(
2020
cors({
2121
origin: process.env.CLIENT_URL,
22-
// origin: "*",
2322
credentials: true,
2423
})
2524
);

server/src/model/Poll.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import mongoose from "mongoose";
2+
3+
type optionType = {
4+
name: string;
5+
votes: number;
6+
};
7+
8+
interface PollInterface extends mongoose.Document {
9+
question: string;
10+
club: string;
11+
options: optionType[];
12+
}
13+
14+
const pollSchema: mongoose.Schema = new mongoose.Schema(
15+
{
16+
question: {
17+
type: String,
18+
required: true,
19+
},
20+
club: {
21+
type: String,
22+
required: true,
23+
},
24+
options: [
25+
{
26+
name: {
27+
type: String,
28+
},
29+
votes: {
30+
type: Number,
31+
},
32+
},
33+
],
34+
},
35+
{ timestamps: true }
36+
);
37+
38+
const Poll: mongoose.Model<PollInterface> = mongoose.model("Poll", pollSchema);
39+
40+
export { Poll };

0 commit comments

Comments
 (0)