mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-21 07:06:33 -04:00
Manga Redesign (#321)
* Code cleanup, refactored FileRepository into Unit of Work. * Added AutoCloseMenu and ReaderMode user perferences to match UI * Added extra information to ChapterInfo * Build changes * Updated the readme to have open collective information and thanks to sponsors * Fixed an issue with UnitOfWork refactor and how stats was bootsrapped. Replaced stats.kavitareader with a temp url to test out redirection bug.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using API.Data;
|
||||
using API.Data;
|
||||
using API.Helpers;
|
||||
using API.Interfaces;
|
||||
using API.Interfaces.Services;
|
||||
@@ -34,7 +33,6 @@ namespace API.Extensions
|
||||
services.AddScoped<IBookService, BookService>();
|
||||
|
||||
services.AddSqLite(config, env);
|
||||
services.ConfigRepositories();
|
||||
|
||||
services.AddLogging(loggingBuilder =>
|
||||
{
|
||||
@@ -56,17 +54,5 @@ namespace API.Extensions
|
||||
|
||||
return services;
|
||||
}
|
||||
|
||||
private static IServiceCollection ConfigRepositories(this IServiceCollection services)
|
||||
{
|
||||
services.AddScoped<ISettingsRepository, SettingsRepository>();
|
||||
services.AddScoped<IFileRepository, FileRepository>();
|
||||
|
||||
return services;
|
||||
}
|
||||
|
||||
public static IServiceCollection AddStartupTask<T>(this IServiceCollection services)
|
||||
where T : class, IStartupTask
|
||||
=> services.AddTransient<IStartupTask, T>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user