Implemented extendable system settings tab. Started implementing white labeling settings
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using LucideBlazor;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
@@ -6,6 +7,7 @@ using Moonlight.Frontend.Implementations;
|
||||
using Moonlight.Frontend.Interfaces;
|
||||
using Moonlight.Frontend.Services;
|
||||
using Moonlight.Frontend.UI;
|
||||
using Moonlight.Frontend.UI.Admin.Settings;
|
||||
using ShadcnBlazor;
|
||||
using ShadcnBlazor.Extras;
|
||||
|
||||
@@ -19,7 +21,7 @@ public partial class Startup
|
||||
builder.RootComponents.Add<HeadOutlet>("head::after");
|
||||
|
||||
builder.Services.AddScoped(_ => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
|
||||
|
||||
|
||||
builder.Services.AddShadcnBlazor();
|
||||
builder.Services.AddShadcnBlazorExtras();
|
||||
|
||||
@@ -31,5 +33,14 @@ public partial class Startup
|
||||
{
|
||||
options.Assemblies.Add(typeof(Startup).Assembly);
|
||||
});
|
||||
|
||||
builder.Services.Configure<SystemSettingsOptions>(options =>
|
||||
{
|
||||
options.Add<TextCursorInputIcon, WhiteLabelingSetting>(
|
||||
"White Labeling",
|
||||
"Settings for white labeling your moonlight instance",
|
||||
0
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user