2023-10-17 23:32:39 +08:00
|
|
|
using Blazored.LocalStorage;
|
2023-10-17 20:10:28 +08:00
|
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
|
|
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
2023-10-11 14:23:38 +08:00
|
|
|
using Katheryne;
|
2023-10-17 20:10:28 +08:00
|
|
|
using Frontend;
|
2023-10-17 23:32:39 +08:00
|
|
|
using Frontend.Services;
|
2023-10-11 14:23:38 +08:00
|
|
|
|
2023-10-17 20:10:28 +08:00
|
|
|
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
|
|
|
builder.RootComponents.Add<App>("#app");
|
|
|
|
builder.RootComponents.Add<HeadOutlet>("head::after");
|
2023-10-07 13:27:25 +08:00
|
|
|
builder.Services.AddAntDesign();
|
2023-10-17 23:32:39 +08:00
|
|
|
builder.Services.AddBlazoredLocalStorage();
|
|
|
|
|
|
|
|
builder.Logging.SetMinimumLevel(LogLevel.Debug);
|
2023-10-07 13:27:25 +08:00
|
|
|
|
2023-10-13 16:24:03 +08:00
|
|
|
builder.Services.AddKatheryne();
|
2023-10-17 23:32:39 +08:00
|
|
|
builder.Services.AddScoped<GrammarStorageService>();
|
2023-10-11 14:23:38 +08:00
|
|
|
|
2023-10-17 20:10:28 +08:00
|
|
|
WebAssemblyHost app = builder.Build();
|
2023-10-07 13:27:25 +08:00
|
|
|
|
2023-10-17 20:10:28 +08:00
|
|
|
await app.RunAsync();
|