Files
Moonlight/Moonlight/Features/Servers/Actions/ServerServiceDefinition.cs

25 lines
884 B
C#

using Moonlight.Features.Servers.UI.Layouts;
using Moonlight.Features.Servers.UI.UserViews;
using Moonlight.Features.ServiceManagement.Models.Abstractions;
using Console = Moonlight.Features.Servers.UI.UserViews.Console;
namespace Moonlight.Features.Servers.Actions;
public class ServerServiceDefinition : ServiceDefinition
{
public override ServiceActions Actions => new ServerActions();
public override Type ConfigType => typeof(ServerConfig);
public override async Task BuildUserView(ServiceViewContext context)
{
context.Layout = typeof(UserLayout);
await context.AddPage<Console>("Console", "/console", "bx bx-sm bxs-terminal");
await context.AddPage<Reset>("Reset", "/reset", "bx bx-sm bx-revision");
}
public override Task BuildAdminView(ServiceViewContext context)
{
throw new NotImplementedException();
}
}