Add project files.
This commit is contained in:
parent
4db0bf9298
commit
cb8dd0eb76
221 changed files with 109953 additions and 0 deletions
19
LearningChineseSimplified/Program.cs
Normal file
19
LearningChineseSimplified/Program.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using LearningChineseSimplified;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
using MudBlazor.Services;
|
||||
|
||||
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) });
|
||||
builder.Services.AddMudServices();
|
||||
|
||||
await builder.Build().RunAsync();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue