2023-06-27 11:48:18 +02:00
|
|
|
using LearningChineseSimplified;
|
|
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
|
|
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
|
|
|
using MudBlazor.Services;
|
2023-06-27 14:58:10 +02:00
|
|
|
using Blazored.LocalStorage;
|
2023-06-27 11:48:18 +02:00
|
|
|
|
|
|
|
internal class Program
|
|
|
|
{
|
|
|
|
private static async Task Main(string[] args)
|
|
|
|
{
|
|
|
|
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
|
|
|
builder.RootComponents.Add<App>("#app");
|
|
|
|
builder.RootComponents.Add<HeadOutlet>("head::after");
|
|
|
|
|
|
|
|
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
|
2023-06-27 14:58:10 +02:00
|
|
|
builder.Services.AddMudServices(config =>
|
|
|
|
{
|
|
|
|
config.SnackbarConfiguration.ShowTransitionDuration = 100;
|
|
|
|
config.SnackbarConfiguration.HideTransitionDuration = 100;
|
|
|
|
});
|
|
|
|
builder.Services.AddBlazoredLocalStorage();
|
2023-06-27 11:48:18 +02:00
|
|
|
|
|
|
|
await builder.Build().RunAsync();
|
|
|
|
}
|
|
|
|
}
|