diff --git a/src/main/java/com/primefactorsolutions/views/DocumentsView.java b/src/main/java/com/primefactorsolutions/views/DocumentsView.java new file mode 100644 index 0000000..6a41a66 --- /dev/null +++ b/src/main/java/com/primefactorsolutions/views/DocumentsView.java @@ -0,0 +1,17 @@ +package com.primefactorsolutions.views; + +import com.vaadin.flow.component.html.Main; +import com.vaadin.flow.router.PageTitle; +import com.vaadin.flow.router.Route; +import com.vaadin.flow.spring.annotation.SpringComponent; +import jakarta.annotation.security.PermitAll; +import org.springframework.context.annotation.Scope; + +@SpringComponent +@PermitAll +@Scope("prototype") +@PageTitle("Documents") +@Route(value = "/documents/me", layout = MainLayout.class) +public class DocumentsView extends Main { +} + diff --git a/src/main/java/com/primefactorsolutions/views/EmployeesListView.java b/src/main/java/com/primefactorsolutions/views/EmployeesListView.java new file mode 100644 index 0000000..45cab4f --- /dev/null +++ b/src/main/java/com/primefactorsolutions/views/EmployeesListView.java @@ -0,0 +1,16 @@ +package com.primefactorsolutions.views; + +import com.vaadin.flow.component.html.Main; +import com.vaadin.flow.router.PageTitle; +import com.vaadin.flow.router.Route; +import com.vaadin.flow.spring.annotation.SpringComponent; +import jakarta.annotation.security.PermitAll; +import org.springframework.context.annotation.Scope; + +@SpringComponent +@Scope("prototype") +@PageTitle("Employees") +@Route(value = "/employees", layout = MainLayout.class) +@PermitAll +public class EmployeesListView extends Main { +} diff --git a/src/main/java/com/primefactorsolutions/views/MainLayout.java b/src/main/java/com/primefactorsolutions/views/MainLayout.java index da56ee1..212f388 100644 --- a/src/main/java/com/primefactorsolutions/views/MainLayout.java +++ b/src/main/java/com/primefactorsolutions/views/MainLayout.java @@ -64,20 +64,22 @@ public class MainLayout extends AppLayout { LineAwesomeIcon.QUESTION_SOLID.create())); SideNavItem admin = new SideNavItem("Admin", MainView.class, - LineAwesomeIcon.SUITCASE_SOLID.create()); - admin.addItem(new SideNavItem("Time-off requests", AssessmentsListView.class, - LineAwesomeIcon.THEMEISLE.create())); - admin.addItem(new SideNavItem("Timesheets", CandidatesListView.class, + LineAwesomeIcon.SUPERSCRIPT_SOLID.create()); + admin.addItem(new SideNavItem("Requests", RequestsListView.class, + LineAwesomeIcon.TASKS_SOLID.create())); + admin.addItem(new SideNavItem("Timesheets", TimesheestReportView.class, LineAwesomeIcon.HOURGLASS_END_SOLID.create())); - admin.addItem(new SideNavItem("Employees", QuestionsListView.class, + admin.addItem(new SideNavItem("Employees", EmployeesListView.class, LineAwesomeIcon.USER_EDIT_SOLID.create())); - SideNavItem timeOff = new SideNavItem("My Time-off", MainView.class, - LineAwesomeIcon.THEMEISLE.create()); - SideNavItem timesheet = new SideNavItem("My Timesheet", MainView.class, + SideNavItem timeOff = new SideNavItem("My Time-off", TimeoffView.class, + LineAwesomeIcon.PLANE_DEPARTURE_SOLID.create()); + SideNavItem timesheet = new SideNavItem("My Timesheet", TimesheetView.class, LineAwesomeIcon.HOURGLASS_START_SOLID.create()); - SideNavItem profile = new SideNavItem("My Profile", MainView.class, + SideNavItem profile = new SideNavItem("My Profile", ProfileView.class, LineAwesomeIcon.USER_EDIT_SOLID.create()); + SideNavItem documents = new SideNavItem("My Documents", DocumentsView.class, + LineAwesomeIcon.SUITCASE_SOLID.create()); nav.addItem(new SideNavItem("Home", MainView.class, LineAwesomeIcon.HOME_SOLID.create())); nav.addItem(admin); diff --git a/src/main/java/com/primefactorsolutions/views/ProfileView.java b/src/main/java/com/primefactorsolutions/views/ProfileView.java new file mode 100644 index 0000000..b5a6988 --- /dev/null +++ b/src/main/java/com/primefactorsolutions/views/ProfileView.java @@ -0,0 +1,17 @@ +package com.primefactorsolutions.views; + +import com.vaadin.flow.component.html.Main; +import com.vaadin.flow.router.PageTitle; +import com.vaadin.flow.router.Route; +import com.vaadin.flow.spring.annotation.SpringComponent; +import jakarta.annotation.security.PermitAll; +import org.springframework.context.annotation.Scope; + +@SpringComponent +@PermitAll +@Scope("prototype") +@PageTitle("Profile") +@Route(value = "/profiles", layout = MainLayout.class) +public class ProfileView extends Main { +} + diff --git a/src/main/java/com/primefactorsolutions/views/RequestsListView.java b/src/main/java/com/primefactorsolutions/views/RequestsListView.java new file mode 100644 index 0000000..1183863 --- /dev/null +++ b/src/main/java/com/primefactorsolutions/views/RequestsListView.java @@ -0,0 +1,16 @@ +package com.primefactorsolutions.views; + +import com.vaadin.flow.component.html.Main; +import com.vaadin.flow.router.PageTitle; +import com.vaadin.flow.router.Route; +import com.vaadin.flow.spring.annotation.SpringComponent; +import jakarta.annotation.security.PermitAll; +import org.springframework.context.annotation.Scope; + +@SpringComponent +@Scope("prototype") +@PageTitle("Requests") +@Route(value = "/requests", layout = MainLayout.class) +@PermitAll +public class RequestsListView extends Main { +} diff --git a/src/main/java/com/primefactorsolutions/views/TimeoffView.java b/src/main/java/com/primefactorsolutions/views/TimeoffView.java new file mode 100644 index 0000000..a597f64 --- /dev/null +++ b/src/main/java/com/primefactorsolutions/views/TimeoffView.java @@ -0,0 +1,17 @@ +package com.primefactorsolutions.views; + +import com.vaadin.flow.component.html.Main; +import com.vaadin.flow.router.PageTitle; +import com.vaadin.flow.router.Route; +import com.vaadin.flow.spring.annotation.SpringComponent; +import jakarta.annotation.security.PermitAll; +import org.springframework.context.annotation.Scope; + +@SpringComponent +@PermitAll +@Scope("prototype") +@PageTitle("Timeoff") +@Route(value = "/timeoffs/me", layout = MainLayout.class) +public class TimeoffView extends Main { +} + diff --git a/src/main/java/com/primefactorsolutions/views/TimesheestReportView.java b/src/main/java/com/primefactorsolutions/views/TimesheestReportView.java new file mode 100644 index 0000000..a2e0ff8 --- /dev/null +++ b/src/main/java/com/primefactorsolutions/views/TimesheestReportView.java @@ -0,0 +1,16 @@ +package com.primefactorsolutions.views; + +import com.vaadin.flow.component.html.Main; +import com.vaadin.flow.router.PageTitle; +import com.vaadin.flow.router.Route; +import com.vaadin.flow.spring.annotation.SpringComponent; +import jakarta.annotation.security.PermitAll; +import org.springframework.context.annotation.Scope; + +@SpringComponent +@Scope("prototype") +@PageTitle("Timesheets") +@Route(value = "/timesheets", layout = MainLayout.class) +@PermitAll +public class TimesheestReportView extends Main { +} diff --git a/src/main/java/com/primefactorsolutions/views/TimesheetView.java b/src/main/java/com/primefactorsolutions/views/TimesheetView.java new file mode 100644 index 0000000..9a8b351 --- /dev/null +++ b/src/main/java/com/primefactorsolutions/views/TimesheetView.java @@ -0,0 +1,17 @@ +package com.primefactorsolutions.views; + +import com.vaadin.flow.component.html.Main; +import com.vaadin.flow.router.PageTitle; +import com.vaadin.flow.router.Route; +import com.vaadin.flow.spring.annotation.SpringComponent; +import jakarta.annotation.security.PermitAll; +import org.springframework.context.annotation.Scope; + +@SpringComponent +@PermitAll +@Scope("prototype") +@PageTitle("Timesheet") +@Route(value = "/timesheets/me", layout = MainLayout.class) +public class TimesheetView extends Main { +} +