feat(frontend): settings page added
This commit is contained in:
@@ -29,7 +29,7 @@ const data = {
|
||||
items: [
|
||||
{
|
||||
title: "Settings",
|
||||
url: "#",
|
||||
url: "/settings",
|
||||
icon: Settings,
|
||||
isActive: false,
|
||||
},
|
||||
@@ -53,9 +53,16 @@ const data = {
|
||||
},
|
||||
{
|
||||
title: "UCD",
|
||||
url: "#",
|
||||
url: "https://ucd.alpla.net:8443/",
|
||||
icon: Atom,
|
||||
isActive: false,
|
||||
newWindow: true,
|
||||
},
|
||||
{
|
||||
title: "Lst Api",
|
||||
url: "/api/docs",
|
||||
icon: Webhook,
|
||||
isActive: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -85,7 +92,7 @@ export function AdminSideBar() {
|
||||
{item.items.map((item) => (
|
||||
<SidebarMenuSubItem key={item.title}>
|
||||
<SidebarMenuSubButton asChild isActive={item.isActive}>
|
||||
<a href={item.url}>
|
||||
<a href={item.url} target={item.newWindow ? "_blank" : "_self"}>
|
||||
<item.icon />
|
||||
<span>{item.title}</span>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user