@orsetra/shared-ui 1.0.28 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
Package,
|
|
7
7
|
Settings,
|
|
8
8
|
Rocket,
|
|
9
|
+
LineChart,
|
|
9
10
|
} from "lucide-react"
|
|
10
11
|
|
|
11
12
|
// Types pour les menus
|
|
@@ -38,6 +39,11 @@ export const menuItems: MainMenuItem[] = [
|
|
|
38
39
|
label: "Applications",
|
|
39
40
|
icon: <Package className="h-6 w-6" />
|
|
40
41
|
},
|
|
42
|
+
{
|
|
43
|
+
id: "monitoring-manager",
|
|
44
|
+
label: "Monitoring Manager",
|
|
45
|
+
icon: <LineChart className="h-6 w-6" />
|
|
46
|
+
},
|
|
41
47
|
{
|
|
42
48
|
id: "api-manager",
|
|
43
49
|
label: "API Manager",
|
|
@@ -47,14 +53,16 @@ export const menuItems: MainMenuItem[] = [
|
|
|
47
53
|
id: "access-manager",
|
|
48
54
|
label: "Access Manager",
|
|
49
55
|
icon: <Shield className="h-6 w-6" />
|
|
50
|
-
}
|
|
56
|
+
},
|
|
57
|
+
|
|
51
58
|
]
|
|
52
59
|
|
|
53
60
|
// Labels des menus principaux pour l'affichage
|
|
54
61
|
export const menuLabels: Record<string, string> = {
|
|
55
62
|
"assets-manager": "Assets",
|
|
56
63
|
"applications-manager": "Applications",
|
|
64
|
+
"monitoring-manager": "Monitoring",
|
|
57
65
|
"api-manager": "API Manager",
|
|
58
|
-
"access-manager": "Access Manager"
|
|
66
|
+
"access-manager": "Access Manager",
|
|
59
67
|
}
|
|
60
68
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as React from "react"
|
|
4
4
|
import { Slot } from "@radix-ui/react-slot"
|
|
5
5
|
import { VariantProps, cva } from "class-variance-authority"
|
|
6
|
-
import { PanelLeft, Plus } from "lucide-react"
|
|
6
|
+
import { LineChart, PanelLeft, Plus } from "lucide-react"
|
|
7
7
|
import Link from "next/link"
|
|
8
8
|
import { usePathname } from "next/navigation"
|
|
9
9
|
|
|
@@ -210,7 +210,8 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {} }: SidebarPr
|
|
|
210
210
|
{currentMenu === "assets-manager" && <Rocket className="h-4 w-4 text-interactive" />}
|
|
211
211
|
{currentMenu === "applications-manager" && <Package className="h-4 w-4 text-interactive" />}
|
|
212
212
|
{currentMenu === "api-manager" && <Settings className="h-4 w-4 text-interactive" />}
|
|
213
|
-
|
|
213
|
+
{currentMenu === "access-manager" && <Shield className="h-4 w-4 text-interactive" />}
|
|
214
|
+
{currentMenu === "monitoring-manager" && <LineChart className="h-4 w-4 text-interactive" />}
|
|
214
215
|
<h2 className="text-sm font-semibold text-text-primary">
|
|
215
216
|
{menuLabels[currentMenu]}
|
|
216
217
|
</h2>
|