Update App.js
This commit is contained in:
		
							parent
							
								
									afc44d72c1
								
							
						
					
					
						commit
						5311701872
					
				
							
								
								
									
										159
									
								
								src/App.js
									
									
									
									
									
								
							
							
						
						
									
										159
									
								
								src/App.js
									
									
									
									
									
								
							| @ -43,7 +43,7 @@ import Login from "views/examples/Login"; | ||||
| import ResetPassword from "views/examples/resetPassword"; | ||||
| import ReportBuild2All from "components/Dashboard/Reportbuild2/Report-build2all/ReportBuild2All"; | ||||
| import ReportBuild2Add from "components/Dashboard/Reportbuild2/Report-build2add/ReportBuild2Add"; | ||||
| import ReportBuild2Edit from "./components/Dashboard/Reportbuild2/Report-build2edit/ReportBuildEdit";  | ||||
| import ReportBuild2Edit from "./components/Dashboard/Reportbuild2/Report-build2edit/ReportBuildEdit"; | ||||
| import ReportQuery from "components/Dashboard/Reportbuilder/reportQuery"; | ||||
| import DynamicForm from "components/Dashboard/DynamicForm/DynamicForm2"; | ||||
| import DynamicFormAdd from "components/Dashboard/DynamicForm/DynamicFormAdd"; | ||||
| @ -67,89 +67,90 @@ import SequenceGenerator from "components/Dashboard/sequencegenerator"; | ||||
| const App = () => { | ||||
|   return ( | ||||
|     <SystemParameterProvider> | ||||
|     <div> | ||||
|       {/* ToastContainer should be placed in the root component */} | ||||
|       <ToastContainer | ||||
|         position="top-right" | ||||
|         autoClose={1500} | ||||
|         hideProgressBar={false} | ||||
|         newestOnTop | ||||
|         closeOnClick | ||||
|         rtl={false} | ||||
|         pauseOnFocusLoss | ||||
|         draggable | ||||
|         pauseOnHover | ||||
|       /> | ||||
|       <div> | ||||
|         {/* ToastContainer should be placed in the root component */} | ||||
|         <ToastContainer | ||||
|           position="top-right" | ||||
|           autoClose={1500} | ||||
|           hideProgressBar={false} | ||||
|           newestOnTop | ||||
|           closeOnClick | ||||
|           rtl={false} | ||||
|           pauseOnFocusLoss | ||||
|           draggable | ||||
|           pauseOnHover | ||||
|         /> | ||||
| 
 | ||||
|       <BrowserRouter basename="/"> | ||||
|         <Routes> | ||||
|           <Route path="/" element={<Navigate to="/auth/login" replace />} /> | ||||
|           <Route path="*" element={<Navigate to="/auth/login" replace />} /> | ||||
|         <BrowserRouter basename="/"> | ||||
|           <Routes> | ||||
|             <Route path="/" element={<Navigate to="/auth/login" replace />} /> | ||||
|             <Route path="*" element={<Navigate to="/auth/login" replace />} /> | ||||
| 
 | ||||
| {/* ptotecting the admin page  */} | ||||
|             {/* ptotecting the admin page  */} | ||||
| 
 | ||||
|           <Route path="/admin/*" element={ | ||||
|             <ProtectedRoute> | ||||
|             <AdminLayout /> | ||||
|             </ProtectedRoute> | ||||
|             <Route path="/admin/*" element={ | ||||
|               <ProtectedRoute> | ||||
|                 <AdminLayout /> | ||||
|               </ProtectedRoute> | ||||
|             }> | ||||
|             <Route path="regform" element={<Regform />} /> | ||||
|             <Route path="error404" element={<Error404 />} /> | ||||
|             <Route path="resetpassword" element={<ResetPassword />} /> | ||||
|           | ||||
|             <Route path="index" element={<Index/>}/> | ||||
|             <Route path="profile" element={<Profile />} /> | ||||
|             <Route path="user-report" element={<UserDetailsView />} /> | ||||
|             <Route path="setting" element={<SetupView />} /> | ||||
|             <Route path="resetpassword" element={<ResetPassword />} /> | ||||
|            | ||||
|             {/* Dynamic Routes */} | ||||
|             <Route path="datamanagement" element={<DataManagement />} /> | ||||
|             <Route path="validationrule" element={<ValidationRule />} /> | ||||
|             <Route path="mappingrule" element={<MappingRule />} /> | ||||
|             <Route path="multidynmicbugs" element={<MultiDynamicBugs />} /> | ||||
|             <Route path="about" element={<About />} /> | ||||
|             {/* Static Routes */} | ||||
|             <Route path="user-maintenance" element={<UserMaintenanceView />} /> | ||||
|             <Route path="menu-access-control" element={<MenuAccessControl />} /> | ||||
|             <Route path="submenu/:menuItemId" element={<SubMenuMaintenance />} /> | ||||
|             <Route path="sequence-generator" element={<SequenceGenerator />} /> | ||||
|             <Route path="menu-access-control2" element={<MenuAccessControl2/>} /> | ||||
|             <Route path="user-group-maintenance" element={<UserGroupMaintenance />} /> | ||||
|             <Route path="system-parameter" element={<SystemParameterForm />} /> | ||||
|             <Route path="menu-maintenance" element={<MenuMaintenance />} /> | ||||
|             <Route path="sub-menu-maintenance/:menuItemId" element={<SubMenuMaintenance/>} /> | ||||
|             <Route path="access-type" element={<AccessTypeManagement />} /> | ||||
|             <Route path="api-registry" element={<APIRegistry />} /> | ||||
|             <Route path="token-registry" element={<TOKENRegistry />} /> | ||||
|             <Route path="dynamic-form-add" element={<DynamicFormAdd />} /> | ||||
|             <Route path="reportbuild2all" element={<ReportBuild2All />} /> | ||||
|             <Route path="reportbuild2add" element={<ReportBuild2Add />} /> | ||||
|             <Route path="reportbuild2edit" element={<ReportBuild2Edit />} /> | ||||
|             <Route path="reportquery" element={<ReportQuery />} /> | ||||
|             <Route path="report-runner" element={<ReportRunnerAll />} /> | ||||
|             <Route path="report-runner1/:id" element={<ReportRunnerEdit />} /> | ||||
|             <Route path="report-runner2/:id" element={<ReportRunner2Edit />} />   | ||||
|             <Route path="dynamic-form" element={<DynamicForm />} /> | ||||
|             <Route path="dashboard-runner-all" element={<DashboardRunnerAll/>}/> | ||||
|             <Route path="dashboard-new-all" element={<DashboardNewAll/>}/> | ||||
|             <Route path="dashboard-new-add" element={<DashboardNewAdd/>}/> | ||||
|             <Route path="dashboard-new-edit/:id" element={<DashboardNewEdit/>}/> | ||||
|             <Route path="edit-new-dash/:id" element={<EditNewDash/>}/> | ||||
|             <Route path="dashrunner/:id" element={<DashboardRunner/>}/> | ||||
|                | ||||
|              {/* buildercomponents */} | ||||
|             | ||||
|                | ||||
|           </Route> | ||||
|               <Route path="regform" element={<Regform />} /> | ||||
|               <Route path="error404" element={<Error404 />} /> | ||||
|               <Route path="resetpassword" element={<ResetPassword />} /> | ||||
| 
 | ||||
|           <Route path="/auth/*" element={<AuthLayout />}> | ||||
|             <Route path="login" element={<Login />} /> | ||||
|             <Route path="register" element={<Register />} /> | ||||
|           </Route> | ||||
|         </Routes> | ||||
|       </BrowserRouter> | ||||
|     </div> | ||||
|               <Route path="index" element={<Index />} /> | ||||
|               <Route path="profile" element={<Profile />} /> | ||||
|               <Route path="user-report" element={<UserDetailsView />} /> | ||||
|               <Route path="setting" element={<SetupView />} /> | ||||
|               <Route path="resetpassword" element={<ResetPassword />} /> | ||||
| 
 | ||||
|               {/* Dynamic Routes */} | ||||
|               <Route path="datamanagement" element={<DataManagement />} /> | ||||
|               <Route path="validationrule" element={<ValidationRule />} /> | ||||
|               <Route path="mappingrule" element={<MappingRule />} /> | ||||
|               <Route path="multidynmicbugs" element={<MultiDynamicBugs />} /> | ||||
|               <Route path="about" element={<About />} /> | ||||
|               {/* Static Routes */} | ||||
|               <Route path="user-maintenance" element={<UserMaintenanceView />} /> | ||||
|               <Route path="menu-access-control" element={<MenuAccessControl />} /> | ||||
|               <Route path="submenu/:menuItemId" element={<SubMenuMaintenance />} /> | ||||
|               <Route path="sequence-generator" element={<SequenceGenerator />} /> | ||||
|               <Route path="menu-access-control2" element={<MenuAccessControl2 />} /> | ||||
|               <Route path="user-group-maintenance" element={<UserGroupMaintenance />} /> | ||||
|               <Route path="system-parameter" element={<SystemParameterForm />} /> | ||||
|               <Route path="menu-maintenance" element={<MenuMaintenance />} /> | ||||
|               <Route path="sub-menu-maintenance/:menuItemId" element={<SubMenuMaintenance />} /> | ||||
|               <Route path="access-type" element={<AccessTypeManagement />} /> | ||||
|               <Route path="api-registry" element={<APIRegistry />} /> | ||||
|               <Route path="token-registry" element={<TOKENRegistry />} /> | ||||
|               <Route path="dynamic-form-add" element={<DynamicFormAdd />} /> | ||||
|               <Route path="reportbuild2all" element={<ReportBuild2All />} /> | ||||
|               <Route path="reportbuild2add" element={<ReportBuild2Add />} /> | ||||
|               <Route path="reportbuild2edit" element={<ReportBuild2Edit />} /> | ||||
|               <Route path="reportquery" element={<ReportQuery />} /> | ||||
|               <Route path="report-runner" element={<ReportRunnerAll />} /> | ||||
|               <Route path="report-runner1/:id" element={<ReportRunnerEdit />} /> | ||||
|               <Route path="report-runner2/:id" element={<ReportRunner2Edit />} /> | ||||
|               <Route path="dynamic-form" element={<DynamicForm />} /> | ||||
|               <Route path="dashboard-runner-all" element={<DashboardRunnerAll />} /> | ||||
|               <Route path="dashboard-new-all" element={<DashboardNewAll />} /> | ||||
|               <Route path="dashboard-new-add" element={<DashboardNewAdd />} /> | ||||
|               <Route path="dashboard-new-edit/:id" element={<DashboardNewEdit />} /> | ||||
|               <Route path="edit-new-dash/:id" element={<EditNewDash />} /> | ||||
|               <Route path="dashrunner/:id" element={<DashboardRunner />} /> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|             </Route> | ||||
|             {/* buildercomponents */} | ||||
| 
 | ||||
|             <Route path="/auth/*" element={<AuthLayout />}> | ||||
|               <Route path="login" element={<Login />} /> | ||||
|               <Route path="register" element={<Register />} /> | ||||
|             </Route> | ||||
|           </Routes> | ||||
|         </BrowserRouter> | ||||
|       </div> | ||||
|     </SystemParameterProvider> | ||||
|   ); | ||||
| }; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user