Merge branch 'gruppDM' into frontend
This commit is contained in:
		
						commit
						3bf0c34a5f
					
				
					 16 changed files with 293 additions and 7 deletions
				
			
		|  | @ -15,7 +15,7 @@ function Header({ username }: { username: string }): JSX.Element { | |||
|     > | ||||
|       <Link to="/your-projects"> | ||||
|         <img | ||||
|           src="/src/assets/TTIMElogo.png" | ||||
|           src="/src/assets/Logo.svg" | ||||
|           alt="TTIME Logo" | ||||
|           className="w-11 h-14 cursor-pointer" | ||||
|         /> | ||||
|  |  | |||
|  | @ -1,5 +1,5 @@ | |||
| import Button from "../Components/Button"; | ||||
| import Logo from "/src/assets/TTIMElogo.png"; | ||||
| import Logo from "/src/assets/Logo.svg"; | ||||
| import "./LoginPage.css"; | ||||
| import { useEffect } from "react"; | ||||
| import { Link } from "react-router-dom"; | ||||
|  |  | |||
							
								
								
									
										26
									
								
								frontend/src/Pages/ProjectManagerPages/PMChangeRole.tsx
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								frontend/src/Pages/ProjectManagerPages/PMChangeRole.tsx
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,26 @@ | |||
| import BasicWindow from "../../Components/BasicWindow"; | ||||
| import Button from "../../Components/Button"; | ||||
| 
 | ||||
| function ChangeRole(): JSX.Element { | ||||
|   const content = <></>; | ||||
| 
 | ||||
|   const buttons = ( | ||||
|     <> | ||||
|       <Button | ||||
|         text="Save" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|       <Button | ||||
|         text="Back" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
| } | ||||
| export default ChangeRole; | ||||
							
								
								
									
										20
									
								
								frontend/src/Pages/ProjectManagerPages/PMOtherUsersTR.tsx
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								frontend/src/Pages/ProjectManagerPages/PMOtherUsersTR.tsx
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | |||
| import BasicWindow from "../../Components/BasicWindow"; | ||||
| import Button from "../../Components/Button"; | ||||
| 
 | ||||
| function PMOtherUsersTR(): JSX.Element { | ||||
|   const content = <></>; | ||||
| 
 | ||||
|   const buttons = ( | ||||
|     <> | ||||
|       <Button | ||||
|         text="Back" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
| } | ||||
| export default PMOtherUsersTR; | ||||
							
								
								
									
										32
									
								
								frontend/src/Pages/ProjectManagerPages/PMProjectMembers.tsx
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								frontend/src/Pages/ProjectManagerPages/PMProjectMembers.tsx
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,32 @@ | |||
| import BasicWindow from "../../Components/BasicWindow"; | ||||
| import Button from "../../Components/Button"; | ||||
| 
 | ||||
| function PMProjectMembers(): JSX.Element { | ||||
|   const content = <></>; | ||||
| 
 | ||||
|   const buttons = ( | ||||
|     <> | ||||
|       <Button | ||||
|         text="Time / Activity" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|       <Button | ||||
|         text="Time / Role" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|       <Button | ||||
|         text="Back" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
| } | ||||
| export default PMProjectMembers; | ||||
|  | @ -0,0 +1,20 @@ | |||
| import BasicWindow from "../../Components/BasicWindow"; | ||||
| import Button from "../../Components/Button"; | ||||
| 
 | ||||
| function PMTotalTimeActivity(): JSX.Element { | ||||
|   const content = <></>; | ||||
| 
 | ||||
|   const buttons = ( | ||||
|     <> | ||||
|       <Button | ||||
|         text="Back" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
| } | ||||
| export default PMTotalTimeActivity; | ||||
							
								
								
									
										20
									
								
								frontend/src/Pages/ProjectManagerPages/PMTotalTimeRole.tsx
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								frontend/src/Pages/ProjectManagerPages/PMTotalTimeRole.tsx
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | |||
| import BasicWindow from "../../Components/BasicWindow"; | ||||
| import Button from "../../Components/Button"; | ||||
| 
 | ||||
| function PMTotalTimeRole(): JSX.Element { | ||||
|   const content = <></>; | ||||
| 
 | ||||
|   const buttons = ( | ||||
|     <> | ||||
|       <Button | ||||
|         text="Back" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
| } | ||||
| export default PMTotalTimeRole; | ||||
							
								
								
									
										20
									
								
								frontend/src/Pages/ProjectManagerPages/PMUnsignedReports.tsx
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								frontend/src/Pages/ProjectManagerPages/PMUnsignedReports.tsx
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | |||
| import BasicWindow from "../../Components/BasicWindow"; | ||||
| import Button from "../../Components/Button"; | ||||
| 
 | ||||
| function PMUnsignedReports(): JSX.Element { | ||||
|   const content = <></>; | ||||
| 
 | ||||
|   const buttons = ( | ||||
|     <> | ||||
|       <Button | ||||
|         text="Back" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
| } | ||||
| export default PMUnsignedReports; | ||||
|  | @ -0,0 +1,32 @@ | |||
| import BasicWindow from "../../Components/BasicWindow"; | ||||
| import Button from "../../Components/Button"; | ||||
| 
 | ||||
| function PMViewUnsignedReport(): JSX.Element { | ||||
|   const content = <></>; | ||||
| 
 | ||||
|   const buttons = ( | ||||
|     <> | ||||
|       <Button | ||||
|         text="Sign" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|       <Button | ||||
|         text="Save" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|       <Button | ||||
|         text="Back" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
| } | ||||
| export default PMViewUnsignedReport; | ||||
							
								
								
									
										26
									
								
								frontend/src/Pages/UserPages/UserEditTimeReportPage.tsx
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								frontend/src/Pages/UserPages/UserEditTimeReportPage.tsx
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,26 @@ | |||
| import BasicWindow from "../../Components/BasicWindow"; | ||||
| import Button from "../../Components/Button"; | ||||
| 
 | ||||
| function UserEditTimeReportPage(): JSX.Element { | ||||
|   const content = <></>; | ||||
| 
 | ||||
|   const buttons = ( | ||||
|     <> | ||||
|       <Button | ||||
|         text="Save" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|       <Button | ||||
|         text="Back" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
| } | ||||
| export default UserEditTimeReportPage; | ||||
							
								
								
									
										26
									
								
								frontend/src/Pages/UserPages/UserNewTimeReportPage.tsx
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								frontend/src/Pages/UserPages/UserNewTimeReportPage.tsx
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,26 @@ | |||
| import BasicWindow from "../../Components/BasicWindow"; | ||||
| import Button from "../../Components/Button"; | ||||
| 
 | ||||
| function UserNewTimeReportPage(): JSX.Element { | ||||
|   const content = <></>; | ||||
| 
 | ||||
|   const buttons = ( | ||||
|     <> | ||||
|       <Button | ||||
|         text="Submit" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|       <Button | ||||
|         text="Back" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
| } | ||||
| export default UserNewTimeReportPage; | ||||
							
								
								
									
										20
									
								
								frontend/src/Pages/UserPages/UserViewTimeReportsPage.tsx
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								frontend/src/Pages/UserPages/UserViewTimeReportsPage.tsx
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | |||
| import BasicWindow from "../../Components/BasicWindow"; | ||||
| import Button from "../../Components/Button"; | ||||
| 
 | ||||
| function UserViewTimeReportsPage(): JSX.Element { | ||||
|   const content = <></>; | ||||
| 
 | ||||
|   const buttons = ( | ||||
|     <> | ||||
|       <Button | ||||
|         text="Back" | ||||
|         onClick={(): void => { | ||||
|           return; | ||||
|         }} | ||||
|       /> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
| } | ||||
| export default UserViewTimeReportsPage; | ||||
|  | @ -12,13 +12,13 @@ function YourProjectsPage(): JSX.Element { | |||
|           </h1> | ||||
|         </Link> | ||||
|         <h1 className="underline text-[24px] cursor-pointer font-bold"> | ||||
|           ProjectNameExample | ||||
|           ProjectNameExample2 | ||||
|         </h1> | ||||
|         <h1 className="underline text-[24px] cursor-pointer font-bold"> | ||||
|           ProjectNameExample | ||||
|           ProjectNameExample3 | ||||
|         </h1> | ||||
|         <h1 className="underline text-[24px] cursor-pointer font-bold"> | ||||
|           ProjectNameExample | ||||
|           ProjectNameExample4 | ||||
|         </h1> | ||||
|       </div> | ||||
|     </> | ||||
|  |  | |||
							
								
								
									
										9
									
								
								frontend/src/assets/Logo.svg
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								frontend/src/assets/Logo.svg
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| After Width: | Height: | Size: 348 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 261 KiB | 
|  | @ -6,6 +6,13 @@ import LoginPage from "./Pages/LoginPage.tsx"; | |||
| import YourProjectsPage from "./Pages/YourProjectsPage.tsx"; | ||||
| import UserProjectPage from "./Pages/UserPages/UserProjectPage.tsx"; | ||||
| import AdminMenuPage from "./Pages/AdminPages/AdminMenuPage.tsx"; | ||||
| import UserEditTimeReportPage from "./Pages/UserPages/UserEditTimeReportPage.tsx"; | ||||
| import UserNewTimeReportPage from "./Pages/UserPages/UserNewTimeReportPage.tsx"; | ||||
| import UserViewTimeReportsPage from "./Pages/UserPages/UserViewTimeReportsPage.tsx"; | ||||
| import PMChangeRole from "./Pages/ProjectManagerPages/PMChangeRole.tsx"; | ||||
| import PMOtherUsersTR from "./Pages/ProjectManagerPages/PMOtherUsersTR.tsx"; | ||||
| import PMProjectMembers from "./Pages/ProjectManagerPages/PMProjectMembers.tsx"; | ||||
| import PMProjectPage from "./Pages/ProjectManagerPages/PMProjectPage.tsx"; | ||||
| 
 | ||||
| // This is where the routes are mounted
 | ||||
| const router = createBrowserRouter([ | ||||
|  | @ -13,17 +20,45 @@ const router = createBrowserRouter([ | |||
|     path: "/", | ||||
|     element: <LoginPage />, | ||||
|   }, | ||||
|   { | ||||
|     path: "/admin-menu", | ||||
|     element: <AdminMenuPage />, | ||||
|   }, | ||||
|   { | ||||
|     path: "/your-projects", | ||||
|     element: <YourProjectsPage />, | ||||
|   }, | ||||
|   { | ||||
|     path: "/edit-time-report", | ||||
|     element: <UserEditTimeReportPage />, | ||||
|   }, | ||||
|   { | ||||
|     path: "/new-time-report", | ||||
|     element: <UserNewTimeReportPage />, | ||||
|   }, | ||||
|   { | ||||
|     path: "/project", | ||||
|     element: <UserProjectPage />, | ||||
|   }, | ||||
|   { | ||||
|     path: "/admin-menu", | ||||
|     element: <AdminMenuPage />, | ||||
|     path: "/project-page", | ||||
|     element: <UserViewTimeReportsPage />, | ||||
|   }, | ||||
|   { | ||||
|     path: "/change-role", | ||||
|     element: <PMChangeRole />, | ||||
|   }, | ||||
|   { | ||||
|     path: "/other-users-time-reports", | ||||
|     element: <PMOtherUsersTR />, | ||||
|   }, | ||||
|   { | ||||
|     path: "/project-members", | ||||
|     element: <PMProjectMembers />, | ||||
|   }, | ||||
|   { | ||||
|     path: "/PM-project-page", | ||||
|     element: <PMProjectPage />, | ||||
|   }, | ||||
| ]); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Imbus
						Imbus