From b9e1e014cb9b9df5b4dca865f77c11d86cb19247 Mon Sep 17 00:00:00 2001 From: Albie Date: Wed, 23 Nov 2022 09:27:15 +0000 Subject: [PATCH 1/3] remove unused members --- DragonFruit.Sakura/Administration/Index.razor.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/DragonFruit.Sakura/Administration/Index.razor.cs b/DragonFruit.Sakura/Administration/Index.razor.cs index b98a684..165db78 100644 --- a/DragonFruit.Sakura/Administration/Index.razor.cs +++ b/DragonFruit.Sakura/Administration/Index.razor.cs @@ -5,7 +5,6 @@ using DragonFruit.Sakura.Network; using DragonFruit.Sakura.Network.Requests; using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.WebAssembly.Authentication; namespace DragonFruit.Sakura.Administration { @@ -16,12 +15,6 @@ public partial class Index [Inject] private ApiClient Client { get; set; } - [Inject] - private NavigationManager Navigation { get; set; } - - [Inject] - private SignOutSessionStateManager SignOutManager { get; set; } - private IReadOnlyList Apps { get; set; } private AppFeatures SelectedAppFeature From 4be1c37b1347485ab95bf8859ca9c2fc8dc29ec3 Mon Sep 17 00:00:00 2001 From: Albie Date: Wed, 23 Nov 2022 09:27:31 +0000 Subject: [PATCH 2/3] remove nullability markers (not needed) --- DragonFruit.Sakura/Administration/AuthenticationManager.razor | 2 +- DragonFruit.Sakura/Common/Components/SakuraSubheading.razor | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DragonFruit.Sakura/Administration/AuthenticationManager.razor b/DragonFruit.Sakura/Administration/AuthenticationManager.razor index 9c15da0..c6f8e4a 100644 --- a/DragonFruit.Sakura/Administration/AuthenticationManager.razor +++ b/DragonFruit.Sakura/Administration/AuthenticationManager.razor @@ -13,6 +13,6 @@ @code { [Parameter] - public string? Action { get; set; } + public string Action { get; set; } } \ No newline at end of file diff --git a/DragonFruit.Sakura/Common/Components/SakuraSubheading.razor b/DragonFruit.Sakura/Common/Components/SakuraSubheading.razor index dddc53a..e0ebd31 100644 --- a/DragonFruit.Sakura/Common/Components/SakuraSubheading.razor +++ b/DragonFruit.Sakura/Common/Components/SakuraSubheading.razor @@ -23,6 +23,6 @@ public string Colour { get; set; } [Parameter] - public RenderFragment? IconHtml { get; set; } + public RenderFragment IconHtml { get; set; } } \ No newline at end of file From 47cabdaccfc4bf4a4b9d8266342454a08deec548 Mon Sep 17 00:00:00 2001 From: Albie Date: Wed, 23 Nov 2022 09:27:44 +0000 Subject: [PATCH 3/3] add await call to function returning ValueTask --- DragonFruit.Sakura/Administration/Changelogs.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DragonFruit.Sakura/Administration/Changelogs.razor b/DragonFruit.Sakura/Administration/Changelogs.razor index 9b5f4c2..11f1904 100644 --- a/DragonFruit.Sakura/Administration/Changelogs.razor +++ b/DragonFruit.Sakura/Administration/Changelogs.razor @@ -56,7 +56,7 @@ } + OnClick="async () => await DeleteModification(modification)"> Delete