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 ( <> - -
Computer Science and Engineering
-Project READYME.MD
+ +3
-Issues
-5
+Computer Science and Engineering
+Other
-Project READYME.MD
- - - - - +3
+Issues
+5
+Other
+