2022-05-31 15:14:15 +03:00
|
|
|
|
import React from 'react'
|
2023-01-13 13:02:48 +03:00
|
|
|
|
import {BrowserRouter as Router, Route, Routes, Navigate} from 'react-router-dom';
|
2021-05-25 14:50:01 +03:00
|
|
|
|
|
2021-08-20 11:52:23 +03:00
|
|
|
|
|
2023-01-13 13:02:48 +03:00
|
|
|
|
import AuthForPartners from "./pages/AuthForPartners/AuthForPartners";
|
|
|
|
|
import AuthForDevelopers from "./pages/AuthForDevelopers/AuthForDevelopers";
|
2023-01-18 17:37:52 +03:00
|
|
|
|
import Home from "./pages/Home/Home";
|
|
|
|
|
import Candidate from "./components/Candidate/Candidate";
|
2023-01-17 22:14:05 +03:00
|
|
|
|
import Calendar from "./components/Calendar/Calendar";
|
|
|
|
|
import ReportForm from "./components/ReportForm/ReportForm";
|
2023-04-07 21:49:09 +03:00
|
|
|
|
import FreeDevelopers from "./components/UI/FreeDevelopers/FreeDevelopers";
|
|
|
|
|
import { ProfileCalendar } from "./components/ProfileCalendar/ProfileCalendar";
|
|
|
|
|
import FormPage from "./pages/FormPage/FormPage.js";
|
|
|
|
|
import SingleReportPage from "./pages/SingleReportPage/SingleReportPage";
|
|
|
|
|
import { QuizPage } from "./pages/quiz/QuizPage";
|
2023-04-19 20:37:40 +03:00
|
|
|
|
import {QuizReportPage} from './pages/quiz/QuizReportPage';
|
2023-04-07 21:49:09 +03:00
|
|
|
|
import { Profile } from "./pages/Profile/Profile.js";
|
|
|
|
|
import { Summary } from "./pages/Summary/Summary";
|
|
|
|
|
import { ViewReport } from "./pages/ViewReport/ViewReport";
|
|
|
|
|
import { Tracker } from "./pages/Tracker/Tracker";
|
|
|
|
|
import { Payouts } from "./pages/Payouts/Payouts";
|
|
|
|
|
import { PartnerSettings } from "./pages/PartnerSettings/PartnerSettings";
|
|
|
|
|
import { PartnerRequests } from "./pages/PartnerRequests/PartnerRequests";
|
|
|
|
|
import { PartnerAddRequest } from "./pages/PartnerAddRequest/PartnerAddRequest";
|
|
|
|
|
import { PartnerBid } from "./pages/PartnerBid/PartnerBid";
|
|
|
|
|
import { PartnerCategories } from "./pages/PartnerСategories/PartnerСategories";
|
|
|
|
|
import { PartnerTreaties } from "./pages/PartnerTreaties/PartnerTreaties";
|
|
|
|
|
import { PartnerEmployees } from "./pages/PartnerEmployees/PartnerEmployees";
|
2023-04-04 19:07:19 +03:00
|
|
|
|
import {AuthForCandidate} from "./pages/AuthForCandidate/AuthForCandidate";
|
|
|
|
|
import {RegistrationForCandidate} from "./pages/RegistrationForCandidate/RegistrationForCandidate";
|
2023-01-13 13:02:48 +03:00
|
|
|
|
|
2023-04-19 20:22:06 +03:00
|
|
|
|
import './assets/global.scss'
|
2023-01-13 13:02:48 +03:00
|
|
|
|
import './fonts/stylesheet.css'
|
|
|
|
|
import 'bootstrap/dist/css/bootstrap.min.css'
|
2023-04-19 20:22:06 +03:00
|
|
|
|
import { ProfileCandidate } from './pages/ProfileCandidate/ProfileCandidate';
|
|
|
|
|
import { PassingTests } from './pages/quiz/PassingTests';
|
2023-01-13 13:02:48 +03:00
|
|
|
|
|
2021-05-26 13:35:57 +03:00
|
|
|
|
|
2023-01-17 22:14:05 +03:00
|
|
|
|
|
2023-01-18 17:37:52 +03:00
|
|
|
|
|
2022-06-01 19:59:54 +03:00
|
|
|
|
const App = () => {
|
2021-09-28 12:46:16 +03:00
|
|
|
|
return (
|
2023-01-13 13:02:48 +03:00
|
|
|
|
<>
|
|
|
|
|
<Router>
|
|
|
|
|
|
|
|
|
|
<Routes>
|
2023-01-17 22:14:05 +03:00
|
|
|
|
|
2023-01-13 13:02:48 +03:00
|
|
|
|
<Route exact path='/authdev' element={<AuthForDevelopers/>}/>
|
|
|
|
|
<Route exact path='/auth' element={<AuthForPartners/>}/>
|
2023-04-10 18:20:55 +03:00
|
|
|
|
<Route exact path="/worker/:id" element={<FreeDevelopers />} />
|
2023-04-04 19:07:19 +03:00
|
|
|
|
<Route exact path='/auth-candidate' element={<AuthForCandidate/>}/>
|
|
|
|
|
<Route exact path='/registration-candidate' element={<RegistrationForCandidate/>}/>
|
2023-01-13 13:02:48 +03:00
|
|
|
|
|
2023-01-18 17:37:52 +03:00
|
|
|
|
<Route exact path='/candidate/:id' element={<Candidate/>}/>
|
2023-01-13 13:02:48 +03:00
|
|
|
|
<Route exact path='/candidate/:id/form' element={<FormPage/>}/>
|
2023-01-17 22:14:05 +03:00
|
|
|
|
<Route path='/:userId/calendar' element={<Calendar/>}/>
|
2023-01-13 13:02:48 +03:00
|
|
|
|
|
2023-01-17 22:14:05 +03:00
|
|
|
|
<Route exact path='/report' element={<ReportForm/>}/>
|
2023-01-13 13:02:48 +03:00
|
|
|
|
<Route path='/report/:id' element={<SingleReportPage/>}/>
|
|
|
|
|
|
2023-01-16 19:12:44 +03:00
|
|
|
|
<Route exact path='quiz'>
|
|
|
|
|
<Route index element={<QuizPage/>}/>
|
2023-04-19 20:37:40 +03:00
|
|
|
|
<Route exact path='test' element={<PassingTests />}/>
|
2023-04-19 20:22:06 +03:00
|
|
|
|
<Route exact path='report' element={<QuizReportPage/>}/>
|
2023-01-16 19:12:44 +03:00
|
|
|
|
</Route>
|
2023-01-13 13:02:48 +03:00
|
|
|
|
|
2023-01-16 19:12:44 +03:00
|
|
|
|
<Route exact path='profile'>
|
|
|
|
|
<Route index element={<Profile/>}/>
|
2023-03-27 16:03:24 +03:00
|
|
|
|
<Route exact path='catalog' element={<Home/>}/>
|
2023-01-17 22:14:05 +03:00
|
|
|
|
<Route exact path='calendar' element={<ProfileCalendar/>}/>
|
2023-01-13 13:02:48 +03:00
|
|
|
|
<Route exact path='summary' element={<Summary/>}/>
|
2023-01-23 14:59:57 +03:00
|
|
|
|
<Route exact path='view' element={<ViewReport/>}/>
|
2023-02-17 15:19:49 +03:00
|
|
|
|
<Route exact path='tracker' element={<Tracker/>}/>
|
|
|
|
|
<Route exact path='payouts' element={<Payouts/>}/>
|
2023-03-20 14:38:52 +03:00
|
|
|
|
<Route exact path='settings' element={<PartnerSettings/>}/>
|
2023-02-21 19:05:04 +03:00
|
|
|
|
<Route exact path='requests' element={<PartnerRequests/>}/>
|
|
|
|
|
<Route exact path='add-request' element={<PartnerAddRequest/>}/>
|
2023-04-21 01:07:09 +03:00
|
|
|
|
<Route exact path='edit-request' element={<PartnerAddRequest/>}/>
|
2023-02-23 14:57:26 +03:00
|
|
|
|
<Route exact path='bid' element={<PartnerBid/>}/>
|
2023-03-23 14:00:34 +03:00
|
|
|
|
<Route exact path='categories' element={<PartnerCategories/>}/>
|
2023-03-20 14:00:10 +03:00
|
|
|
|
<Route exact path='treaties' element={<PartnerTreaties/>}/>
|
2023-03-23 14:00:34 +03:00
|
|
|
|
<Route exact path='categories/employees' element={<PartnerEmployees/>}/>
|
2023-01-13 13:02:48 +03:00
|
|
|
|
</Route>
|
2023-04-19 20:22:06 +03:00
|
|
|
|
<Route exact path='profile-candidate/:id'>
|
|
|
|
|
<Route index element={<ProfileCandidate />}/>
|
|
|
|
|
</Route>
|
2023-01-13 13:02:48 +03:00
|
|
|
|
|
2023-04-04 19:07:19 +03:00
|
|
|
|
<Route path="*" element={<Navigate to="/auth" replace/>}/>
|
2023-01-13 13:02:48 +03:00
|
|
|
|
</Routes>
|
|
|
|
|
</Router>
|
|
|
|
|
</>
|
2021-08-04 13:04:05 +03:00
|
|
|
|
)
|
2023-01-13 13:02:48 +03:00
|
|
|
|
};
|
2021-05-25 14:50:01 +03:00
|
|
|
|
|
2021-08-04 13:04:05 +03:00
|
|
|
|
export default App
|