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:
@@ -0,0 +1,21 @@
|
||||
using LucideBlazor;
|
||||
using Moonlight.Frontend.Interfaces;
|
||||
using Moonlight.Frontend.Models;
|
||||
using MoonlightServers.Shared;
|
||||
|
||||
namespace MoonlightServers.Frontend.Infrastructure;
|
||||
|
||||
public class PermissionProvider : IPermissionProvider
|
||||
{
|
||||
public Task<PermissionCategory[]> GetPermissionsAsync()
|
||||
{
|
||||
return Task.FromResult<PermissionCategory[]>([
|
||||
new PermissionCategory("Servers - Nodes", typeof(ServerIcon), [
|
||||
new Permission(Permissions.Nodes.View, "View", "Viewing all nodes"),
|
||||
new Permission(Permissions.Nodes.Create, "Create", "Creating new nodes"),
|
||||
new Permission(Permissions.Nodes.Edit, "Edit", "Editing nodes"),
|
||||
new Permission(Permissions.Nodes.Delete, "Delete", "Deleting nodes"),
|
||||
])
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user