Skip to content

Commit 2d53e3f

Browse files
committed
hosting
1 parent bdf720a commit 2d53e3f

File tree

15 files changed

+43
-3551
lines changed

15 files changed

+43
-3551
lines changed

backend/.gitignore

-6
This file was deleted.

backend/package-lock.json

-3,375
This file was deleted.

backend/package.json

-23
This file was deleted.

backend/src/index.js

-15
This file was deleted.

backend/src/models/user_model.js

Whitespace-only changes.

backend/src/routes/auth_route.js

Whitespace-only changes.
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
favicon.ico,1701850088216,27edce7be5922cf0bef7d4136f69b5bfbdd5bf8c13c7b026f71187d41a00aa7d
2+
logo192.png,1701850089872,79e2b749561016bc8af300ea19f48347ceed3cb1a54f48ae456172eca45e08f0
3+
logo512.png,1701850089949,212b102aa09e51b3b3e06647e81f7801a61333e171f6582e8124379aabccb41d
4+
manifest.json,1701850089340,ee04fb47e525c67d8424ffe9b4d8a8a24e434504478afca4e0ca602146836d4c
5+
robots.txt,1701850090078,bfe106a3fb878dc83461c86818bf74fc1bdc7f28538ba613cd3e775516ce8b49
6+
asset-manifest.json,1713963532768,2e05be267915940eca4db4bdb870e91aa13b74af9f376c284be81c374f9e0cd0
7+
index.html,1713963532768,47f380b98f3603b52e8ce1069626c6ca0390b45ea95609645541f5ea94906ff8
8+
static/js/main.1a0cdc38.js.LICENSE.txt,1713963532785,6c4c18586db0e55fdaa824920240dbe09609e0846538da96bb036270197bd592
9+
static/css/main.b06720a6.css,1713963532785,03d2dce595dee6c8585c48a9f00b6122383098e8f22deaffa0d41d9fff27a06d
10+
static/media/image1.f6cb9b954263048aebb4fb2972ee88a8.svg,1713963532785,be2573553287d83ff7391a1f7196800981f7b831acd5102a1d507dad3ff1f745
11+
static/css/main.b06720a6.css.map,1713963532785,de50d60f64a2bf99914126ed973fd720d5b27bde6b7831bb80ef072ad8a036cd
12+
static/media/image3.869c71aebe9cd83a75929326a05a40d6.svg,1713963532785,b45e5983b0adffd674711da3e17ac91bde9c9da8f6ba310937a78045fca4c959
13+
static/media/image2.2ac6809af09312a220928a41bcd64e6d.svg,1713963532785,0b83ba7ef5258235eb8cf33a2b22d6259aa1c2bb9f34553853b7415902bd379f
14+
static/media/Logo.fffaa8a45523622d81c6.png,1713963532785,c0c6cc4306a4db7c386b442e248a57bd068478f410b0178011e82d56a0277099
15+
static/js/main.1a0cdc38.js,1713963532786,f0d309a562b72473102f2b2f72823099f00ed743627d318cff516b7c59b37422
16+
static/js/main.1a0cdc38.js.map,1713963532788,0f1a928f7ecc995d1fe4026481f38f5f28426a97cdb15d1d4d24dc1f43fb73f1

frontend/.firebaserc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "utaas-e8cb2"
4+
}
5+
}

frontend/firebase.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"hosting": {
3+
"public": "build",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
],
9+
"rewrites": [
10+
{
11+
"source": "**",
12+
"destination": "/index.html"
13+
}
14+
]
15+
}
16+
}

frontend/src/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Tasks from "./pages/Private/Tasks";
99
import Progress from "./pages/Private/Progress";
1010
import Favorites from "./pages/Private/Favorites";
1111
import Profile from "./pages/Private/Profile";
12-
import { ToastContainer, toast } from "react-toastify";
12+
import { ToastContainer } from "react-toastify";
1313
import "react-toastify/dist/ReactToastify.css";
1414
import ExamDuty from "./pages/Private/DashboardPages/ExamDuty";
1515

frontend/src/Components/Admin/SectionCard.js

