Skip to content

Commit 91ad802

Browse files
committed
Stable Built v.0.1.0
1 parent b48df99 commit 91ad802

21 files changed

+85
-85
lines changed

src/Components/EventCard.jsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const EventCard = ({
2020
name,
2121
}) => {
2222
const { eventImage, eventTitle, eventDetails, eventTime, _id } = cardData
23-
// console.log("Card data :- ", cardData);
23+
// // console.log("Card data :- ", cardData);
2424
let navigate = useNavigate()
2525

2626
const [showConfirm, setShowConfirm] = useState(false)
@@ -36,7 +36,7 @@ export const EventCard = ({
3636
} = cardEditData || {}
3737

3838
function onEdit(id) {
39-
console.log(id)
39+
// console.log(id)
4040
setEditEventID(id)
4141
setModalShow(true)
4242
setAddEvent(false)
@@ -63,8 +63,8 @@ export const EventCard = ({
6363
crossorigin: true,
6464
headers: { Authorization: `Bearer ${authToken}` },
6565
})
66-
//console.log('MAIL SEND ........', parseddata)
67-
//console.log('MAIL DATA: ', mailData)
66+
//// console.log('MAIL SEND ........', parseddata)
67+
//// console.log('MAIL DATA: ', mailData)
6868
toast.success('Users Notified', {
6969
theme: 'dark',
7070
})
@@ -74,7 +74,7 @@ export const EventCard = ({
7474
}
7575

7676
const signInFirst = () => {
77-
//console.log('Log In to your account to Register in this event')
77+
//// console.log('Log In to your account to Register in this event')
7878
toast.error('Sign In To Register To The Event', {
7979
theme: 'dark',
8080
onClick: () => navigate('/signin'),
@@ -84,15 +84,15 @@ export const EventCard = ({
8484
// This will register the user for the event
8585
const registerToEvent = async (id) => {
8686
try {
87-
//console.log(`Events added to the user page ${id}`)
87+
//// console.log(`Events added to the user page ${id}`)
8888
const authToken = localStorage.getItem('token')
89-
//console.log('AuthToken :- ', authToken)
89+
//// console.log('AuthToken :- ', authToken)
9090
let parseddata = await axios.post(`${Api}registerevent/${id}`, '', {
9191
withCredentials: true,
9292
crossorigin: true,
9393
headers: { Authorization: `Bearer ${authToken}` },
9494
})
95-
//console.log('User data :- ', parseddata)
95+
//// console.log('User data :- ', parseddata)
9696
navigate('/dashboard')
9797
toast.success('You have successfully registered', {
9898
theme: 'dark',
@@ -105,15 +105,15 @@ export const EventCard = ({
105105
}
106106

107107
const onDelete = async (id) => {
108-
//console.log(`Deleting the event with id ${id}`)
108+
//// console.log(`Deleting the event with id ${id}`)
109109
const authToken = localStorage.getItem('token')
110-
//console.log('AuthToken :- ', authToken)
110+
//// console.log('AuthToken :- ', authToken)
111111
let { data } = await axios.delete(`${Api}delete/${id}`, {
112112
withCredentials: true,
113113
crossorigin: true,
114114
headers: { Authorization: `Bearer ${authToken}` },
115115
})
116-
//console.log('User data :- ', data)
116+
//// console.log('User data :- ', data)
117117
if (data.success) {
118118
window.location.reload()
119119
}
@@ -151,7 +151,7 @@ export const EventCard = ({
151151
)}
152152

153153
<div className='event-btn-wrapper'>
154-
{/* {console.log("Decd Array -> ", decisionArray)} */}
154+
{/* {// console.log("Decd Array -> ", decisionArray)} */}
155155
{tokenChecker ? (
156156
userRole >= 3 ? (
157157
<></>

src/Components/EventModal.jsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,26 @@ const EventModal = (props) => {
3737
})
3838
return
3939
}
40-
//console.log('New Event Added')
40+
//// console.log('New Event Added')
4141
const Data = {
4242
eventTitle: editEventTitle,
4343
eventTime: editEventTime,
4444
eventImage: editEventImage,
4545
eventDetails: editEventDetails,
4646
}
47-
//console.log('Event Data :- ', Data)
47+
//// console.log('Event Data :- ', Data)
4848

4949
const authToken = localStorage.getItem('token')
5050
const { data } = await axios.post(`${Api}add`, Data, {
5151
withCredentials: true,
5252
headers: { Authorization: `Bearer ${authToken}` },
5353
})
5454

55-
//console.log('DATA :- ', data)
55+
//// console.log('DATA :- ', data)
5656
if (data.success) {
5757
window.location.reload()
5858
} else {
59-
//console.log('error data:- ', data)
59+
//// console.log('error data:- ', data)
6060
toast.error(data.error, {
6161
theme: 'dark',
6262
})
@@ -70,14 +70,14 @@ const EventModal = (props) => {
7070
})
7171
return
7272
}
73-
//console.log('Editing Event')
73+
//// console.log('Editing Event')
7474
const Data = {
7575
eventTitle: editEventTitle,
7676
eventTime: editEventTime,
7777
eventImage: editEventImage,
7878
eventDetails: editEventDetails,
7979
}
80-
//console.log('Event Data :- ', Data)
80+
//// console.log('Event Data :- ', Data)
8181

8282
const authToken = localStorage.getItem('token')
8383
const { data } = await axios.put(`${Api}update/${editEventID}`, Data, {
@@ -88,12 +88,12 @@ const EventModal = (props) => {
8888
if (data.success) {
8989
window.location.reload()
9090
} else {
91-
//console.log('error data:- ', data)
91+
//// console.log('error data:- ', data)
9292
toast.error(data.error, {
9393
theme: 'dark',
9494
})
9595
}
96-
//console.log('Data :- ', data)
96+
//// console.log('Data :- ', data)
9797
}
9898

9999
useEffect(() => {
@@ -108,7 +108,7 @@ const EventModal = (props) => {
108108
}
109109
}, [modalShow])
110110

111-
//console.log('edit event id: ', editEventID)
111+
//// console.log('edit event id: ', editEventID)
112112

113113
return (
114114
<div className={modalContainerClass}>

src/Components/EventsContainer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const EventsContainer = ({
2525
// })
2626
// setLoading(false)
2727
// setEvents(parseddata.data.upcomingEvent)
28-
// console.log(allEvents)
28+
// // console.log(allEvents)
2929
// }
3030

3131
// useEffect(() => {

src/Components/Navbar.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ const NavCompoA = () => {
3030
};
3131

3232
const NavCompoB = ({ userImg, userNameText, userRole }) => {
33-
//console.log(userNameText)
33+
//// console.log(userNameText)
3434
const navigate = useNavigate();
3535

3636
const signOut = () => {
37-
console.log("Sign Out");
37+
// console.log("Sign Out");
3838
localStorage.clear();
3939
navigate("/")
4040
sessionStorage.clear();
@@ -73,7 +73,7 @@ const Navbar = ({ userImage, userNameText }) => {
7373

7474
const checkToken = async () => {
7575
const token = localStorage.getItem("token");
76-
//console.log(token)
76+
//// console.log(token)
7777
if (token) {
7878
setTokenChecker(true);
7979
// TODO: Set the Role of the user

src/Pages/Components/EmailForme.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const EmailForme = () => {
1111

1212
const handleSubmit = async (e) => {
1313
e.preventDefault();
14-
console.log("Form Submitted Successfully");
14+
// console.log("Form Submitted Successfully");
1515
const { data } = await axios.post(
1616
`${Api}tokenforreset`,
1717
{
@@ -34,14 +34,14 @@ const EmailForme = () => {
3434
});
3535
setEmail("");
3636
}
37-
console.log("Data: ", data);
37+
// console.log("Data: ", data);
3838
};
3939

4040
// abirpal282002@gmail.com
4141

4242
function handelChange(e) {
4343
setEmail(e.target.value);
44-
console.log(email);
44+
// console.log(email);
4545
}
4646

4747
return (

src/Pages/Components/Otpforum.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const Otpforum = () => {
1313

1414
async function submit(e) {
1515
e.preventDefault();
16-
//console.log("Data Submitted");
16+
//// console.log("Data Submitted");
1717
const data = {
1818
otp: registerdata.otp,
1919
};
@@ -25,11 +25,11 @@ const Otpforum = () => {
2525

2626

2727
if (dataposted.data.success) {
28-
//console.log("User Created Successfully");
28+
//// console.log("User Created Successfully");
2929
navigate("/dashboard");
3030
window.location.reload();
3131
} else {
32-
//console.log("User Not Created Successfully");
32+
//// console.log("User Not Created Successfully");
3333
setRegisterdata({
3434
otp: "",
3535
});
@@ -38,14 +38,14 @@ const Otpforum = () => {
3838
});
3939
navigate("/verify");
4040
}
41-
// console.log(dasbodedata);
41+
// // console.log(dasbodedata);
4242
}
4343

4444
function handelChange(e) {
4545
const newdata = { ...registerdata };
4646
newdata[e.target.id] = e.target.value;
4747
setRegisterdata(newdata);
48-
//console.log(newdata);
48+
//// console.log(newdata);
4949
}
5050
useEffect(() => {
5151
const e = localStorage.getItem('email')

src/Pages/Components/Siginform.jsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const Siginform = () => {
1414

1515
async function submit(e) {
1616
e.preventDefault()
17-
//console.log('Data Submitted')
17+
//// console.log('Data Submitted')
1818
const data = {
1919
uid: registerdata.uid,
2020
password: registerdata.password,
@@ -25,7 +25,7 @@ const Siginform = () => {
2525
})
2626

2727
if (dataposted.data.success) {
28-
//console.log('Logged In Successfully')
28+
//// console.log('Logged In Successfully')
2929
localStorage.setItem('token', dataposted.data.token)
3030
localStorage.setItem(
3131
'name',
@@ -37,7 +37,7 @@ const Siginform = () => {
3737
else navigate('/admin/overview')
3838
window.location.reload()
3939
} else {
40-
//console.log('Access Denied')
40+
//// console.log('Access Denied')
4141
setRegisterdata({
4242
uid: '',
4343
password: '',
@@ -46,11 +46,11 @@ const Siginform = () => {
4646
theme: 'dark',
4747
})
4848
}
49-
//console.log(dataposted)
49+
//// console.log(dataposted)
5050
}
5151
// async function submit(e) {
5252
// e.preventDefault();
53-
// //console.log("Data Submitted");
53+
// //// console.log("Data Submitted");
5454
// const data = {
5555
// uid: registerdata.uid,
5656
// password: registerdata.password,
@@ -61,7 +61,7 @@ const Siginform = () => {
6161
// });
6262

6363
// if (dataposted.data.success) {
64-
// //console.log("Logged In Successfully");
64+
// //// console.log("Logged In Successfully");
6565
// localStorage.setItem("token", dataposted.data.token);
6666
// localStorage.setItem(
6767
// "name",
@@ -71,13 +71,13 @@ const Siginform = () => {
7171
// navigate("/dashboard");
7272
// window.location.reload();
7373
// } else {
74-
// //console.log("Access Denied");
74+
// //// console.log("Access Denied");
7575
// setRegisterdata({
7676
// uid: "",
7777
// password: "",
7878
// });
7979
// }
80-
// //console.log(dataposted);
80+
// //// console.log(dataposted);
8181
// }
8282

8383
async function tokenCheker() {
@@ -91,7 +91,7 @@ const Siginform = () => {
9191
const newdata = { ...registerdata }
9292
newdata[e.target.id] = e.target.value
9393
setRegisterdata(newdata)
94-
//console.log(newdata)
94+
//// console.log(newdata)
9595
}
9696

9797
const [viewPassword, setViewPassword] = useState(false)

src/Pages/Components/Signupform.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ const Signupform = () => {
1919
linkedin: "",
2020
github: "",
2121
});
22-
//console.log("API is :- ", Api);
22+
//// console.log("API is :- ", Api);
2323
let navigate = useNavigate();
2424

2525
async function submit(e) {
2626
e.preventDefault();
27-
//console.log("Data Submitted");
27+
//// console.log("Data Submitted");
2828
const dataposted = await Axios.post(`${Api}register`, {
2929
firstName: registerdata.firstName,
3030
lastName: registerdata.lastName,
@@ -38,9 +38,9 @@ const Signupform = () => {
3838
github: registerdata.github,
3939
});
4040

41-
//console.log(dataposted);
41+
//// console.log(dataposted);
4242
if (dataposted.data.success) {
43-
//console.log("User Created Successfully");
43+
//// console.log("User Created Successfully");
4444
localStorage.setItem("token", dataposted.data.token); // setting token to localstorage
4545
localStorage.setItem(
4646
"name",
@@ -51,13 +51,13 @@ const Signupform = () => {
5151
// Cookies.set('token', dataposted.data.token); // setting token to cookies
5252
navigate("/verify");
5353
} else {
54-
//console.log("User Not Created Successfully");
55-
//console.log("Error data - ", dataposted.data);
54+
//// console.log("User Not Created Successfully");
55+
//// console.log("Error data - ", dataposted.data);
5656
toast.error(dataposted.data.error, {
5757
theme: "dark",
5858
});
5959
}
60-
//console.log(dataposted);
60+
//// console.log(dataposted);
6161
}
6262

6363
function handelChange(e) {

src/Pages/Components/Slider.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ const Slider = () => {
1212

1313
const nextSlide = () => {
1414
setCurrentSlide(currentSlide === slideLength - 1 ? 0 : currentSlide + 1);
15-
//console.log("next");
15+
//// console.log("next");
1616

1717
};
1818

1919
const prevSlide = () => {
2020
setCurrentSlide(currentSlide === 0 ? slideLength - 1 : currentSlide - 1);
21-
//console.log("prev");
21+
//// console.log("prev");
2222

2323
};
2424

src/Pages/Components/User-Secure-Route/Admin Panel/Admin.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export default Admin
134134
// withCredentials: true,
135135
// headers: { Authorization: `Bearer ${authToken}` },
136136
// })
137-
// //console.log('data: ', data)
137+
// //// console.log('data: ', data)
138138
// setLogData(await data.data.logs)
139139
// setLoading(false)
140140
// }

0 commit comments

Comments
 (0)