v0.7.3 - The Quality of Life Update (#2036)
* Version bump * Okay this should be the last (#2037) * Fixed improper date visualization for reading list detail page. * Correct not-read badge position (#2034) --------- Co-authored-by: Andre Smith <Hobogrammer@users.noreply.github.com> * Bump versions by dotnet-bump-version. * Merged develop in --------- Co-authored-by: Andre Smith <Hobogrammer@users.noreply.github.com>
This commit is contained in:
parent
51e23b7eca
commit
1b3866568f
235 changed files with 14827 additions and 21948 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System.IO.Abstractions;
|
||||
using API.Constants;
|
||||
using API.Data;
|
||||
using API.Helpers;
|
||||
using API.Services;
|
||||
|
|
@ -22,9 +23,7 @@ public static class ApplicationServiceExtensions
|
|||
services.AddAutoMapper(typeof(AutoMapperProfiles).Assembly);
|
||||
|
||||
services.AddScoped<IUnitOfWork, UnitOfWork>();
|
||||
services.AddScoped<IDirectoryService, DirectoryService>();
|
||||
services.AddScoped<ITokenService, TokenService>();
|
||||
services.AddScoped<IFileSystem, FileSystem>();
|
||||
services.AddScoped<IFileService, FileService>();
|
||||
services.AddScoped<ICacheHelper, CacheHelper>();
|
||||
|
||||
|
|
@ -35,7 +34,6 @@ public static class ApplicationServiceExtensions
|
|||
services.AddScoped<IBackupService, BackupService>();
|
||||
services.AddScoped<ICleanupService, CleanupService>();
|
||||
services.AddScoped<IBookService, BookService>();
|
||||
services.AddScoped<IImageService, ImageService>();
|
||||
services.AddScoped<IVersionUpdaterService, VersionUpdaterService>();
|
||||
services.AddScoped<IDownloadService, DownloadService>();
|
||||
services.AddScoped<IReaderService, ReaderService>();
|
||||
|
|
@ -49,6 +47,8 @@ public static class ApplicationServiceExtensions
|
|||
services.AddScoped<IReadingListService, ReadingListService>();
|
||||
services.AddScoped<IDeviceService, DeviceService>();
|
||||
services.AddScoped<IStatisticService, StatisticService>();
|
||||
services.AddScoped<IMediaErrorService, MediaErrorService>();
|
||||
services.AddScoped<IMediaConversionService, MediaConversionService>();
|
||||
|
||||
services.AddScoped<IScannerService, ScannerService>();
|
||||
services.AddScoped<IMetadataService, MetadataService>();
|
||||
|
|
@ -57,11 +57,20 @@ public static class ApplicationServiceExtensions
|
|||
services.AddScoped<ITachiyomiService, TachiyomiService>();
|
||||
services.AddScoped<ICollectionTagService, CollectionTagService>();
|
||||
|
||||
services.AddScoped<IPresenceTracker, PresenceTracker>();
|
||||
services.AddScoped<IFileSystem, FileSystem>();
|
||||
services.AddScoped<IDirectoryService, DirectoryService>();
|
||||
services.AddScoped<IEventHub, EventHub>();
|
||||
services.AddScoped<IPresenceTracker, PresenceTracker>();
|
||||
|
||||
services.AddScoped<IImageService, ImageService>();
|
||||
|
||||
services.AddSqLite(env);
|
||||
services.AddSignalR(opt => opt.EnableDetailedErrors = true);
|
||||
|
||||
services.AddEasyCaching(options =>
|
||||
{
|
||||
options.UseInMemory(EasyCacheProfiles.Favicon);
|
||||
});
|
||||
}
|
||||
|
||||
private static void AddSqLite(this IServiceCollection services, IHostEnvironment env)
|
||||
|
|
|
|||
18
API/Extensions/EncodeFormatExtensions.cs
Normal file
18
API/Extensions/EncodeFormatExtensions.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using API.Entities.Enums;
|
||||
|
||||
namespace API.Extensions;
|
||||
|
||||
public static class EncodeFormatExtensions
|
||||
{
|
||||
public static string GetExtension(this EncodeFormat encodeFormat)
|
||||
{
|
||||
return encodeFormat switch
|
||||
{
|
||||
EncodeFormat.PNG => ".png",
|
||||
EncodeFormat.WEBP => ".webp",
|
||||
EncodeFormat.AVIF => ".avif",
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(encodeFormat), encodeFormat, null)
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue