Skip to content

Commit

Permalink
feat(frontend): add dashboard and listeners pages
Browse files Browse the repository at this point in the history
- Added a new dashboard page to display the status of the application.
- Added a new listeners page to manage the listeners of the application.
- Updated the app-sidebar component to include links to the new pages.

Refactor the server configuration files to use JSON format

- Updated the server configuration files to use JSON format for better readability and maintainability.

feat(frontend): init frontend

- Initialized the frontend of the application.
  • Loading branch information
WangYihang committed Oct 24, 2024
1 parent 5909e76 commit 20d8865
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 11 deletions.
10 changes: 10 additions & 0 deletions web/platypus/src/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"use client";

import { StatusPage } from "@/components/Status"

export default function Page() {
return <>
<StatusPage />
</>
}

7 changes: 7 additions & 0 deletions web/platypus/src/app/listeners/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function Page() {
return (
<>
Listeners
</>
)
}
32 changes: 21 additions & 11 deletions web/platypus/src/components/ui/app-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,38 @@ import {
// Menu items.
const items = [
{
title: "Home",
url: "#",
title: "Dashboard",
url: "dashboard",
icon: Home,
},
{
title: "Inbox",
url: "#",
title: "Listeners",
url: "listeners",
icon: Inbox,
},
{
title: "Calendar",
url: "#",
icon: Calendar,
title: "Machines",
url: "machines",
icon: Inbox,
},
{
title: "Binaries",
url: "binaries",
icon: Inbox,
},
{
title: "Search",
url: "#",
icon: Search,
title: "Records",
url: "records",
icon: Inbox,
},
{
title: "Logs",
url: "logs",
icon: Inbox,
},
{
title: "Settings",
url: "#",
url: "settings",
icon: Settings,
},
]
Expand Down

0 comments on commit 20d8865

Please sign in to comment.