using LearningChineseSimplified; using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using MudBlazor.Services; using Blazored.LocalStorage; internal class Program { private static async Task Main(string[] args) { var builder = WebAssemblyHostBuilder.CreateDefault(args); builder.RootComponents.Add("#app"); builder.RootComponents.Add("head::after"); builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); builder.Services.AddMudServices(config => { config.SnackbarConfiguration.ShowTransitionDuration = 100; config.SnackbarConfiguration.HideTransitionDuration = 100; }); builder.Services.AddBlazoredLocalStorage(); await builder.Build().RunAsync(); } }