using LucideBlazor; using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using Microsoft.Extensions.DependencyInjection; using Moonlight.Frontend.Configuration; 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; namespace Moonlight.Frontend.Startup; public partial class Startup { private void AddBase(WebAssemblyHostBuilder builder) { builder.RootComponents.Add("#app"); builder.RootComponents.Add("head::after"); builder.Services.AddScoped(_ => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); builder.Services.AddShadcnBlazor(); builder.Services.AddShadcnBlazorExtras(); builder.Services.AddSingleton(); builder.Services.AddScoped(); builder.Services.Configure(options => { options.Assemblies.Add(typeof(Startup).Assembly); }); builder.Services.Configure(options => { options.Add( "White Labeling", "Settings for white labeling your moonlight instance", 0 ); }); } }