2024-02-15 13:30:44 +03:00
|
|
|
|
import "bootstrap/dist/css/bootstrap.min.css";
|
2023-04-27 13:37:41 +03:00
|
|
|
|
import React from "react";
|
2024-02-15 13:30:44 +03:00
|
|
|
|
import { useSelector } from "react-redux";
|
2023-04-27 13:37:41 +03:00
|
|
|
|
import {
|
2024-02-15 13:30:44 +03:00
|
|
|
|
Navigate,
|
2023-04-27 13:37:41 +03:00
|
|
|
|
Route,
|
2024-02-15 13:30:44 +03:00
|
|
|
|
BrowserRouter as Router,
|
|
|
|
|
Routes
|
2023-04-27 13:37:41 +03:00
|
|
|
|
} from "react-router-dom";
|
2021-08-20 11:52:23 +03:00
|
|
|
|
|
2023-07-14 03:03:33 +03:00
|
|
|
|
import { getNotification } from "@redux/outstaffingSlice";
|
|
|
|
|
|
2024-03-08 16:55:48 +03:00
|
|
|
|
import { Article } from "@pages/Article/Article";
|
|
|
|
|
import { Auth } from "@pages/Auth/Auth";
|
2024-02-15 13:30:44 +03:00
|
|
|
|
import { AuthForCandidate } from "@pages/AuthForCandidate/AuthForCandidate";
|
2024-03-08 16:55:48 +03:00
|
|
|
|
import { Blog } from "@pages/Blog/Blog";
|
2024-01-29 21:19:20 +03:00
|
|
|
|
import CatalogSpecialists from "@pages/CatalogSpecialists/CatalogSpecialists";
|
2023-08-11 20:38:12 +03:00
|
|
|
|
import { CompanyInfo } from "@pages/CompanyInfo/CompanyInfo";
|
2024-03-08 16:55:48 +03:00
|
|
|
|
import { FormPage } from "@pages/FormPage/FormPage";
|
|
|
|
|
import { Forms } from "@pages/Forms/Forms";
|
2024-02-15 13:30:44 +03:00
|
|
|
|
import { FrequentlyAskedQuestion } from "@pages/FrequentlyAskedQuestion/FrequentlyAskedQuestion";
|
|
|
|
|
import { FrequentlyAskedQuestions } from "@pages/FrequentlyAskedQuestions/FrequentlyAskedQuestions";
|
2024-03-08 16:55:48 +03:00
|
|
|
|
import { Home } from "@pages/Home/Home";
|
2024-02-01 23:32:02 +03:00
|
|
|
|
import { PartnerAddRequest } from "@pages/PartnerAddRequest/PartnerAddRequest";
|
|
|
|
|
import { PartnerBid } from "@pages/PartnerBid/PartnerBid";
|
2024-02-15 13:30:44 +03:00
|
|
|
|
import { PartnerEmployeeReport } from "@pages/PartnerEmployeeReport/PartnerEmployeeReport";
|
2024-02-01 23:32:02 +03:00
|
|
|
|
import { PartnerEmployees } from "@pages/PartnerEmployees/PartnerEmployees";
|
2024-02-15 13:30:44 +03:00
|
|
|
|
import { PartnerRequests } from "@pages/PartnerRequests/PartnerRequests";
|
|
|
|
|
import { PartnerSettings } from "@pages/PartnerSettings/PartnerSettings";
|
|
|
|
|
import { PartnerTreaties } from "@pages/PartnerTreaties/PartnerTreaties";
|
|
|
|
|
import { PartnerCategories } from "@pages/PartnerСategories/PartnerСategories";
|
|
|
|
|
import { Payouts } from "@pages/Payouts/Payouts";
|
|
|
|
|
import { Profile } from "@pages/Profile/Profile";
|
2024-02-01 23:32:02 +03:00
|
|
|
|
import { ProfileCandidate } from "@pages/ProfileCandidate/ProfileCandidate";
|
2024-02-15 13:30:44 +03:00
|
|
|
|
import { ProjectTracker } from "@pages/ProjectTracker/ProjectTracker";
|
2024-02-01 23:32:02 +03:00
|
|
|
|
import { PassingTests } from "@pages/Quiz/PassingTests";
|
2024-02-15 13:30:44 +03:00
|
|
|
|
import { QuizPage } from "@pages/Quiz/QuizPage";
|
|
|
|
|
import { QuizReportPage } from "@pages/Quiz/QuizReportPage";
|
|
|
|
|
import { RegistrationForCandidate } from "@pages/RegistrationForCandidate/RegistrationForCandidate";
|
|
|
|
|
import { RegistrationSetting } from "@pages/RegistrationSetting/RegistrationSetting";
|
2024-03-08 16:55:48 +03:00
|
|
|
|
import { SingleReportPage } from "@pages/SingleReportPage/SingleReportPage";
|
2023-10-02 21:26:06 +03:00
|
|
|
|
import Statistics from "@pages/Statistics/Statistics";
|
2024-02-15 13:30:44 +03:00
|
|
|
|
import { Summary } from "@pages/Summary/Summary";
|
|
|
|
|
import { Tracker } from "@pages/Tracker/Tracker";
|
|
|
|
|
import { TrackerAuth } from "@pages/TrackerAuth/TrackerAuth";
|
|
|
|
|
import { TrackerIntro } from "@pages/TrackerIntro/TrackerIntro";
|
|
|
|
|
import { TrackerRegistration } from "@pages/TrackerRegistration/TrackerRegistration";
|
|
|
|
|
import { ViewReport } from "@pages/ViewReport/ViewReport";
|
|
|
|
|
|
2024-03-06 14:08:06 +03:00
|
|
|
|
import { Calendar } from "@components/Calendar/Calendar";
|
|
|
|
|
import { Candidate } from "@components/Candidate/Candidate";
|
|
|
|
|
import { FreeDevelopers } from "@components/FreeDevelopers/FreeDevelopers";
|
2024-03-08 16:55:48 +03:00
|
|
|
|
import { TicketFullScreen } from "@components/Modal/Tracker/TicketFullScreen/TicketFullScreen";
|
|
|
|
|
import { Notification } from "@components/Notification/Notification";
|
|
|
|
|
import { ProfileCalendar } from "@components/ProfileCalendar/ProfileCalendar";
|
2024-03-06 14:08:06 +03:00
|
|
|
|
import { ReportForm } from "@components/ReportForm/ReportForm";
|
2023-04-27 21:15:55 +03:00
|
|
|
|
|
2024-03-06 14:08:06 +03:00
|
|
|
|
import "assets/fonts/stylesheet.css";
|
|
|
|
|
import "assets/global.scss";
|
2023-01-18 17:37:52 +03:00
|
|
|
|
|
2022-06-01 19:59:54 +03:00
|
|
|
|
const App = () => {
|
2024-02-14 19:32:51 +03:00
|
|
|
|
const notification = useSelector(getNotification);
|
2021-09-28 12:46:16 +03:00
|
|
|
|
return (
|
2023-04-27 13:37:41 +03:00
|
|
|
|
<>
|
|
|
|
|
<Router>
|
|
|
|
|
<Routes>
|
2023-12-04 18:36:02 +03:00
|
|
|
|
<Route exact path="/auth" element={<Auth />} />
|
2023-07-04 22:26:00 +03:00
|
|
|
|
<Route exact path="/tracker-intro" element={<TrackerIntro />} />
|
2023-07-07 01:20:57 +03:00
|
|
|
|
<Route exact path="/tracker-auth" element={<TrackerAuth />} />
|
2024-03-06 14:08:06 +03:00
|
|
|
|
<Route exact path="/forms" element={<Forms />} />
|
2024-02-14 19:32:51 +03:00
|
|
|
|
<Route
|
|
|
|
|
exact
|
|
|
|
|
path="/tracker-registration"
|
|
|
|
|
element={<TrackerRegistration />}
|
|
|
|
|
/>
|
2023-08-11 20:38:12 +03:00
|
|
|
|
<Route exact path="/company" element={<CompanyInfo />} />
|
2024-02-14 19:32:51 +03:00
|
|
|
|
<Route
|
|
|
|
|
exact
|
|
|
|
|
path="/registration-setting"
|
|
|
|
|
element={<RegistrationSetting />}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
exact
|
|
|
|
|
path="/catalog-specialists"
|
|
|
|
|
element={<CatalogSpecialists />}
|
|
|
|
|
/>
|
2023-05-23 17:15:12 +03:00
|
|
|
|
|
2023-04-27 13:37:41 +03:00
|
|
|
|
<Route exact path="/worker/:id" element={<FreeDevelopers />} />
|
|
|
|
|
<Route
|
|
|
|
|
exact
|
2023-04-27 15:13:14 +03:00
|
|
|
|
path="/tracker/task/:id"
|
2023-04-27 13:37:41 +03:00
|
|
|
|
element={<TicketFullScreen />}
|
|
|
|
|
></Route>
|
2023-05-02 20:29:10 +03:00
|
|
|
|
<Route
|
|
|
|
|
exact
|
|
|
|
|
path="/tracker/project/:id"
|
|
|
|
|
element={<ProjectTracker />}
|
|
|
|
|
/>
|
2023-11-29 22:18:25 +03:00
|
|
|
|
|
2023-04-27 13:37:41 +03:00
|
|
|
|
<Route exact path="/auth-candidate" element={<AuthForCandidate />} />
|
|
|
|
|
<Route
|
|
|
|
|
exact
|
|
|
|
|
path="/registration-candidate"
|
|
|
|
|
element={<RegistrationForCandidate />}
|
|
|
|
|
/>
|
2023-01-17 22:14:05 +03:00
|
|
|
|
|
2023-04-27 15:13:14 +03:00
|
|
|
|
<Route exact path="/blog" element={<Blog />}></Route>
|
2023-04-28 18:07:34 +03:00
|
|
|
|
<Route exact path="/blog/article/:id" element={<Article />}></Route>
|
2023-05-23 17:15:12 +03:00
|
|
|
|
<Route
|
|
|
|
|
exact
|
|
|
|
|
path="/frequently-asked-questions"
|
|
|
|
|
element={<FrequentlyAskedQuestions />}
|
|
|
|
|
/>
|
|
|
|
|
<Route
|
|
|
|
|
exact
|
|
|
|
|
path="/frequently-asked-question/:id"
|
|
|
|
|
element={<FrequentlyAskedQuestion />}
|
|
|
|
|
/>
|
2023-04-27 15:13:14 +03:00
|
|
|
|
|
2023-04-27 13:37:41 +03:00
|
|
|
|
<Route exact path="/candidate/:id" element={<Candidate />} />
|
|
|
|
|
<Route exact path="/candidate/:id/form" element={<FormPage />} />
|
|
|
|
|
<Route path="/:userId/calendar" element={<Calendar />} />
|
2023-01-13 13:02:48 +03:00
|
|
|
|
|
2023-04-27 13:37:41 +03:00
|
|
|
|
<Route path="/report/:id" element={<SingleReportPage />} />
|
2023-01-13 13:02:48 +03:00
|
|
|
|
|
2023-04-27 13:37:41 +03:00
|
|
|
|
<Route exact path="profile">
|
|
|
|
|
<Route index element={<Profile />} />
|
|
|
|
|
<Route exact path="catalog" element={<Home />} />
|
|
|
|
|
<Route exact path="calendar" element={<ProfileCalendar />} />
|
2024-02-07 18:54:21 +03:00
|
|
|
|
<Route exact path="calendar/report" element={<ReportForm />} />
|
2024-02-14 19:32:51 +03:00
|
|
|
|
<Route
|
|
|
|
|
exact
|
|
|
|
|
path="calendar/view/:date/:id"
|
|
|
|
|
element={<ViewReport />}
|
|
|
|
|
/>
|
2023-04-27 13:37:41 +03:00
|
|
|
|
<Route exact path="summary" element={<Summary />} />
|
|
|
|
|
<Route exact path="tracker" element={<Tracker />} />
|
2024-02-14 19:32:51 +03:00
|
|
|
|
<Route exact path="statistics/:id" element={<Statistics />} />
|
2023-04-27 13:37:41 +03:00
|
|
|
|
<Route exact path="payouts" element={<Payouts />} />
|
|
|
|
|
<Route exact path="settings" element={<PartnerSettings />} />
|
|
|
|
|
<Route exact path="requests" element={<PartnerRequests />} />
|
2024-02-14 16:23:50 +03:00
|
|
|
|
<Route exact path="requests-add" element={<PartnerAddRequest />} />
|
|
|
|
|
<Route exact path="requests-edit" element={<PartnerAddRequest />} />
|
|
|
|
|
<Route exact path="requests-bid" element={<PartnerBid />} />
|
2024-02-02 18:43:52 +03:00
|
|
|
|
<Route exact path="employees" element={<PartnerCategories />} />
|
2024-02-14 19:32:51 +03:00
|
|
|
|
<Route
|
|
|
|
|
exact
|
|
|
|
|
path="employees/report/:uuid"
|
|
|
|
|
element={<PartnerEmployeeReport />}
|
|
|
|
|
/>
|
2023-04-27 13:37:41 +03:00
|
|
|
|
<Route exact path="treaties" element={<PartnerTreaties />} />
|
2024-02-07 18:54:21 +03:00
|
|
|
|
<Route exact path="quiz">
|
|
|
|
|
<Route index element={<QuizPage />} />
|
|
|
|
|
<Route exact path="test/:uuid" element={<PassingTests />} />
|
|
|
|
|
<Route exact path="report/:uuid" element={<QuizReportPage />} />
|
|
|
|
|
</Route>
|
2024-02-02 18:43:52 +03:00
|
|
|
|
|
2023-04-27 13:37:41 +03:00
|
|
|
|
<Route
|
|
|
|
|
exact
|
|
|
|
|
path="categories/employees"
|
|
|
|
|
element={<PartnerEmployees />}
|
|
|
|
|
/>
|
|
|
|
|
</Route>
|
2023-12-12 11:22:53 +03:00
|
|
|
|
|
2023-04-27 13:37:41 +03:00
|
|
|
|
<Route exact path="profile-candidate/:id">
|
|
|
|
|
<Route index element={<ProfileCandidate />} />
|
|
|
|
|
</Route>
|
2023-01-13 13:02:48 +03:00
|
|
|
|
|
2023-04-27 13:37:41 +03:00
|
|
|
|
<Route path="*" element={<Navigate to="/auth" replace />} />
|
|
|
|
|
</Routes>
|
|
|
|
|
</Router>
|
2024-02-14 19:32:51 +03:00
|
|
|
|
{notification.show && <Notification />}
|
2023-04-27 13:37:41 +03:00
|
|
|
|
</>
|
|
|
|
|
);
|
2023-01-13 13:02:48 +03:00
|
|
|
|
};
|
2021-05-25 14:50:01 +03:00
|
|
|
|
|
2023-04-27 13:37:41 +03:00
|
|
|
|
export default App;
|