Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
284 changes: 284 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"react-redux": "^9.2.0",
"react-router-dom": "^7.1.0",
"react-toastify": "^11.0.2",
"recharts": "^3.8.0",
"tailwind-merge": "^2.6.0",
"three": "^0.172.0"
},
Expand Down
10 changes: 10 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ import GenerateSynopsis from "./components/GenerateSynopsis";

import { AnimatePresence } from "framer-motion";
import Preloader from "./components/Preloader";
import AdminViewAllocations from "./components/admin/AdminViewAllocation.jsx";
import ProjectJudgesAllocation from "./components/admin/ProjectJudgeAllocation.jsx";
import AnalyticsDashboard from "./components/admin/AnalyticsDashboard.jsx";
import AdminReallocate from "./components/admin/ProjectReallocate.jsx";
import AdminJudgingSchedule from "./components/admin/ProjectSchedule.jsx";

// Lazy components
const Register = lazy(() => import("./components/Register.jsx"));
Expand Down Expand Up @@ -164,6 +169,11 @@ const App = () => {
/>

<Route path="/register" element={<RegisterHome />} />
<Route path="/admin/view/allocation" element={<AdminViewAllocations />} />
<Route path="/admin/view/project-judge" element={<ProjectJudgesAllocation />} />
<Route path="/admin/view/analytics" element={<AnalyticsDashboard />} />
<Route path="/admin/reallocate" element={<AdminReallocate />} />
<Route path="/schedule" element={<AdminJudgingSchedule/>} />
<Route
path="/register/judge/:event_name"
element={<JudgeRegister />}
Expand Down
1 change: 1 addition & 0 deletions src/app/config/api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const API_BASE = 'https://api.pictinc.org';
5 changes: 2 additions & 3 deletions src/app/services/adminAPI.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react";
import { API_BASE } from '../../app/config/api';

// const baseURL = ("https://api.pyush.site") + "/events";
// const baseURL="https://inc-2026-backend.onrender.com" + "/events"
const baseURL = "https://api.pictinc.org/events";
const baseURL = `${API_BASE}/events`;

export const adminAPI = createApi({
reducerPath: "admins",
Expand Down
Loading
Loading