Fixed website using new project
This commit is contained in:
parent
7bac6e3e16
commit
7aa40c171b
237 changed files with 934 additions and 89 deletions
29
LearningChineseFixed/Client/Program.cs
Normal file
29
LearningChineseFixed/Client/Program.cs
Normal file
|
@ -0,0 +1,29 @@
|
|||
using LearningChineseFixed;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
using MudBlazor;
|
||||
using Blazored.LocalStorage;
|
||||
using MudBlazor.Services;
|
||||
|
||||
namespace LearningChineseFixed
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public 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) });
|
||||
builder.Services.AddMudServices(config =>
|
||||
{
|
||||
config.SnackbarConfiguration.ShowTransitionDuration = 100;
|
||||
config.SnackbarConfiguration.HideTransitionDuration = 100;
|
||||
});
|
||||
builder.Services.AddBlazoredLocalStorage();
|
||||
|
||||
await builder.Build().RunAsync();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue