Skip to content

Commit 58b64c7

Browse files
Merge pull request #62 from RITVIKKAMASETTY/main
add
2 parents 533acca + 328b203 commit 58b64c7

File tree

11 files changed

+7907
-962
lines changed

11 files changed

+7907
-962
lines changed

a.jsx

Whitespace-only changes.

package-lock.json

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020
"@tensorflow-models/handpose": "^0.1.0",
2121
"@tensorflow/tfjs": "^4.22.0",
2222
"axios": "^1.10.0",
23+
"chart.js": "^4.5.0",
2324
"face-api.js": "^0.22.2",
2425
"lucide-react": "^0.513.0",
2526
"pdfjs-dist": "^5.3.31",
2627
"react": "^19.0.0",
28+
"react-chartjs-2": "^5.3.0",
2729
"react-dom": "^19.0.0",
2830
"react-router-dom": "^7.8.1",
2931
"react-toastify": "^11.0.5",

src/components/ui/header.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const baseUrl=import.meta.env.VITE_API_URL;
116116
href={`/org-dashboard/${orgId}`}
117117
className="text-gray-700 hover:text-blue-600 font-medium transition-colors duration-200"
118118
>
119-
Go to Organization
119+
go to organization
120120
</a>
121121
) : (
122122
<a

src/pages/DasInterViewPlatForm.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,7 +1759,7 @@ import React, { useState, useEffect, useCallback } from 'react';
17591759
import { Clock, Play, Send, CheckCircle, XCircle, Code, AlertCircle, Loader } from 'lucide-react';
17601760
import { getAuthToken, fetchWithToken } from '../utils/handleToken';
17611761
import { useParams, useNavigate } from 'react-router-dom';
1762-
1762+
const base_url=import.meta.env.VITE_API_URL;
17631763
const TIME_LIMIT = 30 * 60; // 30 minutes in seconds
17641764
const LANGUAGES = ['Python', 'C++', 'Java'];
17651765
const CODE_TEMPLATES = {
@@ -1880,10 +1880,10 @@ const DSAInterviewPlatform = () => {
18801880
setError('Authentication required');
18811881
return [];
18821882
}
1883-
1883+
const base_url= import.meta.env.VITE_API_URL;
18841884
try {
18851885
const data = await fetchWithToken(
1886-
`http://localhost:8000/api/interview/get-dsa-questions/${sessionId}/`,
1886+
`${base_url}/interview/get-dsa-questions/${sessionId}/`,
18871887
token,
18881888
navigate,
18891889
);
@@ -2072,7 +2072,7 @@ const DSAInterviewPlatform = () => {
20722072
};
20732073

20742074
const response = await fetchWithToken(
2075-
`http://localhost:8000/api/interview/add-dsa-scores/${sessionId}/${question.dsaTopicId}/`,
2075+
`${base_url}/interview/add-dsa-scores/${sessionId}/${question.dsaTopicId}/`,
20762076
token,
20772077
navigate,
20782078
'POST',

0 commit comments

Comments
 (0)