This commit is contained in:
2025-12-21 11:33:11 +07:00
parent f52f0fd8da
commit 93599f5c95
9 changed files with 876 additions and 302 deletions

View File

@@ -1,5 +1,6 @@
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using MudBlazor.Services;
using RobotApp.Client.Services;
using System.Globalization;
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
@@ -11,6 +12,8 @@ builder.Services.AddAuthenticationStateDeserialization();
builder.Services.AddScoped(_ => new HttpClient() { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services.AddScoped<RobotApp.Client.Services.RobotMonitorService>();
builder.Services.AddScoped<RobotApp.Client.Services.RobotStateClient>();
builder.Services.AddMudServices(config =>
{
config.SnackbarConfiguration.VisibleStateDuration = 2000;