diff --git a/client/app_frontend/src/pages/auth/sign-in.jsx b/client/app_frontend/src/pages/auth/sign-in.jsx index 1704d50..374c4a3 100644 --- a/client/app_frontend/src/pages/auth/sign-in.jsx +++ b/client/app_frontend/src/pages/auth/sign-in.jsx @@ -78,12 +78,12 @@ export function SignIn() { const json = await response.json(); console.log(json); - alert(response.status); + // alert(response.status); if (response.status === 500 || response.status === 400) { if (response.status === 500) { alert("Please fill the required details."); } else { - alert(json.msg); + // alert(json.msg); } } else { localStorage.setItem("token", "toke123"); diff --git a/client/app_frontend/src/pages/auth/sign-up.jsx b/client/app_frontend/src/pages/auth/sign-up.jsx index 27b0549..7351620 100644 --- a/client/app_frontend/src/pages/auth/sign-up.jsx +++ b/client/app_frontend/src/pages/auth/sign-up.jsx @@ -134,7 +134,7 @@ export function SignUp() { const json = await response.json(); // console.log(json) - alert(response.status); + // alert(response.status); alert("Signed up successfully now you can log in"); navigate("/auth/sign-in"); @@ -167,7 +167,7 @@ export function SignUp() { if (response.status === 500) { alert("Please fill the required details."); } else { - alert(json.msg); + // alert(json.msg); } } } diff --git a/client/app_frontend/src/pages/dashboard/Members.jsx b/client/app_frontend/src/pages/dashboard/Members.jsx index f2c2af7..faafa22 100644 --- a/client/app_frontend/src/pages/dashboard/Members.jsx +++ b/client/app_frontend/src/pages/dashboard/Members.jsx @@ -55,7 +55,7 @@ export function Profile() { var name = JSON.parse(localStorage.getItem("ghUsername")); const fetchTheData = async () => { - alert("Fetching data..."); + // alert("Fetching data..."); try { const port = "https://naih-frontend-production.up.railway.app"; @@ -72,7 +72,7 @@ export function Profile() { const json = await response.json(); // console.log(json) - alert(response.status); + // alert(response.status); if (response.status === 500 || response.status === 400) { alert("Can not fetch data"); } else { diff --git a/client/app_frontend/src/pages/dashboard/Project.jsx b/client/app_frontend/src/pages/dashboard/Project.jsx index bb9ea64..fda00a7 100644 --- a/client/app_frontend/src/pages/dashboard/Project.jsx +++ b/client/app_frontend/src/pages/dashboard/Project.jsx @@ -1,4 +1,4 @@ -import React from 'react' +import React from "react"; import { Card, CardBody, @@ -12,223 +12,213 @@ import { Switch, Tooltip, Button, - Alert + Alert, } from "@material-tailwind/react"; import { ProfileInfoCard, MessageCard } from "@/widgets/cards"; - import { platformSettingsData, conversationsData, projectsData } from "@/data"; - +import { platformSettingsData, conversationsData, projectsData } from "@/data"; + export default function Projects() { var name = JSON.parse(localStorage.getItem("ghUsername")); - const fetchTheData = async(e)=>{ - alert("hujhj") - var username = await JSON.parse(localStorage.getItem("ghUsername")); - -// Fetch user information - fetch(`https://api.github.com/users/${username}`) - .then(response => response.json()) - .then(userData => { - + const fetchTheData = async (e) => { + // alert("hujhj") + var username = await JSON.parse(localStorage.getItem("ghUsername")); + + // Fetch user information + fetch(`https://api.github.com/users/${username}`) + .then((response) => response.json()) + .then((userData) => { console.log("User Data:", userData); // Fetch user's repositories fetch(`https://api.github.com/users/${username}/repos`) - .then(response => response.json()) - .then(reposData => { - console.log("Repositories Data:", reposData); - - // Now you can use userData and reposData as needed in your application - }) - .catch(error => console.error("Error fetching repositories:", error)); - }) - .catch(error => console.error("Error fetching user data:", error)); - + .then((response) => response.json()) + .then((reposData) => { + console.log("Repositories Data:", reposData); + + // Now you can use userData and reposData as needed in your application + }) + .catch((error) => + console.error("Error fetching repositories:", error) + ); + }) + .catch((error) => console.error("Error fetching user data:", error)); + }; - } - - return ( <> - -
-
-
- - -
-
- -
- - {name==""?"Please log in":name} - - - Contributor - -
-
-
-
-
+
+
+
+ + +
+
+
- - Platform Settings + + {name == "" ? "Please log in" : name} + + + Contributor -
- {platformSettingsData.map( - ({ title, options }) => - title != "account" && ( -
- - {title} - -
- {options.map(({ checked, label }) => ( - - ))} -
+
+
+
+
+
+
+ + Platform Settings + +
+ {platformSettingsData.map( + ({ title, options }) => + title != "account" && ( +
+ + {title} + +
+ {options.map(({ checked, label }) => ( + + ))}
- ) - )} -
+
+ ) + )}
+
+ + + + +
+ ), + }} + /> +
- - - -
- ), - }} /> -
- -
- -
-
- -
-
-
- + +
+ - - - -
+ + +
- -
- - {name==""?"Please log in":name} - - - Contributor - -
+ +
+ + {name == "" ? "Please log in" : name} + + + Contributor +
-
- - - - -
- -
- {/* Author Profile Picture */} -
-

{JSON.parse(localStorage.getItem("name"))}

-

Computer Science and Engineering

-
-
- - -

Project READYME.MD

+
+
-
-
-
-

3

-
-

Issues

-
-
-
-

5

+
+
+ {/* Author Profile Picture */} +
+

+ {JSON.parse(localStorage.getItem("name"))} +

+

Computer Science and Engineering

+
-

Other

-
-
- -
+

Project READYME.MD

- - - - - +
+
+
+

3

+
+

Issues

+
+
+
+

5

+
+

Other

+
+
+ +
+ + - ) + ); } diff --git a/client/app_frontend/src/pages/dashboard/profile.jsx b/client/app_frontend/src/pages/dashboard/profile.jsx index 582f866..730af17 100644 --- a/client/app_frontend/src/pages/dashboard/profile.jsx +++ b/client/app_frontend/src/pages/dashboard/profile.jsx @@ -77,7 +77,7 @@ export function Profile() { }); const fetchTheData = async () => { - alert("Fetching data..."); + // alert("Fetching data..."); try { const port = "https://naih-frontend-production.up.railway.app"; @@ -94,7 +94,7 @@ export function Profile() { const json = await response.json(); console.log(json); - alert(response.status); + // alert(response.status); if (response.status === 500 || response.status === 400) { alert("Can not fetch data"); } else { diff --git a/client/src/components/Signup.jsx b/client/src/components/Signup.jsx index ad19734..23c61a7 100644 --- a/client/src/components/Signup.jsx +++ b/client/src/components/Signup.jsx @@ -33,7 +33,7 @@ export default function Signup() { localStorage.setItem("openSourceStory", details.openSourceStory); localStorage.setItem("GithubUserName", details.GithubUserName); localStorage.setItem("UrlForProfilePic", details.UrlForProfilePic); - alert("hlw"); + // alert("hlw"); navigate("/auth/sign-in"); } };