Added base structure
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using Moonlight.Client.App.Interfaces;
|
||||
using Moonlight.Client.App.Models;
|
||||
|
||||
namespace MoonlightServers.Client.Implementations;
|
||||
|
||||
public class ServersSidebarProvider : ISidebarItemProvider
|
||||
{
|
||||
public SidebarItem[] GetItems()
|
||||
{
|
||||
return [new ()
|
||||
{
|
||||
Name = "Servers",
|
||||
Target = "/servers",
|
||||
Icon = "bi bi-hdd-rack",
|
||||
Priority = 5
|
||||
},
|
||||
new()
|
||||
{
|
||||
Name = "Servers",
|
||||
Target = "/admin/servers",
|
||||
Priority = 5,
|
||||
Icon = "bi bi-hdd-rack",
|
||||
Group = "Admin",
|
||||
Permission = "admin.servers.get"
|
||||
}];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user