using LucideBlazor; using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using Microsoft.Extensions.DependencyInjection; using Moonlight.Frontend.Admin.Sys.Settings; using Moonlight.Frontend.Infrastructure.Configuration; using Moonlight.Frontend.Infrastructure.Hooks; using Moonlight.Frontend.Infrastructure.Implementations; using Moonlight.Frontend.Infrastructure.Partials; using Moonlight.Frontend.Shared.Frontend; 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 ); }); } }