From a6ae45d9cfc011abbcb2539c070f20ca0d7fca5d Mon Sep 17 00:00:00 2001 From: Laux Dev <2201104208@student.buksu.edu.ph> Date: Tue, 24 Feb 2026 10:50:14 +0800 Subject: [PATCH] Added navigations pages --- frontend/src/app/agents/page.jsx | 7 ++ frontend/src/app/agents/styles.module.css | 0 .../src/app/components/sidebar/Sidebar.jsx | 64 +++++++++++++++++-- .../app/components/sidebar/styles.module.css | 1 + frontend/src/app/credentials/page.jsx | 7 ++ .../src/app/credentials/styles.module.css | 0 frontend/src/app/home/page.jsx | 7 ++ frontend/src/app/home/styles.module.css | 0 frontend/src/app/layout.js | 2 +- frontend/src/app/organization/page.jsx | 14 ++++ .../src/app/organization/styles.module.css | 0 frontend/src/app/projects/page.jsx | 7 ++ frontend/src/app/projects/styles.module.css | 0 frontend/src/app/roles/page.jsx | 7 ++ frontend/src/app/roles/styles.module.css | 0 frontend/src/app/users/page.jsx | 7 ++ frontend/src/app/users/styles.module.css | 0 17 files changed, 115 insertions(+), 8 deletions(-) create mode 100644 frontend/src/app/agents/page.jsx create mode 100644 frontend/src/app/agents/styles.module.css create mode 100644 frontend/src/app/credentials/page.jsx create mode 100644 frontend/src/app/credentials/styles.module.css create mode 100644 frontend/src/app/home/page.jsx create mode 100644 frontend/src/app/home/styles.module.css create mode 100644 frontend/src/app/organization/page.jsx create mode 100644 frontend/src/app/organization/styles.module.css create mode 100644 frontend/src/app/projects/page.jsx create mode 100644 frontend/src/app/projects/styles.module.css create mode 100644 frontend/src/app/roles/page.jsx create mode 100644 frontend/src/app/roles/styles.module.css create mode 100644 frontend/src/app/users/page.jsx create mode 100644 frontend/src/app/users/styles.module.css diff --git a/frontend/src/app/agents/page.jsx b/frontend/src/app/agents/page.jsx new file mode 100644 index 0000000..5955013 --- /dev/null +++ b/frontend/src/app/agents/page.jsx @@ -0,0 +1,7 @@ +import React from "react"; + +const AgentsPage = () => { + return
; +}; + +export default AgentsPage; diff --git a/frontend/src/app/agents/styles.module.css b/frontend/src/app/agents/styles.module.css new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/app/components/sidebar/Sidebar.jsx b/frontend/src/app/components/sidebar/Sidebar.jsx index f378bb2..e593069 100644 --- a/frontend/src/app/components/sidebar/Sidebar.jsx +++ b/frontend/src/app/components/sidebar/Sidebar.jsx @@ -1,6 +1,35 @@ +"use client"; import React from "react"; import styles from "./styles.module.css"; + +import { usePathname, useRouter } from "next/navigation"; + const Sidebar = () => { + const router = useRouter(); + const navToHome = () => { + router.push("/home"); + }; + const navToOrganization = () => { + router.push("/organization"); + }; + const navToProject = () => { + router.push("/projects"); + }; + const navToUsers = () => { + router.push("/users"); + }; + const navToRoles = () => { + router.push("/roles"); + }; + const navToCredentials = () => { + router.push("/credentials"); + }; + const navToAgents = () => { + router.push("/agents"); + }; + + const pathname = usePathname(); + console.log(pathname); return (Home
Organization
Project
Users
Roles
Credentials