From b7d26e6dda48e8475ab08d4619151e6dab88db44 Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Sun, 12 Nov 2023 02:00:07 +0200 Subject: [PATCH] added deps formatting --- .../BUTR.Site.NexusMods.Client.csproj | 2 ++ src/BUTR.Site.NexusMods.Client/_Imports.razor | 2 ++ .../Extensions/QueryableExtensions.cs | 6 +++--- src/BUTR.Site.NexusMods.Server/Startup.cs | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/BUTR.Site.NexusMods.Client/BUTR.Site.NexusMods.Client.csproj b/src/BUTR.Site.NexusMods.Client/BUTR.Site.NexusMods.Client.csproj index 82d579d9..bb2542c9 100644 --- a/src/BUTR.Site.NexusMods.Client/BUTR.Site.NexusMods.Client.csproj +++ b/src/BUTR.Site.NexusMods.Client/BUTR.Site.NexusMods.Client.csproj @@ -20,6 +20,8 @@ + + diff --git a/src/BUTR.Site.NexusMods.Client/_Imports.razor b/src/BUTR.Site.NexusMods.Client/_Imports.razor index 9f27d754..cac8c2c3 100644 --- a/src/BUTR.Site.NexusMods.Client/_Imports.razor +++ b/src/BUTR.Site.NexusMods.Client/_Imports.razor @@ -22,6 +22,8 @@ @using Blazorise.Localization @using Blazorise.TreeView @using Blazorise.Utilities +@using Blazorise.QRCode +@using Blazorise.LoadingIndicator @using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Components diff --git a/src/BUTR.Site.NexusMods.Server/Extensions/QueryableExtensions.cs b/src/BUTR.Site.NexusMods.Server/Extensions/QueryableExtensions.cs index e2d5a1c7..2e4fcad6 100644 --- a/src/BUTR.Site.NexusMods.Server/Extensions/QueryableExtensions.cs +++ b/src/BUTR.Site.NexusMods.Server/Extensions/QueryableExtensions.cs @@ -1,4 +1,4 @@ -using BUTR.Site.NexusMods.Server.DynamicExpressions; +using BUTR.Site.NexusMods.Server.DynamicExpressions; using BUTR.Site.NexusMods.Server.Models; using BUTR.Site.NexusMods.Server.Models.API; using BUTR.Site.NexusMods.Server.Models.Database; @@ -113,7 +113,7 @@ private static bool TryConvertValue(Type type, string rawValue, [NotNullWhen((tr if (vogen.GetGenericArguments() is [_, { } valueObject]) type = valueObject; } - + if (type.IsEnum) return Enum.TryParse(type, rawValue, out value); @@ -221,7 +221,7 @@ private static bool TryConvertValue(Type type, string rawValue, [NotNullWhen((tr value = typeConverter.ConvertFrom(rawValue)!; return true; } - + try { value = System.Convert.ChangeType(rawValue, type); diff --git a/src/BUTR.Site.NexusMods.Server/Startup.cs b/src/BUTR.Site.NexusMods.Server/Startup.cs index 588382a7..a0eded7b 100644 --- a/src/BUTR.Site.NexusMods.Server/Startup.cs +++ b/src/BUTR.Site.NexusMods.Server/Startup.cs @@ -1,4 +1,4 @@ -using Aragas.Extensions.Options.FluentValidation.Extensions; +using Aragas.Extensions.Options.FluentValidation.Extensions; using BUTR.Authentication.NexusMods.Authentication; using BUTR.Authentication.NexusMods.Extensions;