ProductList

This commit is contained in:
Michał Zieliński
2025-07-17 14:29:02 +02:00
parent 518eff0ec7
commit 2a42f16daf
17 changed files with 397 additions and 38 deletions

View File

@@ -66,6 +66,7 @@
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="$(MauiVersion)"/>
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.1"/>
<PackageReference Include="MudBlazor" Version="8.8.0"/>
</ItemGroup>
<ItemGroup>

View File

@@ -1,4 +1,5 @@
using Microsoft.Extensions.Logging;
using Bimix.UI.Shared.Extensions;
using Microsoft.Extensions.Logging;
using MudBlazor.Services;
namespace Bimix.UI.Mobile;
@@ -17,7 +18,8 @@ public static class MauiProgram
builder.Services.AddMudServices();
var baseUrl = GetApiBaseUrl();
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(baseUrl) });
builder.Services.AddSharedServices(baseUrl);
#if DEBUG
builder.Services.AddBlazorWebViewDeveloperTools();
@@ -30,9 +32,9 @@ public static class MauiProgram
{
#if IOS
// iOS symulator - użyj swojego IP
return "http://192.168.1.100:5015/"; // Zastąp swoim IP
return "http://192.168.13.44:7142/"; // Zastąp swoim IP
#else
return "https://localhost:7015/";
return "https://localhost:7142/";
#endif
}