Implemented extendable system settings tab. Started implementing white labeling settings
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Moonlight.Shared.Http.Requests.Admin.Settings;
|
||||
|
||||
public class SetWhiteLabelingDto
|
||||
{
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Admin.Settings;
|
||||
|
||||
public class WhiteLabelingDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
}
|
||||
@@ -4,12 +4,14 @@ using Moonlight.Shared.Http.Events;
|
||||
using Moonlight.Shared.Http.Requests.Admin.ApiKeys;
|
||||
using Moonlight.Shared.Http.Requests.Admin.ContainerHelper;
|
||||
using Moonlight.Shared.Http.Requests.Admin.Roles;
|
||||
using Moonlight.Shared.Http.Requests.Admin.Settings;
|
||||
using Moonlight.Shared.Http.Requests.Admin.Themes;
|
||||
using Moonlight.Shared.Http.Requests.Admin.Users;
|
||||
using Moonlight.Shared.Http.Responses;
|
||||
using Moonlight.Shared.Http.Responses.Admin;
|
||||
using Moonlight.Shared.Http.Responses.Admin.ApiKeys;
|
||||
using Moonlight.Shared.Http.Responses.Admin.Auth;
|
||||
using Moonlight.Shared.Http.Responses.Admin.Settings;
|
||||
using Moonlight.Shared.Http.Responses.Admin.Themes;
|
||||
using Moonlight.Shared.Http.Responses.Admin.Users;
|
||||
|
||||
@@ -59,6 +61,10 @@ namespace Moonlight.Shared.Http;
|
||||
[JsonSerializable(typeof(VersionDto))]
|
||||
[JsonSerializable(typeof(ProblemDetails))]
|
||||
|
||||
// Settings - White Labeling
|
||||
[JsonSerializable(typeof(WhiteLabelingDto))]
|
||||
[JsonSerializable(typeof(SetWhiteLabelingDto))]
|
||||
|
||||
[JsonSourceGenerationOptions(JsonSerializerDefaults.Web)]
|
||||
public partial class SerializationContext : JsonSerializerContext
|
||||
{
|
||||
|
||||
@@ -55,5 +55,6 @@ public static class Permissions
|
||||
public const string Diagnose = $"{Prefix}{Section}.{nameof(Diagnose)}";
|
||||
public const string Versions = $"{Prefix}{Section}.{nameof(Versions)}";
|
||||
public const string Instance = $"{Prefix}{Section}.{nameof(Instance)}";
|
||||
public const string Settings = $"{Prefix}{Section}.{nameof(Settings)}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user