Smart Filter Encoding Fix (#2387)
This commit is contained in:
parent
b6d4938e22
commit
9894a2623c
133 changed files with 677 additions and 471 deletions
|
|
@ -4,6 +4,7 @@ using API.Entities;
|
|||
using API.Helpers;
|
||||
|
||||
namespace API.Extensions;
|
||||
#nullable enable
|
||||
|
||||
public static class AppUserExtensions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ using Microsoft.Extensions.DependencyInjection;
|
|||
|
||||
namespace API.Extensions;
|
||||
|
||||
|
||||
public static class ApplicationServiceExtensions
|
||||
{
|
||||
public static void AddApplicationServices(this IServiceCollection services, IConfiguration config, IWebHostEnvironment env)
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ using API.Helpers;
|
|||
using API.Services.Tasks.Scanner.Parser;
|
||||
|
||||
namespace API.Extensions;
|
||||
#nullable enable
|
||||
|
||||
public static class ChapterListExtensions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ using Kavita.Common;
|
|||
using JwtRegisteredClaimNames = Microsoft.IdentityModel.JsonWebTokens.JwtRegisteredClaimNames;
|
||||
|
||||
namespace API.Extensions;
|
||||
#nullable enable
|
||||
|
||||
public static class ClaimsPrincipalExtensions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
|
||||
namespace API.Extensions;
|
||||
#nullable enable
|
||||
|
||||
public static class DateTimeExtensions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
using API.Entities.Enums;
|
||||
|
||||
namespace API.Extensions;
|
||||
#nullable enable
|
||||
|
||||
public static class EncodeFormatExtensions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ using API.Data.Misc;
|
|||
using API.Entities.Enums;
|
||||
|
||||
namespace API.Extensions;
|
||||
#nullable enable
|
||||
|
||||
public static class EnumerableExtensions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
using System.IO;
|
||||
|
||||
namespace API.Extensions;
|
||||
#nullable enable
|
||||
|
||||
public static class FileInfoExtensions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ using API.DTOs.Filtering;
|
|||
using API.Entities.Enums;
|
||||
|
||||
namespace API.Extensions;
|
||||
#nullable enable
|
||||
|
||||
public static class FilterDtoExtensions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ using Microsoft.AspNetCore.Http;
|
|||
using Microsoft.Net.Http.Headers;
|
||||
|
||||
namespace API.Extensions;
|
||||
#nullable enable
|
||||
|
||||
public static class HttpExtensions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ using Microsoft.Extensions.DependencyInjection;
|
|||
using Microsoft.IdentityModel.Tokens;
|
||||
|
||||
namespace API.Extensions;
|
||||
#nullable enable
|
||||
|
||||
public static class IdentityServiceExtensions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ using API.Entities;
|
|||
using API.Services.Tasks.Scanner.Parser;
|
||||
|
||||
namespace API.Extensions;
|
||||
#nullable enable
|
||||
|
||||
public static class ParserInfoListExtensions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System.IO;
|
||||
|
||||
namespace API.Extensions;
|
||||
#nullable enable
|
||||
|
||||
public static class PathExtensions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
using System.Linq;
|
||||
using API.DTOs.Filtering;
|
||||
using API.Entities;
|
||||
using API.Extensions.QueryExtensions;
|
||||
|
||||
namespace API.Extensions.QueryExtensions.Filtering;
|
||||
#nullable enable
|
||||
|
||||
public class BookmarkSeriesPair
|
||||
{
|
||||
public AppUserBookmark Bookmark { get; set; }
|
||||
public Series Series { get; set; }
|
||||
public AppUserBookmark Bookmark { get; init; } = null!;
|
||||
public Series Series { get; init; } = null!;
|
||||
}
|
||||
|
||||
public static class BookmarkSort
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ using Kavita.Common;
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace API.Extensions.QueryExtensions.Filtering;
|
||||
|
||||
#nullable enable
|
||||
|
||||
public static class SeriesFilter
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
using System.Linq;
|
||||
using API.DTOs.Filtering;
|
||||
using API.Entities;
|
||||
using API.Extensions.QueryExtensions;
|
||||
|
||||
namespace API.Extensions.QueryExtensions.Filtering;
|
||||
#nullable enable
|
||||
|
||||
public static class SeriesSort
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ using API.Entities;
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace API.Extensions.QueryExtensions;
|
||||
#nullable enable
|
||||
|
||||
/// <summary>
|
||||
/// All extensions against IQueryable that enables the dynamic including based on bitwise flag pattern
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ using API.Entities.Scrobble;
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace API.Extensions.QueryExtensions;
|
||||
#nullable enable
|
||||
|
||||
public static class QueryableExtensions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ using API.Entities;
|
|||
using API.Entities.Enums;
|
||||
|
||||
namespace API.Extensions.QueryExtensions;
|
||||
#nullable enable
|
||||
|
||||
/// <summary>
|
||||
/// Responsible for restricting Entities based on an AgeRestriction
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#nullable enable
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using API.Comparators;
|
||||
|
|
@ -7,6 +6,7 @@ using API.Entities;
|
|||
using API.Services.Tasks.Scanner.Parser;
|
||||
|
||||
namespace API.Extensions;
|
||||
#nullable enable
|
||||
|
||||
public static class SeriesExtensions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace API.Extensions;
|
||||
#nullable enable
|
||||
|
||||
public static class StringExtensions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ using API.Entities;
|
|||
using API.Entities.Enums;
|
||||
|
||||
namespace API.Extensions;
|
||||
#nullable enable
|
||||
|
||||
public static class VolumeListExtensions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ using System.IO.Compression;
|
|||
using System.Linq;
|
||||
|
||||
namespace API.Extensions;
|
||||
#nullable enable
|
||||
|
||||
public static class ZipArchiveExtensions
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue