From a29846983c142378bb841e2a4785257bf9d2cc93 Mon Sep 17 00:00:00 2001 From: GuillaumeM Date: Mon, 6 Feb 2023 11:03:37 +0100 Subject: [PATCH 1/3] remove blazored modal references --- src/AzureIoTHub.Portal.Client/App.razor | 1 - src/AzureIoTHub.Portal.Client/AzureIoTHub.Portal.Client.csproj | 3 +-- src/AzureIoTHub.Portal.Client/Program.cs | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/AzureIoTHub.Portal.Client/App.razor b/src/AzureIoTHub.Portal.Client/App.razor index fba280a04..5d9ce3370 100644 --- a/src/AzureIoTHub.Portal.Client/App.razor +++ b/src/AzureIoTHub.Portal.Client/App.razor @@ -1,5 +1,4 @@ -@using Blazored.Modal @using Microsoft.AspNetCore.Authorization @attribute [Authorize] diff --git a/src/AzureIoTHub.Portal.Client/AzureIoTHub.Portal.Client.csproj b/src/AzureIoTHub.Portal.Client/AzureIoTHub.Portal.Client.csproj index c762532ed..b53616234 100644 --- a/src/AzureIoTHub.Portal.Client/AzureIoTHub.Portal.Client.csproj +++ b/src/AzureIoTHub.Portal.Client/AzureIoTHub.Portal.Client.csproj @@ -1,4 +1,4 @@ - + net7.0 @@ -9,7 +9,6 @@ - diff --git a/src/AzureIoTHub.Portal.Client/Program.cs b/src/AzureIoTHub.Portal.Client/Program.cs index 1d99c4214..73bf2967e 100644 --- a/src/AzureIoTHub.Portal.Client/Program.cs +++ b/src/AzureIoTHub.Portal.Client/Program.cs @@ -8,7 +8,6 @@ using AzureIoTHub.Portal.Models.v10; using AzureIoTHub.Portal.Settings; using Blazored.LocalStorage; -using Blazored.Modal; using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.WebAssembly.Authentication; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; From 75b5284f85bdbac073214a3eee5da2b36f88f0b0 Mon Sep 17 00:00:00 2001 From: GuillaumeM Date: Mon, 6 Feb 2023 15:32:34 +0100 Subject: [PATCH 2/3] Fix remove blazored modal references --- src/AzureIoTHub.Portal.Client/Program.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/AzureIoTHub.Portal.Client/Program.cs b/src/AzureIoTHub.Portal.Client/Program.cs index 73bf2967e..f4cd8a767 100644 --- a/src/AzureIoTHub.Portal.Client/Program.cs +++ b/src/AzureIoTHub.Portal.Client/Program.cs @@ -59,7 +59,6 @@ _ = builder.Services.AddFileReaderService(o => o.UseWasmSharedBuffer = true); _ = builder.Services.AddBlazoredLocalStorage(); -_ = builder.Services.AddBlazoredModal(); _ = builder.Services.AddMudServices(config => { config.SnackbarConfiguration.PositionClass = Defaults.Classes.Position.BottomLeft; From 34dbd104bfb9bd1525dc5a0e8223e924fa2d1c51 Mon Sep 17 00:00:00 2001 From: GuillaumeM Date: Mon, 6 Feb 2023 17:03:18 +0100 Subject: [PATCH 3/3] remove CascadingBlazoredModal --- src/AzureIoTHub.Portal.Client/App.razor | 46 ++++++++++++------------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/src/AzureIoTHub.Portal.Client/App.razor b/src/AzureIoTHub.Portal.Client/App.razor index 5d9ce3370..87a059950 100644 --- a/src/AzureIoTHub.Portal.Client/App.razor +++ b/src/AzureIoTHub.Portal.Client/App.razor @@ -4,28 +4,26 @@ @attribute [Authorize] - - - - - - @if (!context.User.Identity.IsAuthenticated) - { - - } - else - { -

You are not authorized to access this resource.

- } -
-
-
- - Not found - -

Sorry, there's nothing at this address.

-
-
-
-
+ + + + + @if (!context.User.Identity.IsAuthenticated) + { + + } + else + { +

You are not authorized to access this resource.

+ } +
+
+
+ + Not found + +

Sorry, there's nothing at this address.

+
+
+