91 lines
2.8 KiB
JavaScript
91 lines
2.8 KiB
JavaScript
import React from 'react';
|
|
import {
|
|
Navbar,
|
|
Sidebar,
|
|
Main,
|
|
Footer
|
|
} from './components';
|
|
import { BrowserRouter as Router, Route, Routes, Navigate } from 'react-router-dom';
|
|
import {
|
|
GettingStarted,
|
|
Dashboard,
|
|
Applications,
|
|
CreateApps
|
|
} from './screens/Home';
|
|
import {
|
|
FaceVerify,
|
|
FaceSummary,
|
|
FaceTransaction
|
|
} from './screens/Biometric/FaceRecognition';
|
|
|
|
import {
|
|
Enroll,
|
|
VerifySection,
|
|
Liveness,
|
|
Compare,
|
|
Search
|
|
} from './screens/Biometric/FaceRecognition/Section';
|
|
|
|
import {
|
|
VerifyKtp
|
|
} from './screens/Biometric/OcrKtp';
|
|
|
|
// Import all other components following the dataMenu structure...
|
|
|
|
const App = () => {
|
|
return (
|
|
<Router>
|
|
<body className="sb-nav-fixed">
|
|
<Navbar />
|
|
<div id="layoutSidenav">
|
|
<Sidebar />
|
|
<div id="layoutSidenav_content">
|
|
<Routes>
|
|
{/* Main Dashboard */}
|
|
<Route path="/" element={<GettingStarted />} />
|
|
<Route path="/getting-started" element={<GettingStarted />} />
|
|
<Route path="/dashboard" element={<Dashboard />} />
|
|
<Route path="/application" element={<Applications />} />
|
|
<Route path="/createApps" element={<CreateApps />} />
|
|
|
|
{/* Biometric - Face Recognition (Verify) */}
|
|
<Route path="/face-verify/*" element={<FaceVerify />}>
|
|
{/* Anak rute */}
|
|
<Route path="face-enroll" element={<Enroll />} />
|
|
<Route path="face-verifysection" element={<VerifySection />} />
|
|
<Route path="face-liveness" element={<Liveness />} />
|
|
<Route path="face-compare" element={<Compare />} />
|
|
<Route path="face-search" element={<Search />} />
|
|
|
|
{/* Default route */}
|
|
<Route index element={<Navigate to="face-enroll" />} />
|
|
</Route>
|
|
{/* Add routes for the verify section */}
|
|
<Route path="/face-enroll" element={<Enroll />} />
|
|
<Route path="/face-verifysection" element={<VerifySection />} />
|
|
<Route path="/face-liveness" element={<Liveness />} />
|
|
<Route path="/face-compare" element={<Compare />} />
|
|
<Route path="/face-search" element={<Search />} />
|
|
|
|
{/* Biometric - Face Recognition (Summary) */}
|
|
<Route path="/face-summary" element={<FaceSummary />} />
|
|
<Route path="/face-transaction" element={<FaceTransaction />} />
|
|
|
|
{/* Biometric - KTP */}
|
|
<Route path="/ktp-verify" element={<VerifyKtp />} />
|
|
|
|
{/* <Route path="/sms-otp-settings" element={<SmsOtpSettings />} /> */}
|
|
{/* Continue for each link */}
|
|
|
|
|
|
</Routes>
|
|
<Footer />
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</Router>
|
|
);
|
|
};
|
|
|
|
export default App;
|