Renamed project to CCharLearn
This commit is contained in:
parent
a6f55347b8
commit
591c3307a9
233 changed files with 16 additions and 17 deletions
38
CCharLearn/Client/Program.cs
Normal file
38
CCharLearn/Client/Program.cs
Normal file
|
@ -0,0 +1,38 @@
|
|||
using CCharLearn;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
using MudBlazor;
|
||||
using Blazored.LocalStorage;
|
||||
using MudBlazor.Services;
|
||||
using Toolbelt.Blazor.Extensions.DependencyInjection;
|
||||
|
||||
namespace CCharLearn
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static int CCharsLeft = 0;
|
||||
public static Action UpdateUiEvent;
|
||||
|
||||
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;
|
||||
config.SnackbarConfiguration.VisibleStateDuration = 5000;
|
||||
config.SnackbarConfiguration.PositionClass = Defaults.Classes.Position.BottomCenter;
|
||||
});
|
||||
builder.Services.AddBlazoredLocalStorage();
|
||||
builder.Services.AddSpeechSynthesis();
|
||||
|
||||
await builder.Build().RunAsync();
|
||||
}
|
||||
|
||||
public static void InvokeUiUpdate() => UpdateUiEvent?.Invoke();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue