diff --git a/MiniSpace.Web/src/Astravent.Web.Wasm/Astravent.Web.Wasm.csproj b/MiniSpace.Web/src/Astravent.Web.Wasm/Astravent.Web.Wasm.csproj index 904c8b944..e15860507 100644 --- a/MiniSpace.Web/src/Astravent.Web.Wasm/Astravent.Web.Wasm.csproj +++ b/MiniSpace.Web/src/Astravent.Web.Wasm/Astravent.Web.Wasm.csproj @@ -12,14 +12,14 @@ + - - - + + diff --git a/MiniSpace.Web/src/Astravent.Web.Wasm/Pages/Friends/UserDetails.razor b/MiniSpace.Web/src/Astravent.Web.Wasm/Pages/Friends/UserDetails.razor index da6e90451..6b48cae76 100644 --- a/MiniSpace.Web/src/Astravent.Web.Wasm/Pages/Friends/UserDetails.razor +++ b/MiniSpace.Web/src/Astravent.Web.Wasm/Pages/Friends/UserDetails.razor @@ -650,7 +650,7 @@ return friends.Any(f => f.FriendId == friend.FriendId); } - private bool ShouldDisplayGallery(Visibility galleryVisibility) + private bool ShouldDisplayGallery(DTO.Visibility galleryVisibility) { return galleryVisibility == Visibility.Everyone || (galleryVisibility == Visibility.Connections && IsFriend(null)); } diff --git a/MiniSpace.Web/src/Astravent.Web.Wasm/Program.cs b/MiniSpace.Web/src/Astravent.Web.Wasm/Program.cs index d0cf82b25..4a22d6c21 100644 --- a/MiniSpace.Web/src/Astravent.Web.Wasm/Program.cs +++ b/MiniSpace.Web/src/Astravent.Web.Wasm/Program.cs @@ -28,7 +28,6 @@ builder.RootComponents.Add("#app"); builder.RootComponents.Add("head::after"); -// Load appsettings based on the environment if (builder.HostEnvironment.IsDevelopment()) { builder.Configuration.AddJsonFile("appsettings.Development.json", optional: false, reloadOnChange: true); @@ -38,7 +37,6 @@ builder.Configuration.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true); } -// Load HttpClientOptions from configuration var httpClientOptions = builder.Configuration.GetSection("HttpClientOptions").Get(); if (httpClientOptions == null || string.IsNullOrEmpty(httpClientOptions.ApiUrl)) @@ -46,31 +44,25 @@ throw new InvalidOperationException("HttpClientOptions must be configured with a valid ApiUrl."); } -// Register HttpClientOptions in DI builder.Services.AddSingleton(httpClientOptions); -// Custom HttpClient registration with HttpClientOptions builder.Services.AddHttpClient((serviceProvider, client) => { var options = serviceProvider.GetRequiredService(); client.BaseAddress = new Uri(options.ApiUrl); }); -// Register services -builder.Services.AddMudServices(); // MudBlazor services -builder.Services.AddMudMarkdownServices(); // MudBlazor Markdown support -builder.Services.AddBlazoredLocalStorage(); // Local storage +builder.Services.AddMudServices(); +builder.Services.AddMudMarkdownServices(); +builder.Services.AddBlazoredLocalStorage(); -// Radzen Dialog and Notification services builder.Services.AddScoped(); -// Identity and authentication-related services builder.Services.AddScoped(); builder.Services.AddScoped(); -builder.Services.AddAuthorizationCore(); // For handling authentication/authorization in WebAssembly +builder.Services.AddAuthorizationCore(); -// Register other services builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); @@ -84,7 +76,6 @@ builder.Services.AddScoped(); builder.Services.AddScoped(); -// If SignalR is used, configure it like this builder.Services.AddScoped(); builder.Services.AddScoped(); diff --git a/MiniSpace.Web/src/Astravent.Web.Wasm/_Imports.razor b/MiniSpace.Web/src/Astravent.Web.Wasm/_Imports.razor index 2b3ce27ab..73a1b7431 100644 --- a/MiniSpace.Web/src/Astravent.Web.Wasm/_Imports.razor +++ b/MiniSpace.Web/src/Astravent.Web.Wasm/_Imports.razor @@ -53,3 +53,4 @@ @using Astravent.Web.Wasm.Areas.Communication.CommandsDto @using Astravent.Web.Wasm.DTO.Users + diff --git a/MiniSpace.Web/src/Astravent.Web.Wasm/wwwroot/index.html b/MiniSpace.Web/src/Astravent.Web.Wasm/wwwroot/index.html index 6f907f70d..383f39b37 100644 --- a/MiniSpace.Web/src/Astravent.Web.Wasm/wwwroot/index.html +++ b/MiniSpace.Web/src/Astravent.Web.Wasm/wwwroot/index.html @@ -22,6 +22,12 @@ + + + + + +