mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-12-15 23:25:48 -07:00
Added Developer Section to Navigation Sidebar
This commit is contained in:
@@ -49,6 +49,7 @@ function NavigationSidebar({ currentPage, onNavigate, isAdmin = false }) {
|
|||||||
filters: true,
|
filters: true,
|
||||||
access: true,
|
access: true,
|
||||||
admin: true,
|
admin: true,
|
||||||
|
developer: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
const groupActive = useMemo(
|
const groupActive = useMemo(
|
||||||
@@ -68,7 +69,8 @@ function NavigationSidebar({ currentPage, onNavigate, isAdmin = false }) {
|
|||||||
"access_users",
|
"access_users",
|
||||||
"access_github_token",
|
"access_github_token",
|
||||||
].includes(currentPage),
|
].includes(currentPage),
|
||||||
admin: ["server_info", "log_management", "page_template"].includes(currentPage),
|
admin: ["server_info", "log_management"].includes(currentPage),
|
||||||
|
developer: ["page_template"].includes(currentPage),
|
||||||
}),
|
}),
|
||||||
[currentPage]
|
[currentPage]
|
||||||
);
|
);
|
||||||
@@ -194,7 +196,7 @@ function NavigationSidebar({ currentPage, onNavigate, isAdmin = false }) {
|
|||||||
/>
|
/>
|
||||||
<NavItem
|
<NavItem
|
||||||
icon={<DevicesIcon fontSize="small" />}
|
icon={<DevicesIcon fontSize="small" />}
|
||||||
label="Devices"
|
label="All Devices"
|
||||||
pageKey="devices"
|
pageKey="devices"
|
||||||
/>
|
/>
|
||||||
<NavItem
|
<NavItem
|
||||||
@@ -229,11 +231,14 @@ function NavigationSidebar({ currentPage, onNavigate, isAdmin = false }) {
|
|||||||
label="Scheduled Jobs"
|
label="Scheduled Jobs"
|
||||||
pageKey="jobs"
|
pageKey="jobs"
|
||||||
/>
|
/>
|
||||||
<NavItem
|
{/* Community Content
|
||||||
|
<NavItem
|
||||||
icon={<CommunityIcon fontSize="small" />}
|
icon={<CommunityIcon fontSize="small" />}
|
||||||
label="Community Content"
|
label="Community Content"
|
||||||
pageKey="community"
|
pageKey="community"
|
||||||
/>
|
/>
|
||||||
|
*/}
|
||||||
|
|
||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
{/* Filters & Groups */}
|
{/* Filters & Groups */}
|
||||||
@@ -243,11 +248,13 @@ function NavigationSidebar({ currentPage, onNavigate, isAdmin = false }) {
|
|||||||
label="Filters"
|
label="Filters"
|
||||||
pageKey="filters"
|
pageKey="filters"
|
||||||
/>
|
/>
|
||||||
<NavItem
|
{/* Groups
|
||||||
|
<NavItem
|
||||||
icon={<GroupsIcon fontSize="small" />}
|
icon={<GroupsIcon fontSize="small" />}
|
||||||
label="Groups"
|
label="Groups"
|
||||||
pageKey="groups"
|
pageKey="groups"
|
||||||
/>
|
/>
|
||||||
|
*/}
|
||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
{/* Access Management */}
|
{/* Access Management */}
|
||||||
@@ -284,6 +291,12 @@ function NavigationSidebar({ currentPage, onNavigate, isAdmin = false }) {
|
|||||||
label="Log Management"
|
label="Log Management"
|
||||||
pageKey="log_management"
|
pageKey="log_management"
|
||||||
/>
|
/>
|
||||||
|
</Section>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{/* Developer Tools */}
|
||||||
|
{isAdmin && (
|
||||||
|
<Section title="Developer Tools" k="developer">
|
||||||
<NavItem
|
<NavItem
|
||||||
icon={<PageTemplateIcon fontSize="small" />}
|
icon={<PageTemplateIcon fontSize="small" />}
|
||||||
label="Page Template"
|
label="Page Template"
|
||||||
|
|||||||
Reference in New Issue
Block a user