Implemented node crud and status health check. Added daemon status health endpoint. Refactored project structure. Added sidebar items and ui views
This commit is contained in:
29
MoonlightServers.Frontend/Infrastructure/SidebarProvider.cs
Normal file
29
MoonlightServers.Frontend/Infrastructure/SidebarProvider.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using LucideBlazor;
|
||||
using Moonlight.Frontend.Interfaces;
|
||||
using Moonlight.Frontend.Models;
|
||||
using MoonlightServers.Shared;
|
||||
|
||||
namespace MoonlightServers.Frontend.Infrastructure;
|
||||
|
||||
public sealed class SidebarProvider : ISidebarProvider
|
||||
{
|
||||
public Task<SidebarItem[]> GetItemsAsync()
|
||||
{
|
||||
return Task.FromResult<SidebarItem[]>([
|
||||
new SidebarItem()
|
||||
{
|
||||
Name = "Servers",
|
||||
IconType = typeof(ServerIcon),
|
||||
Path = "/servers"
|
||||
},
|
||||
new SidebarItem()
|
||||
{
|
||||
Group = "Admin",
|
||||
Name = "Servers",
|
||||
IconType = typeof(ServerIcon),
|
||||
Path = "/admin/servers",
|
||||
Policy = Permissions.Nodes.View
|
||||
}
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user