-125
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@ import FormatListNumberedIcon from "@mui/icons-material/FormatListNumbered";
22
import FormatColorTextIcon from "@mui/icons-material/FormatColorText";
33
import ArrowDropDownCircleIcon from "@mui/icons-material/ArrowDropDownCircle";
44
import ControlPointDuplicateIcon from "@mui/icons-material/ControlPointDuplicate";
5-
import AddIcon from "@mui/icons-material/Add";
6-
import RemoveIcon from "@mui/icons-material/Remove";
75
import {
86
FormControl,
97
InputLabel,
108
MenuItem,
119
Select,
1210
TextField,
13-
IconButton,
14-
Checkbox,
1511
} from "@mui/material";
1612
import React, { useState } from "react";
1713

@@ -41,60 +37,6 @@ function SelectionCard({ index, sectionData, updateSectionData }) {
4137
});
4238
};
4339

44-
const handleAddDropdownField = () => {
45-
setDropdownFields([...dropdownFields, ""]);
46-
};
47-
48-
const handleAddMultiSelectField = () => {
49-
setMultiSelectFields([...multiSelectFields, ""]);
50-
};
51-
52-
const handleDropdownFieldChange = (index, value) => {
53-
const updatedFields = [...dropdownFields];
54-
updatedFields[index] = value;
55-
setDropdownFields(updatedFields);
56-
updateSectionData(index, {
57-
input,
58-
selectedOption,
59-
// dropdownData: updatedFields,
60-
// multiSelectData,
61-
});
62-
};
63-
64-
const handleMultiSelectFieldChange = (index, value) => {
65-
const updatedFields = [...multiSelectFields];
66-
updatedFields[index] = value;
67-
setMultiSelectFields(updatedFields);
68-
updateSectionData(index, {
69-
input,
70-
selectedOption,
71-
// dropdownData,
72-
// multiSelectData: updatedFields,
73-
});
74-
};
75-
76-
// const handleRemoveDropdownField = (index) => {
77-
// const updatedFields = dropdownFields.filter((_, i) => i !== index);
78-
// setDropdownFields(updatedFields);
79-
// updateSectionData(index, {
80-
// input,
81-
// selectedOption,
82-
// dropdownData: updatedFields,
83-
// multiSelectData,
84-
// });
85-
// };
86-
87-
// const handleRemoveMultiSelectField = (index) => {
88-
// const updatedFields = multiSelectFields.filter((_, i) => i !== index);
89-
// setMultiSelectFields(updatedFields);
90-
// updateSectionData(index, {
91-
// input,
92-
// selectedOption,
93-
// dropdownData,
94-
// multiSelectData: updatedFields,
95-
// });
96-
// };
97-
9840
const renderSelectedOption = () => {
9941
switch (selectedOption) {
10042
case "number":
@@ -160,75 +102,8 @@ function SelectionCard({ index, sectionData, updateSectionData }) {
160102
<FormatColorTextIcon />
161103
<span className="px-2">Text</span>
162104
</MenuItem>
163-
{/* <MenuItem value="dropdown">
164-
<ArrowDropDownCircleIcon />
165-
<span className="px-2">Dropdown</span>
166-
</MenuItem>
167-
<MenuItem value="multiSelect">
168-
<ControlPointDuplicateIcon />
169-
<span className="px-2">Multiple Selects</span>
170-
</MenuItem> */}
171105
</Select>
172106
</FormControl>
173-
174-
{/* {selectedOption === "dropdown" && (
175-
<div className="mt-3">
176-
{dropdownFields.map((field, index) => (
177-
<div key={index} className="flex items-center gap-2 my-2">
178-
<TextField
179-
fullWidth
180-
label={`Dropdown Option ${index + 1}`}
181-
value={field}
182-
onChange={(e) =>
183-
handleDropdownFieldChange(index, e.target.value)
184-
}
185-
/>
186-
<IconButton
187-
color="primary"
188-
onClick={() => handleRemoveDropdownField(index)}
189-
>
190-
<RemoveIcon className="bg-red-500 rounded-sm text-white hover:bg-red-600" />
191-
</IconButton>
192-
</div>
193-
))}
194-
<IconButton color="primary" onClick={handleAddDropdownField}>
195-
<div className="flex items-center bg-slate-100 p-1 gap-1 rounded-sm justify-center hover:bg-slate-200">
196-
<p className="text-black text-base"> Add</p>
197-
<AddIcon className="bg-green-500 rounded-sm text-white" />
198-
</div>
199-
</IconButton>
200-
</div>
201-
)}
202-
{selectedOption === "multiSelect" && (
203-
<div className="mt-3 h-full m-5">
204-
{multiSelectFields.map((field, index) => (
205-
<div key={index} className="flex items-center gap-2 my-2">
206-
<Checkbox defaultChecked />
207-
<TextField
208-
fullWidth
209-
label={`Dropdown Option ${index + 1}`}
210-
value={field}
211-
variant="standard"
212-
onChange={(e) =>
213-
handleMultiSelectFieldChange(index, e.target.value)
214-
}
215-
/>
216-
<IconButton
217-
color="primary"
218-
onClick={() => handleRemoveMultiSelectField(index)}
219-
>
220-
<RemoveIcon className="bg-red-500 rounded-sm text-white hover:bg-red-600" />
221-
</IconButton>
222-
</div>
223-
))}
224-
<IconButton color="primary" onClick={handleAddMultiSelectField}>
225-
<div className="flex items-center bg-slate-100 p-1 gap-1 rounded-sm justify-center hover:bg-slate-200">
226-
<p className="text-black text-base"> Add</p>
227-
<AddIcon className="bg-green-500 rounded-sm text-white" />
228-
</div>
229-
</IconButton>
230-
</div>
231-
)} */}
232107
</div>
233108
</div>
234109
);

frontend/src/Components/Cards/SampleCards.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ function SampleCards({ title, description }) {
1313
>
1414
<path d="M18 5h-.7c.229-.467.349-.98.351-1.5a3.5 3.5 0 0 0-3.5-3.5c-1.717 0-3.215 1.2-4.331 2.481C8.4.842 6.949 0 5.5 0A3.5 3.5 0 0 0 2 3.5c.003.52.123 1.033.351 1.5H2a2 2 0 0 0-2 2v3a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V7a2 2 0 0 0-2-2ZM8.058 5H5.5a1.5 1.5 0 0 1 0-3c.9 0 2 .754 3.092 2.122-.219.337-.392.635-.534.878Zm6.1 0h-3.742c.933-1.368 2.371-3 3.739-3a1.5 1.5 0 0 1 0 3h.003ZM11 13H9v7h2v-7Zm-4 0H2v5a2 2 0 0 0 2 2h3v-7Zm6 0v7h3a2 2 0 0 0 2-2v-5h-5Z" />
1515
</svg>
16-
<a href="#">
16+
<a href="">
1717
<h5 className="mb-2 text-xl font-semibold tracking-tight text-gray-500 ">
1818
{title}
1919
</h5>
2020
</a>
2121
<p className="mb-3 font-normal text-gray-500 ">{description}</p>
2222
<a
23-
href="#"
23+
href=""
2424
className="inline-flex font-medium items-center text-blue-600 hover:underline"
2525
>
2626
see more details

frontend/src/Components/forms/ExamDuty.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState, useEffect } from "react";
22
import { collection, addDoc } from "firebase/firestore";
33
import { TiEdit } from "react-icons/ti";
4-
import { ToastContainer, toast } from "react-toastify";
4+
import { toast } from "react-toastify";
55
import "react-toastify/dist/ReactToastify.css";
66
import { auth } from "../../config/firebase_configure";
77
import { doc, getDoc } from "firebase/firestore";
@@ -64,7 +64,6 @@ const FormComponentExamDuty = () => {
6464
role: "",
6565
amount: "",
6666
department: "",
67-
form_type: "exam_duty",
6867
});
6968
//include user name and email in the form data
7069
useEffect(() => {

frontend/src/Components/forms/ExamDutyTwo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useState } from "react";
22
import { collection, addDoc } from "firebase/firestore";
33
import { firestore } from "../../config/firebase_configure";
44
import { TiEdit } from "react-icons/ti";
5-
import { ToastContainer, toast } from "react-toastify";
5+
import { toast } from "react-toastify";
66
import "react-toastify/dist/ReactToastify.css";
77

88
const FormComponentExamDutyTwo = () => {

frontend/src/config/firebase_configure.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import "firebase/compat/database";
66

77
const firebaseConfig = {
88
apiKey: "AIzaSyDRVNsvFA-hNOZ2O5-dAlujXaQ9nCKwtAc",
9-
authDomain: "utaas-e8cb2.firebaseapp.com",
9+
authDomain: "utaas-e8cb2.firebaseapp.com/login",
1010
projectId: "utaas-e8cb2",
1111
storageBucket: "utaas-e8cb2.appspot.com",
1212
messagingSenderId: "693800414447",

0 commit comments

Comments
 (0)