Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
C# annotationscbzcomicinfocomicscomics-readercross-platformcsharpepubepub-readerfreelinuxmangamedia-servermetadataopdsopds-feedpdfself-hostedubooquitywindows
v0.5.4 - Double Page Layout, Estimated Reading Time, a new PDF Reader and Infinite Scroll?! (#1344)
Joseph Milazzo6d0b18c98fa0
diff --git a/.vscode/launch.json b/.vscode/launch.jsonnew file mode 100644index 000000000..1e5fc7809--- /dev/null+++ b/.vscode/launch.json@@ -0,0 +1,15 @@+{+ // Use IntelliSense to learn about possible attributes.+ // Hover to view descriptions of existing attributes.+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387+ "version": "0.2.0",+ "configurations": [+ {+ "type": "pwa-chrome",+ "request": "launch",+ "name": "Launch Chrome against localhost",+ "url": "http://localhost:5000",+ "webRoot": "${workspaceFolder}"+ }+ ]+}\ No newline at end of filediff --git a/.vscode/settings.json b/.vscode/settings.jsonindex 017eebcf1..4cf0173eb 100644--- a/.vscode/settings.json+++ b/.vscode/settings.json@@ -46,5 +46,6 @@"bold": false,"italic": false}- ]+ ],+ "diffEditor.wordWrap": "off"}\ No newline at end of filediff --git a/API.Benchmark/EpubBenchmark.cs b/API.Benchmark/EpubBenchmark.csnew file mode 100644index 000000000..fd4fe4da4--- /dev/null+++ b/API.Benchmark/EpubBenchmark.cs@@ -0,0 +1,68 @@+using System;+using System.Linq;+using System.Threading.Tasks;+using API.Services;+using BenchmarkDotNet.Attributes;+using BenchmarkDotNet.Order;+using HtmlAgilityPack;+using VersOne.Epub;++namespace API.Benchmark;++[MemoryDiagnoser]+[Orderer(SummaryOrderPolicy.FastestToSlowest)]+[RankColumn]+[SimpleJob(launchCount: 1, warmupCount: 3, targetCount: 5, invocationCount: 100, id: "Epub"), ShortRunJob]+public class EpubBenchmark+{+ [Benchmark]+ public static async Task GetWordCount_PassByString()+ {+ using var book = await EpubReader.OpenBookAsync("Data/book-test.epub", BookService.BookReaderOptions);+ foreach (var bookFile in book.Content.Html.Values)+ {+ Console.WriteLine(GetBookWordCount_PassByString(await bookFile.ReadContentAsTextAsync()));+ ;+ }+ }++ [Benchmark]+ public static async Task GetWordCount_PassByRef()+ {+ using var book = await EpubReader.OpenBookAsync("Data/book-test.epub", BookService.BookReaderOptions);+ foreach (var bookFile in book.Content.Html.Values)+ {+ Console.WriteLine(await GetBookWordCount_PassByRef(bookFile));+ }+ }++ private static int GetBookWordCount_PassByString(string fileContents)+ {+ var doc = new HtmlDocument();+ doc.LoadHtml(fileContents);+ var delimiter = new char[] {' '};++ return doc.DocumentNode.SelectNodes("//body//text()[not(parent::script)]")+ .Select(node => node.InnerText)+ .Select(text => text.Split(delimiter, StringSplitOptions.RemoveEmptyEntries)+ .Where(s => char.IsLetter(s[0])))+ .Select(words => words.Count())+ .Where(wordCount => wordCount > 0)+ .Sum();+ }++ private static async Task<int> GetBookWordCount_PassByRef(EpubContentFileRef bookFile)+ {+ var doc = new HtmlDocument();+ doc.LoadHtml(await bookFile.ReadContentAsTextAsync());+ var delimiter = new char[] {' '};++ return doc.DocumentNode.SelectNodes("//body//text()[not(parent::script)]")+ .Select(node => node.InnerText)+ .Select(text => text.Split(delimiter, StringSplitOptions.RemoveEmptyEntries)+ .Where(s => char.IsLetter(s[0])))+ .Select(words => words.Count())+ .Where(wordCount => wordCount > 0)+ .Sum();+ }+}diff --git a/API.Benchmark/Program.cs b/API.Benchmark/Program.csindex c3ef1b605..4a659a1b8 100644--- a/API.Benchmark/Program.cs+++ b/API.Benchmark/Program.cs@@ -14,7 +14,8 @@ namespace API.Benchmark{//BenchmarkRunner.Run<ParseScannedFilesBenchmarks>();//BenchmarkRunner.Run<TestBenchmark>();- BenchmarkRunner.Run<ParserBenchmarks>();+ //BenchmarkRunner.Run<ParserBenchmarks>();+ BenchmarkRunner.Run<EpubBenchmark>();}}diff --git a/API.Tests/API.Tests.csproj b/API.Tests/API.Tests.csprojindex 708e253c0..5b1cacac2 100644--- a/API.Tests/API.Tests.csproj+++ b/API.Tests/API.Tests.csproj@@ -7,12 +7,12 @@</PropertyGroup><ItemGroup>- <PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="6.0.4" />- <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />+ <PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="6.0.5" />+ <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" /><PackageReference Include="NSubstitute" Version="4.3.0" />- <PackageReference Include="System.IO.Abstractions.TestingHelpers" Version="17.0.3" />+ <PackageReference Include="System.IO.Abstractions.TestingHelpers" Version="17.0.15" /><PackageReference Include="xunit" Version="2.4.1" />- <PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">+ <PackageReference Include="xunit.runner.visualstudio" Version="2.4.5"><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets><PrivateAssets>all</PrivateAssets></PackageReference>diff --git a/API.Tests/Parser/MangaParserTests.cs b/API.Tests/Parser/MangaParserTests.csindex a3d298e82..10c7d3583 100644--- a/API.Tests/Parser/MangaParserTests.cs+++ b/API.Tests/Parser/MangaParserTests.cs@@ -66,6 +66,13 @@ namespace API.Tests.Parser[InlineData("Hentai Ouji to Warawanai Neko. - Vol. 06 Ch. 034.5", "6")][InlineData("The 100 Girlfriends Who Really, Really, Really, Really, Really Love You - Vol. 03 Ch. 023.5 - Volume 3 Extras.cbz", "3")][InlineData("The 100 Girlfriends Who Really, Really, Really, Really, Really Love You - Vol. 03.5 Ch. 023.5 - Volume 3 Extras.cbz", "3.5")]+ [InlineData("幽游白书完全版 第03卷 天下", "3")]+ [InlineData("阿衰online 第1册", "1")]+ [InlineData("【TFO汉化&Petit汉化】迷你偶像漫画卷2第25话", "2")]+ [InlineData("63권#200", "63")]+ [InlineData("시즌34삽화2", "34")]+ [InlineData("スライム倒して300年、知らないうちにレベルMAXになってました 1巻", "1")]+ [InlineData("スライム倒して300年、知らないうちにレベルMAXになってました 1-3巻", "1-3")]public void ParseVolumeTest(string filename, string expected){Assert.Equal(expected, API.Parser.Parser.ParseVolume(filename));@@ -246,6 +253,9 @@ namespace API.Tests.Parser[InlineData("Harrison, Kim - The Good, The Bad, and the Undead - Hollows Vol 2.5.epub", "0")][InlineData("Kaiju No. 8 036 (2021) (Digital)", "36")][InlineData("Samurai Jack Vol. 01 - The threads of Time", "0")]+ [InlineData("【TFO汉化&Petit汉化】迷你偶像漫画第25话", "25")]+ [InlineData("이세계에서 고아원을 열었지만, 어째서인지 아무도 독립하려 하지 않는다 38-1화 ", "38")]+ [InlineData("[ハレム]ナナとカオル ~高校生のSMごっこ~ 第10話", "10")]public void ParseChaptersTest(string filename, string expected){Assert.Equal(expected, API.Parser.Parser.ParseChapter(filename));diff --git a/API.Tests/Services/BookmarkServiceTests.cs b/API.Tests/Services/BookmarkServiceTests.csindex 13acf3684..f04c8e676 100644--- a/API.Tests/Services/BookmarkServiceTests.cs+++ b/API.Tests/Services/BookmarkServiceTests.cs@@ -47,6 +47,12 @@ public class BookmarkServiceTests_unitOfWork = new UnitOfWork(_context, Substitute.For<IMapper>(), null);}+ private BookmarkService Create(IDirectoryService ds)+ {+ return new BookmarkService(Substitute.For<ILogger<BookmarkService>>(), _unitOfWork, ds,+ Substitute.For<IImageService>(), Substitute.For<IEventHub>());+ }+#region Setupprivate static DbConnection CreateInMemoryDatabase()@@ -121,7 +127,8 @@ public class BookmarkServiceTestspublic async Task BookmarkPage_ShouldCopyTheFileAndUpdateDB(){var filesystem = CreateFileSystem();- filesystem.AddFile($"{CacheDirectory}1/0001.jpg", new MockFileData("123"));+ var file = $"{CacheDirectory}1/0001.jpg";+ filesystem.AddFile(file, new MockFileData("123"));// Delete all Series to reset stateawait ResetDB();@@ -157,7 +164,7 @@ public class BookmarkServiceTestsvar ds = new DirectoryService(Substitute.For<ILogger<DirectoryService>>(), filesystem);- var bookmarkService = new BookmarkService(Substitute.For<ILogger<BookmarkService>>(), _unitOfWork, ds);+ var bookmarkService = Create(ds);var user = await _unitOfWork.UserRepository.GetUserByIdAsync(1, AppUserIncludes.Bookmarks);var result = await bookmarkService.BookmarkPage(user, new BookmarkDto()@@ -166,7 +173,7 @@ public class BookmarkServiceTestsPage = 1,SeriesId = 1,VolumeId = 1- }, $"{CacheDirectory}1/0001.jpg");+ }, file);Assert.True(result);@@ -227,7 +234,7 @@ public class BookmarkServiceTestsvar ds = new DirectoryService(Substitute.For<ILogger<DirectoryService>>(), filesystem);- var bookmarkService = new BookmarkService(Substitute.For<ILogger<BookmarkService>>(), _unitOfWork, ds);+ var bookmarkService = Create(ds);var user = await _unitOfWork.UserRepository.GetUserByIdAsync(1, AppUserIncludes.Bookmarks);var result = await bookmarkService.RemoveBookmarkPage(user, new BookmarkDto()@@ -319,7 +326,7 @@ public class BookmarkServiceTestsvar ds = new DirectoryService(Substitute.For<ILogger<DirectoryService>>(), filesystem);- var bookmarkService = new BookmarkService(Substitute.For<ILogger<BookmarkService>>(), _unitOfWork, ds);+ var bookmarkService = Create(ds);await bookmarkService.DeleteBookmarkFiles(new [] {new AppUserBookmark(){@@ -378,7 +385,7 @@ public class BookmarkServiceTestsvar ds = new DirectoryService(Substitute.For<ILogger<DirectoryService>>(), filesystem);- var bookmarkService = new BookmarkService(Substitute.For<ILogger<BookmarkService>>(), _unitOfWork, ds);+ var bookmarkService = Create(ds);var user = await _unitOfWork.UserRepository.GetUserByIdAsync(1, AppUserIncludes.Bookmarks);await bookmarkService.BookmarkPage(user, new BookmarkDto()diff --git a/API.Tests/Services/CacheServiceTests.cs b/API.Tests/Services/CacheServiceTests.csindex d5a8d4bee..c29a78036 100644--- a/API.Tests/Services/CacheServiceTests.cs+++ b/API.Tests/Services/CacheServiceTests.cs@@ -279,8 +279,8 @@ namespace API.Tests.Services}}};- cs.GetCachedEpubFile(1, c);- Assert.Same($"{DataDirectory}1.epub", cs.GetCachedEpubFile(1, c));+ cs.GetCachedFile(c);+ Assert.Same($"{DataDirectory}1.epub", cs.GetCachedFile(c));}#endregiondiff --git a/API.Tests/Services/CleanupServiceTests.cs b/API.Tests/Services/CleanupServiceTests.csindex 08d5f29a7..a7575577c 100644--- a/API.Tests/Services/CleanupServiceTests.cs+++ b/API.Tests/Services/CleanupServiceTests.cs@@ -6,8 +6,11 @@ using System.IO.Abstractions.TestingHelpers;using System.Linq;using System.Threading.Tasks;using API.Data;+using API.DTOs.Settings;using API.Entities;using API.Entities.Enums;+using API.Helpers;+using API.Helpers.Converters;using API.Services;using API.Services.Tasks;using API.SignalR;@@ -48,7 +51,10 @@ public class CleanupServiceTests_context = new DataContext(contextOptions);Task.Run(SeedDb).GetAwaiter().GetResult();- _unitOfWork = new UnitOfWork(_context, Substitute.For<IMapper>(), null);+ var config = new MapperConfiguration(cfg => cfg.AddProfile<AutoMapperProfiles>());+ var mapper = config.CreateMapper();++ _unitOfWork = new UnitOfWork(_context, mapper, null);}#region Setupdiff --git a/API.Tests/Services/SeriesServiceTests.cs b/API.Tests/Services/SeriesServiceTests.csindex 217eb63e0..00b6c7ffd 100644--- a/API.Tests/Services/SeriesServiceTests.cs+++ b/API.Tests/Services/SeriesServiceTests.cs@@ -8,6 +8,7 @@ using API.Data.Repositories;using API.DTOs;using API.DTOs.CollectionTags;using API.DTOs.Metadata;+using API.DTOs.Reader;using API.Entities;using API.Entities.Enums;using API.Extensions;@@ -21,6 +22,8 @@ using Microsoft.EntityFrameworkCore;using Microsoft.EntityFrameworkCore.Infrastructure;using Microsoft.Extensions.Logging;using NSubstitute;+using NSubstitute.Extensions;+using NSubstitute.ReceivedExtensions;using Xunit;using Xunit.Sdk;@@ -253,6 +256,50 @@ public class SeriesServiceTestsAssert.Equal(2, detail.Volumes.Count());}+ [Fact]+ public async Task SeriesDetail_ShouldReturnCorrectNaming_VolumeTitle()+ {+ await ResetDb();++ _context.Series.Add(new Series()+ {+ Name = "Test",+ Library = new Library() {+ Name = "Test LIb",+ Type = LibraryType.Manga,+ },+ Volumes = new List<Volume>()+ {+ EntityFactory.CreateVolume("0", new List<Chapter>()+ {+ EntityFactory.CreateChapter("1", false, new List<MangaFile>()),+ EntityFactory.CreateChapter("2", false, new List<MangaFile>()),+ }),+ EntityFactory.CreateVolume("2", new List<Chapter>()+ {+ EntityFactory.CreateChapter("0", false, new List<MangaFile>()),+ }),+ EntityFactory.CreateVolume("3", new List<Chapter>()+ {+ EntityFactory.CreateChapter("31", false, new List<MangaFile>()),+ }),+ }+ });++ await _context.SaveChangesAsync();++ var detail = await _seriesService.GetSeriesDetail(1, 1);+ Assert.NotEmpty(detail.Chapters);+ // volume 2 has a 0 chapter aka a single chapter that is represented as a volume. We don't show in Chapters area+ Assert.Equal(3, detail.Chapters.Count());++ Assert.NotEmpty(detail.Volumes);+ Assert.Equal(2, detail.Volumes.Count());++ Assert.Equal(string.Empty, detail.Chapters.First().VolumeTitle); // loose leaf chapter+ Assert.Equal("Volume 3", detail.Chapters.Last().VolumeTitle); // volume based chapter+ }+[Fact]public async Task SeriesDetail_ShouldReturnChaptersOnly_WhenBookLibrary(){@@ -700,7 +747,7 @@ public class SeriesServiceTestsvar series = await _unitOfWork.SeriesRepository.GetSeriesByIdAsync(1);Assert.NotNull(series.Metadata);- Assert.True(series.Metadata.Genres.Select(g => g.Title).All(g => g == "New Genre".SentenceCase()));+ Assert.True(series.Metadata.Genres.Select(g1 => g1.Title).All(g2 => g2 == "New Genre".SentenceCase()));Assert.False(series.Metadata.GenresLocked); // GenreLocked is false unless the UI Explicitly says it should be locked}diff --git a/API.Tests/Services/SiteThemeServiceTests.cs b/API.Tests/Services/SiteThemeServiceTests.csindex 246461fc8..ea43c6644 100644--- a/API.Tests/Services/SiteThemeServiceTests.cs+++ b/API.Tests/Services/SiteThemeServiceTests.cs@@ -7,6 +7,7 @@ using API.Data;using API.Entities;using API.Entities.Enums;using API.Entities.Enums.Theme;+using API.Entities.Enums.UserPreferences;using API.Helpers;using API.Services;using API.Services.Tasks;diff --git a/API/API.csproj b/API/API.csprojindex 1099893a3..a66d03dd6 100644--- a/API/API.csproj+++ b/API/API.csproj@@ -5,15 +5,17 @@<TargetFramework>net6.0</TargetFramework><EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild><DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>+ <GenerateDocumentationFile>true</GenerateDocumentationFile></PropertyGroup><PropertyGroup Condition=" '$(Configuration)' == 'Release' "><DebugSymbols>false</DebugSymbols><ApplicationIcon>../favicon.ico</ApplicationIcon>+ <DocumentationFile>bin\$(Configuration)\$(AssemblyName).xml</DocumentationFile></PropertyGroup><PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">- <DocumentationFile>bin\Debug\API.xml</DocumentationFile>+ <DocumentationFile>bin\$(Configuration)\$(AssemblyName).xml</DocumentationFile><NoWarn>1701;1702;1591</NoWarn></PropertyGroup>@@ -40,39 +42,39 @@<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="11.0.0" /><PackageReference Include="Docnet.Core" Version="2.4.0-alpha.2" /><PackageReference Include="ExCSS" Version="4.1.0" />- <PackageReference Include="Flurl" Version="3.0.5" />- <PackageReference Include="Flurl.Http" Version="3.2.3" />- <PackageReference Include="Hangfire" Version="1.7.28" />- <PackageReference Include="Hangfire.AspNetCore" Version="1.7.28" />+ <PackageReference Include="Flurl" Version="3.0.6" />+ <PackageReference Include="Flurl.Http" Version="3.2.4" />+ <PackageReference Include="Hangfire" Version="1.7.30" />+ <PackageReference Include="Hangfire.AspNetCore" Version="1.7.30" /><PackageReference Include="Hangfire.MaximumConcurrentExecutions" Version="1.1.0" /><PackageReference Include="Hangfire.MemoryStorage.Core" Version="1.4.0" />- <PackageReference Include="HtmlAgilityPack" Version="1.11.42" />+ <PackageReference Include="HtmlAgilityPack" Version="1.11.43" /><PackageReference Include="MarkdownDeep.NET.Core" Version="1.5.0.4" />- <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.4" />- <PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.4" />- <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.4" />+ <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.6" />+ <PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.6" />+ <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.6" /><PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.1.0" />- <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.4">+ <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.6"><PrivateAssets>all</PrivateAssets><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets></PackageReference>- <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.4" />+ <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.6" /><PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" /><PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="2.2.0" /><PackageReference Include="NetVips" Version="2.1.0" /><PackageReference Include="NetVips.Native" Version="8.12.2" />- <PackageReference Include="NReco.Logging.File" Version="1.1.4" />- <PackageReference Include="SharpCompress" Version="0.31.0" />- <PackageReference Include="SixLabors.ImageSharp" Version="2.1.1" />- <PackageReference Include="SonarAnalyzer.CSharp" Version="8.38.0.46746">+ <PackageReference Include="NReco.Logging.File" Version="1.1.5" />+ <PackageReference Include="SharpCompress" Version="0.32.1" />+ <PackageReference Include="SixLabors.ImageSharp" Version="2.1.3" />+ <PackageReference Include="SonarAnalyzer.CSharp" Version="8.40.0.48530"><PrivateAssets>all</PrivateAssets><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets></PackageReference><PackageReference Include="Swashbuckle.AspNetCore" Version="6.3.1" /><PackageReference Include="System.Drawing.Common" Version="6.0.0" />- <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.17.0" />- <PackageReference Include="System.IO.Abstractions" Version="17.0.3" />- <PackageReference Include="VersOne.Epub" Version="3.1.0" />+ <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.20.0" />+ <PackageReference Include="System.IO.Abstractions" Version="17.0.18" />+ <PackageReference Include="VersOne.Epub" Version="3.1.2" /></ItemGroup><ItemGroup>@@ -134,6 +136,9 @@</Content><Content Remove="covers\**" /><Content Remove="config\covers\**" />+ <Content Update="bin\$(Configuration)\$(AssemblyName).xml">+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>+ </Content></ItemGroup><ItemGroup>diff --git a/API/Controllers/AccountController.cs b/API/Controllers/AccountController.csindex cc0b66ec1..236013308 100644--- a/API/Controllers/AccountController.cs+++ b/API/Controllers/AccountController.cs@@ -12,9 +12,11 @@ using API.DTOs.Account;using API.DTOs.Email;using API.Entities;using API.Entities.Enums;+using API.Entities.Enums.UserPreferences;using API.Errors;using API.Extensions;using API.Services;+using API.SignalR;using AutoMapper;using Kavita.Common;using Microsoft.AspNetCore.Authorization;@@ -40,13 +42,16 @@ namespace API.Controllersprivate readonly IAccountService _accountService;private readonly IEmailService _emailService;private readonly IHostEnvironment _environment;+ private readonly IEventHub _eventHub;/// <inheritdoc />public AccountController(UserManager<AppUser> userManager,SignInManager<AppUser> signInManager,ITokenService tokenService, IUnitOfWork unitOfWork,ILogger<AccountController> logger,- IMapper mapper, IAccountService accountService, IEmailService emailService, IHostEnvironment environment)+ IMapper mapper, IAccountService accountService,+ IEmailService emailService, IHostEnvironment environment,+ IEventHub eventHub){_userManager = userManager;_signInManager = signInManager;@@ -57,6 +62,7 @@ namespace API.Controllers_accountService = accountService;_emailService = emailService;_environment = environment;+ _eventHub = eventHub;}/// <summary>@@ -201,6 +207,11 @@ namespace API.Controllersreturn dto;}+ /// <summary>+ /// Refreshes the user's JWT token+ /// </summary>+ /// <param name="tokenRequestDto"></param>+ /// <returns></returns>[HttpPost("refresh-token")]public async Task<ActionResult<TokenRequestDto>> RefreshToken([FromBody] TokenRequestDto tokenRequestDto){@@ -289,6 +300,7 @@ namespace API.Controllers{dto.Roles.Add(PolicyConstants.PlebRole);}+if (existingRoles.Except(dto.Roles).Any() || dto.Roles.Except(existingRoles).Any()){var roles = dto.Roles;@@ -326,9 +338,9 @@ namespace API.Controllerslib.AppUsers.Add(user);}- if (!_unitOfWork.HasChanges()) return Ok();- if (await _unitOfWork.CommitAsync())+ if (!_unitOfWork.HasChanges() || await _unitOfWork.CommitAsync()){+ await _eventHub.SendMessageToAsync(MessageFactory.UserUpdate, MessageFactory.UserUpdateEvent(user.Id, user.UserName), user.Id);return Ok();}@@ -646,22 +658,13 @@ namespace API.Controllerstry{var token = await _userManager.GenerateEmailConfirmationTokenAsync(user);- //if (string.IsNullOrEmpty(token)) return BadRequest("There was an issue sending email");+user.Email = dto.Email;if (!await ConfirmEmailToken(token, user)) return BadRequest("There was a critical error during migration");_unitOfWork.UserRepository.Update(user);await _unitOfWork.CommitAsync();- //var emailLink = GenerateEmailLink(await _userManager.GenerateEmailConfirmationTokenAsync(user), "confirm-migration-email", user.Email);- // _logger.LogCritical("[Email Migration]: Email Link for {UserName}: {Link}", dto.Username, emailLink);- // // Always send an email, even if the user can't click it just to get them conformable with the system- // await _emailService.SendMigrationEmail(new EmailMigrationDto()- // {- // EmailAddress = dto.Email,- // Username = user.UserName,- // ServerConfirmationLink = emailLink- // });return Ok();}catch (Exception ex)diff --git a/API/Controllers/AdminController.cs b/API/Controllers/AdminController.csindex 3002947a2..2c945b5fe 100644--- a/API/Controllers/AdminController.cs+++ b/API/Controllers/AdminController.cs@@ -14,6 +14,10 @@ namespace API.Controllers_userManager = userManager;}+ /// <summary>+ /// Checks if an admin exists on the system. This is essentially a check to validate if the system has been setup.+ /// </summary>+ /// <returns></returns>[HttpGet("exists")]public async Task<ActionResult<bool>> AdminExists(){@@ -21,4 +25,4 @@ namespace API.Controllersreturn users.Count > 0;}}-}\ No newline at end of file+}diff --git a/API/Controllers/BookController.cs b/API/Controllers/BookController.csindex 7b4b49a9f..958582338 100644--- a/API/Controllers/BookController.cs+++ b/API/Controllers/BookController.cs@@ -1,5 +1,6 @@using System;using System.Collections.Generic;+using System.IO;using System.Linq;using System.Threading.Tasks;using API.Data;@@ -32,16 +33,43 @@ namespace API.Controllers_cacheService = cacheService;}+ /// <summary>+ /// Retrieves information for the PDF and Epub reader+ /// </summary>+ /// <remarks>This only applies to Epub or PDF files</remarks>+ /// <param name="chapterId"></param>+ /// <returns></returns>[HttpGet("{chapterId}/book-info")]public async Task<ActionResult<BookInfoDto>> GetBookInfo(int chapterId){var dto = await _unitOfWork.ChapterRepository.GetChapterInfoDtoAsync(chapterId);var bookTitle = string.Empty;- if (dto.SeriesFormat == MangaFormat.Epub)+ switch (dto.SeriesFormat){- var mangaFile = (await _unitOfWork.ChapterRepository.GetFilesForChapterAsync(chapterId)).First();- using var book = await EpubReader.OpenBookAsync(mangaFile.FilePath, BookService.BookReaderOptions);- bookTitle = book.Title;+ case MangaFormat.Epub:+ {+ var mangaFile = (await _unitOfWork.ChapterRepository.GetFilesForChapterAsync(chapterId)).First();+ using var book = await EpubReader.OpenBookAsync(mangaFile.FilePath, BookService.BookReaderOptions);+ bookTitle = book.Title;+ break;+ }+ case MangaFormat.Pdf:+ {+ var mangaFile = (await _unitOfWork.ChapterRepository.GetFilesForChapterAsync(chapterId)).First();+ if (string.IsNullOrEmpty(bookTitle))+ {+ // Override with filename+ bookTitle = Path.GetFileNameWithoutExtension(mangaFile.FilePath);+ }++ break;+ }+ case MangaFormat.Image:+ break;+ case MangaFormat.Archive:+ break;+ case MangaFormat.Unknown:+ break;}return Ok(new BookInfoDto()@@ -59,6 +87,12 @@ namespace API.Controllers});}+ /// <summary>+ /// This is an entry point to fetch resources from within an epub chapter/book.+ /// </summary>+ /// <param name="chapterId"></param>+ /// <param name="file"></param>+ /// <returns></returns>[HttpGet("{chapterId}/book-resources")]public async Task<ActionResult> GetBookPageResources(int chapterId, [FromQuery] string file){@@ -78,7 +112,7 @@ namespace API.Controllers/// <summary>/// This will return a list of mappings from ID -> page num. ID will be the xhtml key and page num will be the reading order- /// this is used to rewrite anchors in the book text so that we always load properly in FE+ /// this is used to rewrite anchors in the book text so that we always load properly in our reader./// </summary>/// <remarks>This is essentially building the table of contents</remarks>/// <param name="chapterId"></param>@@ -205,11 +239,18 @@ namespace API.Controllers}}+ /// <summary>+ /// This returns a single page within the epub book. All html will be rewritten to be scoped within our reader,+ /// all css is scoped, etc.+ /// </summary>+ /// <param name="chapterId"></param>+ /// <param name="page"></param>+ /// <returns></returns>[HttpGet("{chapterId}/book-page")]public async Task<ActionResult<string>> GetBookPage(int chapterId, [FromQuery] int page){var chapter = await _cacheService.Ensure(chapterId);- var path = _cacheService.GetCachedEpubFile(chapter.Id, chapter);+ var path = _cacheService.GetCachedFile(chapter);using var book = await EpubReader.OpenBookAsync(path, BookService.BookReaderOptions);var mappings = await _bookService.CreateKeyToPageMappingAsync(book);diff --git a/API/Controllers/DownloadController.cs b/API/Controllers/DownloadController.csindex 433f16721..d10478c49 100644--- a/API/Controllers/DownloadController.cs+++ b/API/Controllers/DownloadController.cs@@ -18,6 +18,9 @@ using Microsoft.Extensions.Logging;namespace API.Controllers{+ /// <summary>+ /// All APIs related to downloading entities from the system. Requires Download Role or Admin Role.+ /// </summary>[Authorize(Policy="RequireDownloadRole")]public class DownloadController : BaseApiController{@@ -42,6 +45,11 @@ namespace API.Controllers_bookmarkService = bookmarkService;}+ /// <summary>+ /// For a given volume, return the size in bytes+ /// </summary>+ /// <param name="volumeId"></param>+ /// <returns></returns>[HttpGet("volume-size")]public async Task<ActionResult<long>> GetVolumeSize(int volumeId){@@ -49,6 +57,11 @@ namespace API.Controllersreturn Ok(_directoryService.GetTotalSize(files.Select(c => c.FilePath)));}+ /// <summary>+ /// For a given chapter, return the size in bytes+ /// </summary>+ /// <param name="chapterId"></param>+ /// <returns></returns>[HttpGet("chapter-size")]public async Task<ActionResult<long>> GetChapterSize(int chapterId){@@ -56,6 +69,11 @@ namespace API.Controllersreturn Ok(_directoryService.GetTotalSize(files.Select(c => c.FilePath)));}+ /// <summary>+ /// For a series, return the size in bytes+ /// </summary>+ /// <param name="seriesId"></param>+ /// <returns></returns>[HttpGet("series-size")]public async Task<ActionResult<long>> GetSeriesSize(int seriesId){@@ -64,7 +82,11 @@ namespace API.Controllers}-+ /// <summary>+ /// Downloads all chapters within a volume.+ /// </summary>+ /// <param name="volumeId"></param>+ /// <returns></returns>[Authorize(Policy="RequireDownloadRole")][HttpGet("volume")]public async Task<ActionResult> DownloadVolume(int volumeId)diff --git a/API/Controllers/ImageController.cs b/API/Controllers/ImageController.csindex 2393d0ea6..b34b9f6b2 100644--- a/API/Controllers/ImageController.cs+++ b/API/Controllers/ImageController.cs@@ -10,7 +10,7 @@ using Microsoft.AspNetCore.Mvc;namespace API.Controllers{/// <summary>- /// Responsible for servicing up images stored in the DB+ /// Responsible for servicing up images stored in Kavita for entities/// </summary>public class ImageController : BaseApiController{diff --git a/API/Controllers/LibraryController.cs b/API/Controllers/LibraryController.csindex 85880a38d..7b99763a2 100644--- a/API/Controllers/LibraryController.cs+++ b/API/Controllers/LibraryController.cs@@ -6,7 +6,9 @@ using System.Threading.Tasks;using API.Data;using API.Data.Repositories;using API.DTOs;+using API.DTOs.JumpBar;using API.DTOs.Search;+using API.DTOs.System;using API.Entities;using API.Entities.Enums;using API.Extensions;@@ -88,11 +90,15 @@ namespace API.Controllers/// <returns></returns>[Authorize(Policy = "RequireAdminRole")][HttpGet("list")]- public ActionResult<IEnumerable<string>> GetDirectories(string path)+ public ActionResult<IEnumerable<DirectoryDto>> GetDirectories(string path){if (string.IsNullOrEmpty(path)){- return Ok(Directory.GetLogicalDrives());+ return Ok(Directory.GetLogicalDrives().Select(d => new DirectoryDto()+ {+ Name = d,+ FullPath = d+ }));}if (!Directory.Exists(path)) return BadRequest("This is not a valid path");@@ -106,6 +112,16 @@ namespace API.Controllersreturn Ok(await _unitOfWork.LibraryRepository.GetLibraryDtosAsync());}+ [HttpGet("jump-bar")]+ public async Task<ActionResult<IEnumerable<JumpKeyDto>>> GetJumpBar(int libraryId)+ {+ var userId = await _unitOfWork.UserRepository.GetUserIdByUsernameAsync(User.GetUsername());+ if (!await _unitOfWork.UserRepository.HasAccessToLibrary(libraryId, userId)) return BadRequest("User does not have access to library");++ return Ok(_unitOfWork.LibraryRepository.GetJumpBarAsync(libraryId));+ }++[Authorize(Policy = "RequireAdminRole")][HttpPost("grant-access")]public async Task<ActionResult<MemberDto>> UpdateUserLibraries(UpdateLibraryForUserDto updateLibraryForUserDto)@@ -166,6 +182,14 @@ namespace API.Controllersreturn Ok();}+ [Authorize(Policy = "RequireAdminRole")]+ [HttpPost("analyze")]+ public ActionResult Analyze(int libraryId)+ {+ _taskScheduler.AnalyzeFilesForLibrary(libraryId, true);+ return Ok();+ }+[HttpGet("libraries")]public async Task<ActionResult<IEnumerable<LibraryDto>>> GetLibrariesForUser(){@@ -215,6 +239,12 @@ namespace API.Controllers}}+ /// <summary>+ /// Updates an existing Library with new name, folders, and/or type.+ /// </summary>+ /// <remarks>Any folder or type change will invoke a scan.</remarks>+ /// <param name="libraryForUserDto"></param>+ /// <returns></returns>[Authorize(Policy = "RequireAdminRole")][HttpPost("update")]public async Task<ActionResult> UpdateLibrary(UpdateLibraryDto libraryForUserDto)@@ -226,10 +256,13 @@ namespace API.Controllerslibrary.Name = libraryForUserDto.Name;library.Folders = libraryForUserDto.Folders.Select(s => new FolderPath() {Path = s}).ToList();+ var typeUpdate = library.Type != libraryForUserDto.Type;+ library.Type = libraryForUserDto.Type;+_unitOfWork.LibraryRepository.Update(library);if (!await _unitOfWork.CommitAsync()) return BadRequest("There was a critical issue updating the library.");- if (originalFolders.Count != libraryForUserDto.Folders.Count())+ if (originalFolders.Count != libraryForUserDto.Folders.Count() || typeUpdate){_taskScheduler.ScanLibrary(library.Id);}diff --git a/API/Controllers/MetadataController.cs b/API/Controllers/MetadataController.csindex ea87456c0..7aee25c30 100644--- a/API/Controllers/MetadataController.cs+++ b/API/Controllers/MetadataController.cs@@ -83,7 +83,7 @@ public class MetadataController : BaseApiControllervar ids = libraryIds?.Split(",").Select(int.Parse).ToList();if (ids != null && ids.Count > 0){- return Ok(await _unitOfWork.SeriesRepository.GetAllAgeRatingsDtosForLibrariesAsync(ids));+ return Ok(await _unitOfWork.LibraryRepository.GetAllAgeRatingsDtosForLibrariesAsync(ids));}return Ok(Enum.GetValues<AgeRating>().Select(t => new AgeRatingDto()@@ -104,7 +104,7 @@ public class MetadataController : BaseApiControllervar ids = libraryIds?.Split(",").Select(int.Parse).ToList();if (ids is {Count: > 0}){- return Ok(_unitOfWork.SeriesRepository.GetAllPublicationStatusesDtosForLibrariesAsync(ids));+ return Ok(_unitOfWork.LibraryRepository.GetAllPublicationStatusesDtosForLibrariesAsync(ids));}return Ok(Enum.GetValues<PublicationStatus>().Select(t => new PublicationStatusDto()@@ -125,7 +125,7 @@ public class MetadataController : BaseApiControllervar ids = libraryIds?.Split(",").Select(int.Parse).ToList();if (ids is {Count: > 0}){- return Ok(await _unitOfWork.SeriesRepository.GetAllLanguagesForLibrariesAsync(ids));+ return Ok(await _unitOfWork.LibraryRepository.GetAllLanguagesForLibrariesAsync(ids));}var englishTag = CultureInfo.GetCultureInfo("en");@@ -149,4 +149,18 @@ public class MetadataController : BaseApiControllerIsoCode = c.IetfLanguageTag}).Where(l => !string.IsNullOrEmpty(l.IsoCode));}++ /// <summary>+ /// Returns summary for the chapter+ /// </summary>+ /// <param name="chapterId"></param>+ /// <returns></returns>+ [HttpGet("chapter-summary")]+ public async Task<ActionResult<string>> GetChapterSummary(int chapterId)+ {+ if (chapterId <= 0) return BadRequest("Chapter does not exist");+ var chapter = await _unitOfWork.ChapterRepository.GetChapterAsync(chapterId);+ if (chapter == null) return BadRequest("Chapter does not exist");+ return Ok(chapter.Summary);+ }}diff --git a/API/Controllers/OPDSController.cs b/API/Controllers/OPDSController.csindex a221f06c1..4dee326be 100644--- a/API/Controllers/OPDSController.cs+++ b/API/Controllers/OPDSController.cs@@ -604,6 +604,7 @@ public class OpdsController : BaseApiController/// <summary>/// Downloads a file/// </summary>+ /// <param name="apiKey">User's API Key</param>/// <param name="seriesId"></param>/// <param name="volumeId"></param>/// <param name="chapterId"></param>diff --git a/API/Controllers/ReaderController.cs b/API/Controllers/ReaderController.csindex 7ced84d6a..758c6d5ab 100644--- a/API/Controllers/ReaderController.cs+++ b/API/Controllers/ReaderController.cs@@ -8,9 +8,9 @@ using API.Data.Repositories;using API.DTOs;using API.DTOs.Reader;using API.Entities;+using API.Entities.Enums;using API.Extensions;using API.Services;-using API.Services.Tasks;using API.SignalR;using Hangfire;using Microsoft.AspNetCore.Mvc;@@ -44,6 +44,34 @@ namespace API.Controllers_eventHub = eventHub;}+ /// <summary>+ /// Returns the PDF for the chapterId.+ /// </summary>+ /// <param name="apiKey">API Key for user to validate they have access</param>+ /// <param name="chapterId"></param>+ /// <returns></returns>+ [HttpGet("pdf")]+ public async Task<ActionResult> GetPdf(int chapterId)+ {++ var chapter = await _cacheService.Ensure(chapterId);+ if (chapter == null) return BadRequest("There was an issue finding pdf file for reading");++ try+ {+ var path = _cacheService.GetCachedFile(chapter);+ if (string.IsNullOrEmpty(path) || !System.IO.File.Exists(path)) return BadRequest($"Pdf doesn't exist when it should.");++ Response.AddCacheHeader(path, TimeSpan.FromMinutes(60).Seconds);+ return PhysicalFile(path, "application/pdf", Path.GetFileName(path), true);+ }+ catch (Exception)+ {+ _cacheService.CleanupChapters(new []{ chapterId });+ throw;+ }+ }+/// <summary>/// Returns an image for a given chapter. Side effect: This will cache the chapter images for reading./// </summary>@@ -163,6 +191,11 @@ namespace API.Controllers}+ /// <summary>+ /// Marks a Series as read. All volumes and chapters will be marked as read during this process.+ /// </summary>+ /// <param name="markReadDto"></param>+ /// <returns></returns>[HttpPost("mark-read")]public async Task<ActionResult> MarkRead(MarkReadDto markReadDto){@@ -176,7 +209,7 @@ namespace API.Controllers/// <summary>- /// Marks a Series as Unread (progress)+ /// Marks a Series as Unread. All volumes and chapters will be marked as unread during this process./// </summary>/// <param name="markReadDto"></param>/// <returns></returns>@@ -424,6 +457,7 @@ namespace API.Controllers/// </summary>/// <remarks>This is built for Tachiyomi and is not expected to be called by any other place</remarks>/// <returns></returns>+ [Obsolete("Deprecated. Use 'Tachiyomi/mark-chapter-until-as-read'")][HttpPost("mark-chapter-until-as-read")]public async Task<ActionResult<bool>> MarkChaptersUntilAsRead(int seriesId, float chapterNumber){@@ -497,7 +531,7 @@ namespace API.Controllersuser.Bookmarks = user.Bookmarks.Where(bmk => bmk.SeriesId != dto.SeriesId).ToList();_unitOfWork.UserRepository.Update(user);- if (await _unitOfWork.CommitAsync())+ if (!_unitOfWork.HasChanges() || await _unitOfWork.CommitAsync()){try{@@ -626,5 +660,34 @@ namespace API.Controllersreturn await _readerService.GetPrevChapterIdAsync(seriesId, volumeId, currentChapterId, userId);}+ /// <summary>+ /// For the current user, returns an estimate on how long it would take to finish reading the series.+ /// </summary>+ /// <remarks>For Epubs, this does not check words inside a chapter due to overhead so may not work in all cases.</remarks>+ /// <param name="seriesId"></param>+ /// <returns></returns>+ [HttpGet("time-left")]+ public async Task<ActionResult<HourEstimateRangeDto>> GetEstimateToCompletion(int seriesId)+ {+ var userId = await _unitOfWork.UserRepository.GetUserIdByUsernameAsync(User.GetUsername());+ var series = await _unitOfWork.SeriesRepository.GetSeriesDtoByIdAsync(seriesId, userId);++ // Get all sum of all chapters with progress that is complete then subtract from series. Multiply by modifiers+ var progress = await _unitOfWork.AppUserProgressRepository.GetUserProgressForSeriesAsync(seriesId, userId);+ if (series.Format == MangaFormat.Epub)+ {+ var chapters =+ await _unitOfWork.ChapterRepository.GetChaptersByIdsAsync(progress.Select(p => p.ChapterId).ToList());+ // Word count+ var progressCount = chapters.Sum(c => c.WordCount);+ var wordsLeft = series.WordCount - progressCount;+ return _readerService.GetTimeEstimate(wordsLeft, 0, true);+ }++ var progressPageCount = progress.Sum(p => p.PagesRead);+ var pagesLeft = series.Pages - progressPageCount;+ return _readerService.GetTimeEstimate(0, pagesLeft, false);+ }+}}diff --git a/API/Controllers/ReadingListController.cs b/API/Controllers/ReadingListController.csindex 1b72b20d2..a4285431e 100644--- a/API/Controllers/ReadingListController.cs+++ b/API/Controllers/ReadingListController.cs@@ -72,8 +72,9 @@ namespace API.Controllers{var userId = await _unitOfWork.UserRepository.GetUserIdByUsernameAsync(User.GetUsername());var items = await _unitOfWork.ReadingListRepository.GetReadingListItemDtosByIdAsync(readingListId, userId);+ return Ok(items);- return Ok(await _unitOfWork.ReadingListRepository.AddReadingProgressModifiers(userId, items.ToList()));+ //return Ok(await _unitOfWork.ReadingListRepository.AddReadingProgressModifiers(userId, items.ToList()));}/// <summary>@@ -463,7 +464,7 @@ namespace API.Controllersvar existingChapterExists = readingList.Items.Select(rli => rli.ChapterId).ToHashSet();var chaptersForSeries = (await _unitOfWork.ChapterRepository.GetChaptersByIdsAsync(chapterIds))- .OrderBy(c => float.Parse(c.Volume.Name))+ .OrderBy(c => Parser.Parser.MinNumberFromRange(c.Volume.Name)).ThenBy(x => double.Parse(x.Number), _chapterSortComparerForInChapterSorting);var index = lastOrder + 1;diff --git a/API/Controllers/RecommendedController.cs b/API/Controllers/RecommendedController.csindex acd200b97..215b55397 100644--- a/API/Controllers/RecommendedController.cs+++ b/API/Controllers/RecommendedController.cs@@ -19,9 +19,10 @@ public class RecommendedController : BaseApiController/// <summary>- /// Quick Reads are series that are less than 2K pages in total.+ /// Quick Reads are series that should be readable in less than 10 in total and are not Ongoing in release./// </summary>/// <param name="libraryId">Library to restrict series to</param>+ /// <param name="userParams">Pagination</param>/// <returns></returns>[HttpGet("quick-reads")]public async Task<ActionResult<PagedList<SeriesDto>>> GetQuickReads(int libraryId, [FromQuery] UserParams userParams)@@ -35,10 +36,29 @@ public class RecommendedController : BaseApiControllerreturn Ok(series);}+ /// <summary>+ /// Quick Catchup Reads are series that should be readable in less than 10 in total and are Ongoing in release.+ /// </summary>+ /// <param name="libraryId">Library to restrict series to</param>+ /// <param name="userParams"></param>+ /// <returns></returns>+ [HttpGet("quick-catchup-reads")]+ public async Task<ActionResult<PagedList<SeriesDto>>> GetQuickCatchupReads(int libraryId, [FromQuery] UserParams userParams)+ {+ var user = await _unitOfWork.UserRepository.GetUserByUsernameAsync(User.GetUsername());++ userParams ??= new UserParams();+ var series = await _unitOfWork.SeriesRepository.GetQuickCatchupReads(user.Id, libraryId, userParams);++ Response.AddPaginationHeader(series.CurrentPage, series.PageSize, series.TotalCount, series.TotalPages);+ return Ok(series);+ }+/// <summary>/// Highly Rated based on other users ratings. Will pull series with ratings > 4.0, weighted by count of other users./// </summary>/// <param name="libraryId">Library to restrict series to</param>+ /// <param name="userParams">Pagination</param>/// <returns></returns>[HttpGet("highly-rated")]public async Task<ActionResult<PagedList<SeriesDto>>> GetHighlyRated(int libraryId, [FromQuery] UserParams userParams)@@ -56,6 +76,8 @@ public class RecommendedController : BaseApiController/// Chooses a random genre and shows series that are in that without reading progress/// </summary>/// <param name="libraryId">Library to restrict series to</param>+ /// <param name="genreId">Genre Id</param>+ /// <param name="userParams">Pagination</param>/// <returns></returns>[HttpGet("more-in")]public async Task<ActionResult<PagedList<SeriesDto>>> GetMoreIn(int libraryId, int genreId, [FromQuery] UserParams userParams)@@ -74,6 +96,7 @@ public class RecommendedController : BaseApiController/// Series that are fully read by the user in no particular order/// </summary>/// <param name="libraryId">Library to restrict series to</param>+ /// <param name="userParams">Pagination</param>/// <returns></returns>[HttpGet("rediscover")]public async Task<ActionResult<PagedList<SeriesDto>>> GetRediscover(int libraryId, [FromQuery] UserParams userParams)diff --git a/API/Controllers/SeriesController.cs b/API/Controllers/SeriesController.csindex 34e90d818..76fa78fef 100644--- a/API/Controllers/SeriesController.cs+++ b/API/Controllers/SeriesController.cs@@ -269,6 +269,14 @@ namespace API.Controllersreturn Ok();}+ [Authorize(Policy = "RequireAdminRole")]+ [HttpPost("analyze")]+ public ActionResult AnalyzeSeries(RefreshSeriesDto refreshSeriesDto)+ {+ _taskScheduler.AnalyzeFilesForSeries(refreshSeriesDto.LibraryId, refreshSeriesDto.SeriesId, true);+ return Ok();+ }+[HttpGet("metadata")]public async Task<ActionResult<SeriesMetadataDto>> GetSeriesMetadata(int seriesId){@@ -386,6 +394,8 @@ namespace API.Controllersreturn Ok(await _unitOfWork.SeriesRepository.GetRelatedSeries(userId, seriesId));}++[Authorize(Policy="RequireAdminRole")][HttpPost("update-related")]public async Task<ActionResult> UpdateRelatedSeries(UpdateRelatedSeriesDto dto)diff --git a/API/Controllers/ServerController.cs b/API/Controllers/ServerController.csindex 222243fdc..f49a7e092 100644--- a/API/Controllers/ServerController.cs+++ b/API/Controllers/ServerController.cs@@ -1,19 +1,24 @@using System;+using System.Collections;using System.Collections.Generic;using System.IO;+using System.Linq;using System.Threading.Tasks;+using API.DTOs.Jobs;using API.DTOs.Stats;using API.DTOs.Update;using API.Extensions;using API.Services;using API.Services.Tasks;using Hangfire;+using Hangfire.Storage;using Kavita.Common;using Microsoft.AspNetCore.Authorization;using Microsoft.AspNetCore.Mvc;using Microsoft.Extensions.Configuration;using Microsoft.Extensions.Hosting;using Microsoft.Extensions.Logging;+using TaskScheduler = System.Threading.Tasks.TaskScheduler;namespace API.Controllers{@@ -29,10 +34,11 @@ namespace API.Controllersprivate readonly IStatsService _statsService;private readonly ICleanupService _cleanupService;private readonly IEmailService _emailService;+ private readonly IBookmarkService _bookmarkService;public ServerController(IHostApplicationLifetime applicationLifetime, ILogger<ServerController> logger, IConfiguration config,IBackupService backupService, IArchiveService archiveService, IVersionUpdaterService versionUpdaterService, IStatsService statsService,- ICleanupService cleanupService, IEmailService emailService)+ ICleanupService cleanupService, IEmailService emailService, IBookmarkService bookmarkService){_applicationLifetime = applicationLifetime;_logger = logger;@@ -43,6 +49,7 @@ namespace API.Controllers_statsService = statsService;_cleanupService = cleanupService;_emailService = emailService;+ _bookmarkService = bookmarkService;}/// <summary>@@ -76,11 +83,10 @@ namespace API.Controllers/// </summary>/// <returns></returns>[HttpPost("backup-db")]- public async Task<ActionResult> BackupDatabase()+ public ActionResult BackupDatabase(){_logger.LogInformation("{UserName} is backing up database of server from admin dashboard", User.GetUsername());- await _backupService.BackupDatabase();-+ RecurringJob.Trigger("backup");return Ok();}@@ -94,6 +100,17 @@ namespace API.Controllersreturn Ok(await _statsService.GetServerInfo());}+ /// <summary>+ /// Triggers the scheduling of the convert bookmarks job. Only one job will run at a time.+ /// </summary>+ /// <returns></returns>+ [HttpPost("convert-bookmarks")]+ public ActionResult ScheduleConvertBookmarks()+ {+ BackgroundJob.Enqueue(() => _bookmarkService.ConvertAllBookmarkToWebP());+ return Ok();+ }+[HttpGet("logs")]public async Task<ActionResult> GetLogs(){@@ -101,7 +118,7 @@ namespace API.Controllerstry{var (fileBytes, zipPath) = await _archiveService.CreateZipForDownload(files, "logs");- return File(fileBytes, "application/zip", Path.GetFileName(zipPath));+ return File(fileBytes, "application/zip", Path.GetFileName(zipPath), true);}catch (KavitaException ex){@@ -134,5 +151,24 @@ namespace API.Controllers{return await _emailService.CheckIfAccessible(Request.Host.ToString());}++ [HttpGet("jobs")]+ public ActionResult<IEnumerable<JobDto>> GetJobs()+ {+ var recurringJobs = Hangfire.JobStorage.Current.GetConnection().GetRecurringJobs().Select(+ dto =>+ new JobDto() {+ Id = dto.Id,+ Title = dto.Id.Replace('-', ' '),+ Cron = dto.Cron,+ CreatedAt = dto.CreatedAt,+ LastExecution = dto.LastExecution,+ });++ // For now, let's just do something simple+ //var enqueuedJobs = JobStorage.Current.GetMonitoringApi().EnqueuedJobs("default", 0, int.MaxValue);+ return Ok(recurringJobs);++ }}}diff --git a/API/Controllers/SettingsController.cs b/API/Controllers/SettingsController.csindex 88207bf3c..a712a39cc 100644--- a/API/Controllers/SettingsController.cs+++ b/API/Controllers/SettingsController.cs@@ -54,9 +54,6 @@ namespace API.Controllerspublic async Task<ActionResult<ServerSettingDto>> GetSettings(){var settingsDto = await _unitOfWork.SettingsRepository.GetSettingsDtoAsync();- // TODO: Is this needed as it gets updated in the DB on startup- settingsDto.Port = Configuration.Port;- settingsDto.LoggingLevel = Configuration.LogLevel;return Ok(settingsDto);}@@ -169,6 +166,13 @@ namespace API.Controllers_unitOfWork.SettingsRepository.Update(setting);}+ if (setting.Key == ServerSettingKey.ConvertBookmarkToWebP && updateSettingsDto.ConvertBookmarkToWebP + string.Empty != setting.Value)+ {+ setting.Value = updateSettingsDto.ConvertBookmarkToWebP + string.Empty;+ _unitOfWork.SettingsRepository.Update(setting);+ }++if (setting.Key == ServerSettingKey.BookmarkDirectory && bookmarkDirectory != setting.Value){// Validate new directory can be used@@ -199,6 +203,22 @@ namespace API.Controllers}}+ if (setting.Key == ServerSettingKey.EnableSwaggerUi && updateSettingsDto.EnableSwaggerUi + string.Empty != setting.Value)+ {+ setting.Value = updateSettingsDto.EnableSwaggerUi + string.Empty;+ _unitOfWork.SettingsRepository.Update(setting);+ }++ if (setting.Key == ServerSettingKey.TotalBackups && updateSettingsDto.TotalBackups + string.Empty != setting.Value)+ {+ if (updateSettingsDto.TotalBackups > 30 || updateSettingsDto.TotalBackups < 1)+ {+ return BadRequest("Total Backups must be between 1 and 30");+ }+ setting.Value = updateSettingsDto.TotalBackups + string.Empty;+ _unitOfWork.SettingsRepository.Update(setting);+ }+if (setting.Key == ServerSettingKey.EmailServiceUrl && updateSettingsDto.EmailServiceUrl + string.Empty != setting.Value){setting.Value = string.IsNullOrEmpty(updateSettingsDto.EmailServiceUrl) ? EmailService.DefaultApiUrl : updateSettingsDto.EmailServiceUrl;diff --git a/API/Controllers/TachiyomiController.cs b/API/Controllers/TachiyomiController.csnew file mode 100644index 000000000..5a9fdeded--- /dev/null+++ b/API/Controllers/TachiyomiController.cs@@ -0,0 +1,130 @@+using System.Collections.Generic;+using System.Collections.Immutable;+using System.Linq;+using System.Threading.Tasks;+using API.Comparators;+using API.Data;+using API.Data.Repositories;+using API.DTOs;+using API.Entities;+using API.Extensions;+using API.Services;+using AutoMapper;+using Microsoft.AspNetCore.Mvc;++namespace API.Controllers;++/// <summary>+/// All APIs are for Tachiyomi extension and app. They have hacks for our implementation and should not be used for any+/// other purposes.+/// </summary>+public class TachiyomiController : BaseApiController+{+ private readonly IUnitOfWork _unitOfWork;+ private readonly IReaderService _readerService;+ private readonly IMapper _mapper;++ public TachiyomiController(IUnitOfWork unitOfWork, IReaderService readerService, IMapper mapper)+ {+ _unitOfWork = unitOfWork;+ _readerService = readerService;+ _mapper = mapper;+ }++ /// <summary>+ /// Given the series Id, this should return the latest chapter that has been fully read.+ /// </summary>+ /// <param name="seriesId"></param>+ /// <returns>ChapterDTO of latest chapter. Only Chapter number is used by consuming app. All other fields may be missing.</returns>+ [HttpGet("latest-chapter")]+ public async Task<ActionResult<ChapterDto>> GetLatestChapter(int seriesId)+ {+ var userId = await _unitOfWork.UserRepository.GetUserIdByUsernameAsync(User.GetUsername());++ var currentChapter = await _readerService.GetContinuePoint(seriesId, userId);++ var prevChapterId =+ await _readerService.GetPrevChapterIdAsync(seriesId, currentChapter.VolumeId, currentChapter.Id, userId);++ // If prevChapterId is -1, this means either nothing is read or everything is read.+ if (prevChapterId == -1)+ {+ var userWithProgress = await _unitOfWork.UserRepository.GetUserByIdAsync(userId, AppUserIncludes.Progress);+ var userHasProgress =+ userWithProgress.Progresses.Any(x => x.SeriesId == seriesId);++ // If the user doesn't have progress, then return null, which the extension will catch as 204 (no content) and report nothing as read+ if (!userHasProgress) return null;++ // Else return the max chapter to Tachiyomi so it can consider everything read+ var volumes = (await _unitOfWork.VolumeRepository.GetVolumes(seriesId)).ToImmutableList();+ var looseLeafChapterVolume = volumes.FirstOrDefault(v => v.Number == 0);+ if (looseLeafChapterVolume == null)+ {+ var volumeChapter = _mapper.Map<ChapterDto>(volumes.Last().Chapters.OrderBy(c => float.Parse(c.Number), new ChapterSortComparerZeroFirst()).Last());+ return Ok(new ChapterDto()+ {+ Number = $"{int.Parse(volumeChapter.Number) / 100f}"+ });+ }++ var lastChapter = looseLeafChapterVolume.Chapters.OrderBy(c => float.Parse(c.Number), new ChapterSortComparer()).Last();+ return Ok(_mapper.Map<ChapterDto>(lastChapter));+ }++ // There is progress, we now need to figure out the highest volume or chapter and return that.+ var prevChapter = await _unitOfWork.ChapterRepository.GetChapterDtoAsync(prevChapterId);+ var volumeWithProgress = await _unitOfWork.VolumeRepository.GetVolumeDtoAsync(prevChapter.VolumeId, userId);+ if (volumeWithProgress.Number != 0)+ {+ // The progress is on a volume, encode it as a fake chapterDTO+ return Ok(new ChapterDto()+ {+ Number = $"{volumeWithProgress.Number / 100f}"+ });+ }++ // Progress is just on a chapter, return as is+ return Ok(prevChapter);+ }++ /// <summary>+ /// Marks every chapter that is sorted below the passed number as Read. This will not mark any specials as read.+ /// </summary>+ /// <remarks>This is built for Tachiyomi and is not expected to be called by any other place</remarks>+ /// <returns></returns>+ [HttpPost("mark-chapter-until-as-read")]+ public async Task<ActionResult<bool>> MarkChaptersUntilAsRead(int seriesId, float chapterNumber)+ {+ var user = await _unitOfWork.UserRepository.GetUserByUsernameAsync(User.GetUsername(), AppUserIncludes.Progress);+ user.Progresses ??= new List<AppUserProgress>();++ switch (chapterNumber)+ {+ // When Tachiyomi sync's progress, if there is no current progress in Tachiyomi, 0.0f is sent.+ // Due to the encoding for volumes, this marks all chapters in volume 0 (loose chapters) as read.+ // Hence we catch and return early, so we ignore the request.+ case 0.0f:+ return true;+ case < 1.0f:+ {+ // This is a hack to track volume number. We need to map it back by x100+ var volumeNumber = int.Parse($"{chapterNumber * 100f}");+ await _readerService.MarkVolumesUntilAsRead(user, seriesId, volumeNumber);+ break;+ }+ default:+ await _readerService.MarkChaptersUntilAsRead(user, seriesId, chapterNumber);+ break;+ }+++ _unitOfWork.UserRepository.Update(user);++ if (!_unitOfWork.HasChanges()) return Ok(true);+ if (await _unitOfWork.CommitAsync()) return Ok(true);++ await _unitOfWork.RollbackAsync();+ return Ok(false);+ }+}diff --git a/API/Controllers/UsersController.cs b/API/Controllers/UsersController.csindex 97dae76a4..7b7cf492d 100644--- a/API/Controllers/UsersController.cs+++ b/API/Controllers/UsersController.cs@@ -6,6 +6,7 @@ using API.Data.Repositories;using API.DTOs;using API.Entities.Enums;using API.Extensions;+using API.SignalR;using AutoMapper;using Microsoft.AspNetCore.Authorization;using Microsoft.AspNetCore.Mvc;@@ -17,11 +18,13 @@ namespace API.Controllers{private readonly IUnitOfWork _unitOfWork;private readonly IMapper _mapper;+ private readonly IEventHub _eventHub;- public UsersController(IUnitOfWork unitOfWork, IMapper mapper)+ public UsersController(IUnitOfWork unitOfWork, IMapper mapper, IEventHub eventHub){_unitOfWork = unitOfWork;_mapper = mapper;+ _eventHub = eventHub;}[Authorize(Policy = "RequireAdminRole")]@@ -69,7 +72,9 @@ namespace API.Controllers[HttpPost("update-preferences")]public async Task<ActionResult<UserPreferencesDto>> UpdatePreferences(UserPreferencesDto preferencesDto){- var existingPreferences = await _unitOfWork.UserRepository.GetPreferencesAsync(User.GetUsername());+ var user = await _unitOfWork.UserRepository.GetUserByUsernameAsync(User.GetUsername(),+ AppUserIncludes.UserPreferences);+ var existingPreferences = user.UserPreferences;existingPreferences.ReadingDirection = preferencesDto.ReadingDirection;existingPreferences.ScalingOption = preferencesDto.ScalingOption;@@ -87,17 +92,18 @@ namespace API.ControllersexistingPreferences.BookReaderReadingDirection = preferencesDto.BookReaderReadingDirection;preferencesDto.Theme ??= await _unitOfWork.SiteThemeRepository.GetDefaultTheme();existingPreferences.BookThemeName = preferencesDto.BookReaderThemeName;- existingPreferences.PageLayoutMode = preferencesDto.BookReaderLayoutMode;+ existingPreferences.BookReaderLayoutMode = preferencesDto.BookReaderLayoutMode;existingPreferences.BookReaderImmersiveMode = preferencesDto.BookReaderImmersiveMode;+ existingPreferences.GlobalPageLayoutMode = preferencesDto.GlobalPageLayoutMode;+ existingPreferences.BlurUnreadSummaries = preferencesDto.BlurUnreadSummaries;existingPreferences.Theme = await _unitOfWork.SiteThemeRepository.GetThemeById(preferencesDto.Theme.Id);-- // TODO: Remove this code - this overrides layout mode to be single until the mode is released- existingPreferences.LayoutMode = LayoutMode.Single;+ existingPreferences.LayoutMode = preferencesDto.LayoutMode;_unitOfWork.UserRepository.Update(existingPreferences);if (await _unitOfWork.CommitAsync()){+ await _eventHub.SendMessageToAsync(MessageFactory.UserUpdate, MessageFactory.UserUpdateEvent(user.Id, user.UserName), user.Id);return Ok(preferencesDto);}diff --git a/API/DTOs/ChapterDto.cs b/API/DTOs/ChapterDto.csindex e22046b60..beccf26d0 100644--- a/API/DTOs/ChapterDto.cs+++ b/API/DTOs/ChapterDto.cs@@ -1,6 +1,9 @@using System;using System.Collections.Generic;using API.DTOs.Metadata;+using API.DTOs.Reader;+using API.Entities.Enums;+using API.Entities.Interfaces;namespace API.DTOs{@@ -8,7 +11,7 @@ namespace API.DTOs/// A Chapter is the lowest grouping of a reading medium. A Chapter contains a set of MangaFiles which represents the underlying/// file (abstracted from type)./// </summary>- public class ChapterDto+ public class ChapterDto : IHasReadTimeEstimate{public int Id { get; init; }/// <summary>@@ -61,5 +64,30 @@ namespace API.DTOs/// </summary>/// <remarks>Metadata field</remarks>public string TitleName { get; set; }+ /// <summary>+ /// Summary of the Chapter+ /// </summary>+ /// <remarks>This is not set normally, only for Series Detail</remarks>+ public string Summary { get; init; }+ /// <summary>+ /// Age Rating for the issue/chapter+ /// </summary>+ public AgeRating AgeRating { get; init; }+ /// <summary>+ /// Total words in a Chapter (books only)+ /// </summary>+ public long WordCount { get; set; } = 0L;++ /// <summary>+ /// Formatted Volume title ie) Volume 2.+ /// </summary>+ /// <remarks>Only available when fetched from Series Detail API</remarks>+ public string VolumeTitle { get; set; } = string.Empty;+ /// <inheritdoc cref="IHasReadTimeEstimate.MinHoursToRead"/>+ public int MinHoursToRead { get; set; }+ /// <inheritdoc cref="IHasReadTimeEstimate.MaxHoursToRead"/>+ public int MaxHoursToRead { get; set; }+ /// <inheritdoc cref="IHasReadTimeEstimate.AvgHoursToRead"/>+ public int AvgHoursToRead { get; set; }}}diff --git a/API/DTOs/Filtering/SortField.cs b/API/DTOs/Filtering/SortField.csindex 3d78494bd..fbb1d511a 100644--- a/API/DTOs/Filtering/SortField.cs+++ b/API/DTOs/Filtering/SortField.cs@@ -2,8 +2,24 @@public enum SortField{+ /// <summary>+ /// Sort Name of Series+ /// </summary>SortName = 1,+ /// <summary>+ /// Date entity was created/imported into Kavita+ /// </summary>CreatedDate = 2,+ /// <summary>+ /// Date entity was last modified (tag update, etc)+ /// </summary>LastModifiedDate = 3,- LastChapterAdded = 4+ /// <summary>+ /// Date series had a chapter added to it+ /// </summary>+ LastChapterAdded = 4,+ /// <summary>+ /// Time it takes to read. Uses Average.+ /// </summary>+ TimeToRead = 5}diff --git a/API/DTOs/Jobs/JobDto.cs b/API/DTOs/Jobs/JobDto.csnew file mode 100644index 000000000..5af700528--- /dev/null+++ b/API/DTOs/Jobs/JobDto.cs@@ -0,0 +1,24 @@+using System;++namespace API.DTOs.Jobs;++public class JobDto+{+ /// <summary>+ /// Job Id+ /// </summary>+ public string Id { get; set; }+ /// <summary>+ /// Human Readable title for the Job+ /// </summary>+ public string Title { get; set; }+ /// <summary>+ /// When the job was created+ /// </summary>+ public DateTime? CreatedAt { get; set; }+ /// <summary>+ /// Last time the job was run+ /// </summary>+ public DateTime? LastExecution { get; set; }+ public string Cron { get; set; }+}diff --git a/API/DTOs/JumpBar/JumpKeyDto.cs b/API/DTOs/JumpBar/JumpKeyDto.csnew file mode 100644index 000000000..44545b65a--- /dev/null+++ b/API/DTOs/JumpBar/JumpKeyDto.cs@@ -0,0 +1,20 @@+namespace API.DTOs.JumpBar;++/// <summary>+/// Represents an individual button in a Jump Bar+/// </summary>+public class JumpKeyDto+{+ /// <summary>+ /// Number of items in this Key+ /// </summary>+ public int Size { get; set; }+ /// <summary>+ /// Code to use in URL (url encoded)+ /// </summary>+ public string Key { get; set; }+ /// <summary>+ /// What is visible to user+ /// </summary>+ public string Title { get; set; }+}diff --git a/API/DTOs/Metadata/ChapterMetadataDto.cs b/API/DTOs/Metadata/ChapterMetadataDto.csindex 7b81fb099..2c3add195 100644--- a/API/DTOs/Metadata/ChapterMetadataDto.cs+++ b/API/DTOs/Metadata/ChapterMetadataDto.cs@@ -47,6 +47,10 @@ namespace API.DTOs.Metadata/// Total number of issues for the series/// </summary>public int TotalCount { get; set; }+ /// <summary>+ /// Number of Words for this chapter. Only applies to Epub+ /// </summary>+ public long WordCount { get; set; }}}diff --git a/API/DTOs/Reader/HourEstimateRangeDto.cs b/API/DTOs/Reader/HourEstimateRangeDto.csnew file mode 100644index 000000000..4343e2e93--- /dev/null+++ b/API/DTOs/Reader/HourEstimateRangeDto.cs@@ -0,0 +1,20 @@+namespace API.DTOs.Reader;++/// <summary>+/// A range of time to read a selection (series, chapter, etc)+/// </summary>+public record HourEstimateRangeDto+{+ /// <summary>+ /// Min hours to read the selection+ /// </summary>+ public int MinHours { get; init; } = 1;+ /// <summary>+ /// Max hours to read the selection+ /// </summary>+ public int MaxHours { get; init; } = 1;+ /// <summary>+ /// Estimated average hours to read the selection+ /// </summary>+ public int AvgHours { get; init; } = 1;+}diff --git a/API/DTOs/ReadingLists/ReadingListDto.cs b/API/DTOs/ReadingLists/ReadingListDto.csindex 3eb5ded79..ba446d17a 100644--- a/API/DTOs/ReadingLists/ReadingListDto.cs+++ b/API/DTOs/ReadingLists/ReadingListDto.cs@@ -10,5 +10,9 @@/// </summary>public bool Promoted { get; set; }public bool CoverImageLocked { get; set; }+ /// <summary>+ /// This is used to tell the UI if it should request a Cover Image or not. If null or empty, it has not been set.+ /// </summary>+ public string CoverImage { get; set; } = string.Empty;}}diff --git a/API/DTOs/SeriesDetail/SeriesDetailDto.cs b/API/DTOs/SeriesDetail/SeriesDetailDto.csindex e0a1b0ee8..9bc8a97d8 100644--- a/API/DTOs/SeriesDetail/SeriesDetailDto.cs+++ b/API/DTOs/SeriesDetail/SeriesDetailDto.cs@@ -1,6 +1,6 @@using System.Collections.Generic;-namespace API.DTOs;+namespace API.DTOs.SeriesDetail;/// <summary>/// This is a special DTO for a UI page in Kavita. This performs sorting and grouping and returns exactly what UI requires for layout.diff --git a/API/DTOs/SeriesDto.cs b/API/DTOs/SeriesDto.csindex a5756ceca..b5fc63473 100644--- a/API/DTOs/SeriesDto.cs+++ b/API/DTOs/SeriesDto.cs@@ -1,9 +1,10 @@using System;using API.Entities.Enums;+using API.Entities.Interfaces;namespace API.DTOs{- public class SeriesDto+ public class SeriesDto : IHasReadTimeEstimate{public int Id { get; init; }public string Name { get; init; }@@ -40,8 +41,18 @@ namespace API.DTOspublic bool NameLocked { get; set; }public bool SortNameLocked { get; set; }public bool LocalizedNameLocked { get; set; }+ /// <summary>+ /// Total number of words for the series. Only applies to epubs.+ /// </summary>+ public long WordCount { get; set; }public int LibraryId { get; set; }public string LibraryName { get; set; }+ /// <inheritdoc cref="IHasReadTimeEstimate.MinHoursToRead"/>+ public int MinHoursToRead { get; set; }+ /// <inheritdoc cref="IHasReadTimeEstimate.MaxHoursToRead"/>+ public int MaxHoursToRead { get; set; }+ /// <inheritdoc cref="IHasReadTimeEstimate.AvgHoursToRead"/>+ public int AvgHoursToRead { get; set; }}}diff --git a/API/DTOs/Settings/ServerSettingDTO.cs b/API/DTOs/Settings/ServerSettingDTO.csindex d3abaa313..8de3a692f 100644--- a/API/DTOs/Settings/ServerSettingDTO.cs+++ b/API/DTOs/Settings/ServerSettingDTO.cs@@ -1,4 +1,5 @@-using API.Services;+using System.Collections.Generic;+using API.Services;namespace API.DTOs.Settings{@@ -38,5 +39,17 @@ namespace API.DTOs.Settings/// <remarks>If null or empty string, will default back to default install setting aka <see cref="EmailService.DefaultApiUrl"/></remarks>public string EmailServiceUrl { get; set; }public string InstallVersion { get; set; }++ public bool ConvertBookmarkToWebP { get; set; }+ /// <summary>+ /// If the Swagger UI Should be exposed. Does not require authentication, but does require a JWT.+ /// </summary>+ public bool EnableSwaggerUi { get; set; }++ /// <summary>+ /// The amount of Backups before cleanup+ /// </summary>+ /// <remarks>Value should be between 1 and 30</remarks>+ public int TotalBackups { get; set; } = 30;}}diff --git a/API/DTOs/Stats/ServerInfoDto.cs b/API/DTOs/Stats/ServerInfoDto.csindex 45a73236b..4b037a108 100644--- a/API/DTOs/Stats/ServerInfoDto.cs+++ b/API/DTOs/Stats/ServerInfoDto.cs@@ -2,49 +2,122 @@namespace API.DTOs.Stats{+ /// <summary>+ /// Represents information about a Kavita Installation+ /// </summary>public class ServerInfoDto{+ /// <summary>+ /// Unique Id that represents a unique install+ /// </summary>public string InstallId { get; set; }public string Os { get; set; }+ /// <summary>+ /// If the Kavita install is using Docker+ /// </summary>public bool IsDocker { get; set; }+ /// <summary>+ /// Version of .NET instance is running+ /// </summary>public string DotnetVersion { get; set; }+ /// <summary>+ /// Version of Kavita+ /// </summary>public string KavitaVersion { get; set; }+ /// <summary>+ /// Number of Cores on the instance+ /// </summary>public int NumOfCores { get; set; }+ /// <summary>+ /// The number of libraries on the instance+ /// </summary>public int NumberOfLibraries { get; set; }+ /// <summary>+ /// Does any user have bookmarks+ /// </summary>public bool HasBookmarks { get; set; }/// <summary>/// The site theme the install is using/// </summary>+ /// <remarks>Introduced in v0.5.2</remarks>public string ActiveSiteTheme { get; set; }-/// <summary>/// The reading mode the main user has as a preference/// </summary>+ /// <remarks>Introduced in v0.5.2</remarks>public ReaderMode MangaReaderMode { get; set; }/// <summary>/// Number of users on the install/// </summary>+ /// <remarks>Introduced in v0.5.2</remarks>public int NumberOfUsers { get; set; }/// <summary>/// Number of collections on the install/// </summary>+ /// <remarks>Introduced in v0.5.2</remarks>public int NumberOfCollections { get; set; }-/// <summary>/// Number of reading lists on the install (Sum of all users)/// </summary>+ /// <remarks>Introduced in v0.5.2</remarks>public int NumberOfReadingLists { get; set; }-/// <summary>/// Is OPDS enabled/// </summary>+ /// <remarks>Introduced in v0.5.2</remarks>public bool OPDSEnabled { get; set; }-/// <summary>/// Total number of files in the instance/// </summary>+ /// <remarks>Introduced in v0.5.2</remarks>public int TotalFiles { get; set; }+ /// <summary>+ /// Total number of Genres in the instance+ /// </summary>+ /// <remarks>Introduced in v0.5.4</remarks>+ public int TotalGenres { get; set; }+ /// <summary>+ /// Total number of People in the instance+ /// </summary>+ /// <remarks>Introduced in v0.5.4</remarks>+ public int TotalPeople { get; set; }+ /// <summary>+ /// Is this instance storing bookmarks as WebP+ /// </summary>+ /// <remarks>Introduced in v0.5.4</remarks>+ public bool StoreBookmarksAsWebP { get; set; }+ /// <summary>+ /// Number of users on this instance using Card Layout+ /// </summary>+ /// <remarks>Introduced in v0.5.4</remarks>+ public int UsersOnCardLayout { get; set; }+ /// <summary>+ /// Number of users on this instance using List Layout+ /// </summary>+ /// <remarks>Introduced in v0.5.4</remarks>+ public int UsersOnListLayout { get; set; }+ /// <summary>+ /// Max number of Series for any library on the instance+ /// </summary>+ /// <remarks>Introduced in v0.5.4</remarks>+ public int MaxSeriesInALibrary { get; set; }+ /// <summary>+ /// Max number of Volumes for any library on the instance+ /// </summary>+ /// <remarks>Introduced in v0.5.4</remarks>+ public int MaxVolumesInASeries { get; set; }+ /// <summary>+ /// Max number of Chapters for any library on the instance+ /// </summary>+ /// <remarks>Introduced in v0.5.4</remarks>+ public int MaxChaptersInASeries { get; set; }+ /// <summary>+ /// Does this instance have relationships setup between series+ /// </summary>+ /// <remarks>Introduced in v0.5.4</remarks>+ public bool UsingSeriesRelationships { get; set; }+}}diff --git a/API/DTOs/System/DirectoryDto.cs b/API/DTOs/System/DirectoryDto.csnew file mode 100644index 000000000..7f254c649--- /dev/null+++ b/API/DTOs/System/DirectoryDto.cs@@ -0,0 +1,13 @@+namespace API.DTOs.System;++public class DirectoryDto+{+ /// <summary>+ /// Name of the directory+ /// </summary>+ public string Name { get; set; }+ /// <summary>+ /// Full Directory Path+ /// </summary>+ public string FullPath { get; set; }+}diff --git a/API/DTOs/UpdateLibraryDto.cs b/API/DTOs/UpdateLibraryDto.csindex 0a922172a..f0908c7a2 100644--- a/API/DTOs/UpdateLibraryDto.cs+++ b/API/DTOs/UpdateLibraryDto.cs@@ -1,4 +1,5 @@using System.Collections.Generic;+using API.Entities.Enums;namespace API.DTOs{@@ -6,6 +7,7 @@ namespace API.DTOs{public int Id { get; init; }public string Name { get; init; }+ public LibraryType Type { get; set; }public IEnumerable<string> Folders { get; init; }}-}\ No newline at end of file+}diff --git a/API/DTOs/Uploads/UploadFileDto.cs b/API/DTOs/Uploads/UploadFileDto.csindex 68a5f7de0..42b889903 100644--- a/API/DTOs/Uploads/UploadFileDto.cs+++ b/API/DTOs/Uploads/UploadFileDto.cs@@ -7,7 +7,7 @@/// </summary>public int Id { get; set; }/// <summary>- /// Url of the file to download from (can be null)+ /// Base Url encoding of the file to upload from (can be null)/// </summary>public string Url { get; set; }}diff --git a/API/DTOs/UserPreferencesDto.cs b/API/DTOs/UserPreferencesDto.csindex 4fc2f6904..063b07726 100644--- a/API/DTOs/UserPreferencesDto.cs+++ b/API/DTOs/UserPreferencesDto.cs@@ -1,6 +1,7 @@using API.DTOs.Theme;using API.Entities;using API.Entities.Enums;+using API.Entities.Enums.UserPreferences;namespace API.DTOs{@@ -82,5 +83,15 @@ namespace API.DTOs/// </summary>/// <remarks>Defaults to false</remarks>public bool BookReaderImmersiveMode { get; set; } = false;+ /// <summary>+ /// Global Site Option: If the UI should layout items as Cards or List items+ /// </summary>+ /// <remarks>Defaults to Cards</remarks>+ public PageLayoutMode GlobalPageLayoutMode { get; set; } = PageLayoutMode.Cards;+ /// <summary>+ /// UI Site Global Setting: If unread summaries should be blurred until expanded or unless user has read it already+ /// </summary>+ /// <remarks>Defaults to false</remarks>+ public bool BlurUnreadSummaries { get; set; } = false;}}diff --git a/API/DTOs/VolumeDto.cs b/API/DTOs/VolumeDto.csindex 3e719346f..4136cf70c 100644--- a/API/DTOs/VolumeDto.cs+++ b/API/DTOs/VolumeDto.cs@@ -1,10 +1,11 @@using System;using System.Collections.Generic;+using API.Entities.Interfaces;namespace API.DTOs{- public class VolumeDto+ public class VolumeDto : IHasReadTimeEstimate{public int Id { get; set; }public int Number { get; set; }@@ -15,5 +16,11 @@ namespace API.DTOspublic DateTime Created { get; set; }public int SeriesId { get; set; }public ICollection<ChapterDto> Chapters { get; set; }+ /// <inheritdoc cref="IHasReadTimeEstimate.MinHoursToRead"/>+ public int MinHoursToRead { get; set; }+ /// <inheritdoc cref="IHasReadTimeEstimate.MaxHoursToRead"/>+ public int MaxHoursToRead { get; set; }+ /// <inheritdoc cref="IHasReadTimeEstimate.AvgHoursToRead"/>+ public int AvgHoursToRead { get; set; }}}diff --git a/API/Data/DataContext.cs b/API/Data/DataContext.csindex 154cdf2fc..7b2ca2654 100644--- a/API/Data/DataContext.cs+++ b/API/Data/DataContext.cs@@ -3,6 +3,7 @@ using System.Linq;using System.Threading;using System.Threading.Tasks;using API.Entities;+using API.Entities.Enums.UserPreferences;using API.Entities.Interfaces;using API.Entities.Metadata;using Microsoft.AspNetCore.Identity;@@ -78,10 +79,14 @@ namespace API.Databuilder.Entity<AppUserPreferences>().Property(b => b.BackgroundColor).HasDefaultValue("#000000");++ builder.Entity<AppUserPreferences>()+ .Property(b => b.GlobalPageLayoutMode)+ .HasDefaultValue(PageLayoutMode.Cards);}- static void OnEntityTracked(object sender, EntityTrackedEventArgs e)+ private static void OnEntityTracked(object sender, EntityTrackedEventArgs e){if (!e.FromQuery && e.Entry.State == EntityState.Added && e.Entry.Entity is IEntityDate entity){@@ -91,7 +96,7 @@ namespace API.Data}- static void OnEntityStateChanged(object sender, EntityStateChangedEventArgs e)+ private static void OnEntityStateChanged(object sender, EntityStateChangedEventArgs e){if (e.NewState == EntityState.Modified && e.Entry.Entity is IEntityDate entity)entity.LastModified = DateTime.Now;diff --git a/API/Data/Metadata/ComicInfo.cs b/API/Data/Metadata/ComicInfo.csindex 0c236fd58..167638a01 100644--- a/API/Data/Metadata/ComicInfo.cs+++ b/API/Data/Metadata/ComicInfo.cs@@ -62,6 +62,11 @@ namespace API.Data.Metadata/// Represents the sort order for the title/// </summary>public string TitleSort { get; set; } = string.Empty;+ /// <summary>+ /// This comes from ComicInfo and is free form text. We use this to validate against a set of tags and mark a file as+ /// special.+ /// </summary>+ public string Format { get; set; } = string.Empty;/// <summary>/// The translator, can be comma separated. This is part of ComicInfo.xml draft v2.1diff --git a/API/Data/MigrateBookmarks.cs b/API/Data/MigrateBookmarks.csindex 294acc57a..6649e83e7 100644--- a/API/Data/MigrateBookmarks.cs+++ b/API/Data/MigrateBookmarks.cs@@ -19,6 +19,9 @@ public static class MigrateBookmarks/// </summary>/// <remarks>Bookmark directory is configurable. This will always use the default bookmark directory.</remarks>/// <param name="directoryService"></param>+ /// <param name="unitOfWork"></param>+ /// <param name="logger"></param>+ /// <param name="cacheService"></param>/// <returns></returns>public static async Task Migrate(IDirectoryService directoryService, IUnitOfWork unitOfWork,ILogger<Program> logger, ICacheService cacheService)diff --git a/API/Data/MigrateCoverImages.cs b/API/Data/MigrateCoverImages.csindex b5839509a..9c859e3e4 100644--- a/API/Data/MigrateCoverImages.cs+++ b/API/Data/MigrateCoverImages.cs@@ -148,7 +148,7 @@ namespace API.Datavar volumes = await context.Volume.Include(v => v.Chapters).ToListAsync();foreach (var volume in volumes){- var firstChapter = volume.Chapters.OrderBy(x => double.Parse(x.Number), ChapterSortComparerForInChapterSorting).FirstOrDefault();+ var firstChapter = volume.Chapters.MinBy(x => double.Parse(x.Number), ChapterSortComparerForInChapterSorting);if (firstChapter == null) continue;if (directoryService.FileSystem.File.Exists(directoryService.FileSystem.Path.Join(directoryService.CoverImageDirectory,$"{ImageService.GetChapterFormat(firstChapter.Id, firstChapter.VolumeId)}.png")))diff --git a/API/Data/Migrations/20220524172543_WordCount.Designer.cs b/API/Data/Migrations/20220524172543_WordCount.Designer.csnew file mode 100644index 000000000..04f2b5f38--- /dev/null+++ b/API/Data/Migrations/20220524172543_WordCount.Designer.cs@@ -0,0 +1,1532 @@+// <auto-generated />+using System;+using API.Data;+using Microsoft.EntityFrameworkCore;+using Microsoft.EntityFrameworkCore.Infrastructure;+using Microsoft.EntityFrameworkCore.Migrations;+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;++#nullable disable++namespace API.Data.Migrations+{+ [DbContext(typeof(DataContext))]+ [Migration("20220524172543_WordCount")]+ partial class WordCount+ {+ protected override void BuildTargetModel(ModelBuilder modelBuilder)+ {+#pragma warning disable 612, 618+ modelBuilder.HasAnnotation("ProductVersion", "6.0.5");++ modelBuilder.Entity("API.Entities.AppRole", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ConcurrencyStamp")+ .IsConcurrencyToken()+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedName")+ .IsUnique()+ .HasDatabaseName("RoleNameIndex");++ b.ToTable("AspNetRoles", (string)null);+ });++ modelBuilder.Entity("API.Entities.AppUser", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AccessFailedCount")+ .HasColumnType("INTEGER");++ b.Property<string>("ApiKey")+ .HasColumnType("TEXT");++ b.Property<string>("ConcurrencyStamp")+ .IsConcurrencyToken()+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<string>("Email")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<bool>("EmailConfirmed")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastActive")+ .HasColumnType("TEXT");++ b.Property<bool>("LockoutEnabled")+ .HasColumnType("INTEGER");++ b.Property<DateTimeOffset?>("LockoutEnd")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedEmail")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedUserName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("PasswordHash")+ .HasColumnType("TEXT");++ b.Property<string>("PhoneNumber")+ .HasColumnType("TEXT");++ b.Property<bool>("PhoneNumberConfirmed")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<string>("SecurityStamp")+ .HasColumnType("TEXT");++ b.Property<bool>("TwoFactorEnabled")+ .HasColumnType("INTEGER");++ b.Property<string>("UserName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedEmail")+ .HasDatabaseName("EmailIndex");++ b.HasIndex("NormalizedUserName")+ .IsUnique()+ .HasDatabaseName("UserNameIndex");++ b.ToTable("AspNetUsers", (string)null);+ });++ modelBuilder.Entity("API.Entities.AppUserBookmark", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<string>("FileName")+ .HasColumnType("TEXT");++ b.Property<int>("Page")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.ToTable("AppUserBookmark");+ });++ modelBuilder.Entity("API.Entities.AppUserPreferences", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<bool>("AutoCloseMenu")+ .HasColumnType("INTEGER");++ b.Property<string>("BackgroundColor")+ .ValueGeneratedOnAdd()+ .HasColumnType("TEXT")+ .HasDefaultValue("#000000");++ b.Property<string>("BookReaderFontFamily")+ .HasColumnType("TEXT");++ b.Property<int>("BookReaderFontSize")+ .HasColumnType("INTEGER");++ b.Property<bool>("BookReaderImmersiveMode")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderLineSpacing")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderMargin")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderReadingDirection")+ .HasColumnType("INTEGER");++ b.Property<bool>("BookReaderTapToPaginate")+ .HasColumnType("INTEGER");++ b.Property<string>("BookThemeName")+ .ValueGeneratedOnAdd()+ .HasColumnType("TEXT")+ .HasDefaultValue("Dark");++ b.Property<int>("LayoutMode")+ .HasColumnType("INTEGER");++ b.Property<int>("PageLayoutMode")+ .HasColumnType("INTEGER");++ b.Property<int>("PageSplitOption")+ .HasColumnType("INTEGER");++ b.Property<int>("ReaderMode")+ .HasColumnType("INTEGER");++ b.Property<int>("ReadingDirection")+ .HasColumnType("INTEGER");++ b.Property<int>("ScalingOption")+ .HasColumnType("INTEGER");++ b.Property<bool>("ShowScreenHints")+ .HasColumnType("INTEGER");++ b.Property<int?>("ThemeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId")+ .IsUnique();++ b.HasIndex("ThemeId");++ b.ToTable("AppUserPreferences");+ });++ modelBuilder.Entity("API.Entities.AppUserProgress", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<string>("BookScrollId")+ .HasColumnType("TEXT");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("PagesRead")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.HasIndex("SeriesId");++ b.ToTable("AppUserProgresses");+ });++ modelBuilder.Entity("API.Entities.AppUserRating", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<int>("Rating")+ .HasColumnType("INTEGER");++ b.Property<string>("Review")+ .HasColumnType("TEXT");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.HasIndex("SeriesId");++ b.ToTable("AppUserRating");+ });++ modelBuilder.Entity("API.Entities.AppUserRole", b =>+ {+ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.Property<int>("RoleId")+ .HasColumnType("INTEGER");++ b.HasKey("UserId", "RoleId");++ b.HasIndex("RoleId");++ b.ToTable("AspNetUserRoles", (string)null);+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AgeRating")+ .HasColumnType("INTEGER");++ b.Property<int>("Count")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<bool>("IsSpecial")+ .HasColumnType("INTEGER");++ b.Property<string>("Language")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<string>("Number")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<string>("Range")+ .HasColumnType("TEXT");++ b.Property<DateTime>("ReleaseDate")+ .HasColumnType("TEXT");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.Property<string>("TitleName")+ .HasColumnType("TEXT");++ b.Property<int>("TotalCount")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("VolumeId");++ b.ToTable("Chapter");+ });++ modelBuilder.Entity("API.Entities.CollectionTag", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<bool>("Promoted")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("Id", "Promoted")+ .IsUnique();++ b.ToTable("CollectionTag");+ });++ modelBuilder.Entity("API.Entities.FolderPath", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastScanned")+ .HasColumnType("TEXT");++ b.Property<int>("LibraryId")+ .HasColumnType("INTEGER");++ b.Property<string>("Path")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("LibraryId");++ b.ToTable("FolderPath");+ });++ modelBuilder.Entity("API.Entities.Genre", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<bool>("ExternalTag")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedTitle", "ExternalTag")+ .IsUnique();++ b.ToTable("Genre");+ });++ modelBuilder.Entity("API.Entities.Library", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastScanned")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<int>("Type")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("Library");+ });++ modelBuilder.Entity("API.Entities.MangaFile", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<string>("FilePath")+ .HasColumnType("TEXT");++ b.Property<int>("Format")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("ChapterId");++ b.ToTable("MangaFile");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesMetadata", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AgeRating")+ .HasColumnType("INTEGER");++ b.Property<bool>("AgeRatingLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("CharacterLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("ColoristLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("CoverArtistLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("EditorLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("GenresLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("InkerLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("Language")+ .HasColumnType("TEXT");++ b.Property<bool>("LanguageLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("LettererLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("MaxCount")+ .HasColumnType("INTEGER");++ b.Property<bool>("PencillerLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("PublicationStatus")+ .HasColumnType("INTEGER");++ b.Property<bool>("PublicationStatusLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("PublisherLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("ReleaseYear")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<bool>("SummaryLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("TagsLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("TotalCount")+ .HasColumnType("INTEGER");++ b.Property<bool>("TranslatorLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("WriterLocked")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId")+ .IsUnique();++ b.HasIndex("Id", "SeriesId")+ .IsUnique();++ b.ToTable("SeriesMetadata");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesRelation", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("RelationKind")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("TargetSeriesId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId");++ b.HasIndex("TargetSeriesId");++ b.ToTable("SeriesRelation");+ });++ modelBuilder.Entity("API.Entities.Person", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<int>("Role")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("Person");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<bool>("Promoted")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.ToTable("ReadingList");+ });++ modelBuilder.Entity("API.Entities.ReadingListItem", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<int>("Order")+ .HasColumnType("INTEGER");++ b.Property<int>("ReadingListId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("ChapterId");++ b.HasIndex("ReadingListId");++ b.HasIndex("SeriesId");++ b.HasIndex("VolumeId");++ b.ToTable("ReadingListItem");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<int>("Format")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastChapterAdded")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("LibraryId")+ .HasColumnType("INTEGER");++ b.Property<string>("LocalizedName")+ .HasColumnType("TEXT");++ b.Property<bool>("LocalizedNameLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<bool>("NameLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<string>("OriginalName")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<string>("SortName")+ .HasColumnType("TEXT");++ b.Property<bool>("SortNameLocked")+ .HasColumnType("INTEGER");++ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("LibraryId");++ b.ToTable("Series");+ });++ modelBuilder.Entity("API.Entities.ServerSetting", b =>+ {+ b.Property<int>("Key")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<string>("Value")+ .HasColumnType("TEXT");++ b.HasKey("Key");++ b.ToTable("ServerSetting");+ });++ modelBuilder.Entity("API.Entities.SiteTheme", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<string>("FileName")+ .HasColumnType("TEXT");++ b.Property<bool>("IsDefault")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<int>("Provider")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("SiteTheme");+ });++ modelBuilder.Entity("API.Entities.Tag", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<bool>("ExternalTag")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedTitle", "ExternalTag")+ .IsUnique();++ b.ToTable("Tag");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<int>("Number")+ .HasColumnType("INTEGER");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId");++ b.ToTable("Volume");+ });++ modelBuilder.Entity("AppUserLibrary", b =>+ {+ b.Property<int>("AppUsersId")+ .HasColumnType("INTEGER");++ b.Property<int>("LibrariesId")+ .HasColumnType("INTEGER");++ b.HasKey("AppUsersId", "LibrariesId");++ b.HasIndex("LibrariesId");++ b.ToTable("AppUserLibrary");+ });++ modelBuilder.Entity("ChapterGenre", b =>+ {+ b.Property<int>("ChaptersId")+ .HasColumnType("INTEGER");++ b.Property<int>("GenresId")+ .HasColumnType("INTEGER");++ b.HasKey("ChaptersId", "GenresId");++ b.HasIndex("GenresId");++ b.ToTable("ChapterGenre");+ });++ modelBuilder.Entity("ChapterPerson", b =>+ {+ b.Property<int>("ChapterMetadatasId")+ .HasColumnType("INTEGER");++ b.Property<int>("PeopleId")+ .HasColumnType("INTEGER");++ b.HasKey("ChapterMetadatasId", "PeopleId");++ b.HasIndex("PeopleId");++ b.ToTable("ChapterPerson");+ });++ modelBuilder.Entity("ChapterTag", b =>+ {+ b.Property<int>("ChaptersId")+ .HasColumnType("INTEGER");++ b.Property<int>("TagsId")+ .HasColumnType("INTEGER");++ b.HasKey("ChaptersId", "TagsId");++ b.HasIndex("TagsId");++ b.ToTable("ChapterTag");+ });++ modelBuilder.Entity("CollectionTagSeriesMetadata", b =>+ {+ b.Property<int>("CollectionTagsId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("CollectionTagsId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("CollectionTagSeriesMetadata");+ });++ modelBuilder.Entity("GenreSeriesMetadata", b =>+ {+ b.Property<int>("GenresId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("GenresId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("GenreSeriesMetadata");+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ClaimType")+ .HasColumnType("TEXT");++ b.Property<string>("ClaimValue")+ .HasColumnType("TEXT");++ b.Property<int>("RoleId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("RoleId");++ b.ToTable("AspNetRoleClaims", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ClaimType")+ .HasColumnType("TEXT");++ b.Property<string>("ClaimValue")+ .HasColumnType("TEXT");++ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("UserId");++ b.ToTable("AspNetUserClaims", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>+ {+ b.Property<string>("LoginProvider")+ .HasColumnType("TEXT");++ b.Property<string>("ProviderKey")+ .HasColumnType("TEXT");++ b.Property<string>("ProviderDisplayName")+ .HasColumnType("TEXT");++ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.HasKey("LoginProvider", "ProviderKey");++ b.HasIndex("UserId");++ b.ToTable("AspNetUserLogins", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>+ {+ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.Property<string>("LoginProvider")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("Value")+ .HasColumnType("TEXT");++ b.HasKey("UserId", "LoginProvider", "Name");++ b.ToTable("AspNetUserTokens", (string)null);+ });++ modelBuilder.Entity("PersonSeriesMetadata", b =>+ {+ b.Property<int>("PeopleId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("PeopleId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("PersonSeriesMetadata");+ });++ modelBuilder.Entity("SeriesMetadataTag", b =>+ {+ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.Property<int>("TagsId")+ .HasColumnType("INTEGER");++ b.HasKey("SeriesMetadatasId", "TagsId");++ b.HasIndex("TagsId");++ b.ToTable("SeriesMetadataTag");+ });++ modelBuilder.Entity("API.Entities.AppUserBookmark", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Bookmarks")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserPreferences", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithOne("UserPreferences")+ .HasForeignKey("API.Entities.AppUserPreferences", "AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.SiteTheme", "Theme")+ .WithMany()+ .HasForeignKey("ThemeId");++ b.Navigation("AppUser");++ b.Navigation("Theme");+ });++ modelBuilder.Entity("API.Entities.AppUserProgress", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Progresses")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", null)+ .WithMany("Progress")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserRating", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Ratings")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", null)+ .WithMany("Ratings")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserRole", b =>+ {+ b.HasOne("API.Entities.AppRole", "Role")+ .WithMany("UserRoles")+ .HasForeignKey("RoleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.AppUser", "User")+ .WithMany("UserRoles")+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Role");++ b.Navigation("User");+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.HasOne("API.Entities.Volume", "Volume")+ .WithMany("Chapters")+ .HasForeignKey("VolumeId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Volume");+ });++ modelBuilder.Entity("API.Entities.FolderPath", b =>+ {+ b.HasOne("API.Entities.Library", "Library")+ .WithMany("Folders")+ .HasForeignKey("LibraryId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Library");+ });++ modelBuilder.Entity("API.Entities.MangaFile", b =>+ {+ b.HasOne("API.Entities.Chapter", "Chapter")+ .WithMany("Files")+ .HasForeignKey("ChapterId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Chapter");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithOne("Metadata")+ .HasForeignKey("API.Entities.Metadata.SeriesMetadata", "SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesRelation", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithMany("Relations")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.ClientCascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", "TargetSeries")+ .WithMany("RelationOf")+ .HasForeignKey("TargetSeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");++ b.Navigation("TargetSeries");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("ReadingLists")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.ReadingListItem", b =>+ {+ b.HasOne("API.Entities.Chapter", "Chapter")+ .WithMany()+ .HasForeignKey("ChapterId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.ReadingList", "ReadingList")+ .WithMany("Items")+ .HasForeignKey("ReadingListId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", "Series")+ .WithMany()+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Volume", "Volume")+ .WithMany()+ .HasForeignKey("VolumeId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Chapter");++ b.Navigation("ReadingList");++ b.Navigation("Series");++ b.Navigation("Volume");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.HasOne("API.Entities.Library", "Library")+ .WithMany("Series")+ .HasForeignKey("LibraryId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Library");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithMany("Volumes")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");+ });++ modelBuilder.Entity("AppUserLibrary", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("AppUsersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Library", null)+ .WithMany()+ .HasForeignKey("LibrariesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterGenre", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChaptersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Genre", null)+ .WithMany()+ .HasForeignKey("GenresId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterPerson", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChapterMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Person", null)+ .WithMany()+ .HasForeignKey("PeopleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterTag", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChaptersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Tag", null)+ .WithMany()+ .HasForeignKey("TagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("CollectionTagSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.CollectionTag", null)+ .WithMany()+ .HasForeignKey("CollectionTagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("GenreSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Genre", null)+ .WithMany()+ .HasForeignKey("GenresId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>+ {+ b.HasOne("API.Entities.AppRole", null)+ .WithMany()+ .HasForeignKey("RoleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("PersonSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Person", null)+ .WithMany()+ .HasForeignKey("PeopleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("SeriesMetadataTag", b =>+ {+ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Tag", null)+ .WithMany()+ .HasForeignKey("TagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("API.Entities.AppRole", b =>+ {+ b.Navigation("UserRoles");+ });++ modelBuilder.Entity("API.Entities.AppUser", b =>+ {+ b.Navigation("Bookmarks");++ b.Navigation("Progresses");++ b.Navigation("Ratings");++ b.Navigation("ReadingLists");++ b.Navigation("UserPreferences");++ b.Navigation("UserRoles");+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.Navigation("Files");+ });++ modelBuilder.Entity("API.Entities.Library", b =>+ {+ b.Navigation("Folders");++ b.Navigation("Series");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.Navigation("Items");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.Navigation("Metadata");++ b.Navigation("Progress");++ b.Navigation("Ratings");++ b.Navigation("RelationOf");++ b.Navigation("Relations");++ b.Navigation("Volumes");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.Navigation("Chapters");+ });+#pragma warning restore 612, 618+ }+ }+}diff --git a/API/Data/Migrations/20220524172543_WordCount.cs b/API/Data/Migrations/20220524172543_WordCount.csnew file mode 100644index 000000000..2828985b6--- /dev/null+++ b/API/Data/Migrations/20220524172543_WordCount.cs@@ -0,0 +1,37 @@+using Microsoft.EntityFrameworkCore.Migrations;++#nullable disable++namespace API.Data.Migrations+{+ public partial class WordCount : Migration+ {+ protected override void Up(MigrationBuilder migrationBuilder)+ {+ migrationBuilder.AddColumn<long>(+ name: "WordCount",+ table: "Series",+ type: "INTEGER",+ nullable: false,+ defaultValue: 0L);++ migrationBuilder.AddColumn<long>(+ name: "WordCount",+ table: "Chapter",+ type: "INTEGER",+ nullable: false,+ defaultValue: 0L);+ }++ protected override void Down(MigrationBuilder migrationBuilder)+ {+ migrationBuilder.DropColumn(+ name: "WordCount",+ table: "Series");++ migrationBuilder.DropColumn(+ name: "WordCount",+ table: "Chapter");+ }+ }+}diff --git a/API/Data/Migrations/20220610153822_TimeEstimateInDB.Designer.cs b/API/Data/Migrations/20220610153822_TimeEstimateInDB.Designer.csnew file mode 100644index 000000000..dc5cfc8f2--- /dev/null+++ b/API/Data/Migrations/20220610153822_TimeEstimateInDB.Designer.cs@@ -0,0 +1,1562 @@+// <auto-generated />+using System;+using API.Data;+using Microsoft.EntityFrameworkCore;+using Microsoft.EntityFrameworkCore.Infrastructure;+using Microsoft.EntityFrameworkCore.Migrations;+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;++#nullable disable++namespace API.Data.Migrations+{+ [DbContext(typeof(DataContext))]+ [Migration("20220610153822_TimeEstimateInDB")]+ partial class TimeEstimateInDB+ {+ protected override void BuildTargetModel(ModelBuilder modelBuilder)+ {+#pragma warning disable 612, 618+ modelBuilder.HasAnnotation("ProductVersion", "6.0.5");++ modelBuilder.Entity("API.Entities.AppRole", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ConcurrencyStamp")+ .IsConcurrencyToken()+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedName")+ .IsUnique()+ .HasDatabaseName("RoleNameIndex");++ b.ToTable("AspNetRoles", (string)null);+ });++ modelBuilder.Entity("API.Entities.AppUser", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AccessFailedCount")+ .HasColumnType("INTEGER");++ b.Property<string>("ApiKey")+ .HasColumnType("TEXT");++ b.Property<string>("ConcurrencyStamp")+ .IsConcurrencyToken()+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<string>("Email")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<bool>("EmailConfirmed")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastActive")+ .HasColumnType("TEXT");++ b.Property<bool>("LockoutEnabled")+ .HasColumnType("INTEGER");++ b.Property<DateTimeOffset?>("LockoutEnd")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedEmail")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedUserName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("PasswordHash")+ .HasColumnType("TEXT");++ b.Property<string>("PhoneNumber")+ .HasColumnType("TEXT");++ b.Property<bool>("PhoneNumberConfirmed")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<string>("SecurityStamp")+ .HasColumnType("TEXT");++ b.Property<bool>("TwoFactorEnabled")+ .HasColumnType("INTEGER");++ b.Property<string>("UserName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedEmail")+ .HasDatabaseName("EmailIndex");++ b.HasIndex("NormalizedUserName")+ .IsUnique()+ .HasDatabaseName("UserNameIndex");++ b.ToTable("AspNetUsers", (string)null);+ });++ modelBuilder.Entity("API.Entities.AppUserBookmark", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<string>("FileName")+ .HasColumnType("TEXT");++ b.Property<int>("Page")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.ToTable("AppUserBookmark");+ });++ modelBuilder.Entity("API.Entities.AppUserPreferences", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<bool>("AutoCloseMenu")+ .HasColumnType("INTEGER");++ b.Property<string>("BackgroundColor")+ .ValueGeneratedOnAdd()+ .HasColumnType("TEXT")+ .HasDefaultValue("#000000");++ b.Property<string>("BookReaderFontFamily")+ .HasColumnType("TEXT");++ b.Property<int>("BookReaderFontSize")+ .HasColumnType("INTEGER");++ b.Property<bool>("BookReaderImmersiveMode")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderLineSpacing")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderMargin")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderReadingDirection")+ .HasColumnType("INTEGER");++ b.Property<bool>("BookReaderTapToPaginate")+ .HasColumnType("INTEGER");++ b.Property<string>("BookThemeName")+ .ValueGeneratedOnAdd()+ .HasColumnType("TEXT")+ .HasDefaultValue("Dark");++ b.Property<int>("LayoutMode")+ .HasColumnType("INTEGER");++ b.Property<int>("PageLayoutMode")+ .HasColumnType("INTEGER");++ b.Property<int>("PageSplitOption")+ .HasColumnType("INTEGER");++ b.Property<int>("ReaderMode")+ .HasColumnType("INTEGER");++ b.Property<int>("ReadingDirection")+ .HasColumnType("INTEGER");++ b.Property<int>("ScalingOption")+ .HasColumnType("INTEGER");++ b.Property<bool>("ShowScreenHints")+ .HasColumnType("INTEGER");++ b.Property<int?>("ThemeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId")+ .IsUnique();++ b.HasIndex("ThemeId");++ b.ToTable("AppUserPreferences");+ });++ modelBuilder.Entity("API.Entities.AppUserProgress", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<string>("BookScrollId")+ .HasColumnType("TEXT");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("PagesRead")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.HasIndex("SeriesId");++ b.ToTable("AppUserProgresses");+ });++ modelBuilder.Entity("API.Entities.AppUserRating", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<int>("Rating")+ .HasColumnType("INTEGER");++ b.Property<string>("Review")+ .HasColumnType("TEXT");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.HasIndex("SeriesId");++ b.ToTable("AppUserRating");+ });++ modelBuilder.Entity("API.Entities.AppUserRole", b =>+ {+ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.Property<int>("RoleId")+ .HasColumnType("INTEGER");++ b.HasKey("UserId", "RoleId");++ b.HasIndex("RoleId");++ b.ToTable("AspNetUserRoles", (string)null);+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AgeRating")+ .HasColumnType("INTEGER");++ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("Count")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<bool>("IsSpecial")+ .HasColumnType("INTEGER");++ b.Property<string>("Language")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("Number")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<string>("Range")+ .HasColumnType("TEXT");++ b.Property<DateTime>("ReleaseDate")+ .HasColumnType("TEXT");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.Property<string>("TitleName")+ .HasColumnType("TEXT");++ b.Property<int>("TotalCount")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("VolumeId");++ b.ToTable("Chapter");+ });++ modelBuilder.Entity("API.Entities.CollectionTag", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<bool>("Promoted")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("Id", "Promoted")+ .IsUnique();++ b.ToTable("CollectionTag");+ });++ modelBuilder.Entity("API.Entities.FolderPath", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastScanned")+ .HasColumnType("TEXT");++ b.Property<int>("LibraryId")+ .HasColumnType("INTEGER");++ b.Property<string>("Path")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("LibraryId");++ b.ToTable("FolderPath");+ });++ modelBuilder.Entity("API.Entities.Genre", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<bool>("ExternalTag")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedTitle", "ExternalTag")+ .IsUnique();++ b.ToTable("Genre");+ });++ modelBuilder.Entity("API.Entities.Library", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastScanned")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<int>("Type")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("Library");+ });++ modelBuilder.Entity("API.Entities.MangaFile", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<string>("FilePath")+ .HasColumnType("TEXT");++ b.Property<int>("Format")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("ChapterId");++ b.ToTable("MangaFile");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesMetadata", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AgeRating")+ .HasColumnType("INTEGER");++ b.Property<bool>("AgeRatingLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("CharacterLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("ColoristLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("CoverArtistLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("EditorLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("GenresLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("InkerLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("Language")+ .HasColumnType("TEXT");++ b.Property<bool>("LanguageLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("LettererLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("MaxCount")+ .HasColumnType("INTEGER");++ b.Property<bool>("PencillerLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("PublicationStatus")+ .HasColumnType("INTEGER");++ b.Property<bool>("PublicationStatusLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("PublisherLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("ReleaseYear")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<bool>("SummaryLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("TagsLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("TotalCount")+ .HasColumnType("INTEGER");++ b.Property<bool>("TranslatorLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("WriterLocked")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId")+ .IsUnique();++ b.HasIndex("Id", "SeriesId")+ .IsUnique();++ b.ToTable("SeriesMetadata");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesRelation", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("RelationKind")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("TargetSeriesId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId");++ b.HasIndex("TargetSeriesId");++ b.ToTable("SeriesRelation");+ });++ modelBuilder.Entity("API.Entities.Person", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<int>("Role")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("Person");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<bool>("Promoted")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.ToTable("ReadingList");+ });++ modelBuilder.Entity("API.Entities.ReadingListItem", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<int>("Order")+ .HasColumnType("INTEGER");++ b.Property<int>("ReadingListId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("ChapterId");++ b.HasIndex("ReadingListId");++ b.HasIndex("SeriesId");++ b.HasIndex("VolumeId");++ b.ToTable("ReadingListItem");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<int>("Format")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastChapterAdded")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("LibraryId")+ .HasColumnType("INTEGER");++ b.Property<string>("LocalizedName")+ .HasColumnType("TEXT");++ b.Property<bool>("LocalizedNameLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<bool>("NameLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<string>("OriginalName")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<string>("SortName")+ .HasColumnType("TEXT");++ b.Property<bool>("SortNameLocked")+ .HasColumnType("INTEGER");++ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("LibraryId");++ b.ToTable("Series");+ });++ modelBuilder.Entity("API.Entities.ServerSetting", b =>+ {+ b.Property<int>("Key")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<string>("Value")+ .HasColumnType("TEXT");++ b.HasKey("Key");++ b.ToTable("ServerSetting");+ });++ modelBuilder.Entity("API.Entities.SiteTheme", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<string>("FileName")+ .HasColumnType("TEXT");++ b.Property<bool>("IsDefault")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<int>("Provider")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("SiteTheme");+ });++ modelBuilder.Entity("API.Entities.Tag", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<bool>("ExternalTag")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedTitle", "ExternalTag")+ .IsUnique();++ b.ToTable("Tag");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<int>("Number")+ .HasColumnType("INTEGER");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId");++ b.ToTable("Volume");+ });++ modelBuilder.Entity("AppUserLibrary", b =>+ {+ b.Property<int>("AppUsersId")+ .HasColumnType("INTEGER");++ b.Property<int>("LibrariesId")+ .HasColumnType("INTEGER");++ b.HasKey("AppUsersId", "LibrariesId");++ b.HasIndex("LibrariesId");++ b.ToTable("AppUserLibrary");+ });++ modelBuilder.Entity("ChapterGenre", b =>+ {+ b.Property<int>("ChaptersId")+ .HasColumnType("INTEGER");++ b.Property<int>("GenresId")+ .HasColumnType("INTEGER");++ b.HasKey("ChaptersId", "GenresId");++ b.HasIndex("GenresId");++ b.ToTable("ChapterGenre");+ });++ modelBuilder.Entity("ChapterPerson", b =>+ {+ b.Property<int>("ChapterMetadatasId")+ .HasColumnType("INTEGER");++ b.Property<int>("PeopleId")+ .HasColumnType("INTEGER");++ b.HasKey("ChapterMetadatasId", "PeopleId");++ b.HasIndex("PeopleId");++ b.ToTable("ChapterPerson");+ });++ modelBuilder.Entity("ChapterTag", b =>+ {+ b.Property<int>("ChaptersId")+ .HasColumnType("INTEGER");++ b.Property<int>("TagsId")+ .HasColumnType("INTEGER");++ b.HasKey("ChaptersId", "TagsId");++ b.HasIndex("TagsId");++ b.ToTable("ChapterTag");+ });++ modelBuilder.Entity("CollectionTagSeriesMetadata", b =>+ {+ b.Property<int>("CollectionTagsId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("CollectionTagsId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("CollectionTagSeriesMetadata");+ });++ modelBuilder.Entity("GenreSeriesMetadata", b =>+ {+ b.Property<int>("GenresId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("GenresId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("GenreSeriesMetadata");+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ClaimType")+ .HasColumnType("TEXT");++ b.Property<string>("ClaimValue")+ .HasColumnType("TEXT");++ b.Property<int>("RoleId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("RoleId");++ b.ToTable("AspNetRoleClaims", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ClaimType")+ .HasColumnType("TEXT");++ b.Property<string>("ClaimValue")+ .HasColumnType("TEXT");++ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("UserId");++ b.ToTable("AspNetUserClaims", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>+ {+ b.Property<string>("LoginProvider")+ .HasColumnType("TEXT");++ b.Property<string>("ProviderKey")+ .HasColumnType("TEXT");++ b.Property<string>("ProviderDisplayName")+ .HasColumnType("TEXT");++ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.HasKey("LoginProvider", "ProviderKey");++ b.HasIndex("UserId");++ b.ToTable("AspNetUserLogins", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>+ {+ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.Property<string>("LoginProvider")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("Value")+ .HasColumnType("TEXT");++ b.HasKey("UserId", "LoginProvider", "Name");++ b.ToTable("AspNetUserTokens", (string)null);+ });++ modelBuilder.Entity("PersonSeriesMetadata", b =>+ {+ b.Property<int>("PeopleId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("PeopleId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("PersonSeriesMetadata");+ });++ modelBuilder.Entity("SeriesMetadataTag", b =>+ {+ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.Property<int>("TagsId")+ .HasColumnType("INTEGER");++ b.HasKey("SeriesMetadatasId", "TagsId");++ b.HasIndex("TagsId");++ b.ToTable("SeriesMetadataTag");+ });++ modelBuilder.Entity("API.Entities.AppUserBookmark", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Bookmarks")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserPreferences", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithOne("UserPreferences")+ .HasForeignKey("API.Entities.AppUserPreferences", "AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.SiteTheme", "Theme")+ .WithMany()+ .HasForeignKey("ThemeId");++ b.Navigation("AppUser");++ b.Navigation("Theme");+ });++ modelBuilder.Entity("API.Entities.AppUserProgress", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Progresses")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", null)+ .WithMany("Progress")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserRating", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Ratings")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", null)+ .WithMany("Ratings")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserRole", b =>+ {+ b.HasOne("API.Entities.AppRole", "Role")+ .WithMany("UserRoles")+ .HasForeignKey("RoleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.AppUser", "User")+ .WithMany("UserRoles")+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Role");++ b.Navigation("User");+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.HasOne("API.Entities.Volume", "Volume")+ .WithMany("Chapters")+ .HasForeignKey("VolumeId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Volume");+ });++ modelBuilder.Entity("API.Entities.FolderPath", b =>+ {+ b.HasOne("API.Entities.Library", "Library")+ .WithMany("Folders")+ .HasForeignKey("LibraryId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Library");+ });++ modelBuilder.Entity("API.Entities.MangaFile", b =>+ {+ b.HasOne("API.Entities.Chapter", "Chapter")+ .WithMany("Files")+ .HasForeignKey("ChapterId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Chapter");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithOne("Metadata")+ .HasForeignKey("API.Entities.Metadata.SeriesMetadata", "SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesRelation", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithMany("Relations")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.ClientCascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", "TargetSeries")+ .WithMany("RelationOf")+ .HasForeignKey("TargetSeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");++ b.Navigation("TargetSeries");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("ReadingLists")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.ReadingListItem", b =>+ {+ b.HasOne("API.Entities.Chapter", "Chapter")+ .WithMany()+ .HasForeignKey("ChapterId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.ReadingList", "ReadingList")+ .WithMany("Items")+ .HasForeignKey("ReadingListId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", "Series")+ .WithMany()+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Volume", "Volume")+ .WithMany()+ .HasForeignKey("VolumeId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Chapter");++ b.Navigation("ReadingList");++ b.Navigation("Series");++ b.Navigation("Volume");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.HasOne("API.Entities.Library", "Library")+ .WithMany("Series")+ .HasForeignKey("LibraryId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Library");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithMany("Volumes")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");+ });++ modelBuilder.Entity("AppUserLibrary", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("AppUsersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Library", null)+ .WithMany()+ .HasForeignKey("LibrariesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterGenre", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChaptersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Genre", null)+ .WithMany()+ .HasForeignKey("GenresId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterPerson", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChapterMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Person", null)+ .WithMany()+ .HasForeignKey("PeopleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterTag", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChaptersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Tag", null)+ .WithMany()+ .HasForeignKey("TagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("CollectionTagSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.CollectionTag", null)+ .WithMany()+ .HasForeignKey("CollectionTagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("GenreSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Genre", null)+ .WithMany()+ .HasForeignKey("GenresId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>+ {+ b.HasOne("API.Entities.AppRole", null)+ .WithMany()+ .HasForeignKey("RoleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("PersonSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Person", null)+ .WithMany()+ .HasForeignKey("PeopleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("SeriesMetadataTag", b =>+ {+ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Tag", null)+ .WithMany()+ .HasForeignKey("TagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("API.Entities.AppRole", b =>+ {+ b.Navigation("UserRoles");+ });++ modelBuilder.Entity("API.Entities.AppUser", b =>+ {+ b.Navigation("Bookmarks");++ b.Navigation("Progresses");++ b.Navigation("Ratings");++ b.Navigation("ReadingLists");++ b.Navigation("UserPreferences");++ b.Navigation("UserRoles");+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.Navigation("Files");+ });++ modelBuilder.Entity("API.Entities.Library", b =>+ {+ b.Navigation("Folders");++ b.Navigation("Series");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.Navigation("Items");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.Navigation("Metadata");++ b.Navigation("Progress");++ b.Navigation("Ratings");++ b.Navigation("RelationOf");++ b.Navigation("Relations");++ b.Navigation("Volumes");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.Navigation("Chapters");+ });+#pragma warning restore 612, 618+ }+ }+}diff --git a/API/Data/Migrations/20220610153822_TimeEstimateInDB.cs b/API/Data/Migrations/20220610153822_TimeEstimateInDB.csnew file mode 100644index 000000000..9986cc909--- /dev/null+++ b/API/Data/Migrations/20220610153822_TimeEstimateInDB.cs@@ -0,0 +1,125 @@+using Microsoft.EntityFrameworkCore.Migrations;++#nullable disable++namespace API.Data.Migrations+{+ public partial class TimeEstimateInDB : Migration+ {+ protected override void Up(MigrationBuilder migrationBuilder)+ {+ migrationBuilder.AddColumn<int>(+ name: "AvgHoursToRead",+ table: "Volume",+ type: "INTEGER",+ nullable: false,+ defaultValue: 0);++ migrationBuilder.AddColumn<int>(+ name: "MaxHoursToRead",+ table: "Volume",+ type: "INTEGER",+ nullable: false,+ defaultValue: 0);++ migrationBuilder.AddColumn<int>(+ name: "MinHoursToRead",+ table: "Volume",+ type: "INTEGER",+ nullable: false,+ defaultValue: 0);++ migrationBuilder.AddColumn<long>(+ name: "WordCount",+ table: "Volume",+ type: "INTEGER",+ nullable: false,+ defaultValue: 0L);++ migrationBuilder.AddColumn<int>(+ name: "AvgHoursToRead",+ table: "Series",+ type: "INTEGER",+ nullable: false,+ defaultValue: 0);++ migrationBuilder.AddColumn<int>(+ name: "MaxHoursToRead",+ table: "Series",+ type: "INTEGER",+ nullable: false,+ defaultValue: 0);++ migrationBuilder.AddColumn<int>(+ name: "MinHoursToRead",+ table: "Series",+ type: "INTEGER",+ nullable: false,+ defaultValue: 0);++ migrationBuilder.AddColumn<int>(+ name: "AvgHoursToRead",+ table: "Chapter",+ type: "INTEGER",+ nullable: false,+ defaultValue: 0);++ migrationBuilder.AddColumn<int>(+ name: "MaxHoursToRead",+ table: "Chapter",+ type: "INTEGER",+ nullable: false,+ defaultValue: 0);++ migrationBuilder.AddColumn<int>(+ name: "MinHoursToRead",+ table: "Chapter",+ type: "INTEGER",+ nullable: false,+ defaultValue: 0);+ }++ protected override void Down(MigrationBuilder migrationBuilder)+ {+ migrationBuilder.DropColumn(+ name: "AvgHoursToRead",+ table: "Volume");++ migrationBuilder.DropColumn(+ name: "MaxHoursToRead",+ table: "Volume");++ migrationBuilder.DropColumn(+ name: "MinHoursToRead",+ table: "Volume");++ migrationBuilder.DropColumn(+ name: "WordCount",+ table: "Volume");++ migrationBuilder.DropColumn(+ name: "AvgHoursToRead",+ table: "Series");++ migrationBuilder.DropColumn(+ name: "MaxHoursToRead",+ table: "Series");++ migrationBuilder.DropColumn(+ name: "MinHoursToRead",+ table: "Series");++ migrationBuilder.DropColumn(+ name: "AvgHoursToRead",+ table: "Chapter");++ migrationBuilder.DropColumn(+ name: "MaxHoursToRead",+ table: "Chapter");++ migrationBuilder.DropColumn(+ name: "MinHoursToRead",+ table: "Chapter");+ }+ }+}diff --git a/API/Data/Migrations/20220613131125_RenamedBookReaderLayoutMode.Designer.cs b/API/Data/Migrations/20220613131125_RenamedBookReaderLayoutMode.Designer.csnew file mode 100644index 000000000..73e3a675a--- /dev/null+++ b/API/Data/Migrations/20220613131125_RenamedBookReaderLayoutMode.Designer.cs@@ -0,0 +1,1562 @@+// <auto-generated />+using System;+using API.Data;+using Microsoft.EntityFrameworkCore;+using Microsoft.EntityFrameworkCore.Infrastructure;+using Microsoft.EntityFrameworkCore.Migrations;+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;++#nullable disable++namespace API.Data.Migrations+{+ [DbContext(typeof(DataContext))]+ [Migration("20220613131125_RenamedBookReaderLayoutMode")]+ partial class RenamedBookReaderLayoutMode+ {+ protected override void BuildTargetModel(ModelBuilder modelBuilder)+ {+#pragma warning disable 612, 618+ modelBuilder.HasAnnotation("ProductVersion", "6.0.5");++ modelBuilder.Entity("API.Entities.AppRole", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ConcurrencyStamp")+ .IsConcurrencyToken()+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedName")+ .IsUnique()+ .HasDatabaseName("RoleNameIndex");++ b.ToTable("AspNetRoles", (string)null);+ });++ modelBuilder.Entity("API.Entities.AppUser", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AccessFailedCount")+ .HasColumnType("INTEGER");++ b.Property<string>("ApiKey")+ .HasColumnType("TEXT");++ b.Property<string>("ConcurrencyStamp")+ .IsConcurrencyToken()+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<string>("Email")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<bool>("EmailConfirmed")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastActive")+ .HasColumnType("TEXT");++ b.Property<bool>("LockoutEnabled")+ .HasColumnType("INTEGER");++ b.Property<DateTimeOffset?>("LockoutEnd")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedEmail")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedUserName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("PasswordHash")+ .HasColumnType("TEXT");++ b.Property<string>("PhoneNumber")+ .HasColumnType("TEXT");++ b.Property<bool>("PhoneNumberConfirmed")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<string>("SecurityStamp")+ .HasColumnType("TEXT");++ b.Property<bool>("TwoFactorEnabled")+ .HasColumnType("INTEGER");++ b.Property<string>("UserName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedEmail")+ .HasDatabaseName("EmailIndex");++ b.HasIndex("NormalizedUserName")+ .IsUnique()+ .HasDatabaseName("UserNameIndex");++ b.ToTable("AspNetUsers", (string)null);+ });++ modelBuilder.Entity("API.Entities.AppUserBookmark", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<string>("FileName")+ .HasColumnType("TEXT");++ b.Property<int>("Page")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.ToTable("AppUserBookmark");+ });++ modelBuilder.Entity("API.Entities.AppUserPreferences", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<bool>("AutoCloseMenu")+ .HasColumnType("INTEGER");++ b.Property<string>("BackgroundColor")+ .ValueGeneratedOnAdd()+ .HasColumnType("TEXT")+ .HasDefaultValue("#000000");++ b.Property<string>("BookReaderFontFamily")+ .HasColumnType("TEXT");++ b.Property<int>("BookReaderFontSize")+ .HasColumnType("INTEGER");++ b.Property<bool>("BookReaderImmersiveMode")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderLayoutMode")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderLineSpacing")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderMargin")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderReadingDirection")+ .HasColumnType("INTEGER");++ b.Property<bool>("BookReaderTapToPaginate")+ .HasColumnType("INTEGER");++ b.Property<string>("BookThemeName")+ .ValueGeneratedOnAdd()+ .HasColumnType("TEXT")+ .HasDefaultValue("Dark");++ b.Property<int>("LayoutMode")+ .HasColumnType("INTEGER");++ b.Property<int>("PageSplitOption")+ .HasColumnType("INTEGER");++ b.Property<int>("ReaderMode")+ .HasColumnType("INTEGER");++ b.Property<int>("ReadingDirection")+ .HasColumnType("INTEGER");++ b.Property<int>("ScalingOption")+ .HasColumnType("INTEGER");++ b.Property<bool>("ShowScreenHints")+ .HasColumnType("INTEGER");++ b.Property<int?>("ThemeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId")+ .IsUnique();++ b.HasIndex("ThemeId");++ b.ToTable("AppUserPreferences");+ });++ modelBuilder.Entity("API.Entities.AppUserProgress", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<string>("BookScrollId")+ .HasColumnType("TEXT");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("PagesRead")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.HasIndex("SeriesId");++ b.ToTable("AppUserProgresses");+ });++ modelBuilder.Entity("API.Entities.AppUserRating", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<int>("Rating")+ .HasColumnType("INTEGER");++ b.Property<string>("Review")+ .HasColumnType("TEXT");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.HasIndex("SeriesId");++ b.ToTable("AppUserRating");+ });++ modelBuilder.Entity("API.Entities.AppUserRole", b =>+ {+ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.Property<int>("RoleId")+ .HasColumnType("INTEGER");++ b.HasKey("UserId", "RoleId");++ b.HasIndex("RoleId");++ b.ToTable("AspNetUserRoles", (string)null);+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AgeRating")+ .HasColumnType("INTEGER");++ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("Count")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<bool>("IsSpecial")+ .HasColumnType("INTEGER");++ b.Property<string>("Language")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("Number")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<string>("Range")+ .HasColumnType("TEXT");++ b.Property<DateTime>("ReleaseDate")+ .HasColumnType("TEXT");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.Property<string>("TitleName")+ .HasColumnType("TEXT");++ b.Property<int>("TotalCount")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("VolumeId");++ b.ToTable("Chapter");+ });++ modelBuilder.Entity("API.Entities.CollectionTag", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<bool>("Promoted")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("Id", "Promoted")+ .IsUnique();++ b.ToTable("CollectionTag");+ });++ modelBuilder.Entity("API.Entities.FolderPath", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastScanned")+ .HasColumnType("TEXT");++ b.Property<int>("LibraryId")+ .HasColumnType("INTEGER");++ b.Property<string>("Path")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("LibraryId");++ b.ToTable("FolderPath");+ });++ modelBuilder.Entity("API.Entities.Genre", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<bool>("ExternalTag")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedTitle", "ExternalTag")+ .IsUnique();++ b.ToTable("Genre");+ });++ modelBuilder.Entity("API.Entities.Library", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastScanned")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<int>("Type")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("Library");+ });++ modelBuilder.Entity("API.Entities.MangaFile", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<string>("FilePath")+ .HasColumnType("TEXT");++ b.Property<int>("Format")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("ChapterId");++ b.ToTable("MangaFile");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesMetadata", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AgeRating")+ .HasColumnType("INTEGER");++ b.Property<bool>("AgeRatingLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("CharacterLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("ColoristLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("CoverArtistLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("EditorLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("GenresLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("InkerLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("Language")+ .HasColumnType("TEXT");++ b.Property<bool>("LanguageLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("LettererLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("MaxCount")+ .HasColumnType("INTEGER");++ b.Property<bool>("PencillerLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("PublicationStatus")+ .HasColumnType("INTEGER");++ b.Property<bool>("PublicationStatusLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("PublisherLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("ReleaseYear")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<bool>("SummaryLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("TagsLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("TotalCount")+ .HasColumnType("INTEGER");++ b.Property<bool>("TranslatorLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("WriterLocked")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId")+ .IsUnique();++ b.HasIndex("Id", "SeriesId")+ .IsUnique();++ b.ToTable("SeriesMetadata");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesRelation", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("RelationKind")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("TargetSeriesId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId");++ b.HasIndex("TargetSeriesId");++ b.ToTable("SeriesRelation");+ });++ modelBuilder.Entity("API.Entities.Person", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<int>("Role")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("Person");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<bool>("Promoted")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.ToTable("ReadingList");+ });++ modelBuilder.Entity("API.Entities.ReadingListItem", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<int>("Order")+ .HasColumnType("INTEGER");++ b.Property<int>("ReadingListId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("ChapterId");++ b.HasIndex("ReadingListId");++ b.HasIndex("SeriesId");++ b.HasIndex("VolumeId");++ b.ToTable("ReadingListItem");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<int>("Format")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastChapterAdded")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("LibraryId")+ .HasColumnType("INTEGER");++ b.Property<string>("LocalizedName")+ .HasColumnType("TEXT");++ b.Property<bool>("LocalizedNameLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<bool>("NameLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<string>("OriginalName")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<string>("SortName")+ .HasColumnType("TEXT");++ b.Property<bool>("SortNameLocked")+ .HasColumnType("INTEGER");++ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("LibraryId");++ b.ToTable("Series");+ });++ modelBuilder.Entity("API.Entities.ServerSetting", b =>+ {+ b.Property<int>("Key")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<string>("Value")+ .HasColumnType("TEXT");++ b.HasKey("Key");++ b.ToTable("ServerSetting");+ });++ modelBuilder.Entity("API.Entities.SiteTheme", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<string>("FileName")+ .HasColumnType("TEXT");++ b.Property<bool>("IsDefault")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<int>("Provider")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("SiteTheme");+ });++ modelBuilder.Entity("API.Entities.Tag", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<bool>("ExternalTag")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedTitle", "ExternalTag")+ .IsUnique();++ b.ToTable("Tag");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<int>("Number")+ .HasColumnType("INTEGER");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId");++ b.ToTable("Volume");+ });++ modelBuilder.Entity("AppUserLibrary", b =>+ {+ b.Property<int>("AppUsersId")+ .HasColumnType("INTEGER");++ b.Property<int>("LibrariesId")+ .HasColumnType("INTEGER");++ b.HasKey("AppUsersId", "LibrariesId");++ b.HasIndex("LibrariesId");++ b.ToTable("AppUserLibrary");+ });++ modelBuilder.Entity("ChapterGenre", b =>+ {+ b.Property<int>("ChaptersId")+ .HasColumnType("INTEGER");++ b.Property<int>("GenresId")+ .HasColumnType("INTEGER");++ b.HasKey("ChaptersId", "GenresId");++ b.HasIndex("GenresId");++ b.ToTable("ChapterGenre");+ });++ modelBuilder.Entity("ChapterPerson", b =>+ {+ b.Property<int>("ChapterMetadatasId")+ .HasColumnType("INTEGER");++ b.Property<int>("PeopleId")+ .HasColumnType("INTEGER");++ b.HasKey("ChapterMetadatasId", "PeopleId");++ b.HasIndex("PeopleId");++ b.ToTable("ChapterPerson");+ });++ modelBuilder.Entity("ChapterTag", b =>+ {+ b.Property<int>("ChaptersId")+ .HasColumnType("INTEGER");++ b.Property<int>("TagsId")+ .HasColumnType("INTEGER");++ b.HasKey("ChaptersId", "TagsId");++ b.HasIndex("TagsId");++ b.ToTable("ChapterTag");+ });++ modelBuilder.Entity("CollectionTagSeriesMetadata", b =>+ {+ b.Property<int>("CollectionTagsId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("CollectionTagsId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("CollectionTagSeriesMetadata");+ });++ modelBuilder.Entity("GenreSeriesMetadata", b =>+ {+ b.Property<int>("GenresId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("GenresId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("GenreSeriesMetadata");+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ClaimType")+ .HasColumnType("TEXT");++ b.Property<string>("ClaimValue")+ .HasColumnType("TEXT");++ b.Property<int>("RoleId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("RoleId");++ b.ToTable("AspNetRoleClaims", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ClaimType")+ .HasColumnType("TEXT");++ b.Property<string>("ClaimValue")+ .HasColumnType("TEXT");++ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("UserId");++ b.ToTable("AspNetUserClaims", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>+ {+ b.Property<string>("LoginProvider")+ .HasColumnType("TEXT");++ b.Property<string>("ProviderKey")+ .HasColumnType("TEXT");++ b.Property<string>("ProviderDisplayName")+ .HasColumnType("TEXT");++ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.HasKey("LoginProvider", "ProviderKey");++ b.HasIndex("UserId");++ b.ToTable("AspNetUserLogins", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>+ {+ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.Property<string>("LoginProvider")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("Value")+ .HasColumnType("TEXT");++ b.HasKey("UserId", "LoginProvider", "Name");++ b.ToTable("AspNetUserTokens", (string)null);+ });++ modelBuilder.Entity("PersonSeriesMetadata", b =>+ {+ b.Property<int>("PeopleId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("PeopleId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("PersonSeriesMetadata");+ });++ modelBuilder.Entity("SeriesMetadataTag", b =>+ {+ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.Property<int>("TagsId")+ .HasColumnType("INTEGER");++ b.HasKey("SeriesMetadatasId", "TagsId");++ b.HasIndex("TagsId");++ b.ToTable("SeriesMetadataTag");+ });++ modelBuilder.Entity("API.Entities.AppUserBookmark", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Bookmarks")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserPreferences", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithOne("UserPreferences")+ .HasForeignKey("API.Entities.AppUserPreferences", "AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.SiteTheme", "Theme")+ .WithMany()+ .HasForeignKey("ThemeId");++ b.Navigation("AppUser");++ b.Navigation("Theme");+ });++ modelBuilder.Entity("API.Entities.AppUserProgress", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Progresses")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", null)+ .WithMany("Progress")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserRating", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Ratings")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", null)+ .WithMany("Ratings")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserRole", b =>+ {+ b.HasOne("API.Entities.AppRole", "Role")+ .WithMany("UserRoles")+ .HasForeignKey("RoleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.AppUser", "User")+ .WithMany("UserRoles")+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Role");++ b.Navigation("User");+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.HasOne("API.Entities.Volume", "Volume")+ .WithMany("Chapters")+ .HasForeignKey("VolumeId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Volume");+ });++ modelBuilder.Entity("API.Entities.FolderPath", b =>+ {+ b.HasOne("API.Entities.Library", "Library")+ .WithMany("Folders")+ .HasForeignKey("LibraryId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Library");+ });++ modelBuilder.Entity("API.Entities.MangaFile", b =>+ {+ b.HasOne("API.Entities.Chapter", "Chapter")+ .WithMany("Files")+ .HasForeignKey("ChapterId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Chapter");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithOne("Metadata")+ .HasForeignKey("API.Entities.Metadata.SeriesMetadata", "SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesRelation", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithMany("Relations")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.ClientCascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", "TargetSeries")+ .WithMany("RelationOf")+ .HasForeignKey("TargetSeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");++ b.Navigation("TargetSeries");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("ReadingLists")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.ReadingListItem", b =>+ {+ b.HasOne("API.Entities.Chapter", "Chapter")+ .WithMany()+ .HasForeignKey("ChapterId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.ReadingList", "ReadingList")+ .WithMany("Items")+ .HasForeignKey("ReadingListId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", "Series")+ .WithMany()+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Volume", "Volume")+ .WithMany()+ .HasForeignKey("VolumeId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Chapter");++ b.Navigation("ReadingList");++ b.Navigation("Series");++ b.Navigation("Volume");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.HasOne("API.Entities.Library", "Library")+ .WithMany("Series")+ .HasForeignKey("LibraryId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Library");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithMany("Volumes")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");+ });++ modelBuilder.Entity("AppUserLibrary", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("AppUsersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Library", null)+ .WithMany()+ .HasForeignKey("LibrariesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterGenre", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChaptersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Genre", null)+ .WithMany()+ .HasForeignKey("GenresId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterPerson", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChapterMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Person", null)+ .WithMany()+ .HasForeignKey("PeopleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterTag", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChaptersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Tag", null)+ .WithMany()+ .HasForeignKey("TagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("CollectionTagSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.CollectionTag", null)+ .WithMany()+ .HasForeignKey("CollectionTagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("GenreSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Genre", null)+ .WithMany()+ .HasForeignKey("GenresId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>+ {+ b.HasOne("API.Entities.AppRole", null)+ .WithMany()+ .HasForeignKey("RoleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("PersonSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Person", null)+ .WithMany()+ .HasForeignKey("PeopleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("SeriesMetadataTag", b =>+ {+ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Tag", null)+ .WithMany()+ .HasForeignKey("TagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("API.Entities.AppRole", b =>+ {+ b.Navigation("UserRoles");+ });++ modelBuilder.Entity("API.Entities.AppUser", b =>+ {+ b.Navigation("Bookmarks");++ b.Navigation("Progresses");++ b.Navigation("Ratings");++ b.Navigation("ReadingLists");++ b.Navigation("UserPreferences");++ b.Navigation("UserRoles");+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.Navigation("Files");+ });++ modelBuilder.Entity("API.Entities.Library", b =>+ {+ b.Navigation("Folders");++ b.Navigation("Series");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.Navigation("Items");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.Navigation("Metadata");++ b.Navigation("Progress");++ b.Navigation("Ratings");++ b.Navigation("RelationOf");++ b.Navigation("Relations");++ b.Navigation("Volumes");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.Navigation("Chapters");+ });+#pragma warning restore 612, 618+ }+ }+}diff --git a/API/Data/Migrations/20220613131125_RenamedBookReaderLayoutMode.cs b/API/Data/Migrations/20220613131125_RenamedBookReaderLayoutMode.csnew file mode 100644index 000000000..c7a5c5c13--- /dev/null+++ b/API/Data/Migrations/20220613131125_RenamedBookReaderLayoutMode.cs@@ -0,0 +1,25 @@+using Microsoft.EntityFrameworkCore.Migrations;++#nullable disable++namespace API.Data.Migrations+{+ public partial class RenamedBookReaderLayoutMode : Migration+ {+ protected override void Up(MigrationBuilder migrationBuilder)+ {+ migrationBuilder.RenameColumn(+ name: "PageLayoutMode",+ table: "AppUserPreferences",+ newName: "BookReaderLayoutMode");+ }++ protected override void Down(MigrationBuilder migrationBuilder)+ {+ migrationBuilder.RenameColumn(+ name: "BookReaderLayoutMode",+ table: "AppUserPreferences",+ newName: "PageLayoutMode");+ }+ }+}diff --git a/API/Data/Migrations/20220613131302_GlobalPageLayoutModeUserSetting.Designer.cs b/API/Data/Migrations/20220613131302_GlobalPageLayoutModeUserSetting.Designer.csnew file mode 100644index 000000000..44545d8a6--- /dev/null+++ b/API/Data/Migrations/20220613131302_GlobalPageLayoutModeUserSetting.Designer.cs@@ -0,0 +1,1567 @@+// <auto-generated />+using System;+using API.Data;+using Microsoft.EntityFrameworkCore;+using Microsoft.EntityFrameworkCore.Infrastructure;+using Microsoft.EntityFrameworkCore.Migrations;+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;++#nullable disable++namespace API.Data.Migrations+{+ [DbContext(typeof(DataContext))]+ [Migration("20220613131302_GlobalPageLayoutModeUserSetting")]+ partial class GlobalPageLayoutModeUserSetting+ {+ protected override void BuildTargetModel(ModelBuilder modelBuilder)+ {+#pragma warning disable 612, 618+ modelBuilder.HasAnnotation("ProductVersion", "6.0.5");++ modelBuilder.Entity("API.Entities.AppRole", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ConcurrencyStamp")+ .IsConcurrencyToken()+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedName")+ .IsUnique()+ .HasDatabaseName("RoleNameIndex");++ b.ToTable("AspNetRoles", (string)null);+ });++ modelBuilder.Entity("API.Entities.AppUser", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AccessFailedCount")+ .HasColumnType("INTEGER");++ b.Property<string>("ApiKey")+ .HasColumnType("TEXT");++ b.Property<string>("ConcurrencyStamp")+ .IsConcurrencyToken()+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<string>("Email")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<bool>("EmailConfirmed")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastActive")+ .HasColumnType("TEXT");++ b.Property<bool>("LockoutEnabled")+ .HasColumnType("INTEGER");++ b.Property<DateTimeOffset?>("LockoutEnd")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedEmail")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedUserName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("PasswordHash")+ .HasColumnType("TEXT");++ b.Property<string>("PhoneNumber")+ .HasColumnType("TEXT");++ b.Property<bool>("PhoneNumberConfirmed")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<string>("SecurityStamp")+ .HasColumnType("TEXT");++ b.Property<bool>("TwoFactorEnabled")+ .HasColumnType("INTEGER");++ b.Property<string>("UserName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedEmail")+ .HasDatabaseName("EmailIndex");++ b.HasIndex("NormalizedUserName")+ .IsUnique()+ .HasDatabaseName("UserNameIndex");++ b.ToTable("AspNetUsers", (string)null);+ });++ modelBuilder.Entity("API.Entities.AppUserBookmark", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<string>("FileName")+ .HasColumnType("TEXT");++ b.Property<int>("Page")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.ToTable("AppUserBookmark");+ });++ modelBuilder.Entity("API.Entities.AppUserPreferences", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<bool>("AutoCloseMenu")+ .HasColumnType("INTEGER");++ b.Property<string>("BackgroundColor")+ .ValueGeneratedOnAdd()+ .HasColumnType("TEXT")+ .HasDefaultValue("#000000");++ b.Property<string>("BookReaderFontFamily")+ .HasColumnType("TEXT");++ b.Property<int>("BookReaderFontSize")+ .HasColumnType("INTEGER");++ b.Property<bool>("BookReaderImmersiveMode")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderLayoutMode")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderLineSpacing")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderMargin")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderReadingDirection")+ .HasColumnType("INTEGER");++ b.Property<bool>("BookReaderTapToPaginate")+ .HasColumnType("INTEGER");++ b.Property<string>("BookThemeName")+ .ValueGeneratedOnAdd()+ .HasColumnType("TEXT")+ .HasDefaultValue("Dark");++ b.Property<int>("GlobalPageLayoutMode")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER")+ .HasDefaultValue(0);++ b.Property<int>("LayoutMode")+ .HasColumnType("INTEGER");++ b.Property<int>("PageSplitOption")+ .HasColumnType("INTEGER");++ b.Property<int>("ReaderMode")+ .HasColumnType("INTEGER");++ b.Property<int>("ReadingDirection")+ .HasColumnType("INTEGER");++ b.Property<int>("ScalingOption")+ .HasColumnType("INTEGER");++ b.Property<bool>("ShowScreenHints")+ .HasColumnType("INTEGER");++ b.Property<int?>("ThemeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId")+ .IsUnique();++ b.HasIndex("ThemeId");++ b.ToTable("AppUserPreferences");+ });++ modelBuilder.Entity("API.Entities.AppUserProgress", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<string>("BookScrollId")+ .HasColumnType("TEXT");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("PagesRead")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.HasIndex("SeriesId");++ b.ToTable("AppUserProgresses");+ });++ modelBuilder.Entity("API.Entities.AppUserRating", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<int>("Rating")+ .HasColumnType("INTEGER");++ b.Property<string>("Review")+ .HasColumnType("TEXT");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.HasIndex("SeriesId");++ b.ToTable("AppUserRating");+ });++ modelBuilder.Entity("API.Entities.AppUserRole", b =>+ {+ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.Property<int>("RoleId")+ .HasColumnType("INTEGER");++ b.HasKey("UserId", "RoleId");++ b.HasIndex("RoleId");++ b.ToTable("AspNetUserRoles", (string)null);+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AgeRating")+ .HasColumnType("INTEGER");++ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("Count")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<bool>("IsSpecial")+ .HasColumnType("INTEGER");++ b.Property<string>("Language")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("Number")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<string>("Range")+ .HasColumnType("TEXT");++ b.Property<DateTime>("ReleaseDate")+ .HasColumnType("TEXT");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.Property<string>("TitleName")+ .HasColumnType("TEXT");++ b.Property<int>("TotalCount")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("VolumeId");++ b.ToTable("Chapter");+ });++ modelBuilder.Entity("API.Entities.CollectionTag", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<bool>("Promoted")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("Id", "Promoted")+ .IsUnique();++ b.ToTable("CollectionTag");+ });++ modelBuilder.Entity("API.Entities.FolderPath", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastScanned")+ .HasColumnType("TEXT");++ b.Property<int>("LibraryId")+ .HasColumnType("INTEGER");++ b.Property<string>("Path")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("LibraryId");++ b.ToTable("FolderPath");+ });++ modelBuilder.Entity("API.Entities.Genre", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<bool>("ExternalTag")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedTitle", "ExternalTag")+ .IsUnique();++ b.ToTable("Genre");+ });++ modelBuilder.Entity("API.Entities.Library", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastScanned")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<int>("Type")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("Library");+ });++ modelBuilder.Entity("API.Entities.MangaFile", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<string>("FilePath")+ .HasColumnType("TEXT");++ b.Property<int>("Format")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("ChapterId");++ b.ToTable("MangaFile");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesMetadata", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AgeRating")+ .HasColumnType("INTEGER");++ b.Property<bool>("AgeRatingLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("CharacterLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("ColoristLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("CoverArtistLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("EditorLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("GenresLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("InkerLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("Language")+ .HasColumnType("TEXT");++ b.Property<bool>("LanguageLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("LettererLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("MaxCount")+ .HasColumnType("INTEGER");++ b.Property<bool>("PencillerLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("PublicationStatus")+ .HasColumnType("INTEGER");++ b.Property<bool>("PublicationStatusLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("PublisherLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("ReleaseYear")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<bool>("SummaryLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("TagsLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("TotalCount")+ .HasColumnType("INTEGER");++ b.Property<bool>("TranslatorLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("WriterLocked")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId")+ .IsUnique();++ b.HasIndex("Id", "SeriesId")+ .IsUnique();++ b.ToTable("SeriesMetadata");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesRelation", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("RelationKind")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("TargetSeriesId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId");++ b.HasIndex("TargetSeriesId");++ b.ToTable("SeriesRelation");+ });++ modelBuilder.Entity("API.Entities.Person", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<int>("Role")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("Person");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<bool>("Promoted")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.ToTable("ReadingList");+ });++ modelBuilder.Entity("API.Entities.ReadingListItem", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<int>("Order")+ .HasColumnType("INTEGER");++ b.Property<int>("ReadingListId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("ChapterId");++ b.HasIndex("ReadingListId");++ b.HasIndex("SeriesId");++ b.HasIndex("VolumeId");++ b.ToTable("ReadingListItem");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<int>("Format")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastChapterAdded")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("LibraryId")+ .HasColumnType("INTEGER");++ b.Property<string>("LocalizedName")+ .HasColumnType("TEXT");++ b.Property<bool>("LocalizedNameLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<bool>("NameLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<string>("OriginalName")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<string>("SortName")+ .HasColumnType("TEXT");++ b.Property<bool>("SortNameLocked")+ .HasColumnType("INTEGER");++ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("LibraryId");++ b.ToTable("Series");+ });++ modelBuilder.Entity("API.Entities.ServerSetting", b =>+ {+ b.Property<int>("Key")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<string>("Value")+ .HasColumnType("TEXT");++ b.HasKey("Key");++ b.ToTable("ServerSetting");+ });++ modelBuilder.Entity("API.Entities.SiteTheme", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<string>("FileName")+ .HasColumnType("TEXT");++ b.Property<bool>("IsDefault")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<int>("Provider")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("SiteTheme");+ });++ modelBuilder.Entity("API.Entities.Tag", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<bool>("ExternalTag")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedTitle", "ExternalTag")+ .IsUnique();++ b.ToTable("Tag");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<int>("Number")+ .HasColumnType("INTEGER");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId");++ b.ToTable("Volume");+ });++ modelBuilder.Entity("AppUserLibrary", b =>+ {+ b.Property<int>("AppUsersId")+ .HasColumnType("INTEGER");++ b.Property<int>("LibrariesId")+ .HasColumnType("INTEGER");++ b.HasKey("AppUsersId", "LibrariesId");++ b.HasIndex("LibrariesId");++ b.ToTable("AppUserLibrary");+ });++ modelBuilder.Entity("ChapterGenre", b =>+ {+ b.Property<int>("ChaptersId")+ .HasColumnType("INTEGER");++ b.Property<int>("GenresId")+ .HasColumnType("INTEGER");++ b.HasKey("ChaptersId", "GenresId");++ b.HasIndex("GenresId");++ b.ToTable("ChapterGenre");+ });++ modelBuilder.Entity("ChapterPerson", b =>+ {+ b.Property<int>("ChapterMetadatasId")+ .HasColumnType("INTEGER");++ b.Property<int>("PeopleId")+ .HasColumnType("INTEGER");++ b.HasKey("ChapterMetadatasId", "PeopleId");++ b.HasIndex("PeopleId");++ b.ToTable("ChapterPerson");+ });++ modelBuilder.Entity("ChapterTag", b =>+ {+ b.Property<int>("ChaptersId")+ .HasColumnType("INTEGER");++ b.Property<int>("TagsId")+ .HasColumnType("INTEGER");++ b.HasKey("ChaptersId", "TagsId");++ b.HasIndex("TagsId");++ b.ToTable("ChapterTag");+ });++ modelBuilder.Entity("CollectionTagSeriesMetadata", b =>+ {+ b.Property<int>("CollectionTagsId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("CollectionTagsId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("CollectionTagSeriesMetadata");+ });++ modelBuilder.Entity("GenreSeriesMetadata", b =>+ {+ b.Property<int>("GenresId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("GenresId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("GenreSeriesMetadata");+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ClaimType")+ .HasColumnType("TEXT");++ b.Property<string>("ClaimValue")+ .HasColumnType("TEXT");++ b.Property<int>("RoleId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("RoleId");++ b.ToTable("AspNetRoleClaims", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ClaimType")+ .HasColumnType("TEXT");++ b.Property<string>("ClaimValue")+ .HasColumnType("TEXT");++ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("UserId");++ b.ToTable("AspNetUserClaims", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>+ {+ b.Property<string>("LoginProvider")+ .HasColumnType("TEXT");++ b.Property<string>("ProviderKey")+ .HasColumnType("TEXT");++ b.Property<string>("ProviderDisplayName")+ .HasColumnType("TEXT");++ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.HasKey("LoginProvider", "ProviderKey");++ b.HasIndex("UserId");++ b.ToTable("AspNetUserLogins", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>+ {+ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.Property<string>("LoginProvider")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("Value")+ .HasColumnType("TEXT");++ b.HasKey("UserId", "LoginProvider", "Name");++ b.ToTable("AspNetUserTokens", (string)null);+ });++ modelBuilder.Entity("PersonSeriesMetadata", b =>+ {+ b.Property<int>("PeopleId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("PeopleId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("PersonSeriesMetadata");+ });++ modelBuilder.Entity("SeriesMetadataTag", b =>+ {+ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.Property<int>("TagsId")+ .HasColumnType("INTEGER");++ b.HasKey("SeriesMetadatasId", "TagsId");++ b.HasIndex("TagsId");++ b.ToTable("SeriesMetadataTag");+ });++ modelBuilder.Entity("API.Entities.AppUserBookmark", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Bookmarks")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserPreferences", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithOne("UserPreferences")+ .HasForeignKey("API.Entities.AppUserPreferences", "AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.SiteTheme", "Theme")+ .WithMany()+ .HasForeignKey("ThemeId");++ b.Navigation("AppUser");++ b.Navigation("Theme");+ });++ modelBuilder.Entity("API.Entities.AppUserProgress", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Progresses")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", null)+ .WithMany("Progress")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserRating", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Ratings")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", null)+ .WithMany("Ratings")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserRole", b =>+ {+ b.HasOne("API.Entities.AppRole", "Role")+ .WithMany("UserRoles")+ .HasForeignKey("RoleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.AppUser", "User")+ .WithMany("UserRoles")+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Role");++ b.Navigation("User");+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.HasOne("API.Entities.Volume", "Volume")+ .WithMany("Chapters")+ .HasForeignKey("VolumeId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Volume");+ });++ modelBuilder.Entity("API.Entities.FolderPath", b =>+ {+ b.HasOne("API.Entities.Library", "Library")+ .WithMany("Folders")+ .HasForeignKey("LibraryId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Library");+ });++ modelBuilder.Entity("API.Entities.MangaFile", b =>+ {+ b.HasOne("API.Entities.Chapter", "Chapter")+ .WithMany("Files")+ .HasForeignKey("ChapterId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Chapter");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithOne("Metadata")+ .HasForeignKey("API.Entities.Metadata.SeriesMetadata", "SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesRelation", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithMany("Relations")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.ClientCascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", "TargetSeries")+ .WithMany("RelationOf")+ .HasForeignKey("TargetSeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");++ b.Navigation("TargetSeries");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("ReadingLists")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.ReadingListItem", b =>+ {+ b.HasOne("API.Entities.Chapter", "Chapter")+ .WithMany()+ .HasForeignKey("ChapterId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.ReadingList", "ReadingList")+ .WithMany("Items")+ .HasForeignKey("ReadingListId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", "Series")+ .WithMany()+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Volume", "Volume")+ .WithMany()+ .HasForeignKey("VolumeId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Chapter");++ b.Navigation("ReadingList");++ b.Navigation("Series");++ b.Navigation("Volume");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.HasOne("API.Entities.Library", "Library")+ .WithMany("Series")+ .HasForeignKey("LibraryId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Library");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithMany("Volumes")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");+ });++ modelBuilder.Entity("AppUserLibrary", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("AppUsersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Library", null)+ .WithMany()+ .HasForeignKey("LibrariesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterGenre", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChaptersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Genre", null)+ .WithMany()+ .HasForeignKey("GenresId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterPerson", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChapterMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Person", null)+ .WithMany()+ .HasForeignKey("PeopleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterTag", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChaptersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Tag", null)+ .WithMany()+ .HasForeignKey("TagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("CollectionTagSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.CollectionTag", null)+ .WithMany()+ .HasForeignKey("CollectionTagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("GenreSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Genre", null)+ .WithMany()+ .HasForeignKey("GenresId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>+ {+ b.HasOne("API.Entities.AppRole", null)+ .WithMany()+ .HasForeignKey("RoleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("PersonSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Person", null)+ .WithMany()+ .HasForeignKey("PeopleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("SeriesMetadataTag", b =>+ {+ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Tag", null)+ .WithMany()+ .HasForeignKey("TagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("API.Entities.AppRole", b =>+ {+ b.Navigation("UserRoles");+ });++ modelBuilder.Entity("API.Entities.AppUser", b =>+ {+ b.Navigation("Bookmarks");++ b.Navigation("Progresses");++ b.Navigation("Ratings");++ b.Navigation("ReadingLists");++ b.Navigation("UserPreferences");++ b.Navigation("UserRoles");+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.Navigation("Files");+ });++ modelBuilder.Entity("API.Entities.Library", b =>+ {+ b.Navigation("Folders");++ b.Navigation("Series");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.Navigation("Items");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.Navigation("Metadata");++ b.Navigation("Progress");++ b.Navigation("Ratings");++ b.Navigation("RelationOf");++ b.Navigation("Relations");++ b.Navigation("Volumes");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.Navigation("Chapters");+ });+#pragma warning restore 612, 618+ }+ }+}diff --git a/API/Data/Migrations/20220613131302_GlobalPageLayoutModeUserSetting.cs b/API/Data/Migrations/20220613131302_GlobalPageLayoutModeUserSetting.csnew file mode 100644index 000000000..397f9a734--- /dev/null+++ b/API/Data/Migrations/20220613131302_GlobalPageLayoutModeUserSetting.cs@@ -0,0 +1,26 @@+using Microsoft.EntityFrameworkCore.Migrations;++#nullable disable++namespace API.Data.Migrations+{+ public partial class GlobalPageLayoutModeUserSetting : Migration+ {+ protected override void Up(MigrationBuilder migrationBuilder)+ {+ migrationBuilder.AddColumn<int>(+ name: "GlobalPageLayoutMode",+ table: "AppUserPreferences",+ type: "INTEGER",+ nullable: false,+ defaultValue: 0);+ }++ protected override void Down(MigrationBuilder migrationBuilder)+ {+ migrationBuilder.DropColumn(+ name: "GlobalPageLayoutMode",+ table: "AppUserPreferences");+ }+ }+}diff --git a/API/Data/Migrations/20220615190640_LastFileAnalysis.Designer.cs b/API/Data/Migrations/20220615190640_LastFileAnalysis.Designer.csnew file mode 100644index 000000000..4c5a53f7f--- /dev/null+++ b/API/Data/Migrations/20220615190640_LastFileAnalysis.Designer.cs@@ -0,0 +1,1570 @@+// <auto-generated />+using System;+using API.Data;+using Microsoft.EntityFrameworkCore;+using Microsoft.EntityFrameworkCore.Infrastructure;+using Microsoft.EntityFrameworkCore.Migrations;+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;++#nullable disable++namespace API.Data.Migrations+{+ [DbContext(typeof(DataContext))]+ [Migration("20220615190640_LastFileAnalysis")]+ partial class LastFileAnalysis+ {+ protected override void BuildTargetModel(ModelBuilder modelBuilder)+ {+#pragma warning disable 612, 618+ modelBuilder.HasAnnotation("ProductVersion", "6.0.5");++ modelBuilder.Entity("API.Entities.AppRole", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ConcurrencyStamp")+ .IsConcurrencyToken()+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedName")+ .IsUnique()+ .HasDatabaseName("RoleNameIndex");++ b.ToTable("AspNetRoles", (string)null);+ });++ modelBuilder.Entity("API.Entities.AppUser", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AccessFailedCount")+ .HasColumnType("INTEGER");++ b.Property<string>("ApiKey")+ .HasColumnType("TEXT");++ b.Property<string>("ConcurrencyStamp")+ .IsConcurrencyToken()+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<string>("Email")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<bool>("EmailConfirmed")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastActive")+ .HasColumnType("TEXT");++ b.Property<bool>("LockoutEnabled")+ .HasColumnType("INTEGER");++ b.Property<DateTimeOffset?>("LockoutEnd")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedEmail")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedUserName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("PasswordHash")+ .HasColumnType("TEXT");++ b.Property<string>("PhoneNumber")+ .HasColumnType("TEXT");++ b.Property<bool>("PhoneNumberConfirmed")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<string>("SecurityStamp")+ .HasColumnType("TEXT");++ b.Property<bool>("TwoFactorEnabled")+ .HasColumnType("INTEGER");++ b.Property<string>("UserName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedEmail")+ .HasDatabaseName("EmailIndex");++ b.HasIndex("NormalizedUserName")+ .IsUnique()+ .HasDatabaseName("UserNameIndex");++ b.ToTable("AspNetUsers", (string)null);+ });++ modelBuilder.Entity("API.Entities.AppUserBookmark", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<string>("FileName")+ .HasColumnType("TEXT");++ b.Property<int>("Page")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.ToTable("AppUserBookmark");+ });++ modelBuilder.Entity("API.Entities.AppUserPreferences", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<bool>("AutoCloseMenu")+ .HasColumnType("INTEGER");++ b.Property<string>("BackgroundColor")+ .ValueGeneratedOnAdd()+ .HasColumnType("TEXT")+ .HasDefaultValue("#000000");++ b.Property<string>("BookReaderFontFamily")+ .HasColumnType("TEXT");++ b.Property<int>("BookReaderFontSize")+ .HasColumnType("INTEGER");++ b.Property<bool>("BookReaderImmersiveMode")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderLayoutMode")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderLineSpacing")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderMargin")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderReadingDirection")+ .HasColumnType("INTEGER");++ b.Property<bool>("BookReaderTapToPaginate")+ .HasColumnType("INTEGER");++ b.Property<string>("BookThemeName")+ .ValueGeneratedOnAdd()+ .HasColumnType("TEXT")+ .HasDefaultValue("Dark");++ b.Property<int>("GlobalPageLayoutMode")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER")+ .HasDefaultValue(0);++ b.Property<int>("LayoutMode")+ .HasColumnType("INTEGER");++ b.Property<int>("PageSplitOption")+ .HasColumnType("INTEGER");++ b.Property<int>("ReaderMode")+ .HasColumnType("INTEGER");++ b.Property<int>("ReadingDirection")+ .HasColumnType("INTEGER");++ b.Property<int>("ScalingOption")+ .HasColumnType("INTEGER");++ b.Property<bool>("ShowScreenHints")+ .HasColumnType("INTEGER");++ b.Property<int?>("ThemeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId")+ .IsUnique();++ b.HasIndex("ThemeId");++ b.ToTable("AppUserPreferences");+ });++ modelBuilder.Entity("API.Entities.AppUserProgress", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<string>("BookScrollId")+ .HasColumnType("TEXT");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("PagesRead")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.HasIndex("SeriesId");++ b.ToTable("AppUserProgresses");+ });++ modelBuilder.Entity("API.Entities.AppUserRating", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<int>("Rating")+ .HasColumnType("INTEGER");++ b.Property<string>("Review")+ .HasColumnType("TEXT");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.HasIndex("SeriesId");++ b.ToTable("AppUserRating");+ });++ modelBuilder.Entity("API.Entities.AppUserRole", b =>+ {+ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.Property<int>("RoleId")+ .HasColumnType("INTEGER");++ b.HasKey("UserId", "RoleId");++ b.HasIndex("RoleId");++ b.ToTable("AspNetUserRoles", (string)null);+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AgeRating")+ .HasColumnType("INTEGER");++ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("Count")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<bool>("IsSpecial")+ .HasColumnType("INTEGER");++ b.Property<string>("Language")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("Number")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<string>("Range")+ .HasColumnType("TEXT");++ b.Property<DateTime>("ReleaseDate")+ .HasColumnType("TEXT");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.Property<string>("TitleName")+ .HasColumnType("TEXT");++ b.Property<int>("TotalCount")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("VolumeId");++ b.ToTable("Chapter");+ });++ modelBuilder.Entity("API.Entities.CollectionTag", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<bool>("Promoted")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("Id", "Promoted")+ .IsUnique();++ b.ToTable("CollectionTag");+ });++ modelBuilder.Entity("API.Entities.FolderPath", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastScanned")+ .HasColumnType("TEXT");++ b.Property<int>("LibraryId")+ .HasColumnType("INTEGER");++ b.Property<string>("Path")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("LibraryId");++ b.ToTable("FolderPath");+ });++ modelBuilder.Entity("API.Entities.Genre", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<bool>("ExternalTag")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedTitle", "ExternalTag")+ .IsUnique();++ b.ToTable("Genre");+ });++ modelBuilder.Entity("API.Entities.Library", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastScanned")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<int>("Type")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("Library");+ });++ modelBuilder.Entity("API.Entities.MangaFile", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<string>("FilePath")+ .HasColumnType("TEXT");++ b.Property<int>("Format")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastFileAnalysis")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("ChapterId");++ b.ToTable("MangaFile");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesMetadata", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AgeRating")+ .HasColumnType("INTEGER");++ b.Property<bool>("AgeRatingLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("CharacterLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("ColoristLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("CoverArtistLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("EditorLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("GenresLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("InkerLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("Language")+ .HasColumnType("TEXT");++ b.Property<bool>("LanguageLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("LettererLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("MaxCount")+ .HasColumnType("INTEGER");++ b.Property<bool>("PencillerLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("PublicationStatus")+ .HasColumnType("INTEGER");++ b.Property<bool>("PublicationStatusLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("PublisherLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("ReleaseYear")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<bool>("SummaryLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("TagsLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("TotalCount")+ .HasColumnType("INTEGER");++ b.Property<bool>("TranslatorLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("WriterLocked")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId")+ .IsUnique();++ b.HasIndex("Id", "SeriesId")+ .IsUnique();++ b.ToTable("SeriesMetadata");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesRelation", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("RelationKind")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("TargetSeriesId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId");++ b.HasIndex("TargetSeriesId");++ b.ToTable("SeriesRelation");+ });++ modelBuilder.Entity("API.Entities.Person", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<int>("Role")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("Person");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<bool>("Promoted")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.ToTable("ReadingList");+ });++ modelBuilder.Entity("API.Entities.ReadingListItem", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<int>("Order")+ .HasColumnType("INTEGER");++ b.Property<int>("ReadingListId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("ChapterId");++ b.HasIndex("ReadingListId");++ b.HasIndex("SeriesId");++ b.HasIndex("VolumeId");++ b.ToTable("ReadingListItem");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<int>("Format")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastChapterAdded")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("LibraryId")+ .HasColumnType("INTEGER");++ b.Property<string>("LocalizedName")+ .HasColumnType("TEXT");++ b.Property<bool>("LocalizedNameLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<bool>("NameLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<string>("OriginalName")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<string>("SortName")+ .HasColumnType("TEXT");++ b.Property<bool>("SortNameLocked")+ .HasColumnType("INTEGER");++ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("LibraryId");++ b.ToTable("Series");+ });++ modelBuilder.Entity("API.Entities.ServerSetting", b =>+ {+ b.Property<int>("Key")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<string>("Value")+ .HasColumnType("TEXT");++ b.HasKey("Key");++ b.ToTable("ServerSetting");+ });++ modelBuilder.Entity("API.Entities.SiteTheme", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<string>("FileName")+ .HasColumnType("TEXT");++ b.Property<bool>("IsDefault")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<int>("Provider")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("SiteTheme");+ });++ modelBuilder.Entity("API.Entities.Tag", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<bool>("ExternalTag")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedTitle", "ExternalTag")+ .IsUnique();++ b.ToTable("Tag");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<int>("Number")+ .HasColumnType("INTEGER");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId");++ b.ToTable("Volume");+ });++ modelBuilder.Entity("AppUserLibrary", b =>+ {+ b.Property<int>("AppUsersId")+ .HasColumnType("INTEGER");++ b.Property<int>("LibrariesId")+ .HasColumnType("INTEGER");++ b.HasKey("AppUsersId", "LibrariesId");++ b.HasIndex("LibrariesId");++ b.ToTable("AppUserLibrary");+ });++ modelBuilder.Entity("ChapterGenre", b =>+ {+ b.Property<int>("ChaptersId")+ .HasColumnType("INTEGER");++ b.Property<int>("GenresId")+ .HasColumnType("INTEGER");++ b.HasKey("ChaptersId", "GenresId");++ b.HasIndex("GenresId");++ b.ToTable("ChapterGenre");+ });++ modelBuilder.Entity("ChapterPerson", b =>+ {+ b.Property<int>("ChapterMetadatasId")+ .HasColumnType("INTEGER");++ b.Property<int>("PeopleId")+ .HasColumnType("INTEGER");++ b.HasKey("ChapterMetadatasId", "PeopleId");++ b.HasIndex("PeopleId");++ b.ToTable("ChapterPerson");+ });++ modelBuilder.Entity("ChapterTag", b =>+ {+ b.Property<int>("ChaptersId")+ .HasColumnType("INTEGER");++ b.Property<int>("TagsId")+ .HasColumnType("INTEGER");++ b.HasKey("ChaptersId", "TagsId");++ b.HasIndex("TagsId");++ b.ToTable("ChapterTag");+ });++ modelBuilder.Entity("CollectionTagSeriesMetadata", b =>+ {+ b.Property<int>("CollectionTagsId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("CollectionTagsId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("CollectionTagSeriesMetadata");+ });++ modelBuilder.Entity("GenreSeriesMetadata", b =>+ {+ b.Property<int>("GenresId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("GenresId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("GenreSeriesMetadata");+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ClaimType")+ .HasColumnType("TEXT");++ b.Property<string>("ClaimValue")+ .HasColumnType("TEXT");++ b.Property<int>("RoleId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("RoleId");++ b.ToTable("AspNetRoleClaims", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ClaimType")+ .HasColumnType("TEXT");++ b.Property<string>("ClaimValue")+ .HasColumnType("TEXT");++ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("UserId");++ b.ToTable("AspNetUserClaims", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>+ {+ b.Property<string>("LoginProvider")+ .HasColumnType("TEXT");++ b.Property<string>("ProviderKey")+ .HasColumnType("TEXT");++ b.Property<string>("ProviderDisplayName")+ .HasColumnType("TEXT");++ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.HasKey("LoginProvider", "ProviderKey");++ b.HasIndex("UserId");++ b.ToTable("AspNetUserLogins", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>+ {+ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.Property<string>("LoginProvider")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("Value")+ .HasColumnType("TEXT");++ b.HasKey("UserId", "LoginProvider", "Name");++ b.ToTable("AspNetUserTokens", (string)null);+ });++ modelBuilder.Entity("PersonSeriesMetadata", b =>+ {+ b.Property<int>("PeopleId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("PeopleId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("PersonSeriesMetadata");+ });++ modelBuilder.Entity("SeriesMetadataTag", b =>+ {+ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.Property<int>("TagsId")+ .HasColumnType("INTEGER");++ b.HasKey("SeriesMetadatasId", "TagsId");++ b.HasIndex("TagsId");++ b.ToTable("SeriesMetadataTag");+ });++ modelBuilder.Entity("API.Entities.AppUserBookmark", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Bookmarks")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserPreferences", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithOne("UserPreferences")+ .HasForeignKey("API.Entities.AppUserPreferences", "AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.SiteTheme", "Theme")+ .WithMany()+ .HasForeignKey("ThemeId");++ b.Navigation("AppUser");++ b.Navigation("Theme");+ });++ modelBuilder.Entity("API.Entities.AppUserProgress", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Progresses")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", null)+ .WithMany("Progress")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserRating", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Ratings")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", null)+ .WithMany("Ratings")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserRole", b =>+ {+ b.HasOne("API.Entities.AppRole", "Role")+ .WithMany("UserRoles")+ .HasForeignKey("RoleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.AppUser", "User")+ .WithMany("UserRoles")+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Role");++ b.Navigation("User");+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.HasOne("API.Entities.Volume", "Volume")+ .WithMany("Chapters")+ .HasForeignKey("VolumeId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Volume");+ });++ modelBuilder.Entity("API.Entities.FolderPath", b =>+ {+ b.HasOne("API.Entities.Library", "Library")+ .WithMany("Folders")+ .HasForeignKey("LibraryId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Library");+ });++ modelBuilder.Entity("API.Entities.MangaFile", b =>+ {+ b.HasOne("API.Entities.Chapter", "Chapter")+ .WithMany("Files")+ .HasForeignKey("ChapterId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Chapter");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithOne("Metadata")+ .HasForeignKey("API.Entities.Metadata.SeriesMetadata", "SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesRelation", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithMany("Relations")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.ClientCascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", "TargetSeries")+ .WithMany("RelationOf")+ .HasForeignKey("TargetSeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");++ b.Navigation("TargetSeries");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("ReadingLists")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.ReadingListItem", b =>+ {+ b.HasOne("API.Entities.Chapter", "Chapter")+ .WithMany()+ .HasForeignKey("ChapterId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.ReadingList", "ReadingList")+ .WithMany("Items")+ .HasForeignKey("ReadingListId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", "Series")+ .WithMany()+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Volume", "Volume")+ .WithMany()+ .HasForeignKey("VolumeId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Chapter");++ b.Navigation("ReadingList");++ b.Navigation("Series");++ b.Navigation("Volume");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.HasOne("API.Entities.Library", "Library")+ .WithMany("Series")+ .HasForeignKey("LibraryId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Library");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithMany("Volumes")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");+ });++ modelBuilder.Entity("AppUserLibrary", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("AppUsersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Library", null)+ .WithMany()+ .HasForeignKey("LibrariesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterGenre", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChaptersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Genre", null)+ .WithMany()+ .HasForeignKey("GenresId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterPerson", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChapterMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Person", null)+ .WithMany()+ .HasForeignKey("PeopleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterTag", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChaptersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Tag", null)+ .WithMany()+ .HasForeignKey("TagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("CollectionTagSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.CollectionTag", null)+ .WithMany()+ .HasForeignKey("CollectionTagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("GenreSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Genre", null)+ .WithMany()+ .HasForeignKey("GenresId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>+ {+ b.HasOne("API.Entities.AppRole", null)+ .WithMany()+ .HasForeignKey("RoleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("PersonSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Person", null)+ .WithMany()+ .HasForeignKey("PeopleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("SeriesMetadataTag", b =>+ {+ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Tag", null)+ .WithMany()+ .HasForeignKey("TagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("API.Entities.AppRole", b =>+ {+ b.Navigation("UserRoles");+ });++ modelBuilder.Entity("API.Entities.AppUser", b =>+ {+ b.Navigation("Bookmarks");++ b.Navigation("Progresses");++ b.Navigation("Ratings");++ b.Navigation("ReadingLists");++ b.Navigation("UserPreferences");++ b.Navigation("UserRoles");+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.Navigation("Files");+ });++ modelBuilder.Entity("API.Entities.Library", b =>+ {+ b.Navigation("Folders");++ b.Navigation("Series");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.Navigation("Items");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.Navigation("Metadata");++ b.Navigation("Progress");++ b.Navigation("Ratings");++ b.Navigation("RelationOf");++ b.Navigation("Relations");++ b.Navigation("Volumes");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.Navigation("Chapters");+ });+#pragma warning restore 612, 618+ }+ }+}diff --git a/API/Data/Migrations/20220615190640_LastFileAnalysis.cs b/API/Data/Migrations/20220615190640_LastFileAnalysis.csnew file mode 100644index 000000000..b1fac2ae4--- /dev/null+++ b/API/Data/Migrations/20220615190640_LastFileAnalysis.cs@@ -0,0 +1,27 @@+using System;+using Microsoft.EntityFrameworkCore.Migrations;++#nullable disable++namespace API.Data.Migrations+{+ public partial class LastFileAnalysis : Migration+ {+ protected override void Up(MigrationBuilder migrationBuilder)+ {+ migrationBuilder.AddColumn<DateTime>(+ name: "LastFileAnalysis",+ table: "MangaFile",+ type: "TEXT",+ nullable: false,+ defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));+ }++ protected override void Down(MigrationBuilder migrationBuilder)+ {+ migrationBuilder.DropColumn(+ name: "LastFileAnalysis",+ table: "MangaFile");+ }+ }+}diff --git a/API/Data/Migrations/20220625215526_BlurUnreadSummaries.Designer.cs b/API/Data/Migrations/20220625215526_BlurUnreadSummaries.Designer.csnew file mode 100644index 000000000..4aa051023--- /dev/null+++ b/API/Data/Migrations/20220625215526_BlurUnreadSummaries.Designer.cs@@ -0,0 +1,1573 @@+// <auto-generated />+using System;+using API.Data;+using Microsoft.EntityFrameworkCore;+using Microsoft.EntityFrameworkCore.Infrastructure;+using Microsoft.EntityFrameworkCore.Migrations;+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;++#nullable disable++namespace API.Data.Migrations+{+ [DbContext(typeof(DataContext))]+ [Migration("20220625215526_BlurUnreadSummaries")]+ partial class BlurUnreadSummaries+ {+ protected override void BuildTargetModel(ModelBuilder modelBuilder)+ {+#pragma warning disable 612, 618+ modelBuilder.HasAnnotation("ProductVersion", "6.0.6");++ modelBuilder.Entity("API.Entities.AppRole", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ConcurrencyStamp")+ .IsConcurrencyToken()+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedName")+ .IsUnique()+ .HasDatabaseName("RoleNameIndex");++ b.ToTable("AspNetRoles", (string)null);+ });++ modelBuilder.Entity("API.Entities.AppUser", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AccessFailedCount")+ .HasColumnType("INTEGER");++ b.Property<string>("ApiKey")+ .HasColumnType("TEXT");++ b.Property<string>("ConcurrencyStamp")+ .IsConcurrencyToken()+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<string>("Email")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<bool>("EmailConfirmed")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastActive")+ .HasColumnType("TEXT");++ b.Property<bool>("LockoutEnabled")+ .HasColumnType("INTEGER");++ b.Property<DateTimeOffset?>("LockoutEnd")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedEmail")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedUserName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.Property<string>("PasswordHash")+ .HasColumnType("TEXT");++ b.Property<string>("PhoneNumber")+ .HasColumnType("TEXT");++ b.Property<bool>("PhoneNumberConfirmed")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<string>("SecurityStamp")+ .HasColumnType("TEXT");++ b.Property<bool>("TwoFactorEnabled")+ .HasColumnType("INTEGER");++ b.Property<string>("UserName")+ .HasMaxLength(256)+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedEmail")+ .HasDatabaseName("EmailIndex");++ b.HasIndex("NormalizedUserName")+ .IsUnique()+ .HasDatabaseName("UserNameIndex");++ b.ToTable("AspNetUsers", (string)null);+ });++ modelBuilder.Entity("API.Entities.AppUserBookmark", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<string>("FileName")+ .HasColumnType("TEXT");++ b.Property<int>("Page")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.ToTable("AppUserBookmark");+ });++ modelBuilder.Entity("API.Entities.AppUserPreferences", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<bool>("AutoCloseMenu")+ .HasColumnType("INTEGER");++ b.Property<string>("BackgroundColor")+ .ValueGeneratedOnAdd()+ .HasColumnType("TEXT")+ .HasDefaultValue("#000000");++ b.Property<bool>("BlurUnreadSummaries")+ .HasColumnType("INTEGER");++ b.Property<string>("BookReaderFontFamily")+ .HasColumnType("TEXT");++ b.Property<int>("BookReaderFontSize")+ .HasColumnType("INTEGER");++ b.Property<bool>("BookReaderImmersiveMode")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderLayoutMode")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderLineSpacing")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderMargin")+ .HasColumnType("INTEGER");++ b.Property<int>("BookReaderReadingDirection")+ .HasColumnType("INTEGER");++ b.Property<bool>("BookReaderTapToPaginate")+ .HasColumnType("INTEGER");++ b.Property<string>("BookThemeName")+ .ValueGeneratedOnAdd()+ .HasColumnType("TEXT")+ .HasDefaultValue("Dark");++ b.Property<int>("GlobalPageLayoutMode")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER")+ .HasDefaultValue(0);++ b.Property<int>("LayoutMode")+ .HasColumnType("INTEGER");++ b.Property<int>("PageSplitOption")+ .HasColumnType("INTEGER");++ b.Property<int>("ReaderMode")+ .HasColumnType("INTEGER");++ b.Property<int>("ReadingDirection")+ .HasColumnType("INTEGER");++ b.Property<int>("ScalingOption")+ .HasColumnType("INTEGER");++ b.Property<bool>("ShowScreenHints")+ .HasColumnType("INTEGER");++ b.Property<int?>("ThemeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId")+ .IsUnique();++ b.HasIndex("ThemeId");++ b.ToTable("AppUserPreferences");+ });++ modelBuilder.Entity("API.Entities.AppUserProgress", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<string>("BookScrollId")+ .HasColumnType("TEXT");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("PagesRead")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.HasIndex("SeriesId");++ b.ToTable("AppUserProgresses");+ });++ modelBuilder.Entity("API.Entities.AppUserRating", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<int>("Rating")+ .HasColumnType("INTEGER");++ b.Property<string>("Review")+ .HasColumnType("TEXT");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.HasIndex("SeriesId");++ b.ToTable("AppUserRating");+ });++ modelBuilder.Entity("API.Entities.AppUserRole", b =>+ {+ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.Property<int>("RoleId")+ .HasColumnType("INTEGER");++ b.HasKey("UserId", "RoleId");++ b.HasIndex("RoleId");++ b.ToTable("AspNetUserRoles", (string)null);+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AgeRating")+ .HasColumnType("INTEGER");++ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("Count")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<bool>("IsSpecial")+ .HasColumnType("INTEGER");++ b.Property<string>("Language")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("Number")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<string>("Range")+ .HasColumnType("TEXT");++ b.Property<DateTime>("ReleaseDate")+ .HasColumnType("TEXT");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.Property<string>("TitleName")+ .HasColumnType("TEXT");++ b.Property<int>("TotalCount")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("VolumeId");++ b.ToTable("Chapter");+ });++ modelBuilder.Entity("API.Entities.CollectionTag", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<bool>("Promoted")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("Id", "Promoted")+ .IsUnique();++ b.ToTable("CollectionTag");+ });++ modelBuilder.Entity("API.Entities.FolderPath", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastScanned")+ .HasColumnType("TEXT");++ b.Property<int>("LibraryId")+ .HasColumnType("INTEGER");++ b.Property<string>("Path")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("LibraryId");++ b.ToTable("FolderPath");+ });++ modelBuilder.Entity("API.Entities.Genre", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<bool>("ExternalTag")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedTitle", "ExternalTag")+ .IsUnique();++ b.ToTable("Genre");+ });++ modelBuilder.Entity("API.Entities.Library", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastScanned")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<int>("Type")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("Library");+ });++ modelBuilder.Entity("API.Entities.MangaFile", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<string>("FilePath")+ .HasColumnType("TEXT");++ b.Property<int>("Format")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastFileAnalysis")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("ChapterId");++ b.ToTable("MangaFile");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesMetadata", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AgeRating")+ .HasColumnType("INTEGER");++ b.Property<bool>("AgeRatingLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("CharacterLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("ColoristLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("CoverArtistLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("EditorLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("GenresLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("InkerLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("Language")+ .HasColumnType("TEXT");++ b.Property<bool>("LanguageLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("LettererLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("MaxCount")+ .HasColumnType("INTEGER");++ b.Property<bool>("PencillerLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("PublicationStatus")+ .HasColumnType("INTEGER");++ b.Property<bool>("PublicationStatusLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("PublisherLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("ReleaseYear")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<bool>("SummaryLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("TagsLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("TotalCount")+ .HasColumnType("INTEGER");++ b.Property<bool>("TranslatorLocked")+ .HasColumnType("INTEGER");++ b.Property<bool>("WriterLocked")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId")+ .IsUnique();++ b.HasIndex("Id", "SeriesId")+ .IsUnique();++ b.ToTable("SeriesMetadata");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesRelation", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("RelationKind")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("TargetSeriesId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId");++ b.HasIndex("TargetSeriesId");++ b.ToTable("SeriesRelation");+ });++ modelBuilder.Entity("API.Entities.Person", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<int>("Role")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("Person");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AppUserId")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<bool>("Promoted")+ .HasColumnType("INTEGER");++ b.Property<string>("Summary")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("AppUserId");++ b.ToTable("ReadingList");+ });++ modelBuilder.Entity("API.Entities.ReadingListItem", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("ChapterId")+ .HasColumnType("INTEGER");++ b.Property<int>("Order")+ .HasColumnType("INTEGER");++ b.Property<int>("ReadingListId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<int>("VolumeId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("ChapterId");++ b.HasIndex("ReadingListId");++ b.HasIndex("SeriesId");++ b.HasIndex("VolumeId");++ b.ToTable("ReadingListItem");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<bool>("CoverImageLocked")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<int>("Format")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastChapterAdded")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("LibraryId")+ .HasColumnType("INTEGER");++ b.Property<string>("LocalizedName")+ .HasColumnType("TEXT");++ b.Property<bool>("LocalizedNameLocked")+ .HasColumnType("INTEGER");++ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<bool>("NameLocked")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<string>("OriginalName")+ .HasColumnType("TEXT");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<string>("SortName")+ .HasColumnType("TEXT");++ b.Property<bool>("SortNameLocked")+ .HasColumnType("INTEGER");++ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("LibraryId");++ b.ToTable("Series");+ });++ modelBuilder.Entity("API.Entities.ServerSetting", b =>+ {+ b.Property<int>("Key")+ .HasColumnType("INTEGER");++ b.Property<uint>("RowVersion")+ .IsConcurrencyToken()+ .HasColumnType("INTEGER");++ b.Property<string>("Value")+ .HasColumnType("TEXT");++ b.HasKey("Key");++ b.ToTable("ServerSetting");+ });++ modelBuilder.Entity("API.Entities.SiteTheme", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<string>("FileName")+ .HasColumnType("TEXT");++ b.Property<bool>("IsDefault")+ .HasColumnType("INTEGER");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("NormalizedName")+ .HasColumnType("TEXT");++ b.Property<int>("Provider")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.ToTable("SiteTheme");+ });++ modelBuilder.Entity("API.Entities.Tag", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<bool>("ExternalTag")+ .HasColumnType("INTEGER");++ b.Property<string>("NormalizedTitle")+ .HasColumnType("TEXT");++ b.Property<string>("Title")+ .HasColumnType("TEXT");++ b.HasKey("Id");++ b.HasIndex("NormalizedTitle", "ExternalTag")+ .IsUnique();++ b.ToTable("Tag");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("CoverImage")+ .HasColumnType("TEXT");++ b.Property<DateTime>("Created")+ .HasColumnType("TEXT");++ b.Property<DateTime>("LastModified")+ .HasColumnType("TEXT");++ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<int>("Number")+ .HasColumnType("INTEGER");++ b.Property<int>("Pages")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesId")+ .HasColumnType("INTEGER");++ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("SeriesId");++ b.ToTable("Volume");+ });++ modelBuilder.Entity("AppUserLibrary", b =>+ {+ b.Property<int>("AppUsersId")+ .HasColumnType("INTEGER");++ b.Property<int>("LibrariesId")+ .HasColumnType("INTEGER");++ b.HasKey("AppUsersId", "LibrariesId");++ b.HasIndex("LibrariesId");++ b.ToTable("AppUserLibrary");+ });++ modelBuilder.Entity("ChapterGenre", b =>+ {+ b.Property<int>("ChaptersId")+ .HasColumnType("INTEGER");++ b.Property<int>("GenresId")+ .HasColumnType("INTEGER");++ b.HasKey("ChaptersId", "GenresId");++ b.HasIndex("GenresId");++ b.ToTable("ChapterGenre");+ });++ modelBuilder.Entity("ChapterPerson", b =>+ {+ b.Property<int>("ChapterMetadatasId")+ .HasColumnType("INTEGER");++ b.Property<int>("PeopleId")+ .HasColumnType("INTEGER");++ b.HasKey("ChapterMetadatasId", "PeopleId");++ b.HasIndex("PeopleId");++ b.ToTable("ChapterPerson");+ });++ modelBuilder.Entity("ChapterTag", b =>+ {+ b.Property<int>("ChaptersId")+ .HasColumnType("INTEGER");++ b.Property<int>("TagsId")+ .HasColumnType("INTEGER");++ b.HasKey("ChaptersId", "TagsId");++ b.HasIndex("TagsId");++ b.ToTable("ChapterTag");+ });++ modelBuilder.Entity("CollectionTagSeriesMetadata", b =>+ {+ b.Property<int>("CollectionTagsId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("CollectionTagsId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("CollectionTagSeriesMetadata");+ });++ modelBuilder.Entity("GenreSeriesMetadata", b =>+ {+ b.Property<int>("GenresId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("GenresId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("GenreSeriesMetadata");+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ClaimType")+ .HasColumnType("TEXT");++ b.Property<string>("ClaimValue")+ .HasColumnType("TEXT");++ b.Property<int>("RoleId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("RoleId");++ b.ToTable("AspNetRoleClaims", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>+ {+ b.Property<int>("Id")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER");++ b.Property<string>("ClaimType")+ .HasColumnType("TEXT");++ b.Property<string>("ClaimValue")+ .HasColumnType("TEXT");++ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.HasKey("Id");++ b.HasIndex("UserId");++ b.ToTable("AspNetUserClaims", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>+ {+ b.Property<string>("LoginProvider")+ .HasColumnType("TEXT");++ b.Property<string>("ProviderKey")+ .HasColumnType("TEXT");++ b.Property<string>("ProviderDisplayName")+ .HasColumnType("TEXT");++ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.HasKey("LoginProvider", "ProviderKey");++ b.HasIndex("UserId");++ b.ToTable("AspNetUserLogins", (string)null);+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>+ {+ b.Property<int>("UserId")+ .HasColumnType("INTEGER");++ b.Property<string>("LoginProvider")+ .HasColumnType("TEXT");++ b.Property<string>("Name")+ .HasColumnType("TEXT");++ b.Property<string>("Value")+ .HasColumnType("TEXT");++ b.HasKey("UserId", "LoginProvider", "Name");++ b.ToTable("AspNetUserTokens", (string)null);+ });++ modelBuilder.Entity("PersonSeriesMetadata", b =>+ {+ b.Property<int>("PeopleId")+ .HasColumnType("INTEGER");++ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.HasKey("PeopleId", "SeriesMetadatasId");++ b.HasIndex("SeriesMetadatasId");++ b.ToTable("PersonSeriesMetadata");+ });++ modelBuilder.Entity("SeriesMetadataTag", b =>+ {+ b.Property<int>("SeriesMetadatasId")+ .HasColumnType("INTEGER");++ b.Property<int>("TagsId")+ .HasColumnType("INTEGER");++ b.HasKey("SeriesMetadatasId", "TagsId");++ b.HasIndex("TagsId");++ b.ToTable("SeriesMetadataTag");+ });++ modelBuilder.Entity("API.Entities.AppUserBookmark", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Bookmarks")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserPreferences", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithOne("UserPreferences")+ .HasForeignKey("API.Entities.AppUserPreferences", "AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.SiteTheme", "Theme")+ .WithMany()+ .HasForeignKey("ThemeId");++ b.Navigation("AppUser");++ b.Navigation("Theme");+ });++ modelBuilder.Entity("API.Entities.AppUserProgress", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Progresses")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", null)+ .WithMany("Progress")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserRating", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("Ratings")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", null)+ .WithMany("Ratings")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.AppUserRole", b =>+ {+ b.HasOne("API.Entities.AppRole", "Role")+ .WithMany("UserRoles")+ .HasForeignKey("RoleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.AppUser", "User")+ .WithMany("UserRoles")+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Role");++ b.Navigation("User");+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.HasOne("API.Entities.Volume", "Volume")+ .WithMany("Chapters")+ .HasForeignKey("VolumeId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Volume");+ });++ modelBuilder.Entity("API.Entities.FolderPath", b =>+ {+ b.HasOne("API.Entities.Library", "Library")+ .WithMany("Folders")+ .HasForeignKey("LibraryId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Library");+ });++ modelBuilder.Entity("API.Entities.MangaFile", b =>+ {+ b.HasOne("API.Entities.Chapter", "Chapter")+ .WithMany("Files")+ .HasForeignKey("ChapterId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Chapter");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithOne("Metadata")+ .HasForeignKey("API.Entities.Metadata.SeriesMetadata", "SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");+ });++ modelBuilder.Entity("API.Entities.Metadata.SeriesRelation", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithMany("Relations")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.ClientCascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", "TargetSeries")+ .WithMany("RelationOf")+ .HasForeignKey("TargetSeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");++ b.Navigation("TargetSeries");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.HasOne("API.Entities.AppUser", "AppUser")+ .WithMany("ReadingLists")+ .HasForeignKey("AppUserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("AppUser");+ });++ modelBuilder.Entity("API.Entities.ReadingListItem", b =>+ {+ b.HasOne("API.Entities.Chapter", "Chapter")+ .WithMany()+ .HasForeignKey("ChapterId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.ReadingList", "ReadingList")+ .WithMany("Items")+ .HasForeignKey("ReadingListId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Series", "Series")+ .WithMany()+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Volume", "Volume")+ .WithMany()+ .HasForeignKey("VolumeId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Chapter");++ b.Navigation("ReadingList");++ b.Navigation("Series");++ b.Navigation("Volume");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.HasOne("API.Entities.Library", "Library")+ .WithMany("Series")+ .HasForeignKey("LibraryId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Library");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.HasOne("API.Entities.Series", "Series")+ .WithMany("Volumes")+ .HasForeignKey("SeriesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.Navigation("Series");+ });++ modelBuilder.Entity("AppUserLibrary", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("AppUsersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Library", null)+ .WithMany()+ .HasForeignKey("LibrariesId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterGenre", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChaptersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Genre", null)+ .WithMany()+ .HasForeignKey("GenresId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterPerson", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChapterMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Person", null)+ .WithMany()+ .HasForeignKey("PeopleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("ChapterTag", b =>+ {+ b.HasOne("API.Entities.Chapter", null)+ .WithMany()+ .HasForeignKey("ChaptersId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Tag", null)+ .WithMany()+ .HasForeignKey("TagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("CollectionTagSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.CollectionTag", null)+ .WithMany()+ .HasForeignKey("CollectionTagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("GenreSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Genre", null)+ .WithMany()+ .HasForeignKey("GenresId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>+ {+ b.HasOne("API.Entities.AppRole", null)+ .WithMany()+ .HasForeignKey("RoleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>+ {+ b.HasOne("API.Entities.AppUser", null)+ .WithMany()+ .HasForeignKey("UserId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("PersonSeriesMetadata", b =>+ {+ b.HasOne("API.Entities.Person", null)+ .WithMany()+ .HasForeignKey("PeopleId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("SeriesMetadataTag", b =>+ {+ b.HasOne("API.Entities.Metadata.SeriesMetadata", null)+ .WithMany()+ .HasForeignKey("SeriesMetadatasId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();++ b.HasOne("API.Entities.Tag", null)+ .WithMany()+ .HasForeignKey("TagsId")+ .OnDelete(DeleteBehavior.Cascade)+ .IsRequired();+ });++ modelBuilder.Entity("API.Entities.AppRole", b =>+ {+ b.Navigation("UserRoles");+ });++ modelBuilder.Entity("API.Entities.AppUser", b =>+ {+ b.Navigation("Bookmarks");++ b.Navigation("Progresses");++ b.Navigation("Ratings");++ b.Navigation("ReadingLists");++ b.Navigation("UserPreferences");++ b.Navigation("UserRoles");+ });++ modelBuilder.Entity("API.Entities.Chapter", b =>+ {+ b.Navigation("Files");+ });++ modelBuilder.Entity("API.Entities.Library", b =>+ {+ b.Navigation("Folders");++ b.Navigation("Series");+ });++ modelBuilder.Entity("API.Entities.ReadingList", b =>+ {+ b.Navigation("Items");+ });++ modelBuilder.Entity("API.Entities.Series", b =>+ {+ b.Navigation("Metadata");++ b.Navigation("Progress");++ b.Navigation("Ratings");++ b.Navigation("RelationOf");++ b.Navigation("Relations");++ b.Navigation("Volumes");+ });++ modelBuilder.Entity("API.Entities.Volume", b =>+ {+ b.Navigation("Chapters");+ });+#pragma warning restore 612, 618+ }+ }+}diff --git a/API/Data/Migrations/20220625215526_BlurUnreadSummaries.cs b/API/Data/Migrations/20220625215526_BlurUnreadSummaries.csnew file mode 100644index 000000000..1da6e8d3e--- /dev/null+++ b/API/Data/Migrations/20220625215526_BlurUnreadSummaries.cs@@ -0,0 +1,26 @@+using Microsoft.EntityFrameworkCore.Migrations;++#nullable disable++namespace API.Data.Migrations+{+ public partial class BlurUnreadSummaries : Migration+ {+ protected override void Up(MigrationBuilder migrationBuilder)+ {+ migrationBuilder.AddColumn<bool>(+ name: "BlurUnreadSummaries",+ table: "AppUserPreferences",+ type: "INTEGER",+ nullable: false,+ defaultValue: false);+ }++ protected override void Down(MigrationBuilder migrationBuilder)+ {+ migrationBuilder.DropColumn(+ name: "BlurUnreadSummaries",+ table: "AppUserPreferences");+ }+ }+}diff --git a/API/Data/Migrations/DataContextModelSnapshot.cs b/API/Data/Migrations/DataContextModelSnapshot.csindex a8b5527d5..6872d2bfb 100644--- a/API/Data/Migrations/DataContextModelSnapshot.cs+++ b/API/Data/Migrations/DataContextModelSnapshot.cs@@ -15,7 +15,7 @@ namespace API.Data.Migrationsprotected override void BuildModel(ModelBuilder modelBuilder){#pragma warning disable 612, 618- modelBuilder.HasAnnotation("ProductVersion", "6.0.4");+ modelBuilder.HasAnnotation("ProductVersion", "6.0.6");modelBuilder.Entity("API.Entities.AppRole", b =>{@@ -170,6 +170,9 @@ namespace API.Data.Migrations.HasColumnType("TEXT").HasDefaultValue("#000000");+ b.Property<bool>("BlurUnreadSummaries")+ .HasColumnType("INTEGER");+b.Property<string>("BookReaderFontFamily").HasColumnType("TEXT");@@ -179,6 +182,9 @@ namespace API.Data.Migrationsb.Property<bool>("BookReaderImmersiveMode").HasColumnType("INTEGER");+ b.Property<int>("BookReaderLayoutMode")+ .HasColumnType("INTEGER");+b.Property<int>("BookReaderLineSpacing").HasColumnType("INTEGER");@@ -196,10 +202,12 @@ namespace API.Data.Migrations.HasColumnType("TEXT").HasDefaultValue("Dark");- b.Property<int>("LayoutMode")- .HasColumnType("INTEGER");+ b.Property<int>("GlobalPageLayoutMode")+ .ValueGeneratedOnAdd()+ .HasColumnType("INTEGER")+ .HasDefaultValue(0);- b.Property<int>("PageLayoutMode")+ b.Property<int>("LayoutMode").HasColumnType("INTEGER");b.Property<int>("PageSplitOption")@@ -320,6 +328,9 @@ namespace API.Data.Migrationsb.Property<int>("AgeRating").HasColumnType("INTEGER");+ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");+b.Property<int>("Count").HasColumnType("INTEGER");@@ -341,6 +352,12 @@ namespace API.Data.Migrationsb.Property<DateTime>("LastModified").HasColumnType("TEXT");+ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");+b.Property<string>("Number").HasColumnType("TEXT");@@ -368,6 +385,9 @@ namespace API.Data.Migrationsb.Property<int>("VolumeId").HasColumnType("INTEGER");+ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");+b.HasKey("Id");b.HasIndex("VolumeId");@@ -499,6 +519,9 @@ namespace API.Data.Migrationsb.Property<int>("Format").HasColumnType("INTEGER");+ b.Property<DateTime>("LastFileAnalysis")+ .HasColumnType("TEXT");+b.Property<DateTime>("LastModified").HasColumnType("TEXT");@@ -729,6 +752,9 @@ namespace API.Data.Migrations.ValueGeneratedOnAdd().HasColumnType("INTEGER");+ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");+b.Property<string>("CoverImage").HasColumnType("TEXT");@@ -756,6 +782,12 @@ namespace API.Data.Migrationsb.Property<bool>("LocalizedNameLocked").HasColumnType("INTEGER");+ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");+b.Property<string>("Name").HasColumnType("TEXT");@@ -777,6 +809,9 @@ namespace API.Data.Migrationsb.Property<bool>("SortNameLocked").HasColumnType("INTEGER");+ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");+b.HasKey("Id");b.HasIndex("LibraryId");@@ -862,6 +897,9 @@ namespace API.Data.Migrations.ValueGeneratedOnAdd().HasColumnType("INTEGER");+ b.Property<int>("AvgHoursToRead")+ .HasColumnType("INTEGER");+b.Property<string>("CoverImage").HasColumnType("TEXT");@@ -871,6 +909,12 @@ namespace API.Data.Migrationsb.Property<DateTime>("LastModified").HasColumnType("TEXT");+ b.Property<int>("MaxHoursToRead")+ .HasColumnType("INTEGER");++ b.Property<int>("MinHoursToRead")+ .HasColumnType("INTEGER");+b.Property<string>("Name").HasColumnType("TEXT");@@ -883,6 +927,9 @@ namespace API.Data.Migrationsb.Property<int>("SeriesId").HasColumnType("INTEGER");+ b.Property<long>("WordCount")+ .HasColumnType("INTEGER");+b.HasKey("Id");b.HasIndex("SeriesId");diff --git a/API/Data/Repositories/GenreRepository.cs b/API/Data/Repositories/GenreRepository.csindex c2d5db2af..f1c9b84eb 100644--- a/API/Data/Repositories/GenreRepository.cs+++ b/API/Data/Repositories/GenreRepository.cs@@ -18,6 +18,7 @@ public interface IGenreRepositoryTask<IList<GenreTagDto>> GetAllGenreDtosAsync();Task RemoveAllGenreNoLongerAssociated(bool removeExternal = false);Task<IList<GenreTagDto>> GetAllGenreDtosForLibrariesAsync(IList<int> libraryIds);+ Task<int> GetCountAsync();}public class GenreRepository : IGenreRepository@@ -72,6 +73,11 @@ public class GenreRepository : IGenreRepository.ToListAsync();}+ public async Task<int> GetCountAsync()+ {+ return await _context.Genre.CountAsync();+ }+public async Task<IList<Genre>> GetAllGenresAsync(){return await _context.Genre.ToListAsync();diff --git a/API/Data/Repositories/LibraryRepository.cs b/API/Data/Repositories/LibraryRepository.csindex d78c5a95d..bc7c37bf5 100644--- a/API/Data/Repositories/LibraryRepository.cs+++ b/API/Data/Repositories/LibraryRepository.cs@@ -1,12 +1,17 @@using System;using System.Collections.Generic;+using System.Globalization;using System.Linq;using System.Threading.Tasks;using API.DTOs;+using API.DTOs.Filtering;+using API.DTOs.JumpBar;+using API.DTOs.Metadata;using API.Entities;using API.Entities.Enums;using AutoMapper;using AutoMapper.QueryableExtensions;+using Kavita.Common.Extensions;using Microsoft.EntityFrameworkCore;namespace API.Data.Repositories;@@ -38,6 +43,10 @@ public interface ILibraryRepositoryTask<LibraryType> GetLibraryTypeAsync(int libraryId);Task<IEnumerable<Library>> GetLibraryForIdsAsync(IList<int> libraryIds);Task<int> GetTotalFiles();+ IEnumerable<JumpKeyDto> GetJumpBarAsync(int libraryId);+ Task<IList<AgeRatingDto>> GetAllAgeRatingsDtosForLibrariesAsync(List<int> libraryIds);+ Task<IList<LanguageDto>> GetAllLanguagesForLibrariesAsync(List<int> libraryIds);+ IEnumerable<PublicationStatusDto> GetAllPublicationStatusesDtosForLibrariesAsync(List<int> libraryIds);}public class LibraryRepository : ILibraryRepository@@ -123,6 +132,37 @@ public class LibraryRepository : ILibraryRepositoryreturn await _context.MangaFile.CountAsync();}+ public IEnumerable<JumpKeyDto> GetJumpBarAsync(int libraryId)+ {+ var seriesSortCharacters = _context.Series.Where(s => s.LibraryId == libraryId)+ .Select(s => s.SortName.ToUpper())+ .OrderBy(s => s)+ .AsEnumerable()+ .Select(s => s[0]);++ // Map the title to the number of entities+ var firstCharacterMap = new Dictionary<char, int>();+ foreach (var sortChar in seriesSortCharacters)+ {+ var c = sortChar;+ var isAlpha = char.IsLetter(sortChar);+ if (!isAlpha) c = '#';+ if (!firstCharacterMap.ContainsKey(c))+ {+ firstCharacterMap[c] = 0;+ }++ firstCharacterMap[c] += 1;+ }++ return firstCharacterMap.Keys.Select(k => new JumpKeyDto()+ {+ Key = k + string.Empty,+ Size = firstCharacterMap[k],+ Title = k + string.Empty+ });+ }+public async Task<IEnumerable<LibraryDto>> GetLibraryDtosAsync(){return await _context.Library@@ -224,4 +264,54 @@ public class LibraryRepository : ILibraryRepository}+ public async Task<IList<AgeRatingDto>> GetAllAgeRatingsDtosForLibrariesAsync(List<int> libraryIds)+ {+ return await _context.Series+ .Where(s => libraryIds.Contains(s.LibraryId))+ .Select(s => s.Metadata.AgeRating)+ .Distinct()+ .Select(s => new AgeRatingDto()+ {+ Value = s,+ Title = s.ToDescription()+ })+ .ToListAsync();+ }++ public async Task<IList<LanguageDto>> GetAllLanguagesForLibrariesAsync(List<int> libraryIds)+ {+ var ret = await _context.Series+ .Where(s => libraryIds.Contains(s.LibraryId))+ .Select(s => s.Metadata.Language)+ .AsNoTracking()+ .Distinct()+ .ToListAsync();++ return ret+ .Where(s => !string.IsNullOrEmpty(s))+ .Select(s => new LanguageDto()+ {+ Title = CultureInfo.GetCultureInfo(s).DisplayName,+ IsoCode = s+ })+ .OrderBy(s => s.Title)+ .ToList();+ }++ public IEnumerable<PublicationStatusDto> GetAllPublicationStatusesDtosForLibrariesAsync(List<int> libraryIds)+ {+ return _context.Series+ .Where(s => libraryIds.Contains(s.LibraryId))+ .Select(s => s.Metadata.PublicationStatus)+ .Distinct()+ .AsEnumerable()+ .Select(s => new PublicationStatusDto()+ {+ Value = s,+ Title = s.ToDescription()+ })+ .OrderBy(s => s.Title);+ }++}diff --git a/API/Data/Repositories/MangaFileRepository.cs b/API/Data/Repositories/MangaFileRepository.csnew file mode 100644index 000000000..64101324a--- /dev/null+++ b/API/Data/Repositories/MangaFileRepository.cs@@ -0,0 +1,27 @@+using API.Entities;+using AutoMapper;+using Microsoft.EntityFrameworkCore;++namespace API.Data.Repositories;++public interface IMangaFileRepository+{+ void Update(MangaFile file);+}++public class MangaFileRepository : IMangaFileRepository+{+ private readonly DataContext _context;+ private readonly IMapper _mapper;++ public MangaFileRepository(DataContext context, IMapper mapper)+ {+ _context = context;+ _mapper = mapper;+ }++ public void Update(MangaFile file)+ {+ _context.Entry(file).State = EntityState.Modified;+ }+}diff --git a/API/Data/Repositories/PersonRepository.cs b/API/Data/Repositories/PersonRepository.csindex 371558459..98794670e 100644--- a/API/Data/Repositories/PersonRepository.cs+++ b/API/Data/Repositories/PersonRepository.cs@@ -16,6 +16,7 @@ public interface IPersonRepositoryTask<IList<Person>> GetAllPeople();Task RemoveAllPeopleNoLongerAssociated(bool removeExternal = false);Task<IList<PersonDto>> GetAllPeopleDtosForLibrariesAsync(List<int> libraryIds);+ Task<int> GetCountAsync();}public class PersonRepository : IPersonRepository@@ -72,6 +73,11 @@ public class PersonRepository : IPersonRepository.ToListAsync();}+ public async Task<int> GetCountAsync()+ {+ return await _context.Person.CountAsync();+ }+public async Task<IList<Person>> GetAllPeople(){diff --git a/API/Data/Repositories/SeriesRepository.cs b/API/Data/Repositories/SeriesRepository.csindex c36bcc4cb..b42bce75c 100644--- a/API/Data/Repositories/SeriesRepository.cs+++ b/API/Data/Repositories/SeriesRepository.cs@@ -17,6 +17,7 @@ using API.Entities.Enums;using API.Entities.Metadata;using API.Extensions;using API.Helpers;+using API.Services;using API.Services.Tasks;using AutoMapper;using AutoMapper.QueryableExtensions;@@ -67,7 +68,8 @@ public interface ISeriesRepository/// </summary>/// <param name="libraryId"></param>/// <param name="userId"></param>- /// <param name="userParams"></param>+ /// <param name="userParams">Pagination info</param>+ /// <param name="filter">Filtering/Sorting to apply</param>/// <returns></returns>Task<PagedList<SeriesDto>> GetSeriesDtoForLibraryIdAsync(int libraryId, int userId, UserParams userParams, FilterDto filter);/// <summary>@@ -106,13 +108,12 @@ public interface ISeriesRepositoryTask<Series> GetFullSeriesForSeriesIdAsync(int seriesId);Task<Chunk> GetChunkInfo(int libraryId = 0);Task<IList<SeriesMetadata>> GetSeriesMetadataForIdsAsync(IEnumerable<int> seriesIds);- Task<IList<AgeRatingDto>> GetAllAgeRatingsDtosForLibrariesAsync(List<int> libraryIds); // TODO: Move to LibraryRepository- Task<IList<LanguageDto>> GetAllLanguagesForLibrariesAsync(List<int> libraryIds); // TODO: Move to LibraryRepository- IEnumerable<PublicationStatusDto> GetAllPublicationStatusesDtosForLibrariesAsync(List<int> libraryIds); // TODO: Move to LibraryRepository+Task<IEnumerable<GroupedSeriesDto>> GetRecentlyUpdatedSeries(int userId, int pageSize = 30);Task<RelatedSeriesDto> GetRelatedSeries(int userId, int seriesId);Task<IEnumerable<SeriesDto>> GetSeriesForRelationKind(int userId, int seriesId, RelationKind kind);Task<PagedList<SeriesDto>> GetQuickReads(int userId, int libraryId, UserParams userParams);+ Task<PagedList<SeriesDto>> GetQuickCatchupReads(int userId, int libraryId, UserParams userParams);Task<PagedList<SeriesDto>> GetHighlyRated(int userId, int libraryId, UserParams userParams);Task<PagedList<SeriesDto>> GetMoreIn(int userId, int libraryId, int genreId, UserParams userParams);Task<PagedList<SeriesDto>> GetRediscover(int userId, int libraryId, UserParams userParams);@@ -752,6 +753,7 @@ public class SeriesRepository : ISeriesRepositorySortField.CreatedDate => query.OrderBy(s => s.Created),SortField.LastModifiedDate => query.OrderBy(s => s.LastModified),SortField.LastChapterAdded => query.OrderBy(s => s.LastChapterAdded),+ SortField.TimeToRead => query.OrderBy(s => s.AvgHoursToRead),_ => query};}@@ -763,6 +765,7 @@ public class SeriesRepository : ISeriesRepositorySortField.CreatedDate => query.OrderByDescending(s => s.Created),SortField.LastModifiedDate => query.OrderByDescending(s => s.LastModified),SortField.LastChapterAdded => query.OrderByDescending(s => s.LastChapterAdded),+ SortField.TimeToRead => query.OrderByDescending(s => s.AvgHoursToRead),_ => query};}@@ -920,54 +923,7 @@ public class SeriesRepository : ISeriesRepository.ToListAsync();}- public async Task<IList<AgeRatingDto>> GetAllAgeRatingsDtosForLibrariesAsync(List<int> libraryIds)- {- return await _context.Series- .Where(s => libraryIds.Contains(s.LibraryId))- .Select(s => s.Metadata.AgeRating)- .Distinct()- .Select(s => new AgeRatingDto()- {- Value = s,- Title = s.ToDescription()- })- .ToListAsync();- }- public async Task<IList<LanguageDto>> GetAllLanguagesForLibrariesAsync(List<int> libraryIds)- {- var ret = await _context.Series- .Where(s => libraryIds.Contains(s.LibraryId))- .Select(s => s.Metadata.Language)- .AsNoTracking()- .Distinct()- .ToListAsync();-- return ret- .Where(s => !string.IsNullOrEmpty(s))- .Select(s => new LanguageDto()- {- Title = CultureInfo.GetCultureInfo(s).DisplayName,- IsoCode = s- })- .OrderBy(s => s.Title)- .ToList();- }-- public IEnumerable<PublicationStatusDto> GetAllPublicationStatusesDtosForLibrariesAsync(List<int> libraryIds)- {- return _context.Series- .Where(s => libraryIds.Contains(s.LibraryId))- .Select(s => s.Metadata.PublicationStatus)- .Distinct()- .AsEnumerable()- .Select(s => new PublicationStatusDto()- {- Value = s,- Title = s.ToDescription()- })- .OrderBy(s => s.Title);- }/// <summary>@@ -976,6 +932,7 @@ public class SeriesRepository : ISeriesRepository/// <remarks>This provides 2 levels of pagination. Fetching the individual chapters only looks at 3000. Then when performing grouping/// in memory, we stop after 30 series. </remarks>/// <param name="userId">Used to ensure user has access to libraries</param>+ /// <param name="pageSize">How many entities to return</param>/// <returns></returns>public async Task<IEnumerable<GroupedSeriesDto>> GetRecentlyUpdatedSeries(int userId, int pageSize = 30){@@ -1131,8 +1088,11 @@ public class SeriesRepository : ISeriesRepositoryvar query = _context.Series- .Where(s => s.Pages < 2000 && !distinctSeriesIdsWithProgress.Contains(s.Id) &&- usersSeriesIds.Contains(s.Id))+ .Where(s => (+ (s.Pages / ReaderService.AvgPagesPerMinute / 60 < 10 && s.Format != MangaFormat.Epub)+ || (s.WordCount * ReaderService.AvgWordsPerHour < 10 && s.Format == MangaFormat.Epub))+ && !distinctSeriesIdsWithProgress.Contains(s.Id) &&+ usersSeriesIds.Contains(s.Id)).Where(s => s.Metadata.PublicationStatus != PublicationStatus.OnGoing).AsSplitQuery().ProjectTo<SeriesDto>(_mapper.ConfigurationProvider);@@ -1141,6 +1101,30 @@ public class SeriesRepository : ISeriesRepositoryreturn await PagedList<SeriesDto>.CreateAsync(query, userParams.PageNumber, userParams.PageSize);}+ public async Task<PagedList<SeriesDto>> GetQuickCatchupReads(int userId, int libraryId, UserParams userParams)+ {+ var libraryIds = GetLibraryIdsForUser(userId, libraryId);+ var usersSeriesIds = GetSeriesIdsForLibraryIds(libraryIds);+ var distinctSeriesIdsWithProgress = _context.AppUserProgresses+ .Where(s => usersSeriesIds.Contains(s.SeriesId))+ .Select(p => p.SeriesId)+ .Distinct();+++ var query = _context.Series+ .Where(s => (+ (s.Pages / ReaderService.AvgPagesPerMinute / 60 < 10 && s.Format != MangaFormat.Epub)+ || (s.WordCount * ReaderService.AvgWordsPerHour < 10 && s.Format == MangaFormat.Epub))+ && !distinctSeriesIdsWithProgress.Contains(s.Id) &&+ usersSeriesIds.Contains(s.Id))+ .Where(s => s.Metadata.PublicationStatus == PublicationStatus.OnGoing)+ .AsSplitQuery()+ .ProjectTo<SeriesDto>(_mapper.ConfigurationProvider);+++ return await PagedList<SeriesDto>.CreateAsync(query, userParams.PageNumber, userParams.PageSize);+ }+/// <summary>/// Returns all library ids for a user/// </summary>@@ -1205,7 +1189,7 @@ public class SeriesRepository : ISeriesRepository.ToListAsync();}- private async Task<IEnumerable<RecentlyAddedSeries>> GetRecentlyAddedChaptersQuery(int userId, int maxRecords = 3000)+ private async Task<IEnumerable<RecentlyAddedSeries>> GetRecentlyAddedChaptersQuery(int userId){var libraries = await _context.AppUser.Where(u => u.Id == userId)diff --git a/API/Data/Repositories/SettingsRepository.cs b/API/Data/Repositories/SettingsRepository.csindex be66cbe62..b94204d56 100644--- a/API/Data/Repositories/SettingsRepository.cs+++ b/API/Data/Repositories/SettingsRepository.cs@@ -5,6 +5,7 @@ using API.DTOs.Settings;using API.Entities;using API.Entities.Enums;using AutoMapper;+using AutoMapper.QueryableExtensions;using Microsoft.EntityFrameworkCore;namespace API.Data.Repositories;diff --git a/API/Data/Repositories/UserRepository.cs b/API/Data/Repositories/UserRepository.csindex 60c72a77c..c63603dbc 100644--- a/API/Data/Repositories/UserRepository.cs+++ b/API/Data/Repositories/UserRepository.cs@@ -56,6 +56,8 @@ public interface IUserRepositoryTask<IEnumerable<AppUser>> GetAllUsers();Task<IEnumerable<AppUserPreferences>> GetAllPreferencesByThemeAsync(int themeId);+ Task<bool> HasAccessToLibrary(int libraryId, int userId);+ Task<IEnumerable<AppUser>> GetAllUsersAsync(AppUserIncludes includeFlags);}public class UserRepository : IUserRepository@@ -238,6 +240,19 @@ public class UserRepository : IUserRepository.ToListAsync();}+ public async Task<bool> HasAccessToLibrary(int libraryId, int userId)+ {+ return await _context.Library+ .Include(l => l.AppUsers)+ .AnyAsync(library => library.AppUsers.Any(user => user.Id == userId));+ }++ public async Task<IEnumerable<AppUser>> GetAllUsersAsync(AppUserIncludes includeFlags)+ {+ var query = AddIncludesToQuery(_context.Users.AsQueryable(), includeFlags);+ return await query.ToListAsync();+ }+public async Task<IEnumerable<AppUser>> GetAdminUsersAsync(){return await _userManager.GetUsersInRoleAsync(PolicyConstants.AdminRole);diff --git a/API/Data/Seed.cs b/API/Data/Seed.csindex 4ecd27da5..893256357 100644--- a/API/Data/Seed.cs+++ b/API/Data/Seed.cs@@ -100,6 +100,9 @@ namespace API.Datanew() {Key = ServerSettingKey.InstallVersion, Value = BuildInfo.Version.ToString()},new() {Key = ServerSettingKey.BookmarkDirectory, Value = directoryService.BookmarkDirectory},new() {Key = ServerSettingKey.EmailServiceUrl, Value = EmailService.DefaultApiUrl},+ new() {Key = ServerSettingKey.ConvertBookmarkToWebP, Value = "false"},+ new() {Key = ServerSettingKey.EnableSwaggerUi, Value = "false"},+ new() {Key = ServerSettingKey.TotalBackups, Value = "30"},}.ToArray());foreach (var defaultSetting in DefaultSettings)diff --git a/API/Data/UnitOfWork.cs b/API/Data/UnitOfWork.csindex fb3e28c07..2e99ac32d 100644--- a/API/Data/UnitOfWork.cs+++ b/API/Data/UnitOfWork.cs@@ -22,6 +22,7 @@ public interface IUnitOfWorkIGenreRepository GenreRepository { get; }ITagRepository TagRepository { get; }ISiteThemeRepository SiteThemeRepository { get; }+ IMangaFileRepository MangaFileRepository { get; }bool Commit();Task<bool> CommitAsync();bool HasChanges();@@ -58,6 +59,7 @@ public class UnitOfWork : IUnitOfWorkpublic IGenreRepository GenreRepository => new GenreRepository(_context, _mapper);public ITagRepository TagRepository => new TagRepository(_context, _mapper);public ISiteThemeRepository SiteThemeRepository => new SiteThemeRepository(_context, _mapper);+ public IMangaFileRepository MangaFileRepository => new MangaFileRepository(_context, _mapper);/// <summary>/// Commits changes to the DB. Completes the open transaction.diff --git a/API/Entities/AppUserPreferences.cs b/API/Entities/AppUserPreferences.csindex bd68bc5ef..56361f8c8 100644--- a/API/Entities/AppUserPreferences.cs+++ b/API/Entities/AppUserPreferences.cs@@ -1,4 +1,5 @@using API.Entities.Enums;+using API.Entities.Enums.UserPreferences;namespace API.Entities{@@ -81,13 +82,22 @@ namespace API.Entities/// 2 column is fit to height, 2 columns/// </summary>/// <remarks>Defaults to Default</remarks>- public BookPageLayoutMode PageLayoutMode { get; set; } = BookPageLayoutMode.Default;+ public BookPageLayoutMode BookReaderLayoutMode { get; set; } = BookPageLayoutMode.Default;/// <summary>/// Book Reader Option: A flag that hides the menu-ing system behind a click on the screen. This should be used with tap to paginate, but the app doesn't enforce this./// </summary>/// <remarks>Defaults to false</remarks>public bool BookReaderImmersiveMode { get; set; } = false;-+ /// <summary>+ /// Global Site Option: If the UI should layout items as Cards or List items+ /// </summary>+ /// <remarks>Defaults to Cards</remarks>+ public PageLayoutMode GlobalPageLayoutMode { get; set; } = PageLayoutMode.Cards;+ /// <summary>+ /// UI Site Global Setting: If unread summaries should be blurred until expanded or unless user has read it already+ /// </summary>+ /// <remarks>Defaults to false</remarks>+ public bool BlurUnreadSummaries { get; set; } = false;public AppUser AppUser { get; set; }public int AppUserId { get; set; }diff --git a/API/Entities/Chapter.cs b/API/Entities/Chapter.csindex e6e7926e3..de989a503 100644--- a/API/Entities/Chapter.cs+++ b/API/Entities/Chapter.cs@@ -3,10 +3,11 @@ using System.Collections.Generic;using API.Entities.Enums;using API.Entities.Interfaces;using API.Parser;+using API.Services;namespace API.Entities{- public class Chapter : IEntityDate+ public class Chapter : IEntityDate, IHasReadTimeEstimate{public int Id { get; set; }/// <summary>@@ -24,7 +25,7 @@ namespace API.Entitiespublic DateTime Created { get; set; }public DateTime LastModified { get; set; }/// <summary>- /// Absolute path to the (managed) image file+ /// Relative path to the (managed) image file representing the cover image/// </summary>/// <remarks>The file is managed internally to Kavita's APPDIR</remarks>public string CoverImage { get; set; }@@ -72,6 +73,18 @@ namespace API.Entities/// </summary>public int Count { get; set; } = 0;+ /// <summary>+ /// Total Word count of all chapters in this chapter.+ /// </summary>+ /// <remarks>Word Count is only available from EPUB files</remarks>+ public long WordCount { get; set; }+ /// <inheritdoc cref="IHasReadTimeEstimate"/>+ public int MinHoursToRead { get; set; }+ /// <inheritdoc cref="IHasReadTimeEstimate"/>+ public int MaxHoursToRead { get; set; }+ /// <inheritdoc cref="IHasReadTimeEstimate"/>+ public int AvgHoursToRead { get; set; }+/// <summary>/// All people attached at a Chapter level. Usually Comics will have different people per issue.diff --git a/API/Entities/Enums/PersonRole.cs b/API/Entities/Enums/PersonRole.csindex 714e1d534..238c808a0 100644--- a/API/Entities/Enums/PersonRole.cs+++ b/API/Entities/Enums/PersonRole.cs@@ -7,10 +7,6 @@/// </summary>Other = 1,/// <summary>- /// Artist- /// </summary>- //Artist = 2,- /// <summary>/// Author or Writer/// </summary>Writer = 3,diff --git a/API/Entities/Enums/ServerSettingKey.cs b/API/Entities/Enums/ServerSettingKey.csindex 1a1ab8073..b387f1d85 100644--- a/API/Entities/Enums/ServerSettingKey.cs+++ b/API/Entities/Enums/ServerSettingKey.cs@@ -76,5 +76,20 @@ namespace API.Entities.Enums/// </summary>[Description("CustomEmailService")]EmailServiceUrl = 13,+ /// <summary>+ /// If Kavita should save bookmarks as WebP images+ /// </summary>+ [Description("ConvertBookmarkToWebP")]+ ConvertBookmarkToWebP = 14,+ /// <summary>+ /// If the Swagger UI Should be exposed. Does not require authentication, but does require a JWT.+ /// </summary>+ [Description("EnableSwaggerUi")]+ EnableSwaggerUi = 15,+ /// <summary>+ /// Total Number of Backups to maintain before cleaning. Default 30, min 1.+ /// </summary>+ [Description("TotalBackups")]+ TotalBackups = 16,}}diff --git a/API/Entities/Enums/UserPreferences/PageLayoutMode.cs b/API/Entities/Enums/UserPreferences/PageLayoutMode.csnew file mode 100644index 000000000..328e90d35--- /dev/null+++ b/API/Entities/Enums/UserPreferences/PageLayoutMode.cs@@ -0,0 +1,11 @@+using System.ComponentModel;++namespace API.Entities.Enums.UserPreferences;++public enum PageLayoutMode+{+ [Description("Cards")]+ Cards = 0,+ [Description("List")]+ List = 1+}diff --git a/API/Entities/Interfaces/IHasReadTimeEstimate.cs b/API/Entities/Interfaces/IHasReadTimeEstimate.csnew file mode 100644index 000000000..a13c43277--- /dev/null+++ b/API/Entities/Interfaces/IHasReadTimeEstimate.cs@@ -0,0 +1,25 @@+using API.Services;++namespace API.Entities.Interfaces;++/// <summary>+/// Entity has read time estimate properties to estimate time to read+/// </summary>+public interface IHasReadTimeEstimate+{+ /// <summary>+ /// Min hours to read the chapter+ /// </summary>+ /// <remarks>Uses a fixed number to calculate from <see cref="ReaderService"/></remarks>+ public int MinHoursToRead { get; set; }+ /// <summary>+ /// Max hours to read the chapter+ /// </summary>+ /// <remarks>Uses a fixed number to calculate from <see cref="ReaderService"/></remarks>+ public int MaxHoursToRead { get; set; }+ /// <summary>+ /// Average hours to read the chapter+ /// </summary>+ /// <remarks>Uses a fixed number to calculate from <see cref="ReaderService"/></remarks>+ public int AvgHoursToRead { get; set; }+}diff --git a/API/Entities/MangaFile.cs b/API/Entities/MangaFile.csindex 8cd99f3e1..5117dfb4e 100644--- a/API/Entities/MangaFile.cs+++ b/API/Entities/MangaFile.cs@@ -25,6 +25,10 @@ namespace API.Entities/// </summary>/// <remarks>This gets updated anytime the file is scanned</remarks>public DateTime LastModified { get; set; }+ /// <summary>+ /// Last time file analysis ran on this file+ /// </summary>+ public DateTime LastFileAnalysis { get; set; }// Relationship Mappingdiff --git a/API/Entities/Series.cs b/API/Entities/Series.csindex 1ddd8f082..f345386d3 100644--- a/API/Entities/Series.cs+++ b/API/Entities/Series.cs@@ -6,7 +6,7 @@ using API.Entities.Metadata;namespace API.Entities;-public class Series : IEntityDate+public class Series : IEntityDate, IHasReadTimeEstimate{public int Id { get; set; }/// <summary>@@ -65,6 +65,16 @@ public class Series : IEntityDate/// </summary>public DateTime LastChapterAdded { get; set; }+ /// <summary>+ /// Total Word count of all chapters in this chapter.+ /// </summary>+ /// <remarks>Word Count is only available from EPUB files</remarks>+ public long WordCount { get; set; }++ public int MinHoursToRead { get; set; }+ public int MaxHoursToRead { get; set; }+ public int AvgHoursToRead { get; set; }+public SeriesMetadata Metadata { get; set; }public ICollection<AppUserRating> Ratings { get; set; } = new List<AppUserRating>();@@ -82,5 +92,4 @@ public class Series : IEntityDatepublic List<Volume> Volumes { get; set; }public Library Library { get; set; }public int LibraryId { get; set; }-}diff --git a/API/Entities/Volume.cs b/API/Entities/Volume.csindex 77cd41f82..06a61e11c 100644--- a/API/Entities/Volume.cs+++ b/API/Entities/Volume.cs@@ -1,11 +1,10 @@using System;using System.Collections.Generic;using API.Entities.Interfaces;-using Microsoft.EntityFrameworkCore;namespace API.Entities{- public class Volume : IEntityDate+ public class Volume : IEntityDate, IHasReadTimeEstimate{public int Id { get; set; }/// <summary>@@ -25,12 +24,23 @@ namespace API.Entities/// </summary>/// <remarks>The file is managed internally to Kavita's APPDIR</remarks>public string CoverImage { get; set; }+ /// <summary>+ /// Total pages of all chapters in this volume+ /// </summary>public int Pages { get; set; }-+ /// <summary>+ /// Total Word count of all chapters in this volume.+ /// </summary>+ /// <remarks>Word Count is only available from EPUB files</remarks>+ public long WordCount { get; set; }+ public int MinHoursToRead { get; set; }+ public int MaxHoursToRead { get; set; }+ public int AvgHoursToRead { get; set; }// Relationshipspublic Series Series { get; set; }public int SeriesId { get; set; }+}}diff --git a/API/Extensions/ApplicationServiceExtensions.cs b/API/Extensions/ApplicationServiceExtensions.csindex 63e9dfdb9..1b637b25f 100644--- a/API/Extensions/ApplicationServiceExtensions.cs+++ b/API/Extensions/ApplicationServiceExtensions.cs@@ -3,6 +3,7 @@ using API.Data;using API.Helpers;using API.Services;using API.Services.Tasks;+using API.Services.Tasks.Metadata;using API.SignalR;using API.SignalR.Presence;using Kavita.Common;@@ -20,15 +21,18 @@ namespace API.Extensionspublic static void AddApplicationServices(this IServiceCollection services, IConfiguration config, IWebHostEnvironment env){services.AddAutoMapper(typeof(AutoMapperProfiles).Assembly);- services.AddScoped<IStatsService, StatsService>();- services.AddScoped<ITaskScheduler, TaskScheduler>();++ services.AddScoped<IUnitOfWork, UnitOfWork>();services.AddScoped<IDirectoryService, DirectoryService>();services.AddScoped<ITokenService, TokenService>();+ services.AddScoped<IFileSystem, FileSystem>();+ services.AddScoped<IFileService, FileService>();+ services.AddScoped<ICacheHelper, CacheHelper>();++ services.AddScoped<IStatsService, StatsService>();+ services.AddScoped<ITaskScheduler, TaskScheduler>();services.AddScoped<ICacheService, CacheService>();- services.AddScoped<IUnitOfWork, UnitOfWork>();- services.AddScoped<IScannerService, ScannerService>();services.AddScoped<IArchiveService, ArchiveService>();- services.AddScoped<IMetadataService, MetadataService>();services.AddScoped<IBackupService, BackupService>();services.AddScoped<ICleanupService, CleanupService>();services.AddScoped<IBookService, BookService>();@@ -43,10 +47,11 @@ namespace API.Extensionsservices.AddScoped<IThemeService, ThemeService>();services.AddScoped<ISeriesService, SeriesService>();+ services.AddScoped<IScannerService, ScannerService>();+ services.AddScoped<IMetadataService, MetadataService>();+ services.AddScoped<IWordCountAnalyzerService, WordCountAnalyzerService>();+- services.AddScoped<IFileSystem, FileSystem>();- services.AddScoped<IFileService, FileService>();- services.AddScoped<ICacheHelper, CacheHelper>();services.AddScoped<IPresenceTracker, PresenceTracker>();services.AddScoped<IEventHub, EventHub>();@@ -57,7 +62,7 @@ namespace API.Extensions}private static void AddSqLite(this IServiceCollection services, IConfiguration config,- IWebHostEnvironment env)+ IHostEnvironment env){services.AddDbContext<DataContext>(options =>{diff --git a/API/Helpers/AutoMapperProfiles.cs b/API/Helpers/AutoMapperProfiles.csindex db4bb8b3c..a15913374 100644--- a/API/Helpers/AutoMapperProfiles.cs+++ b/API/Helpers/AutoMapperProfiles.cs@@ -113,7 +113,7 @@ namespace API.Helpersopt.MapFrom(src => src.BookThemeName)).ForMember(dest => dest.BookReaderLayoutMode,opt =>- opt.MapFrom(src => src.PageLayoutMode));+ opt.MapFrom(src => src.BookReaderLayoutMode));CreateMap<AppUserBookmark, BookmarkDto>();@@ -138,7 +138,8 @@ namespace API.HelpersCreateMap<RegisterDto, AppUser>();-+ CreateMap<IList<ServerSetting>, ServerSettingDto>()+ .ConvertUsing<ServerSettingConverter>();CreateMap<IEnumerable<ServerSetting>, ServerSettingDto>().ConvertUsing<ServerSettingConverter>();diff --git a/API/Helpers/CacheHelper.cs b/API/Helpers/CacheHelper.csindex 80a63490d..28eb59a63 100644--- a/API/Helpers/CacheHelper.cs+++ b/API/Helpers/CacheHelper.cs@@ -14,6 +14,7 @@ public interface ICacheHelperbool CoverImageExists(string path);bool HasFileNotChangedSinceCreationOrLastScan(IEntityDate chapter, bool forceUpdate, MangaFile firstFile);+ bool HasFileChangedSinceLastScan(DateTime lastScan, bool forceUpdate, MangaFile firstFile);}@@ -32,6 +33,7 @@ public class CacheHelper : ICacheHelper/// <remarks>If a cover image is locked but the underlying file has been deleted, this will allow regenerating. </remarks>/// <param name="coverPath">This should just be the filename, no path information</param>/// <param name="firstFile"></param>+ /// <param name="chapterCreated">When the chapter was created (Not Used)</param>/// <param name="forceUpdate">If the user has told us to force the refresh</param>/// <param name="isCoverLocked">If cover has been locked by user. This will force false</param>/// <returns></returns>@@ -61,6 +63,25 @@ public class CacheHelper : ICacheHelper|| _fileService.HasFileBeenModifiedSince(firstFile.FilePath, firstFile.LastModified)));}+ /// <summary>+ /// Has the file been modified since last scan or is user forcing an update+ /// </summary>+ /// <param name="lastScan"></param>+ /// <param name="forceUpdate"></param>+ /// <param name="firstFile"></param>+ /// <returns></returns>+ public bool HasFileChangedSinceLastScan(DateTime lastScan, bool forceUpdate, MangaFile firstFile)+ {+ if (firstFile == null) return false;+ if (forceUpdate) return true;+ return _fileService.HasFileBeenModifiedSince(firstFile.FilePath, lastScan)+ || _fileService.HasFileBeenModifiedSince(firstFile.FilePath, firstFile.LastModified);+ // return firstFile != null &&+ // (!forceUpdate &&+ // !(_fileService.HasFileBeenModifiedSince(firstFile.FilePath, lastScan)+ // || _fileService.HasFileBeenModifiedSince(firstFile.FilePath, firstFile.LastModified)));+ }+/// <summary>/// Determines if a given coverImage path exists/// </summary>diff --git a/API/Helpers/Converters/ServerSettingConverter.cs b/API/Helpers/Converters/ServerSettingConverter.csindex 3678ef7e5..862b9a10c 100644--- a/API/Helpers/Converters/ServerSettingConverter.cs+++ b/API/Helpers/Converters/ServerSettingConverter.cs@@ -48,6 +48,15 @@ namespace API.Helpers.Converterscase ServerSettingKey.InstallVersion:destination.InstallVersion = row.Value;break;+ case ServerSettingKey.ConvertBookmarkToWebP:+ destination.ConvertBookmarkToWebP = bool.Parse(row.Value);+ break;+ case ServerSettingKey.EnableSwaggerUi:+ destination.EnableSwaggerUi = bool.Parse(row.Value);+ break;+ case ServerSettingKey.TotalBackups:+ destination.TotalBackups = int.Parse(row.Value);+ break;}}diff --git a/API/Helpers/UserParams.cs b/API/Helpers/UserParams.csindex 298719314..87cc28471 100644--- a/API/Helpers/UserParams.cs+++ b/API/Helpers/UserParams.cs@@ -2,14 +2,17 @@{public class UserParams{- private const int MaxPageSize = 50;- public int PageNumber { get; set; } = 1;- private int _pageSize = 30;+ private const int MaxPageSize = int.MaxValue;+ public int PageNumber { get; init; } = 1;+ private readonly int _pageSize = MaxPageSize;+ /// <summary>+ /// If set to 0, will set as MaxInt+ /// </summary>public int PageSize{get => _pageSize;- set => _pageSize = (value > MaxPageSize) ? MaxPageSize : value;+ init => _pageSize = (value == 0) ? MaxPageSize : value;}}-}\ No newline at end of file+}diff --git a/API/Parser/DefaultParser.cs b/API/Parser/DefaultParser.csindex 9477fa072..161a1533b 100644--- a/API/Parser/DefaultParser.cs+++ b/API/Parser/DefaultParser.cs@@ -85,7 +85,7 @@ public class DefaultParserif (ret.Chapters == Parser.DefaultChapter && ret.Volumes == Parser.DefaultVolume && !string.IsNullOrEmpty(isSpecial)){ret.IsSpecial = true;- ParseFromFallbackFolders(filePath, rootPath, type, ref ret);+ ParseFromFallbackFolders(filePath, rootPath, type, ref ret); // NOTE: This can cause some complications, we should try to be a bit less aggressive to fallback to folder}// If we are a special with marker, we need to ensure we use the correct series name. we can do this by falling back to Folder namediff --git a/API/Parser/Parser.cs b/API/Parser/Parser.csindex 3edcf5d7c..c5d947b26 100644--- a/API/Parser/Parser.cs+++ b/API/Parser/Parser.cs@@ -1,4 +1,5 @@using System;+using System.Collections.Immutable;using System.IO;using System.Linq;using System.Text.RegularExpressions;@@ -101,6 +102,34 @@ namespace API.Parsernew Regex(@"(vol_)(?<Volume>\d+(\.\d)?)",MatchOptions, RegexTimeout),+ // Chinese Volume: 第n卷 -> Volume n, 第n册 -> Volume n, 幽游白书完全版 第03卷 天下 or 阿衰online 第1册+ new Regex(+ @"第(?<Volume>\d+)(卷|册)",+ MatchOptions, RegexTimeout),+ // Chinese Volume: 卷n -> Volume n, 册n -> Volume n+ new Regex(+ @"(卷|册)(?<Volume>\d+)",+ MatchOptions, RegexTimeout),+ // Korean Volume: 제n권 -> Volume n, n권 -> Volume n, 63권#200.zip -> Volume 63 (no chapter, #200 is just files inside)+ new Regex(+ @"제?(?<Volume>\d+)권",+ MatchOptions, RegexTimeout),+ // Korean Season: 시즌n -> Season n,+ new Regex(+ @"시즌(?<Volume>\d+\-?\d+)",+ MatchOptions, RegexTimeout),+ // Korean Season: 시즌n -> Season n, n시즌 -> season n+ new Regex(+ @"(?<Volume>\d+(\-|~)?\d+?)시즌",+ MatchOptions, RegexTimeout),+ // Korean Season: 시즌n -> Season n, n시즌 -> season n+ new Regex(+ @"시즌(?<Volume>\d+(\-|~)?\d+?)",+ MatchOptions, RegexTimeout),+ // Japanese Volume: n巻 -> Volume n+ new Regex(+ @"(?<Volume>\d+(?:(\-)\d+)?)巻",+ MatchOptions, RegexTimeout),};private static readonly Regex[] MangaSeriesRegex = new[]@@ -331,6 +360,22 @@ namespace API.Parsernew Regex(@"^(?<Series>.+?)(?:\s|_)(v|vol|tome|t)\.?(\s|_)?(?<Volume>\d+)",MatchOptions, RegexTimeout),+ // Chinese Volume: 第n卷 -> Volume n, 第n册 -> Volume n, 幽游白书完全版 第03卷 天下 or 阿衰online 第1册+ new Regex(+ @"第(?<Volume>\d+)(卷|册)",+ MatchOptions, RegexTimeout),+ // Chinese Volume: 卷n -> Volume n, 册n -> Volume n+ new Regex(+ @"(卷|册)(?<Volume>\d+)",+ MatchOptions, RegexTimeout),+ // Korean Volume: 제n권 -> Volume n, n권 -> Volume n, 63권#200.zip+ new Regex(+ @"제?(?<Volume>\d+)권",+ MatchOptions, RegexTimeout),+ // Japanese Volume: n巻 -> Volume n+ new Regex(+ @"(?<Volume>\d+(?:(\-)\d+)?)巻",+ MatchOptions, RegexTimeout),};private static readonly Regex[] ComicChapterRegex = new[]@@ -389,11 +434,7 @@ namespace API.Parsernew Regex(@"^(?<Series>.+?)-(chapter-)?(?<Chapter>\d+)",MatchOptions, RegexTimeout),- // Cyberpunk 2077 - Your Voice 01- // new Regex(- // @"^(?<Series>.+?\s?-\s?(?:.+?))(?<Chapter>(\d+(\.\d)?)-?(\d+(\.\d)?)?)$",- // MatchOptions,- // RegexTimeout),+};private static readonly Regex[] ReleaseGroupRegex = new[]@@ -448,7 +489,18 @@ namespace API.Parsernew Regex(@"(?<Volume>((vol|volume|v))?(\s|_)?\.?\d+)(\s|_)(Chp|Chapter)\.?(\s|_)?(?<Chapter>\d+)",MatchOptions, RegexTimeout),-+ // Chinese Chapter: 第n话 -> Chapter n, 【TFO汉化&Petit汉化】迷你偶像漫画第25话+ new Regex(+ @"第(?<Chapter>\d+)话",+ MatchOptions, RegexTimeout),+ // Korean Chapter: 제n화 -> Chapter n, 가디언즈 오브 갤럭시 죽음의 보석.E0008.7화#44+ new Regex(+ @"제?(?<Chapter>\d+\.?\d+)(화|장)",+ MatchOptions, RegexTimeout),+ // Korean Chapter: 第10話 -> Chapter n, [ハレム]ナナとカオル ~高校生のSMごっこ~ 第1話+ new Regex(+ @"第?(?<Chapter>\d+(?:.\d+|-\d+)?)話",+ MatchOptions, RegexTimeout),};private static readonly Regex[] MangaEditionRegex = {// Tenjo Tenge {Full Contact Edition} v01 (2011) (Digital) (ASTC).cbz@@ -512,6 +564,13 @@ namespace API.ParserMatchOptions, RegexTimeout);+ private static readonly ImmutableArray<string> FormatTagSpecialKeywords = ImmutableArray.Create(+ "Special", "Reference", "Director's Cut", "Box Set", "Box-Set", "Annual", "Anthology", "Epilogue",+ "One Shot", "One-Shot", "Prologue", "TPB", "Trade Paper Back", "Omnibus", "Compendium", "Absolute", "Graphic Novel",+ "GN", "FCBD");++ private static readonly char[] LeadingZeroesTrimChars = new[] { '0' };+public static MangaFormat ParseFormat(string filePath){if (IsArchive(filePath)) return MangaFormat.Archive;@@ -526,15 +585,13 @@ namespace API.Parserforeach (var regex in MangaEditionRegex){var matches = regex.Matches(filePath);- foreach (Match match in matches)+ foreach (var group in matches.Select(match => match.Groups["Edition"])+ .Where(group => group.Success && group != Match.Empty)){- if (match.Groups["Edition"].Success && match.Groups["Edition"].Value != string.Empty)- {- var edition = match.Groups["Edition"].Value.Replace("{", "").Replace("}", "")- .Replace("[", "").Replace("]", "").Replace("(", "").Replace(")", "");-- return edition;- }+ return group.Value+ .Replace("{", "").Replace("}", "")+ .Replace("[", "").Replace("]", "")+ .Replace("(", "").Replace(")", "");}}@@ -549,15 +606,8 @@ namespace API.Parserpublic static bool HasSpecialMarker(string filePath){var matches = SpecialMarkerRegex.Matches(filePath);- foreach (Match match in matches)- {- if (match.Groups["Special"].Success && match.Groups["Special"].Value != string.Empty)- {- return true;- }- }-- return false;+ return matches.Select(match => match.Groups["Special"])+ .Any(group => group.Success && group != Match.Empty);}public static string ParseMangaSpecial(string filePath)@@ -565,12 +615,10 @@ namespace API.Parserforeach (var regex in MangaSpecialRegex){var matches = regex.Matches(filePath);- foreach (Match match in matches)+ foreach (var group in matches.Select(match => match.Groups["Special"])+ .Where(group => group.Success && group != Match.Empty)){- if (match.Groups["Special"].Success && match.Groups["Special"].Value != string.Empty)- {- return match.Groups["Special"].Value;- }+ return group.Value;}}@@ -582,12 +630,10 @@ namespace API.Parserforeach (var regex in ComicSpecialRegex){var matches = regex.Matches(filePath);- foreach (Match match in matches)+ foreach (var group in matches.Select(match => match.Groups["Special"])+ .Where(group => group.Success && group != Match.Empty)){- if (match.Groups["Special"].Success && match.Groups["Special"].Value != string.Empty)- {- return match.Groups["Special"].Value;- }+ return group.Value;}}@@ -599,12 +645,10 @@ namespace API.Parserforeach (var regex in MangaSeriesRegex){var matches = regex.Matches(filename);- foreach (Match match in matches)+ foreach (var group in matches.Select(match => match.Groups["Series"])+ .Where(group => group.Success && group != Match.Empty)){- if (match.Groups["Series"].Success && match.Groups["Series"].Value != string.Empty)- {- return CleanTitle(match.Groups["Series"].Value);- }+ return CleanTitle(group.Value);}}@@ -615,12 +659,10 @@ namespace API.Parserforeach (var regex in ComicSeriesRegex){var matches = regex.Matches(filename);- foreach (Match match in matches)+ foreach (var group in matches.Select(match => match.Groups["Series"])+ .Where(group => group.Success && group != Match.Empty)){- if (match.Groups["Series"].Success && match.Groups["Series"].Value != string.Empty)- {- return CleanTitle(match.Groups["Series"].Value, true);- }+ return CleanTitle(group.Value, true);}}@@ -650,12 +692,12 @@ namespace API.Parserforeach (var regex in ComicVolumeRegex){var matches = regex.Matches(filename);- foreach (Match match in matches)+ foreach (var group in matches.Select(match => match.Groups)){- if (!match.Groups["Volume"].Success || match.Groups["Volume"] == Match.Empty) continue;+ if (!group["Volume"].Success || group["Volume"] == Match.Empty) continue;- var value = match.Groups["Volume"].Value;- var hasPart = match.Groups["Part"].Success;+ var value = group["Volume"].Value;+ var hasPart = group["Part"].Success;return FormatValue(value, hasPart);}}@@ -761,12 +803,9 @@ namespace API.Parserforeach (var regex in MangaSpecialRegex){var matches = regex.Matches(title);- foreach (Match match in matches)+ foreach (var match in matches.Where(m => m.Success)){- if (match.Success)- {- title = title.Replace(match.Value, string.Empty).Trim();- }+ title = title.Replace(match.Value, string.Empty).Trim();}}@@ -778,12 +817,9 @@ namespace API.Parserforeach (var regex in EuropeanComicRegex){var matches = regex.Matches(title);- foreach (Match match in matches)+ foreach (var match in matches.Where(m => m.Success)){- if (match.Success)- {- title = title.Replace(match.Value, string.Empty).Trim();- }+ title = title.Replace(match.Value, string.Empty).Trim();}}@@ -795,12 +831,9 @@ namespace API.Parserforeach (var regex in ComicSpecialRegex){var matches = regex.Matches(title);- foreach (Match match in matches)+ foreach (var match in matches.Where(m => m.Success)){- if (match.Success)- {- title = title.Replace(match.Value, string.Empty).Trim();- }+ title = title.Replace(match.Value, string.Empty).Trim();}}@@ -858,12 +891,9 @@ namespace API.Parserforeach (var regex in ReleaseGroupRegex){var matches = regex.Matches(title);- foreach (Match match in matches)+ foreach (var match in matches.Where(m => m.Success)){- if (match.Success)- {- title = title.Replace(match.Value, string.Empty);- }+ title = title.Replace(match.Value, string.Empty);}}@@ -898,8 +928,8 @@ namespace API.Parserpublic static string RemoveLeadingZeroes(string title){- var ret = title.TrimStart(new[] { '0' });- return ret == string.Empty ? "0" : ret;+ var ret = title.TrimStart(LeadingZeroesTrimChars);+ return string.IsNullOrEmpty(ret) ? "0" : ret;}public static bool IsArchive(string filePath)@@ -1034,5 +1064,15 @@ namespace API.Parser{return path.Replace(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);}++ /// <summary>+ /// Checks against a set of strings to validate if a ComicInfo.Format should receive special treatment+ /// </summary>+ /// <param name="comicInfoFormat"></param>+ /// <returns></returns>+ public static bool HasComicInfoSpecial(string comicInfoFormat)+ {+ return FormatTagSpecialKeywords.Contains(comicInfoFormat);+ }}}diff --git a/API/Services/ArchiveService.cs b/API/Services/ArchiveService.csindex 97202b71d..8aa57d45b 100644--- a/API/Services/ArchiveService.cs+++ b/API/Services/ArchiveService.cs@@ -249,7 +249,7 @@ namespace API.Services/// <summary>/// Given an archive stream, will assess whether directory needs to be flattened so that the extracted archive files are directly- /// under extract path and not nested in subfolders. See <see cref="DirectoryInfoExtensions"/> Flatten method.+ /// under extract path and not nested in subfolders. See <see cref="DirectoryService"/> Flatten method./// </summary>/// <param name="archive">An opened archive stream</param>/// <returns></returns>@@ -412,7 +412,6 @@ namespace API.Servicesprivate void ExtractArchiveEntries(ZipArchive archive, string extractPath){- // TODO: In cases where we try to extract, but there are InvalidPathChars, we need to inform the user (throw exception, let middleware inform user)var needsFlattening = ArchiveNeedsFlattening(archive);if (!archive.HasFiles() && !needsFlattening) return;@@ -476,7 +475,8 @@ namespace API.Servicescatch (Exception e){_logger.LogWarning(e, "[ExtractArchive] There was a problem extracting {ArchivePath} to {ExtractPath}",archivePath, extractPath);- return;+ throw new KavitaException(+ $"There was an error when extracting {archivePath}. Check the file exists, has read permissions or the server OS can support all path characters.");}_logger.LogDebug("Extracted archive to {ExtractPath} in {ElapsedMilliseconds} milliseconds", extractPath, sw.ElapsedMilliseconds);}diff --git a/API/Services/BookService.cs b/API/Services/BookService.csindex fedd2ddb9..660c22b4a 100644--- a/API/Services/BookService.cs+++ b/API/Services/BookService.cs@@ -47,6 +47,7 @@ namespace API.Services/// </summary>/// <param name="fileFilePath"></param>/// <param name="targetDirectory">Where the files will be extracted to. If doesn't exist, will be created.</param>+ [Obsolete("This method of reading is no longer supported. Please use native pdf reader")]void ExtractPdfImages(string fileFilePath, string targetDirectory);Task<string> ScopePage(HtmlDocument doc, EpubBookRef book, string apiBase, HtmlNode body, Dictionary<string, int> mappings, int page);@@ -246,12 +247,16 @@ namespace API.Servicesprivate static void ScopeImages(HtmlDocument doc, EpubBookRef book, string apiBase){var images = doc.DocumentNode.SelectNodes("//img")- ?? doc.DocumentNode.SelectNodes("//image");+ ?? doc.DocumentNode.SelectNodes("//image") ?? doc.DocumentNode.SelectNodes("//svg");if (images == null) return;++ var parent = images.First().ParentNode;+foreach (var image in images){+string key = null;if (image.Attributes["src"] != null){@@ -269,6 +274,7 @@ namespace API.Servicesimage.Attributes.Add(key, $"{apiBase}" + imageFile);// Add a custom class that the reader uses to ensure images stay within reader+ parent.AddClass("kavita-scale-width-container");image.AddClass("kavita-scale-width");}@@ -579,8 +585,7 @@ namespace API.Services}}- if (!string.IsNullOrEmpty(series) && !string.IsNullOrEmpty(seriesIndex) &&- (!string.IsNullOrEmpty(specialName) || groupPosition.Equals("series") || groupPosition.Equals("set")))+ if (!string.IsNullOrEmpty(series) && !string.IsNullOrEmpty(seriesIndex)){if (string.IsNullOrEmpty(specialName)){@@ -600,7 +605,7 @@ namespace API.Services};// Don't set titleSort if the book belongs to a group- if (!string.IsNullOrEmpty(titleSort) && string.IsNullOrEmpty(seriesIndex))+ if (!string.IsNullOrEmpty(titleSort) && string.IsNullOrEmpty(seriesIndex) && (groupPosition.Equals("series") || groupPosition.Equals("set"))){info.SeriesSort = titleSort;}diff --git a/API/Services/BookmarkService.cs b/API/Services/BookmarkService.csindex 4468a79a1..3dad57ada 100644--- a/API/Services/BookmarkService.cs+++ b/API/Services/BookmarkService.cs@@ -8,6 +8,7 @@ using API.DTOs.Reader;using API.Entities;using API.Entities.Enums;using API.SignalR;+using Hangfire;using Microsoft.Extensions.Logging;namespace API.Services;@@ -18,6 +19,8 @@ public interface IBookmarkServiceTask<bool> BookmarkPage(AppUser userWithBookmarks, BookmarkDto bookmarkDto, string imageToBookmark);Task<bool> RemoveBookmarkPage(AppUser userWithBookmarks, BookmarkDto bookmarkDto);Task<IEnumerable<string>> GetBookmarkFilesById(IEnumerable<int> bookmarkIds);+ [DisableConcurrentExecution(timeoutInSeconds: 2 * 60 * 60), AutomaticRetry(Attempts = 0)]+ Task ConvertAllBookmarkToWebP();}@@ -26,12 +29,17 @@ public class BookmarkService : IBookmarkServiceprivate readonly ILogger<BookmarkService> _logger;private readonly IUnitOfWork _unitOfWork;private readonly IDirectoryService _directoryService;+ private readonly IImageService _imageService;+ private readonly IEventHub _eventHub;- public BookmarkService(ILogger<BookmarkService> logger, IUnitOfWork unitOfWork, IDirectoryService directoryService)+ public BookmarkService(ILogger<BookmarkService> logger, IUnitOfWork unitOfWork,+ IDirectoryService directoryService, IImageService imageService, IEventHub eventHub){_logger = logger;_unitOfWork = unitOfWork;_directoryService = directoryService;+ _imageService = imageService;+ _eventHub = eventHub;}/// <summary>@@ -87,18 +95,28 @@ public class BookmarkService : IBookmarkServicevar targetFolderStem = BookmarkStem(userWithBookmarks.Id, bookmarkDto.SeriesId, bookmarkDto.ChapterId);var targetFilepath = Path.Join(bookmarkDirectory, targetFolderStem);- userWithBookmarks.Bookmarks ??= new List<AppUserBookmark>();- userWithBookmarks.Bookmarks.Add(new AppUserBookmark()+ var bookmark = new AppUserBookmark(){Page = bookmarkDto.Page,VolumeId = bookmarkDto.VolumeId,SeriesId = bookmarkDto.SeriesId,ChapterId = bookmarkDto.ChapterId,FileName = Path.Join(targetFolderStem, fileInfo.Name)- });+ };+_directoryService.CopyFileToDirectory(imageToBookmark, targetFilepath);+ userWithBookmarks.Bookmarks ??= new List<AppUserBookmark>();+ userWithBookmarks.Bookmarks.Add(bookmark);+_unitOfWork.UserRepository.Update(userWithBookmarks);await _unitOfWork.CommitAsync();++ var convertToWebP = bool.Parse((await _unitOfWork.SettingsRepository.GetSettingAsync(ServerSettingKey.ConvertBookmarkToWebP)).Value);+ if (convertToWebP)+ {+ // Enqueue a task to convert the bookmark to webP+ BackgroundJob.Enqueue(() => ConvertBookmarkToWebP(bookmark.Id));+ }}catch (Exception ex){@@ -153,6 +171,94 @@ public class BookmarkService : IBookmarkServiceb.FileName)));}+ /// <summary>+ /// This is a long-running job that will convert all bookmarks into WebP. Do not invoke anyway except via Hangfire.+ /// </summary>+ [DisableConcurrentExecution(timeoutInSeconds: 2 * 60 * 60), AutomaticRetry(Attempts = 0)]+ public async Task ConvertAllBookmarkToWebP()+ {+ var bookmarkDirectory =+ (await _unitOfWork.SettingsRepository.GetSettingAsync(ServerSettingKey.BookmarkDirectory)).Value;++ await _eventHub.SendMessageAsync(MessageFactory.NotificationProgress,+ MessageFactory.ConvertBookmarksProgressEvent(0F, ProgressEventType.Started));+ var bookmarks = (await _unitOfWork.UserRepository.GetAllBookmarksAsync())+ .Where(b => !b.FileName.EndsWith(".webp")).ToList();++ var count = 1F;+ foreach (var bookmark in bookmarks)+ {+ await SaveBookmarkAsWebP(bookmarkDirectory, bookmark);+ await _unitOfWork.CommitAsync();+ await _eventHub.SendMessageAsync(MessageFactory.NotificationProgress,+ MessageFactory.ConvertBookmarksProgressEvent(count / bookmarks.Count, ProgressEventType.Started));+ count++;+ }++ await _eventHub.SendMessageAsync(MessageFactory.NotificationProgress,+ MessageFactory.ConvertBookmarksProgressEvent(1F, ProgressEventType.Ended));++ _logger.LogInformation("[BookmarkService] Converted bookmarks to WebP");+ }++ /// <summary>+ /// This is a job that runs after a bookmark is saved+ /// </summary>+ public async Task ConvertBookmarkToWebP(int bookmarkId)+ {+ var bookmarkDirectory =+ (await _unitOfWork.SettingsRepository.GetSettingAsync(ServerSettingKey.BookmarkDirectory)).Value;+ var convertBookmarkToWebP =+ (await _unitOfWork.SettingsRepository.GetSettingsDtoAsync()).ConvertBookmarkToWebP;++ if (!convertBookmarkToWebP) return;++ // Validate the bookmark still exists+ var bookmark = await _unitOfWork.UserRepository.GetBookmarkAsync(bookmarkId);+ if (bookmark == null) return;++ await SaveBookmarkAsWebP(bookmarkDirectory, bookmark);+ await _unitOfWork.CommitAsync();+ }++ /// <summary>+ /// Converts bookmark file, deletes original, marks bookmark as dirty. Does not commit.+ /// </summary>+ /// <param name="bookmarkDirectory"></param>+ /// <param name="bookmark"></param>+ private async Task SaveBookmarkAsWebP(string bookmarkDirectory, AppUserBookmark bookmark)+ {+ var fullSourcePath = _directoryService.FileSystem.Path.Join(bookmarkDirectory, bookmark.FileName);+ var fullTargetDirectory = fullSourcePath.Replace(new FileInfo(bookmark.FileName).Name, string.Empty);+ var targetFolderStem = BookmarkStem(bookmark.AppUserId, bookmark.SeriesId, bookmark.ChapterId);++ _logger.LogDebug("Converting {Source} bookmark into WebP at {Target}", fullSourcePath, fullTargetDirectory);++ try+ {+ // Convert target file to webp then delete original target file and update bookmark++ var originalFile = bookmark.FileName;+ try+ {+ var targetFile = await _imageService.ConvertToWebP(fullSourcePath, fullTargetDirectory);+ var targetName = new FileInfo(targetFile).Name;+ bookmark.FileName = Path.Join(targetFolderStem, targetName);+ _directoryService.DeleteFiles(new[] {fullSourcePath});+ }+ catch (Exception ex)+ {+ _logger.LogError(ex, "Could not convert file {FilePath}", bookmark.FileName);+ bookmark.FileName = originalFile;+ }+ _unitOfWork.UserRepository.Update(bookmark);+ }+ catch (Exception ex)+ {+ _logger.LogError(ex, "Could not convert bookmark to WebP");+ }+ }+private static string BookmarkStem(int userId, int seriesId, int chapterId){return Path.Join($"{userId}", $"{seriesId}", $"{chapterId}");diff --git a/API/Services/CacheService.cs b/API/Services/CacheService.csindex f55d74734..e9bb693eb 100644--- a/API/Services/CacheService.cs+++ b/API/Services/CacheService.cs@@ -29,10 +29,10 @@ namespace API.Servicesvoid CleanupBookmarks(IEnumerable<int> seriesIds);string GetCachedPagePath(Chapter chapter, int page);string GetCachedBookmarkPagePath(int seriesId, int page);- string GetCachedEpubFile(int chapterId, Chapter chapter);+ string GetCachedFile(Chapter chapter);public void ExtractChapterFiles(string extractPath, IReadOnlyList<MangaFile> files);Task<int> CacheBookmarkForSeries(int userId, int seriesId);- void CleanupBookmarkCache(int bookmarkDtoSeriesId);+ void CleanupBookmarkCache(int seriesId);}public class CacheService : ICacheService{@@ -73,14 +73,13 @@ namespace API.Services}/// <summary>- /// Returns the full path to the cached epub file. If the file does not exist, will fallback to the original.+ /// Returns the full path to the cached file. If the file does not exist, will fallback to the original./// </summary>- /// <param name="chapterId"></param>/// <param name="chapter"></param>/// <returns></returns>- public string GetCachedEpubFile(int chapterId, Chapter chapter)+ public string GetCachedFile(Chapter chapter){- var extractPath = GetCachePath(chapterId);+ var extractPath = GetCachePath(chapter.Id);var path = Path.Join(extractPath, _directoryService.FileSystem.Path.GetFileName(chapter.Files.First().FilePath));if (!(_directoryService.FileSystem.FileInfo.FromFileName(path).Exists)){@@ -89,6 +88,7 @@ namespace API.Servicesreturn path;}+/// <summary>/// Caches the files for the given chapter to CacheDirectory/// </summary>@@ -136,25 +136,25 @@ namespace API.ServicesextraPath = file.Id + string.Empty;}- if (file.Format == MangaFormat.Archive)- {- _readingItemService.Extract(file.FilePath, Path.Join(extractPath, extraPath), file.Format);- }- else if (file.Format == MangaFormat.Pdf)+ switch (file.Format){- _readingItemService.Extract(file.FilePath, Path.Join(extractPath, extraPath), file.Format);- }- else if (file.Format == MangaFormat.Epub)- {- removeNonImages = false;- if (!_directoryService.FileSystem.File.Exists(files[0].FilePath))+ case MangaFormat.Archive:+ _readingItemService.Extract(file.FilePath, Path.Join(extractPath, extraPath), file.Format);+ break;+ case MangaFormat.Epub:+ case MangaFormat.Pdf:{- _logger.LogError("{Archive} does not exist on disk", files[0].FilePath);- throw new KavitaException($"{files[0].FilePath} does not exist on disk");- }+ removeNonImages = false;+ if (!_directoryService.FileSystem.File.Exists(files[0].FilePath))+ {+ _logger.LogError("{File} does not exist on disk", files[0].FilePath);+ throw new KavitaException($"{files[0].FilePath} does not exist on disk");+ }- _directoryService.ExistOrCreate(extractPath);- _directoryService.CopyFileToDirectory(files[0].FilePath, extractPath);+ _directoryService.ExistOrCreate(extractPath);+ _directoryService.CopyFileToDirectory(files[0].FilePath, extractPath);+ break;+ }}}diff --git a/API/Services/DirectoryService.cs b/API/Services/DirectoryService.csindex d5765bc57..a69521f5a 100644--- a/API/Services/DirectoryService.cs+++ b/API/Services/DirectoryService.cs@@ -6,6 +6,8 @@ using System.IO.Abstractions;using System.Linq;using System.Text.RegularExpressions;using System.Threading.Tasks;+using API.DTOs.System;+using API.Entities.Enums;using API.Extensions;using Microsoft.Extensions.Logging;@@ -29,7 +31,7 @@ namespace API.Services/// </summary>/// <param name="rootPath">Absolute path of directory to scan.</param>/// <returns>List of folder names</returns>- IEnumerable<string> ListDirectory(string rootPath);+ IEnumerable<DirectoryDto> ListDirectory(string rootPath);Task<byte[]> ReadFileAsync(string path);bool CopyFilesToDirectory(IEnumerable<string> filePaths, string directoryPath, string prepend = "");bool Exists(string directory);@@ -434,14 +436,18 @@ namespace API.Services/// </summary>/// <param name="rootPath"></param>/// <returns></returns>- public IEnumerable<string> ListDirectory(string rootPath)+ public IEnumerable<DirectoryDto> ListDirectory(string rootPath){- if (!FileSystem.Directory.Exists(rootPath)) return ImmutableList<string>.Empty;+ if (!FileSystem.Directory.Exists(rootPath)) return ImmutableList<DirectoryDto>.Empty;var di = FileSystem.DirectoryInfo.FromDirectoryName(rootPath);var dirs = di.GetDirectories().Where(dir => !(dir.Attributes.HasFlag(FileAttributes.Hidden) || dir.Attributes.HasFlag(FileAttributes.System)))- .Select(d => d.Name).ToImmutableList();+ .Select(d => new DirectoryDto()+ {+ Name = d.Name,+ FullPath = d.FullName,+ }).ToImmutableList();return dirs;}@@ -724,7 +730,7 @@ namespace API.ServicesFileSystem.Path.Join(directoryName, "test.txt"),string.Empty);}- catch (Exception ex)+ catch (Exception){ClearAndDeleteDirectory(directoryName);return false;diff --git a/API/Services/ImageService.cs b/API/Services/ImageService.csindex 6578b6f63..a1ab70fd0 100644--- a/API/Services/ImageService.cs+++ b/API/Services/ImageService.cs@@ -1,7 +1,9 @@using System;using System.IO;+using System.Threading.Tasks;using Microsoft.Extensions.Logging;-using NetVips;+using SixLabors.ImageSharp;+using Image = NetVips.Image;namespace API.Services;@@ -19,6 +21,12 @@ public interface IImageServicestring CreateThumbnailFromBase64(string encodedImage, string fileName);string WriteCoverThumbnail(Stream stream, string fileName, string outputDirectory);+ /// <summary>+ /// Converts the passed image to webP and outputs it in the same directory+ /// </summary>+ /// <param name="filePath">Full path to the image to convert</param>+ /// <returns>File of written webp image</returns>+ Task<string> ConvertToWebP(string filePath, string outputPath);}public class ImageService : IImageService@@ -42,7 +50,7 @@ public class ImageService : IImageService_directoryService = directoryService;}- public void ExtractImages(string fileFilePath, string targetDirectory, int fileCount)+ public void ExtractImages(string fileFilePath, string targetDirectory, int fileCount = 1){_directoryService.ExistOrCreate(targetDirectory);if (fileCount == 1)@@ -95,6 +103,18 @@ public class ImageService : IImageServicereturn filename;}+ public async Task<string> ConvertToWebP(string filePath, string outputPath)+ {+ var file = _directoryService.FileSystem.FileInfo.FromFileName(filePath);+ var fileName = file.Name.Replace(file.Extension, string.Empty);+ var outputFile = Path.Join(outputPath, fileName + ".webp");+++ using var sourceImage = await SixLabors.ImageSharp.Image.LoadAsync(filePath);+ await sourceImage.SaveAsWebpAsync(outputFile);+ return outputFile;+ }+/// <inheritdoc />public string CreateThumbnailFromBase64(string encodedImage, string fileName)diff --git a/API/Services/MetadataService.cs b/API/Services/MetadataService.csindex dcd356d88..7bb34e159 100644--- a/API/Services/MetadataService.cs+++ b/API/Services/MetadataService.cs@@ -12,7 +12,9 @@ using API.Entities;using API.Entities.Enums;using API.Extensions;using API.Helpers;+using API.Services.Tasks.Metadata;using API.SignalR;+using Hangfire;using Microsoft.AspNetCore.SignalR;using Microsoft.Extensions.Logging;@@ -25,13 +27,15 @@ public interface IMetadataService/// </summary>/// <param name="libraryId"></param>/// <param name="forceUpdate"></param>+ [DisableConcurrentExecution(timeoutInSeconds: 60 * 60 * 60)]+ [AutomaticRetry(Attempts = 0, OnAttemptsExceeded = AttemptsExceededAction.Delete)]Task RefreshMetadata(int libraryId, bool forceUpdate = false);/// <summary>/// Performs a forced refresh of metadata just for a series and it's nested entities/// </summary>/// <param name="libraryId"></param>/// <param name="seriesId"></param>- Task RefreshMetadataForSeries(int libraryId, int seriesId, bool forceUpdate = false);+ Task RefreshMetadataForSeries(int libraryId, int seriesId, bool forceUpdate = true);}public class MetadataService : IMetadataService@@ -194,6 +198,8 @@ public class MetadataService : IMetadataService/// <remarks>This can be heavy on memory first run</remarks>/// <param name="libraryId"></param>/// <param name="forceUpdate">Force updating cover image even if underlying file has not been modified or chapter already has a cover image</param>+ [DisableConcurrentExecution(timeoutInSeconds: 60 * 60 * 60)]+ [AutomaticRetry(Attempts = 0, OnAttemptsExceeded = AttemptsExceededAction.Delete)]public async Task RefreshMetadata(int libraryId, bool forceUpdate = false){var library = await _unitOfWork.LibraryRepository.GetLibraryForIdAsync(libraryId, LibraryIncludes.None);@@ -256,10 +262,10 @@ public class MetadataService : IMetadataServiceawait RemoveAbandonedMetadataKeys();-_logger.LogInformation("[MetadataService] Updated metadata for {SeriesNumber} series in library {LibraryName} in {ElapsedMilliseconds} milliseconds total", chunkInfo.TotalSize, library.Name, totalTime);}+private async Task RemoveAbandonedMetadataKeys(){await _unitOfWork.TagRepository.RemoveAllTagNoLongerAssociated();diff --git a/API/Services/ReaderService.cs b/API/Services/ReaderService.csindex 8e3f5c47d..18de289cd 100644--- a/API/Services/ReaderService.cs+++ b/API/Services/ReaderService.cs@@ -7,6 +7,7 @@ using API.Comparators;using API.Data;using API.Data.Repositories;using API.DTOs;+using API.DTOs.Reader;using API.Entities;using API.Extensions;using API.SignalR;@@ -28,6 +29,7 @@ public interface IReaderServiceTask<ChapterDto> GetContinuePoint(int seriesId, int userId);Task MarkChaptersUntilAsRead(AppUser user, int seriesId, float chapterNumber);Task MarkVolumesUntilAsRead(AppUser user, int seriesId, int volumeNumber);+ HourEstimateRangeDto GetTimeEstimate(long wordCount, int pageCount, bool isEpub);}public class ReaderService : IReaderService@@ -38,6 +40,14 @@ public class ReaderService : IReaderServiceprivate readonly ChapterSortComparer _chapterSortComparer = new ChapterSortComparer();private readonly ChapterSortComparerZeroFirst _chapterSortComparerForInChapterSorting = new ChapterSortComparerZeroFirst();+ private const float MinWordsPerHour = 10260F;+ private const float MaxWordsPerHour = 30000F;+ public const float AvgWordsPerHour = (MaxWordsPerHour + MinWordsPerHour) / 2F;+ private const float MinPagesPerMinute = 3.33F;+ private const float MaxPagesPerMinute = 2.75F;+ public const float AvgPagesPerMinute = (MaxPagesPerMinute + MinPagesPerMinute) / 2F;++public ReaderService(IUnitOfWork unitOfWork, ILogger<ReaderService> logger, IEventHub eventHub){_unitOfWork = unitOfWork;@@ -160,7 +170,7 @@ public class ReaderService : IReaderServicevar progresses = user.Progresses.Where(x => x.ChapterId == chapter.Id && x.AppUserId == user.Id).ToList();if (progresses.Count > 1){- user.Progresses = new List<AppUserProgress>()+ user.Progresses = new List<AppUserProgress>{user.Progresses.First()};@@ -320,7 +330,7 @@ public class ReaderService : IReaderService{var chapterVolume = volumes.FirstOrDefault();if (chapterVolume?.Number != 0) return -1;- var firstChapter = chapterVolume.Chapters.OrderBy(x => double.Parse(x.Number), _chapterSortComparer).FirstOrDefault();+ var firstChapter = chapterVolume.Chapters.MinBy(x => double.Parse(x.Number), _chapterSortComparer);if (firstChapter == null) return -1;return firstChapter.Id;}@@ -362,17 +372,16 @@ public class ReaderService : IReaderServiceif (volume.Number == currentVolume.Number - 1){if (currentVolume.Number - 1 == 0) break; // If we have walked all the way to chapter volume, then we should break so logic outside can work- var lastChapter = volume.Chapters- .OrderBy(x => double.Parse(x.Number), _chapterSortComparerForInChapterSorting).LastOrDefault();+ var lastChapter = volume.Chapters.MaxBy(x => double.Parse(x.Number), _chapterSortComparerForInChapterSorting);if (lastChapter == null) return -1;return lastChapter.Id;}}- var lastVolume = volumes.OrderBy(v => v.Number).LastOrDefault();+ var lastVolume = volumes.MaxBy(v => v.Number);if (currentVolume.Number == 0 && currentVolume.Number != lastVolume?.Number && lastVolume?.Chapters.Count > 1){- var lastChapter = lastVolume.Chapters.OrderBy(x => double.Parse(x.Number), _chapterSortComparerForInChapterSorting).LastOrDefault();+ var lastChapter = lastVolume.Chapters.MaxBy(x => double.Parse(x.Number), _chapterSortComparerForInChapterSorting);if (lastChapter == null) return -1;return lastChapter.Id;}@@ -396,7 +405,7 @@ public class ReaderService : IReaderServiceif (progress.Count == 0){// I think i need a way to sort volumes last- return volumes.OrderBy(v => double.Parse(v.Number + ""), _chapterSortComparer).First().Chapters+ return volumes.OrderBy(v => double.Parse(v.Number + string.Empty), _chapterSortComparer).First().Chapters.OrderBy(c => float.Parse(c.Number)).First();}@@ -470,7 +479,7 @@ public class ReaderService : IReaderService/// <param name="chapterNumber"></param>public async Task MarkChaptersUntilAsRead(AppUser user, int seriesId, float chapterNumber){- var volumes = await _unitOfWork.VolumeRepository.GetVolumesForSeriesAsync(new List<int>() { seriesId }, true);+ var volumes = await _unitOfWork.VolumeRepository.GetVolumesForSeriesAsync(new List<int> { seriesId }, true);foreach (var volume in volumes.OrderBy(v => v.Number)){var chapters = volume.Chapters@@ -482,10 +491,53 @@ public class ReaderService : IReaderServicepublic async Task MarkVolumesUntilAsRead(AppUser user, int seriesId, int volumeNumber){- var volumes = await _unitOfWork.VolumeRepository.GetVolumesForSeriesAsync(new List<int>() { seriesId }, true);+ var volumes = await _unitOfWork.VolumeRepository.GetVolumesForSeriesAsync(new List<int> { seriesId }, true);foreach (var volume in volumes.OrderBy(v => v.Number).Where(v => v.Number <= volumeNumber && v.Number > 0)){MarkChaptersAsRead(user, volume.SeriesId, volume.Chapters);}}++ public HourEstimateRangeDto GetTimeEstimate(long wordCount, int pageCount, bool isEpub)+ {+ if (isEpub)+ {+ var minHours = Math.Max((int) Math.Round((wordCount / MinWordsPerHour)), 0);+ var maxHours = Math.Max((int) Math.Round((wordCount / MaxWordsPerHour)), 0);+ if (maxHours < minHours)+ {+ return new HourEstimateRangeDto+ {+ MinHours = maxHours,+ MaxHours = minHours,+ AvgHours = (int) Math.Round((wordCount / AvgWordsPerHour))+ };+ }+ return new HourEstimateRangeDto+ {+ MinHours = minHours,+ MaxHours = maxHours,+ AvgHours = (int) Math.Round((wordCount / AvgWordsPerHour))+ };+ }++ var minHoursPages = Math.Max((int) Math.Round((pageCount / MinPagesPerMinute / 60F)), 0);+ var maxHoursPages = Math.Max((int) Math.Round((pageCount / MaxPagesPerMinute / 60F)), 0);+ if (maxHoursPages < minHoursPages)+ {+ return new HourEstimateRangeDto+ {+ MinHours = maxHoursPages,+ MaxHours = minHoursPages,+ AvgHours = (int) Math.Round((pageCount / AvgPagesPerMinute / 60F))+ };+ }++ return new HourEstimateRangeDto+ {+ MinHours = minHoursPages,+ MaxHours = maxHoursPages,+ AvgHours = (int) Math.Round((pageCount / AvgPagesPerMinute / 60F))+ };+ }}diff --git a/API/Services/ReadingItemService.cs b/API/Services/ReadingItemService.csindex a5130c747..3b2e0bf4c 100644--- a/API/Services/ReadingItemService.cs+++ b/API/Services/ReadingItemService.cs@@ -110,15 +110,13 @@ public class ReadingItemService : IReadingItemService{switch (format){- case MangaFormat.Pdf:- _bookService.ExtractPdfImages(fileFilePath, targetDirectory);- break;case MangaFormat.Archive:_archiveService.ExtractArchive(fileFilePath, targetDirectory);break;case MangaFormat.Image:_imageService.ExtractImages(fileFilePath, targetDirectory, imageCount);break;+ case MangaFormat.Pdf:case MangaFormat.Unknown:case MangaFormat.Epub:break;diff --git a/API/Services/SeriesService.cs b/API/Services/SeriesService.csindex 63fb87d66..a4ca32c05 100644--- a/API/Services/SeriesService.cs+++ b/API/Services/SeriesService.cs@@ -8,9 +8,10 @@ using API.Data;using API.DTOs;using API.DTOs.CollectionTags;using API.DTOs.Metadata;+using API.DTOs.Reader;+using API.DTOs.SeriesDetail;using API.Entities;using API.Entities.Enums;-using API.Extensions;using API.Helpers;using API.SignalR;using Microsoft.Extensions.Logging;@@ -98,7 +99,7 @@ public class SeriesService : ISeriesServiceseries.Metadata.SummaryLocked = true;}- if (series.Metadata.Language != updateSeriesMetadataDto.SeriesMetadata.Language)+ if (series.Metadata.Language != updateSeriesMetadataDto.SeriesMetadata?.Language){series.Metadata.Language = updateSeriesMetadataDto.SeriesMetadata?.Language;series.Metadata.LanguageLocked = true;@@ -112,7 +113,7 @@ public class SeriesService : ISeriesService});series.Metadata.Genres ??= new List<Genre>();- UpdateGenreList(updateSeriesMetadataDto.SeriesMetadata.Genres, series, allGenres, (genre) =>+ UpdateGenreList(updateSeriesMetadataDto.SeriesMetadata?.Genres, series, allGenres, (genre) =>{series.Metadata.Genres.Add(genre);}, () => series.Metadata.GenresLocked = true);@@ -458,7 +459,6 @@ public class SeriesService : ISeriesServicevar volumes = (await _unitOfWork.VolumeRepository.GetVolumesDtoAsync(seriesId, userId)).OrderBy(v => Parser.Parser.MinNumberFromRange(v.Name)).ToList();- var chapters = volumes.SelectMany(v => v.Chapters).ToList();// For books, the Name of the Volume is remapped to the actual name of the book, rather than Volume number.var processedVolumes = new List<VolumeDto>();@@ -479,8 +479,15 @@ public class SeriesService : ISeriesServiceprocessedVolumes.ForEach(v => v.Name = $"Volume {v.Name}");}-var specials = new List<ChapterDto>();+ var chapters = volumes.SelectMany(v => v.Chapters.Select(c =>+ {+ if (v.Number == 0) return c;+ c.VolumeTitle = v.Name;+ return c;+ })).ToList();++foreach (var chapter in chapters){chapter.Title = FormatChapterTitle(chapter, libraryType);@@ -490,7 +497,6 @@ public class SeriesService : ISeriesServicespecials.Add(chapter);}-// Don't show chapter 0 (aka single volume chapters) in the Chapters tab or books that are just single numbers (they show as volumes)IEnumerable<ChapterDto> retChapters;if (libraryType == LibraryType.Book)@@ -503,29 +509,28 @@ public class SeriesService : ISeriesService.OrderBy(c => float.Parse(c.Number), new ChapterSortComparer());}-+ var storylineChapters = volumes+ .Where(v => v.Number == 0)+ .SelectMany(v => v.Chapters.Where(c => !c.IsSpecial))+ .OrderBy(c => float.Parse(c.Number), new ChapterSortComparer());return new SeriesDetailDto(){Specials = specials,Chapters = retChapters,Volumes = processedVolumes,- StorylineChapters = volumes- .Where(v => v.Number == 0)- .SelectMany(v => v.Chapters.Where(c => !c.IsSpecial))- .OrderBy(c => float.Parse(c.Number), new ChapterSortComparer())-+ StorylineChapters = storylineChapters};}/// <summary>/// Should we show the given chapter on the UI. We only show non-specials and non-zero chapters./// </summary>- /// <param name="c"></param>+ /// <param name="chapter"></param>/// <returns></returns>- private static bool ShouldIncludeChapter(ChapterDto c)+ private static bool ShouldIncludeChapter(ChapterDto chapter){- return !c.IsSpecial && !c.Number.Equals(Parser.Parser.DefaultChapter);+ return !chapter.IsSpecial && !chapter.Number.Equals(Parser.Parser.DefaultChapter);}public static void RenameVolumeName(ChapterDto firstChapter, VolumeDto volume, LibraryType libraryType)diff --git a/API/Services/TaskScheduler.cs b/API/Services/TaskScheduler.csindex 585bec476..a129a11b3 100644--- a/API/Services/TaskScheduler.cs+++ b/API/Services/TaskScheduler.cs@@ -1,11 +1,14 @@using System;+using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;using API.Data;using API.Entities.Enums;using API.Helpers.Converters;using API.Services.Tasks;+using API.Services.Tasks.Metadata;using Hangfire;+using Hangfire.Storage;using Microsoft.Extensions.Logging;namespace API.Services;@@ -20,9 +23,13 @@ public interface ITaskSchedulervoid RefreshMetadata(int libraryId, bool forceUpdate = true);void RefreshSeriesMetadata(int libraryId, int seriesId, bool forceUpdate = false);void ScanSeries(int libraryId, int seriesId, bool forceUpdate = false);+ void AnalyzeFilesForSeries(int libraryId, int seriesId, bool forceUpdate = false);+ void AnalyzeFilesForLibrary(int libraryId, bool forceUpdate = false);void CancelStatsTasks();Task RunStatCollection();void ScanSiteThemes();++}public class TaskScheduler : ITaskScheduler{@@ -37,6 +44,7 @@ public class TaskScheduler : ITaskSchedulerprivate readonly IStatsService _statsService;private readonly IVersionUpdaterService _versionUpdaterService;private readonly IThemeService _themeService;+ private readonly IWordCountAnalyzerService _wordCountAnalyzerService;public static BackgroundJobServer Client => new BackgroundJobServer();private static readonly Random Rnd = new Random();@@ -45,7 +53,7 @@ public class TaskScheduler : ITaskSchedulerpublic TaskScheduler(ICacheService cacheService, ILogger<TaskScheduler> logger, IScannerService scannerService,IUnitOfWork unitOfWork, IMetadataService metadataService, IBackupService backupService,ICleanupService cleanupService, IStatsService statsService, IVersionUpdaterService versionUpdaterService,- IThemeService themeService)+ IThemeService themeService, IWordCountAnalyzerService wordCountAnalyzerService){_cacheService = cacheService;_logger = logger;@@ -57,6 +65,7 @@ public class TaskScheduler : ITaskScheduler_statsService = statsService;_versionUpdaterService = versionUpdaterService;_themeService = themeService;+ _wordCountAnalyzerService = wordCountAnalyzerService;}public async Task ScheduleTasks()@@ -107,6 +116,11 @@ public class TaskScheduler : ITaskSchedulerRecurringJob.AddOrUpdate("report-stats", () => _statsService.Send(), Cron.Daily(Rnd.Next(0, 22)), TimeZoneInfo.Local);}+ public void AnalyzeFilesForLibrary(int libraryId, bool forceUpdate = false)+ {+ BackgroundJob.Enqueue(() => _wordCountAnalyzerService.ScanLibrary(libraryId, forceUpdate));+ }+public void CancelStatsTasks(){_logger.LogDebug("Cancelling/Removing StatsTasks");@@ -166,7 +180,7 @@ public class TaskScheduler : ITaskSchedulerBackgroundJob.Enqueue(() => _metadataService.RefreshMetadata(libraryId, forceUpdate));}- public void RefreshSeriesMetadata(int libraryId, int seriesId, bool forceUpdate = true)+ public void RefreshSeriesMetadata(int libraryId, int seriesId, bool forceUpdate = false){_logger.LogInformation("Enqueuing series metadata refresh for: {SeriesId}", seriesId);BackgroundJob.Enqueue(() => _metadataService.RefreshMetadataForSeries(libraryId, seriesId, forceUpdate));@@ -178,6 +192,12 @@ public class TaskScheduler : ITaskSchedulerBackgroundJob.Enqueue(() => _scannerService.ScanSeries(libraryId, seriesId, CancellationToken.None));}+ public void AnalyzeFilesForSeries(int libraryId, int seriesId, bool forceUpdate = false)+ {+ _logger.LogInformation("Enqueuing analyze files scan for: {SeriesId}", seriesId);+ BackgroundJob.Enqueue(() => _wordCountAnalyzerService.ScanSeries(libraryId, seriesId, forceUpdate));+ }+public void BackupDatabase(){BackgroundJob.Enqueue(() => _backupService.BackupDatabase());diff --git a/API/Services/Tasks/BackupService.cs b/API/Services/Tasks/BackupService.csindex 240f2807d..7c10dc81b 100644--- a/API/Services/Tasks/BackupService.cs+++ b/API/Services/Tasks/BackupService.cs@@ -45,11 +45,6 @@ public class BackupService : IBackupService_config = config;_eventHub = eventHub;- // var maxRollingFiles = config.GetMaxRollingFiles();- // var loggingSection = config.GetLoggingFileName();- // var files = GetLogFiles(maxRollingFiles, loggingSection);--_backupFiles = new List<string>(){"appsettings.json",@@ -59,11 +54,6 @@ public class BackupService : IBackupService"kavita.db-shm", // This wont always be there"kavita.db-wal" // This wont always be there};-- // foreach (var file in files.Select(f => (_directoryService.FileSystem.FileInfo.FromFileName(f)).Name))- // {- // _backupFiles.Add(file);- // }}public IEnumerable<string> GetLogFiles(int maxRollingFiles, string logFileName)diff --git a/API/Services/Tasks/CleanupService.cs b/API/Services/Tasks/CleanupService.csindex 647c0a066..4420adedb 100644--- a/API/Services/Tasks/CleanupService.cs+++ b/API/Services/Tasks/CleanupService.cs@@ -1,4 +1,5 @@using System;+using System.IO;using System.Linq;using System.Threading.Tasks;using API.Data;@@ -19,7 +20,6 @@ namespace API.Services.TasksTask DeleteChapterCoverImages();Task DeleteTagCoverImages();Task CleanupBackups();- Task CleanupBookmarks();}/// <summary>/// Cleans up after operations on reoccurring basis@@ -65,7 +65,6 @@ namespace API.Services.Tasksawait SendProgress(0.7F, "Cleaning deleted cover images");await DeleteTagCoverImages();await DeleteReadingListCoverImages();- await SendProgress(0.8F, "Cleaning deleted cover images");await SendProgress(1F, "Cleanup finished");_logger.LogInformation("Cleanup finished");}@@ -148,11 +147,11 @@ namespace API.Services.Tasks}/// <summary>- /// Removes Database backups older than 30 days. If all backups are older than 30 days, the latest is kept.+ /// Removes Database backups older than configured total backups. If all backups are older than total backups days, only the latest is kept./// </summary>public async Task CleanupBackups(){- const int dayThreshold = 30;+ var dayThreshold = (await _unitOfWork.SettingsRepository.GetSettingsDtoAsync()).TotalBackups;_logger.LogInformation("Beginning cleanup of Database backups at {Time}", DateTime.Now);var backupDirectory =(await _unitOfWork.SettingsRepository.GetSettingAsync(ServerSettingKey.BackupDirectory)).Value;@@ -176,39 +175,5 @@ namespace API.Services.Tasks}_logger.LogInformation("Finished cleanup of Database backups at {Time}", DateTime.Now);}-- /// <summary>- /// Removes all files in the BookmarkDirectory that don't currently have bookmarks in the Database- /// </summary>- public Task CleanupBookmarks()- {- // TODO: This is disabled for now while we test and validate a new method of deleting bookmarks- return Task.CompletedTask;- // Search all files in bookmarks/ except bookmark files and delete those- // var bookmarkDirectory =- // (await _unitOfWork.SettingsRepository.GetSettingAsync(ServerSettingKey.BookmarkDirectory)).Value;- // var allBookmarkFiles = _directoryService.GetFiles(bookmarkDirectory, searchOption: SearchOption.AllDirectories).Select(Parser.Parser.NormalizePath);- // var bookmarks = (await _unitOfWork.UserRepository.GetAllBookmarksAsync())- // .Select(b => Parser.Parser.NormalizePath(_directoryService.FileSystem.Path.Join(bookmarkDirectory,- // b.FileName)));- //- //- // var filesToDelete = allBookmarkFiles.AsEnumerable().Except(bookmarks).ToList();- // _logger.LogDebug("[Bookmarks] Bookmark cleanup wants to delete {Count} files", filesToDelete.Count);- //- // if (filesToDelete.Count == 0) return;- //- // _directoryService.DeleteFiles(filesToDelete);- //- // // Clear all empty directories- // foreach (var directory in _directoryService.FileSystem.Directory.GetDirectories(bookmarkDirectory, "", SearchOption.AllDirectories))- // {- // if (_directoryService.FileSystem.Directory.GetFiles(directory, "", SearchOption.AllDirectories).Length == 0 &&- // _directoryService.FileSystem.Directory.GetDirectories(directory).Length == 0)- // {- // _directoryService.FileSystem.Directory.Delete(directory, false);- // }- // }- }}}diff --git a/API/Services/Tasks/Metadata/WordCountAnalyzerService.cs b/API/Services/Tasks/Metadata/WordCountAnalyzerService.csnew file mode 100644index 000000000..8c71b92d3--- /dev/null+++ b/API/Services/Tasks/Metadata/WordCountAnalyzerService.cs@@ -0,0 +1,248 @@+using System;+using System.Diagnostics;+using System.Linq;+using System.Threading.Tasks;+using API.Data;+using API.Data.Repositories;+using API.Entities;+using API.Entities.Enums;+using API.Helpers;+using API.SignalR;+using Hangfire;+using HtmlAgilityPack;+using Microsoft.Extensions.Logging;+using VersOne.Epub;++namespace API.Services.Tasks.Metadata;++public interface IWordCountAnalyzerService+{+ [DisableConcurrentExecution(timeoutInSeconds: 60 * 60 * 60)]+ [AutomaticRetry(Attempts = 2, OnAttemptsExceeded = AttemptsExceededAction.Delete)]+ Task ScanLibrary(int libraryId, bool forceUpdate = false);+ Task ScanSeries(int libraryId, int seriesId, bool forceUpdate = true);+}++/// <summary>+/// This service is a metadata task that generates information around time to read+/// </summary>+public class WordCountAnalyzerService : IWordCountAnalyzerService+{+ private readonly ILogger<WordCountAnalyzerService> _logger;+ private readonly IUnitOfWork _unitOfWork;+ private readonly IEventHub _eventHub;+ private readonly ICacheHelper _cacheHelper;+ private readonly IReaderService _readerService;++ public WordCountAnalyzerService(ILogger<WordCountAnalyzerService> logger, IUnitOfWork unitOfWork, IEventHub eventHub,+ ICacheHelper cacheHelper, IReaderService readerService)+ {+ _logger = logger;+ _unitOfWork = unitOfWork;+ _eventHub = eventHub;+ _cacheHelper = cacheHelper;+ _readerService = readerService;+ }+++ [DisableConcurrentExecution(timeoutInSeconds: 60 * 60 * 60)]+ [AutomaticRetry(Attempts = 2, OnAttemptsExceeded = AttemptsExceededAction.Delete)]+ public async Task ScanLibrary(int libraryId, bool forceUpdate = false)+ {+ var sw = Stopwatch.StartNew();+ var library = await _unitOfWork.LibraryRepository.GetLibraryForIdAsync(libraryId, LibraryIncludes.None);++ await _eventHub.SendMessageAsync(MessageFactory.NotificationProgress,+ MessageFactory.WordCountAnalyzerProgressEvent(libraryId, 0F, ProgressEventType.Started, string.Empty));++ var chunkInfo = await _unitOfWork.SeriesRepository.GetChunkInfo(library.Id);+ var stopwatch = Stopwatch.StartNew();+ _logger.LogInformation("[MetadataService] Refreshing Library {LibraryName}. Total Items: {TotalSize}. Total Chunks: {TotalChunks} with {ChunkSize} size", library.Name, chunkInfo.TotalSize, chunkInfo.TotalChunks, chunkInfo.ChunkSize);++ await _eventHub.SendMessageAsync(MessageFactory.NotificationProgress,+ MessageFactory.WordCountAnalyzerProgressEvent(library.Id, 0F, ProgressEventType.Started, $"Starting {library.Name}"));++ for (var chunk = 1; chunk <= chunkInfo.TotalChunks; chunk++)+ {+ if (chunkInfo.TotalChunks == 0) continue;+ stopwatch.Restart();++ _logger.LogInformation("[MetadataService] Processing chunk {ChunkNumber} / {TotalChunks} with size {ChunkSize}. Series ({SeriesStart} - {SeriesEnd}",+ chunk, chunkInfo.TotalChunks, chunkInfo.ChunkSize, chunk * chunkInfo.ChunkSize, (chunk + 1) * chunkInfo.ChunkSize);++ var nonLibrarySeries = await _unitOfWork.SeriesRepository.GetFullSeriesForLibraryIdAsync(library.Id,+ new UserParams()+ {+ PageNumber = chunk,+ PageSize = chunkInfo.ChunkSize+ });+ _logger.LogDebug("[MetadataService] Fetched {SeriesCount} series for refresh", nonLibrarySeries.Count);++ var seriesIndex = 0;+ foreach (var series in nonLibrarySeries)+ {+ var index = chunk * seriesIndex;+ var progress = Math.Max(0F, Math.Min(1F, index * 1F / chunkInfo.TotalSize));++ await _eventHub.SendMessageAsync(MessageFactory.NotificationProgress,+ MessageFactory.WordCountAnalyzerProgressEvent(library.Id, progress, ProgressEventType.Updated, series.Name));++ try+ {+ await ProcessSeries(series, forceUpdate, false);+ }+ catch (Exception ex)+ {+ _logger.LogError(ex, "[MetadataService] There was an exception during metadata refresh for {SeriesName}", series.Name);+ }+ seriesIndex++;+ }++ if (_unitOfWork.HasChanges())+ {+ await _unitOfWork.CommitAsync();+ }++ _logger.LogInformation(+ "[MetadataService] Processed {SeriesStart} - {SeriesEnd} out of {TotalSeries} series in {ElapsedScanTime} milliseconds for {LibraryName}",+ chunk * chunkInfo.ChunkSize, (chunk * chunkInfo.ChunkSize) + nonLibrarySeries.Count, chunkInfo.TotalSize, stopwatch.ElapsedMilliseconds, library.Name);+ }++ await _eventHub.SendMessageAsync(MessageFactory.NotificationProgress,+ MessageFactory.WordCountAnalyzerProgressEvent(library.Id, 1F, ProgressEventType.Ended, $"Complete"));+++ _logger.LogInformation("[WordCountAnalyzerService] Updated metadata for {LibraryName} in {ElapsedMilliseconds} milliseconds", library.Name, sw.ElapsedMilliseconds);++ }++ public async Task ScanSeries(int libraryId, int seriesId, bool forceUpdate = true)+ {+ var sw = Stopwatch.StartNew();+ var series = await _unitOfWork.SeriesRepository.GetFullSeriesForSeriesIdAsync(seriesId);+ if (series == null)+ {+ _logger.LogError("[WordCountAnalyzerService] Series {SeriesId} was not found on Library {LibraryId}", seriesId, libraryId);+ return;+ }++ await _eventHub.SendMessageAsync(MessageFactory.NotificationProgress,+ MessageFactory.WordCountAnalyzerProgressEvent(libraryId, 0F, ProgressEventType.Started, series.Name));++ await ProcessSeries(series, forceUpdate);++ if (_unitOfWork.HasChanges())+ {+ await _unitOfWork.CommitAsync();+ }++ await _eventHub.SendMessageAsync(MessageFactory.NotificationProgress,+ MessageFactory.WordCountAnalyzerProgressEvent(libraryId, 1F, ProgressEventType.Ended, series.Name));++ _logger.LogInformation("[WordCountAnalyzerService] Updated metadata for {SeriesName} in {ElapsedMilliseconds} milliseconds", series.Name, sw.ElapsedMilliseconds);+ }++ private async Task ProcessSeries(Series series, bool forceUpdate = false, bool useFileName = true)+ {+ var isEpub = series.Format == MangaFormat.Epub;+ var existingWordCount = series.WordCount;+ series.WordCount = 0;+ foreach (var volume in series.Volumes)+ {+ volume.WordCount = 0;+ foreach (var chapter in volume.Chapters)+ {+ // This compares if it's changed since a file scan only+ var firstFile = chapter.Files.FirstOrDefault();+ if (firstFile == null) return;+ if (!_cacheHelper.HasFileChangedSinceLastScan(firstFile.LastFileAnalysis, forceUpdate,+ firstFile))+ continue;++ if (series.Format == MangaFormat.Epub)+ {+ long sum = 0;+ var fileCounter = 1;+ foreach (var file in chapter.Files)+ {+ var filePath = file.FilePath;+ var pageCounter = 1;+ try+ {+ using var book = await EpubReader.OpenBookAsync(filePath, BookService.BookReaderOptions);++ var totalPages = book.Content.Html.Values;+ foreach (var bookPage in totalPages)+ {+ var progress = Math.Max(0F,+ Math.Min(1F, (fileCounter * pageCounter) * 1F / (chapter.Files.Count * totalPages.Count)));++ await _eventHub.SendMessageAsync(MessageFactory.NotificationProgress,+ MessageFactory.WordCountAnalyzerProgressEvent(series.LibraryId, progress,+ ProgressEventType.Updated, useFileName ? filePath : series.Name));+ sum += await GetWordCountFromHtml(bookPage);+ pageCounter++;+ }++ fileCounter++;+ }+ catch (Exception ex)+ {+ _logger.LogError(ex, "There was an error reading an epub file for word count, series skipped");+ await _eventHub.SendMessageAsync(MessageFactory.Error,+ MessageFactory.ErrorEvent("There was an issue counting words on an epub",+ $"{series.Name} - {file}"));+ return;+ }++ file.LastFileAnalysis = DateTime.Now;+ _unitOfWork.MangaFileRepository.Update(file);+ }++ chapter.WordCount = sum;+ series.WordCount += sum;+ volume.WordCount += sum;+ }++ var est = _readerService.GetTimeEstimate(chapter.WordCount, chapter.Pages, isEpub);+ chapter.MinHoursToRead = est.MinHours;+ chapter.MaxHoursToRead = est.MaxHours;+ chapter.AvgHoursToRead = est.AvgHours;+ _unitOfWork.ChapterRepository.Update(chapter);+ }++ var volumeEst = _readerService.GetTimeEstimate(volume.WordCount, volume.Pages, isEpub);+ volume.MinHoursToRead = volumeEst.MinHours;+ volume.MaxHoursToRead = volumeEst.MaxHours;+ volume.AvgHoursToRead = volumeEst.AvgHours;+ _unitOfWork.VolumeRepository.Update(volume);++ }++ if (series.WordCount == 0 && series.WordCount != 0) series.WordCount = existingWordCount; // Restore original word count if the file hasn't changed+ var seriesEstimate = _readerService.GetTimeEstimate(series.WordCount, series.Pages, isEpub);+ series.MinHoursToRead = seriesEstimate.MinHours;+ series.MaxHoursToRead = seriesEstimate.MaxHours;+ series.AvgHoursToRead = seriesEstimate.AvgHours;+ _unitOfWork.SeriesRepository.Update(series);+ }+++ private static async Task<int> GetWordCountFromHtml(EpubContentFileRef bookFile)+ {+ var doc = new HtmlDocument();+ doc.LoadHtml(await bookFile.ReadContentAsTextAsync());++ var textNodes = doc.DocumentNode.SelectNodes("//body//text()[not(parent::script)]");+ if (textNodes == null) return 0;++ return textNodes+ .Select(node => node.InnerText.Split(' ', StringSplitOptions.RemoveEmptyEntries)+ .Where(s => char.IsLetter(s[0])))+ .Select(words => words.Count())+ .Where(wordCount => wordCount > 0)+ .Sum();+ }+++}diff --git a/API/Services/Tasks/Scanner/ParseScannedFiles.cs b/API/Services/Tasks/Scanner/ParseScannedFiles.csindex 92c0d6e1d..fb830da03 100644--- a/API/Services/Tasks/Scanner/ParseScannedFiles.cs+++ b/API/Services/Tasks/Scanner/ParseScannedFiles.cs@@ -122,6 +122,13 @@ namespace API.Services.Tasks.Scannerinfo.SeriesSort = info.ComicInfo.TitleSort.Trim();}+ if (!string.IsNullOrEmpty(info.ComicInfo.Format) && Parser.Parser.HasComicInfoSpecial(info.ComicInfo.Format))+ {+ info.IsSpecial = true;+ info.Chapters = Parser.Parser.DefaultChapter;+ info.Volumes = Parser.Parser.DefaultVolume;+ }+if (!string.IsNullOrEmpty(info.ComicInfo.SeriesSort)){info.SeriesSort = info.ComicInfo.SeriesSort.Trim();@@ -157,27 +164,44 @@ namespace API.Services.Tasks.Scannerinfo.Series = MergeName(info);var normalizedSeries = Parser.Parser.Normalize(info.Series);+ var normalizedSortSeries = Parser.Parser.Normalize(info.SeriesSort);var normalizedLocalizedSeries = Parser.Parser.Normalize(info.LocalizedSeries);- var existingKey = _scannedSeries.Keys.FirstOrDefault(ps =>- ps.Format == info.Format && (ps.NormalizedName == normalizedSeries- || ps.NormalizedName == normalizedLocalizedSeries));- existingKey ??= new ParsedSeries()++ try{- Format = info.Format,- Name = info.Series,- NormalizedName = normalizedSeries- };+ var existingKey = _scannedSeries.Keys.SingleOrDefault(ps =>+ ps.Format == info.Format && (ps.NormalizedName.Equals(normalizedSeries)+ || ps.NormalizedName.Equals(normalizedLocalizedSeries)+ || ps.NormalizedName.Equals(normalizedSortSeries)));+ existingKey ??= new ParsedSeries()+ {+ Format = info.Format,+ Name = info.Series,+ NormalizedName = normalizedSeries+ };- _scannedSeries.AddOrUpdate(existingKey, new List<ParserInfo>() {info}, (_, oldValue) =>+ _scannedSeries.AddOrUpdate(existingKey, new List<ParserInfo>() {info}, (_, oldValue) =>+ {+ oldValue ??= new List<ParserInfo>();+ if (!oldValue.Contains(info))+ {+ oldValue.Add(info);+ }++ return oldValue;+ });+ }+ catch (Exception ex){- oldValue ??= new List<ParserInfo>();- if (!oldValue.Contains(info))+ _logger.LogCritical(ex, "{SeriesName} matches against multiple series in the parsed series. This indicates a critical kavita issue. Key will be skipped", info.Series);+ foreach (var seriesKey in _scannedSeries.Keys.Where(ps =>+ ps.Format == info.Format && (ps.NormalizedName.Equals(normalizedSeries)+ || ps.NormalizedName.Equals(normalizedLocalizedSeries)+ || ps.NormalizedName.Equals(normalizedSortSeries)))){- oldValue.Add(info);+ _logger.LogCritical("Matches: {SeriesName} matches on {SeriesKey}", info.Series, seriesKey.Name);}-- return oldValue;- });+ }}/// <summary>@@ -191,14 +215,32 @@ namespace API.Services.Tasks.Scannervar normalizedSeries = Parser.Parser.Normalize(info.Series);var normalizedLocalSeries = Parser.Parser.Normalize(info.LocalizedSeries);// We use FirstOrDefault because this was introduced late in development and users might have 2 series with both names- var existingName =- _scannedSeries.FirstOrDefault(p =>- (Parser.Parser.Normalize(p.Key.NormalizedName) == normalizedSeries ||- Parser.Parser.Normalize(p.Key.NormalizedName) == normalizedLocalSeries) && p.Key.Format == info.Format)- .Key;- if (existingName != null && !string.IsNullOrEmpty(existingName.Name))+ try+ {+ var existingName =+ _scannedSeries.SingleOrDefault(p =>+ (Parser.Parser.Normalize(p.Key.NormalizedName) == normalizedSeries ||+ Parser.Parser.Normalize(p.Key.NormalizedName) == normalizedLocalSeries) &&+ p.Key.Format == info.Format)+ .Key;++ if (existingName != null && !string.IsNullOrEmpty(existingName.Name))+ {+ return existingName.Name;+ }+ }+ catch (Exception ex){- return existingName.Name;+ _logger.LogCritical(ex, "Multiple series detected for {SeriesName} ({File})! This is critical to fix! There should only be 1", info.Series, info.FullFilePath);+ var values = _scannedSeries.Where(p =>+ (Parser.Parser.Normalize(p.Key.NormalizedName) == normalizedSeries ||+ Parser.Parser.Normalize(p.Key.NormalizedName) == normalizedLocalSeries) &&+ p.Key.Format == info.Format);+ foreach (var pair in values)+ {+ _logger.LogCritical("Duplicate Series in DB matches with {SeriesName}: {DuplicateName}", info.Series, pair.Key.Name);+ }+}return info.Series;diff --git a/API/Services/Tasks/ScannerService.cs b/API/Services/Tasks/ScannerService.csindex 4bd37d009..33341f8e5 100644--- a/API/Services/Tasks/ScannerService.cs+++ b/API/Services/Tasks/ScannerService.cs@@ -14,6 +14,7 @@ using API.Entities.Enums;using API.Extensions;using API.Helpers;using API.Parser;+using API.Services.Tasks.Metadata;using API.Services.Tasks.Scanner;using API.SignalR;using Hangfire;@@ -27,8 +28,14 @@ public interface IScannerService/// cover images if forceUpdate is true./// </summary>/// <param name="libraryId">Library to scan against</param>+ [DisableConcurrentExecution(60 * 60 * 60)]+ [AutomaticRetry(Attempts = 0, OnAttemptsExceeded = AttemptsExceededAction.Delete)]Task ScanLibrary(int libraryId);+ [DisableConcurrentExecution(60 * 60 * 60)]+ [AutomaticRetry(Attempts = 0, OnAttemptsExceeded = AttemptsExceededAction.Delete)]Task ScanLibraries();+ [DisableConcurrentExecution(60 * 60 * 60)]+ [AutomaticRetry(Attempts = 3, OnAttemptsExceeded = AttemptsExceededAction.Delete)]Task ScanSeries(int libraryId, int seriesId, CancellationToken token);}@@ -43,11 +50,12 @@ public class ScannerService : IScannerServiceprivate readonly IDirectoryService _directoryService;private readonly IReadingItemService _readingItemService;private readonly ICacheHelper _cacheHelper;+ private readonly IWordCountAnalyzerService _wordCountAnalyzerService;public ScannerService(IUnitOfWork unitOfWork, ILogger<ScannerService> logger,IMetadataService metadataService, ICacheService cacheService, IEventHub eventHub,IFileService fileService, IDirectoryService directoryService, IReadingItemService readingItemService,- ICacheHelper cacheHelper)+ ICacheHelper cacheHelper, IWordCountAnalyzerService wordCountAnalyzerService){_unitOfWork = unitOfWork;_logger = logger;@@ -58,10 +66,11 @@ public class ScannerService : IScannerService_directoryService = directoryService;_readingItemService = readingItemService;_cacheHelper = cacheHelper;+ _wordCountAnalyzerService = wordCountAnalyzerService;}- [DisableConcurrentExecution(timeoutInSeconds: 360)]- [AutomaticRetry(Attempts = 0, OnAttemptsExceeded = AttemptsExceededAction.Delete)]+ [DisableConcurrentExecution(60 * 60 * 60)]+ [AutomaticRetry(Attempts = 3, OnAttemptsExceeded = AttemptsExceededAction.Delete)]public async Task ScanSeries(int libraryId, int seriesId, CancellationToken token){var sw = new Stopwatch();@@ -71,6 +80,15 @@ public class ScannerService : IScannerServicevar library = await _unitOfWork.LibraryRepository.GetLibraryForIdAsync(libraryId, LibraryIncludes.Folders);var folderPaths = library.Folders.Select(f => f.Path).ToList();+ var seriesFolderPaths = (await _unitOfWork.SeriesRepository.GetFilesForSeries(seriesId))+ .Select(f => _directoryService.FileSystem.FileInfo.FromFileName(f.FilePath).Directory.FullName)+ .ToList();++ if (!await CheckMounts(library.Name, seriesFolderPaths))+ {+ _logger.LogCritical("Some of the root folders for library are not accessible. Please check that drives are connected and rescan. Scan will be aborted");+ return;+ }if (!await CheckMounts(library.Name, library.Folders.Select(f => f.Path).ToList())){@@ -82,10 +100,15 @@ public class ScannerService : IScannerServicevar allGenres = await _unitOfWork.GenreRepository.GetAllGenresAsync();var allTags = await _unitOfWork.TagRepository.GetAllTagsAsync();- var dirs = _directoryService.FindHighestDirectoriesFromFiles(folderPaths, files.Select(f => f.FilePath).ToList());+ var seriesDirs = _directoryService.FindHighestDirectoriesFromFiles(seriesFolderPaths, files.Select(f => f.FilePath).ToList());+ if (seriesDirs.Keys.Count == 0)+ {+ _logger.LogDebug("Scan Series has files spread outside a main series folder. Defaulting to library folder");+ seriesDirs = _directoryService.FindHighestDirectoriesFromFiles(folderPaths, files.Select(f => f.FilePath).ToList());+ }_logger.LogInformation("Beginning file scan on {SeriesName}", series.Name);- var (totalFiles, scanElapsedTime, parsedSeries) = await ScanFiles(library, dirs.Keys);+ var (totalFiles, scanElapsedTime, parsedSeries) = await ScanFiles(library, seriesDirs.Keys);@@ -117,10 +140,10 @@ public class ScannerService : IScannerService// We need to do an additional check for an edge case: If the scan ran and the files do not match the existing Series name, then it is very likely,// the files have crap naming and if we don't correct, the series will get deleted due to the parser not being able to fallback onto folder parsing as the root// is the series folder.- var existingFolder = dirs.Keys.FirstOrDefault(key => key.Contains(series.OriginalName));- if (dirs.Keys.Count == 1 && !string.IsNullOrEmpty(existingFolder))+ var existingFolder = seriesDirs.Keys.FirstOrDefault(key => key.Contains(series.OriginalName));+ if (seriesDirs.Keys.Count == 1 && !string.IsNullOrEmpty(existingFolder)){- dirs = new Dictionary<string, string>();+ seriesDirs = new Dictionary<string, string>();var path = Directory.GetParent(existingFolder)?.FullName;if (!folderPaths.Contains(path) || !folderPaths.Any(p => p.Contains(path ?? string.Empty))){@@ -131,11 +154,11 @@ public class ScannerService : IScannerService}if (!string.IsNullOrEmpty(path)){- dirs[path] = string.Empty;+ seriesDirs[path] = string.Empty;}}- var (totalFiles2, scanElapsedTime2, parsedSeries2) = await ScanFiles(library, dirs.Keys);+ var (totalFiles2, scanElapsedTime2, parsedSeries2) = await ScanFiles(library, seriesDirs.Keys);_logger.LogInformation("{SeriesName} has bad naming convention, forcing rescan at a higher directory", series.OriginalName);totalFiles += totalFiles2;scanElapsedTime += scanElapsedTime2;@@ -168,6 +191,7 @@ public class ScannerService : IScannerServiceawait CleanupDbEntities();BackgroundJob.Enqueue(() => _cacheService.CleanupChapters(chapterIds));BackgroundJob.Enqueue(() => _metadataService.RefreshMetadataForSeries(libraryId, series.Id, false));+ BackgroundJob.Enqueue(() => _wordCountAnalyzerService.ScanSeries(libraryId, series.Id, false));}private static void RemoveParsedInfosNotForSeries(Dictionary<ParsedSeries, List<ParserInfo>> parsedSeries, Series series)@@ -229,8 +253,7 @@ public class ScannerService : IScannerServicereturn true;}-- [DisableConcurrentExecution(timeoutInSeconds: 360)]+ [DisableConcurrentExecution(60 * 60 * 60)][AutomaticRetry(Attempts = 0, OnAttemptsExceeded = AttemptsExceededAction.Delete)]public async Task ScanLibraries(){@@ -250,7 +273,7 @@ public class ScannerService : IScannerService/// ie) all entities will be rechecked for new cover images and comicInfo.xml changes/// </summary>/// <param name="libraryId"></param>- [DisableConcurrentExecution(360)]+ [DisableConcurrentExecution(60 * 60 * 60)][AutomaticRetry(Attempts = 0, OnAttemptsExceeded = AttemptsExceededAction.Delete)]public async Task ScanLibrary(int libraryId){@@ -303,10 +326,8 @@ public class ScannerService : IScannerServiceawait CleanupDbEntities();- // await _eventHub.SendMessageAsync(SignalREvents.NotificationProgress,- // MessageFactory.ScanLibraryProgressEvent(libraryId, 1F));-BackgroundJob.Enqueue(() => _metadataService.RefreshMetadata(libraryId, false));+ BackgroundJob.Enqueue(() => _wordCountAnalyzerService.ScanLibrary(libraryId, false));}private async Task<Tuple<int, long, Dictionary<ParsedSeries, List<ParserInfo>>>> ScanFiles(Library library, IEnumerable<string> dirs)@@ -455,6 +476,7 @@ public class ScannerService : IScannerServiceforeach (var series in duplicateSeries){_logger.LogCritical("[ScannerService] Duplicate Series Found: {Key} maps with {Series}", key.Name, series.OriginalName);+}continue;@@ -755,7 +777,6 @@ public class ScannerService : IScannerServicecase PersonRole.Translator:if (!series.Metadata.TranslatorLocked) series.Metadata.People.Remove(person);break;- case PersonRole.Other:default:series.Metadata.People.Remove(person);break;@@ -789,7 +810,7 @@ public class ScannerService : IScannerService// Update all the metadata on the Chaptersforeach (var chapter in volume.Chapters){- var firstFile = chapter.Files.OrderBy(x => x.Chapter).FirstOrDefault();+ var firstFile = chapter.Files.MinBy(x => x.Chapter);if (firstFile == null || _cacheHelper.HasFileNotChangedSinceCreationOrLastScan(chapter, false, firstFile)) continue;try{@@ -923,6 +944,7 @@ public class ScannerService : IScannerService}if (comicInfo == null) return;+ _logger.LogDebug("[ScannerService] Read ComicInfo for {File}", firstFile.FilePath);chapter.AgeRating = ComicInfo.ConvertAgeRatingToEnum(comicInfo.AgeRating);diff --git a/API/Services/Tasks/StatsService.cs b/API/Services/Tasks/StatsService.csindex 831e8f3a0..41bbb4a92 100644--- a/API/Services/Tasks/StatsService.cs+++ b/API/Services/Tasks/StatsService.cs@@ -4,13 +4,15 @@ using System.Net.Http;using System.Runtime.InteropServices;using System.Threading.Tasks;using API.Data;+using API.Data.Repositories;using API.DTOs.Stats;-using API.DTOs.Theme;using API.Entities.Enums;+using API.Entities.Enums.UserPreferences;using Flurl.Http;using Kavita.Common.EnvironmentInfo;using Kavita.Common.Helpers;using Microsoft.AspNetCore.Http;+using Microsoft.EntityFrameworkCore;using Microsoft.Extensions.Logging;namespace API.Services.Tasks;@@ -24,12 +26,14 @@ public class StatsService : IStatsService{private readonly ILogger<StatsService> _logger;private readonly IUnitOfWork _unitOfWork;+ private readonly DataContext _context;private const string ApiUrl = "https://stats.kavitareader.com";- public StatsService(ILogger<StatsService> logger, IUnitOfWork unitOfWork)+ public StatsService(ILogger<StatsService> logger, IUnitOfWork unitOfWork, DataContext context){_logger = logger;_unitOfWork = unitOfWork;+ _context = context;FlurlHttp.ConfigureClient(ApiUrl, cli =>cli.Settings.HttpClientFactory = new UntrustedCertClientFactory());@@ -102,6 +106,8 @@ public class StatsService : IStatsServicevar installId = await _unitOfWork.SettingsRepository.GetSettingAsync(ServerSettingKey.InstallId);var installVersion = await _unitOfWork.SettingsRepository.GetSettingAsync(ServerSettingKey.InstallVersion);+ var serverSettings = await _unitOfWork.SettingsRepository.GetSettingsDtoAsync();+var serverInfo = new ServerInfoDto{InstallId = installId.Value,@@ -114,11 +120,24 @@ public class StatsService : IStatsServiceNumberOfLibraries = (await _unitOfWork.LibraryRepository.GetLibrariesAsync()).Count(),NumberOfCollections = (await _unitOfWork.CollectionTagRepository.GetAllTagsAsync()).Count(),NumberOfReadingLists = await _unitOfWork.ReadingListRepository.Count(),- OPDSEnabled = (await _unitOfWork.SettingsRepository.GetSettingsDtoAsync()).EnableOpds,+ OPDSEnabled = serverSettings.EnableOpds,NumberOfUsers = (await _unitOfWork.UserRepository.GetAllUsers()).Count(),TotalFiles = await _unitOfWork.LibraryRepository.GetTotalFiles(),+ TotalGenres = await _unitOfWork.GenreRepository.GetCountAsync(),+ TotalPeople = await _unitOfWork.PersonRepository.GetCountAsync(),+ UsingSeriesRelationships = await GetIfUsingSeriesRelationship(),+ StoreBookmarksAsWebP = serverSettings.ConvertBookmarkToWebP,+ MaxSeriesInALibrary = await MaxSeriesInAnyLibrary(),+ MaxVolumesInASeries = await MaxVolumesInASeries(),+ MaxChaptersInASeries = await MaxChaptersInASeries(),};+ var usersWithPref = (await _unitOfWork.UserRepository.GetAllUsersAsync(AppUserIncludes.UserPreferences)).ToList();+ serverInfo.UsersOnCardLayout =+ usersWithPref.Count(u => u.UserPreferences.GlobalPageLayoutMode == PageLayoutMode.Cards);+ serverInfo.UsersOnListLayout =+ usersWithPref.Count(u => u.UserPreferences.GlobalPageLayoutMode == PageLayoutMode.List);+var firstAdminUser = (await _unitOfWork.UserRepository.GetAdminUsersAsync()).FirstOrDefault();if (firstAdminUser != null)@@ -132,4 +151,40 @@ public class StatsService : IStatsServicereturn serverInfo;}++ private Task<bool> GetIfUsingSeriesRelationship()+ {+ return _context.SeriesRelation.AnyAsync();+ }++ private Task<int> MaxSeriesInAnyLibrary()+ {+ return _context.Series+ .Select(s => new+ {+ LibraryId = s.LibraryId,+ Count = _context.Library.Where(l => l.Id == s.LibraryId).SelectMany(l => l.Series).Count()+ })+ .MaxAsync(d => d.Count);+ }++ private Task<int> MaxVolumesInASeries()+ {+ return _context.Volume+ .Select(v => new+ {+ v.SeriesId,+ Count = _context.Series.Where(s => s.Id == v.SeriesId).SelectMany(s => s.Volumes).Count()+ })+ .MaxAsync(d => d.Count);+ }++ private Task<int> MaxChaptersInASeries()+ {+ return _context.Series+ .MaxAsync(s => s.Volumes+ .Where(v => v.Number == 0)+ .SelectMany(v => v.Chapters)+ .Count());+ }}diff --git a/API/Services/TokenService.cs b/API/Services/TokenService.csindex 4b734e8b9..2c8e9926e 100644--- a/API/Services/TokenService.cs+++ b/API/Services/TokenService.cs@@ -74,18 +74,15 @@ public class TokenService : ITokenServicevar tokenContent = tokenHandler.ReadJwtToken(request.Token);var username = tokenContent.Claims.FirstOrDefault(q => q.Type == JwtRegisteredClaimNames.NameId)?.Value;var user = await _userManager.FindByNameAsync(username);+ if (user == null) return null; // This forces a logoutvar isValid = await _userManager.VerifyUserTokenAsync(user, TokenOptions.DefaultProvider, "RefreshToken", request.RefreshToken);- if (isValid)- {- return new TokenRequestDto()- {- Token = await CreateToken(user),- RefreshToken = await CreateRefreshToken(user)- };- }await _userManager.UpdateSecurityStampAsync(user);- return null;+ return new TokenRequestDto()+ {+ Token = await CreateToken(user),+ RefreshToken = await CreateRefreshToken(user)+ };}}diff --git a/API/SignalR/EventHub.cs b/API/SignalR/EventHub.csindex 50ba20ccf..3beba3d24 100644--- a/API/SignalR/EventHub.cs+++ b/API/SignalR/EventHub.cs@@ -11,6 +11,7 @@ namespace API.SignalR;public interface IEventHub{Task SendMessageAsync(string method, SignalRMessage message, bool onlyAdmins = true);+ Task SendMessageToAsync(string method, SignalRMessage message, int userId);}public class EventHub : IEventHub@@ -42,4 +43,17 @@ public class EventHub : IEventHubawait users.SendAsync(method, message);}++ /// <summary>+ /// Sends a message directly to a user if they are connected+ /// </summary>+ /// <param name="method"></param>+ /// <param name="message"></param>+ /// <param name="userId"></param>+ /// <returns></returns>+ public async Task SendMessageToAsync(string method, SignalRMessage message, int userId)+ {+ var user = await _unitOfWork.UserRepository.GetUserByIdAsync(userId);+ await _messageHub.Clients.User(user.UserName).SendAsync(method, message);+ }}diff --git a/API/SignalR/MessageFactory.cs b/API/SignalR/MessageFactory.csindex be3ab0acf..952b16736 100644--- a/API/SignalR/MessageFactory.cs+++ b/API/SignalR/MessageFactory.cs@@ -73,6 +73,7 @@ namespace API.SignalR/// A type of event that has progress (determinate or indeterminate)./// The underlying event will have a name to give details on how to handle./// </summary>+ /// <remarks>This is not an Event Name, it is used as the method only</remarks>public const string NotificationProgress = "NotificationProgress";/// <summary>/// Event sent out when Scan Loop is parsing a file@@ -94,6 +95,18 @@ namespace API.SignalR/// A user's progress was modified/// </summary>public const string UserProgressUpdate = "UserProgressUpdate";+ /// <summary>+ /// A user's account or preferences were updated and UI needs to refresh to stay in sync+ /// </summary>+ public const string UserUpdate = "UserUpdate";+ /// <summary>+ /// When bulk bookmarks are being converted+ /// </summary>+ private const string ConvertBookmarksProgress = "ConvertBookmarksProgress";+ /// <summary>+ /// When files are being scanned to calculate word count+ /// </summary>+ private const string WordCountAnalyzerProgress = "WordCountAnalyzerProgress";@@ -140,6 +153,25 @@ namespace API.SignalR};}++ public static SignalRMessage WordCountAnalyzerProgressEvent(int libraryId, float progress, string eventType, string subtitle = "")+ {+ return new SignalRMessage()+ {+ Name = WordCountAnalyzerProgress,+ Title = "Analyzing Word count",+ SubTitle = subtitle,+ EventType = eventType,+ Progress = ProgressType.Determinate,+ Body = new+ {+ LibraryId = libraryId,+ Progress = progress,+ EventTime = DateTime.Now+ }+ };+ }+public static SignalRMessage CoverUpdateProgressEvent(int libraryId, float progress, string eventType, string subtitle = ""){return new SignalRMessage()@@ -387,5 +419,37 @@ namespace API.SignalR}};}++ public static SignalRMessage UserUpdateEvent(int userId, string userName)+ {+ return new SignalRMessage()+ {+ Name = UserUpdate,+ Title = "User Update",+ Progress = ProgressType.None,+ Body = new+ {+ UserId = userId,+ UserName = userName+ }+ };+ }++ public static SignalRMessage ConvertBookmarksProgressEvent(float progress, string eventType)+ {+ return new SignalRMessage()+ {+ Name = ConvertBookmarksProgress,+ Title = "Converting Bookmarks to WebP",+ SubTitle = string.Empty,+ EventType = eventType,+ Progress = ProgressType.Determinate,+ Body = new+ {+ Progress = progress,+ EventTime = DateTime.Now+ }+ };+ }}}diff --git a/API/SignalR/MessageHub.cs b/API/SignalR/MessageHub.csindex d4508db17..dd2e2b768 100644--- a/API/SignalR/MessageHub.cs+++ b/API/SignalR/MessageHub.cs@@ -9,7 +9,6 @@ using Microsoft.AspNetCore.SignalR;namespace API.SignalR{-/// <summary>/// Generic hub for sending messages to UI/// </summary>@@ -17,32 +16,14 @@ namespace API.SignalRpublic class MessageHub : Hub{private readonly IPresenceTracker _tracker;- private static readonly HashSet<string> Connections = new HashSet<string>();public MessageHub(IPresenceTracker tracker){_tracker = tracker;}- public static bool IsConnected- {- get- {- lock (Connections)- {- return Connections.Count != 0;- }- }- }-public override async Task OnConnectedAsync(){-- lock (Connections)- {- Connections.Add(Context.ConnectionId);- }-await _tracker.UserConnected(Context.User.GetUsername(), Context.ConnectionId);var currentUsers = await PresenceTracker.GetOnlineUsers();@@ -54,11 +35,6 @@ namespace API.SignalRpublic override async Task OnDisconnectedAsync(Exception exception){- lock (Connections)- {- Connections.Remove(Context.ConnectionId);- }-await _tracker.UserDisconnected(Context.User.GetUsername(), Context.ConnectionId);var currentUsers = await PresenceTracker.GetOnlineUsers();diff --git a/API/SignalR/Presence/PresenceTracker.cs b/API/SignalR/Presence/PresenceTracker.csindex 2d71b7302..45118aa8d 100644--- a/API/SignalR/Presence/PresenceTracker.cs+++ b/API/SignalR/Presence/PresenceTracker.cs@@ -89,6 +89,7 @@ namespace API.SignalR.Presencepublic Task<string[]> GetOnlineAdmins(){+ // TODO: This might end in stale data, we want to get the online users, query against DB to check if they are admins then returnstring[] onlineUsers;lock (OnlineUsers){@@ -107,7 +108,7 @@ namespace API.SignalR.PresenceconnectionIds = OnlineUsers.GetValueOrDefault(username)?.ConnectionIds;}- return Task.FromResult(connectionIds);+ return Task.FromResult(connectionIds ?? new List<string>());}}}diff --git a/API/Startup.cs b/API/Startup.csindex 66f704489..c203c6b31 100644--- a/API/Startup.cs+++ b/API/Startup.cs@@ -53,24 +53,25 @@ namespace APIservices.AddControllers();services.Configure<ForwardedHeadersOptions>(options =>{- options.ForwardedHeaders =- ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;+ options.ForwardedHeaders = ForwardedHeaders.All;+ foreach(var proxy in _config.GetSection("KnownProxies").AsEnumerable().Where(c => c.Value != null)) {+ options.KnownProxies.Add(IPAddress.Parse(proxy.Value));+ }});services.AddCors();services.AddIdentityServices(_config);services.AddSwaggerGen(c =>{- c.SwaggerDoc("v1", new OpenApiInfo { Title = "Kavita API", Version = "v1" });-- c.SwaggerDoc("Kavita API", new OpenApiInfo()+ c.SwaggerDoc("v1", new OpenApiInfo(){Description = "Kavita provides a set of APIs that are authenticated by JWT. JWT token can be copied from local storage.",Title = "Kavita API",Version = "v1",});+var filePath = Path.Combine(AppContext.BaseDirectory, "API.xml");- c.IncludeXmlComments(filePath);+ c.IncludeXmlComments(filePath, true);c.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme {In = ParameterLocation.Header,Description = "Please insert JWT with Bearer into field",@@ -96,6 +97,19 @@ namespace APIDescription = "Local Server",Url = "http://localhost:5000/",});++ c.AddServer(new OpenApiServer()+ {+ Url = "https://demo.kavitareader.com/",+ Description = "Kavita Demo"+ });++ c.AddServer(new OpenApiServer()+ {+ Url = "http://" + GetLocalIpAddress() + ":5000/",+ Description = "Local IP"+ });+});services.AddResponseCompression(options =>{@@ -113,13 +127,6 @@ namespace APIservices.AddResponseCaching();- services.Configure<ForwardedHeadersOptions>(options =>- {- options.ForwardedHeaders =- ForwardedHeaders.All;- });--services.AddHangfire(configuration => configuration.UseSimpleAssemblyNameTypeSerializer().UseRecommendedSerializerSettings()@@ -176,22 +183,29 @@ namespace APIapp.UseMiddleware<ExceptionMiddleware>();- if (env.IsDevelopment())+ Task.Run(async () =>{- app.UseSwagger();- app.UseSwaggerUI(c =>+ var allowSwaggerUi = (await unitOfWork.SettingsRepository.GetSettingsDtoAsync())+ .EnableSwaggerUi;++ if (env.IsDevelopment() || allowSwaggerUi){- c.SwaggerEndpoint("/swagger/v1/swagger.json", "Kavita API " + BuildInfo.Version);- });+ app.UseSwagger();+ app.UseSwaggerUI(c =>+ {+ c.SwaggerEndpoint("/swagger/v1/swagger.json", "Kavita API " + BuildInfo.Version);+ });+ }+ });++ if (env.IsDevelopment())+ {app.UseHangfireDashboard();}app.UseResponseCompression();- app.UseForwardedHeaders(new ForwardedHeadersOptions- {- ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto | ForwardedHeaders.XForwardedHost- });+ app.UseForwardedHeaders();app.UseRouting();@@ -219,9 +233,6 @@ namespace APIContentTypeProvider = new FileExtensionContentTypeProvider()});---app.Use(async (context, next) =>{context.Response.GetTypedHeaders().CacheControl =@@ -276,6 +287,5 @@ namespace APIthrow new KavitaException("No network adapters with an IPv4 address in the system!");}-}}diff --git a/API/config/appsettings.Development.json b/API/config/appsettings.Development.jsonindex 7401b734b..78d892e05 100644--- a/API/config/appsettings.Development.json+++ b/API/config/appsettings.Development.json@@ -5,7 +5,7 @@"TokenKey": "super secret unguessable key","Logging": {"LogLevel": {- "Default": "Information",+ "Default": "Critical","Microsoft": "Information","Microsoft.Hosting.Lifetime": "Error","Hangfire": "Information",diff --git a/Kavita.Common/Kavita.Common.csproj b/Kavita.Common/Kavita.Common.csprojindex e838ff780..7c99c09fc 100644--- a/Kavita.Common/Kavita.Common.csproj+++ b/Kavita.Common/Kavita.Common.csproj@@ -4,15 +4,15 @@<TargetFramework>net6.0</TargetFramework><Company>kavitareader.com</Company><Product>Kavita</Product>- <AssemblyVersion>0.5.3.0</AssemblyVersion>+ <AssemblyVersion>0.5.4.0</AssemblyVersion><NeutralLanguage>en</NeutralLanguage></PropertyGroup><ItemGroup>- <PackageReference Include="Flurl.Http" Version="3.2.3" />+ <PackageReference Include="Flurl.Http" Version="3.2.4" /><PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.0" /><PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />- <PackageReference Include="SonarAnalyzer.CSharp" Version="8.38.0.46746">+ <PackageReference Include="SonarAnalyzer.CSharp" Version="8.40.0.48530"><PrivateAssets>all</PrivateAssets><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets></PackageReference>diff --git a/Kavita.sln.DotSettings b/Kavita.sln.DotSettingsindex add1b3a35..fb5e739fb 100644--- a/Kavita.sln.DotSettings+++ b/Kavita.sln.DotSettings@@ -2,5 +2,6 @@<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=1BC0273F_002DFEBE_002D4DA1_002DBC04_002D3A3167E4C86C_002Fd_003AData_002Fd_003AMigrations/@EntryIndexedValue">ExplicitlyExcluded</s:String><s:Boolean x:Key="/Default/CodeInspection/Highlighting/RunLongAnalysisInSwa/@EntryValue">True</s:Boolean><s:Boolean x:Key="/Default/CodeInspection/Highlighting/RunValueAnalysisInNullableWarningsEnabledContext2/@EntryValue">True</s:Boolean>+ <s:Boolean x:Key="/Default/UserDictionary/Words/=Omake/@EntryIndexedValue">True</s:Boolean><s:Boolean x:Key="/Default/UserDictionary/Words/=Opds/@EntryIndexedValue">True</s:Boolean><s:Boolean x:Key="/Default/UserDictionary/Words/=rewinded/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>\ No newline at end of filediff --git a/UI/Web/angular.json b/UI/Web/angular.jsonindex 56bc8a3e1..adca7906a 100644--- a/UI/Web/angular.json+++ b/UI/Web/angular.json@@ -30,7 +30,12 @@"tsConfig": "tsconfig.app.json","assets": ["src/assets",- "src/site.webmanifest"+ "src/site.webmanifest",+ {+ "glob": "**/*",+ "input": "node_modules/ngx-extended-pdf-viewer/assets/",+ "output": "/assets/"+ }],"sourceMap": {"hidden": false,diff --git a/UI/Web/e2e/tsconfig.json b/UI/Web/e2e/tsconfig.jsonindex 0782539c0..beb3f1cf1 100644--- a/UI/Web/e2e/tsconfig.json+++ b/UI/Web/e2e/tsconfig.json@@ -4,7 +4,7 @@"compilerOptions": {"outDir": "../out-tsc/e2e","module": "commonjs",- "target": "es2018",+ "target": "es2020","types": ["jasmine","node"diff --git a/UI/Web/global-setup.ts b/UI/Web/global-setup.tsindex 8db0f8bde..1ff353261 100644--- a/UI/Web/global-setup.ts+++ b/UI/Web/global-setup.ts@@ -8,7 +8,7 @@ async function globalSetup(config: FullConfig) {'password': 'P4ssword'}});- console.log(token.json());+ //console.log(token.json());// Save signed-in state to 'storageState.json'.//await requestContext.storageState({ path: 'adminStorageState.json' });await requestContext.dispose();diff --git a/UI/Web/package-lock.json b/UI/Web/package-lock.jsonindex a5b7e35b3..7944d68d4 100644--- a/UI/Web/package-lock.json+++ b/UI/Web/package-lock.json@@ -608,8 +608,7 @@"@assemblyscript/loader": {"version": "0.10.1","resolved": "https://registry.npmjs.org/@assemblyscript/loader/-/loader-0.10.1.tgz",- "integrity": "sha512-H71nDOOL8Y7kWRLqf6Sums+01Q5msqBW2KhDUTemh1tvY04eSkSXrK0uj/4mmY0Xr16/3zyZmsrxN7CKuRbNRg==",- "dev": true+ "integrity": "sha512-H71nDOOL8Y7kWRLqf6Sums+01Q5msqBW2KhDUTemh1tvY04eSkSXrK0uj/4mmY0Xr16/3zyZmsrxN7CKuRbNRg=="},"@babel/code-frame": {"version": "7.10.4",@@ -622,8 +621,7 @@"@babel/compat-data": {"version": "7.17.0","resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.17.0.tgz",- "integrity": "sha512-392byTlpGWXMv4FbyWw3sAZ/FrW/DrwqLGXpy0mbyNe9Taqv1mg9yON5/o0cnr8XYCkFTZbC1eV+c+LAROgrng==",- "dev": true+ "integrity": "sha512-392byTlpGWXMv4FbyWw3sAZ/FrW/DrwqLGXpy0mbyNe9Taqv1mg9yON5/o0cnr8XYCkFTZbC1eV+c+LAROgrng=="},"@babel/core": {"version": "7.8.6",@@ -661,7 +659,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.16.7.tgz","integrity": "sha512-s6t2w/IPQVTAET1HitoowRGXooX8mCgtuP5195wD/QJPV6wYjpujCGF7JuMODVX2ZAJOf1GT6DT9MHEZvLOFSw==",- "dev": true,"requires": {"@babel/types": "^7.16.7"}@@ -670,7 +667,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.16.7.tgz","integrity": "sha512-C6FdbRaxYjwVu/geKW4ZeQ0Q31AftgRcdSnZ5/jsH6BzCJbtvXvhpfkbkThYSuutZA7nCXpPR6AD9zd1dprMkA==",- "dev": true,"requires": {"@babel/helper-explode-assignable-expression": "^7.16.7","@babel/types": "^7.16.7"@@ -680,7 +676,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.7.tgz","integrity": "sha512-mGojBwIWcwGD6rfqgRXVlVYmPAv7eOpIemUG3dGnDdCY4Pae70ROij3XmfrH6Fa1h1aiDylpglbZyktfzyo/hA==",- "dev": true,"requires": {"@babel/compat-data": "^7.16.4","@babel/helper-validator-option": "^7.16.7",@@ -691,8 +686,7 @@"semver": {"version": "6.3.0","resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",- "dev": true+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="}}},@@ -700,7 +694,6 @@"version": "7.17.1","resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.17.1.tgz","integrity": "sha512-JBdSr/LtyYIno/pNnJ75lBcqc3Z1XXujzPanHqjvvrhOA+DTceTFuJi8XjmWTZh4r3fsdfqaCMN0iZemdkxZHQ==",- "dev": true,"requires": {"@babel/helper-annotate-as-pure": "^7.16.7","@babel/helper-environment-visitor": "^7.16.7",@@ -715,7 +708,6 @@"version": "7.17.0","resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.17.0.tgz","integrity": "sha512-awO2So99wG6KnlE+TPs6rn83gCz5WlEePJDTnLEqbchMVrBeAujURVphRdigsk094VhvZehFoNOihSlcBjwsXA==",- "dev": true,"requires": {"@babel/helper-annotate-as-pure": "^7.16.7","regexpu-core": "^5.0.1"@@ -725,7 +717,6 @@"version": "0.3.1","resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.1.tgz","integrity": "sha512-J9hGMpJQmtWmj46B3kBHmL38UhJGhYX7eqkcq+2gsstyYt341HmPeWspihX43yVRA0mS+8GGk2Gckc7bY/HCmA==",- "dev": true,"requires": {"@babel/helper-compilation-targets": "^7.13.0","@babel/helper-module-imports": "^7.12.13",@@ -740,8 +731,7 @@"semver": {"version": "6.3.0","resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",- "dev": true+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="}}},@@ -757,7 +747,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.16.7.tgz","integrity": "sha512-KyUenhWMC8VrxzkGP0Jizjo4/Zx+1nNZhgocs+gLzyZyB8SHidhoq9KK/8Ato4anhwsivfkBLftky7gvzbZMtQ==",- "dev": true,"requires": {"@babel/types": "^7.16.7"}@@ -792,7 +781,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.16.7.tgz","integrity": "sha512-VtJ/65tYiU/6AbMTDwyoXGPKHgTsfRarivm+YbB5uAzKUyuPjgZSgAFeG87FCigc7KNHu2Pegh1XIT3lXjvz3Q==",- "dev": true,"requires": {"@babel/types": "^7.16.7"}@@ -801,7 +789,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz","integrity": "sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==",- "dev": true,"requires": {"@babel/types": "^7.16.7"}@@ -810,7 +797,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.16.7.tgz","integrity": "sha512-gaqtLDxJEFCeQbYp9aLAefjhkKdjKcdh6DB7jniIGU3Pz52WAmP268zK0VgPz9hUNkMSYeH976K2/Y6yPadpng==",- "dev": true,"requires": {"@babel/helper-environment-visitor": "^7.16.7","@babel/helper-module-imports": "^7.16.7",@@ -825,8 +811,7 @@"@babel/helper-validator-identifier": {"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz",- "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==",- "dev": true+ "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw=="}}},@@ -834,7 +819,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.16.7.tgz","integrity": "sha512-EtgBhg7rd/JcnpZFXpBy0ze1YRfdm7BnBX4uKMBd3ixa3RGAE002JZB66FJyNH7g0F38U05pXmA5P8cBh7z+1w==",- "dev": true,"requires": {"@babel/types": "^7.16.7"}@@ -842,14 +826,12 @@"@babel/helper-plugin-utils": {"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz",- "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==",- "dev": true+ "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA=="},"@babel/helper-remap-async-to-generator": {"version": "7.16.8","resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.16.8.tgz","integrity": "sha512-fm0gH7Flb8H51LqJHy3HJ3wnE1+qtYR2A99K06ahwrawLdOFsCEWjZOrYricXJHoPSudNKxrMBUPEIPxiIIvBw==",- "dev": true,"requires": {"@babel/helper-annotate-as-pure": "^7.16.7","@babel/helper-wrap-function": "^7.16.8",@@ -860,7 +842,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.16.7.tgz","integrity": "sha512-y9vsWilTNaVnVh6xiJfABzsNpgDPKev9HnAgz6Gb1p6UUwf9NepdlsV7VXGCftJM+jqD5f7JIEubcpLjZj5dBw==",- "dev": true,"requires": {"@babel/helper-environment-visitor": "^7.16.7","@babel/helper-member-expression-to-functions": "^7.16.7",@@ -873,7 +854,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.16.7.tgz","integrity": "sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g==",- "dev": true,"requires": {"@babel/types": "^7.16.7"}@@ -882,7 +862,6 @@"version": "7.16.0","resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.16.0.tgz","integrity": "sha512-+il1gTy0oHwUsBQZyJvukbB4vPMdcYBrFHa0Uc4AizLxbq6BOYC51Rv4tWocX9BLBDLZ4kc6qUFpQ6HRgL+3zw==",- "dev": true,"requires": {"@babel/types": "^7.16.0"}@@ -903,14 +882,12 @@"@babel/helper-validator-option": {"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz",- "integrity": "sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ==",- "dev": true+ "integrity": "sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ=="},"@babel/helper-wrap-function": {"version": "7.16.8","resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.16.8.tgz","integrity": "sha512-8RpyRVIAW1RcDDGTA+GpPAwV22wXCfKOoM9bet6TLkGIFTkRQSkH1nMQ5Yet4MpoXe1ZwHPVtNasc2w0uZMqnw==",- "dev": true,"requires": {"@babel/helper-function-name": "^7.16.7","@babel/template": "^7.16.7",@@ -947,7 +924,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.16.7.tgz","integrity": "sha512-anv/DObl7waiGEnC24O9zqL0pSuI9hljihqiDuFHC8d7/bjr/4RLGPWuc8rYOff/QPzbEPSkzG8wGG9aDuhHRg==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -956,7 +932,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.16.7.tgz","integrity": "sha512-di8vUHRdf+4aJ7ltXhaDbPoszdkh59AQtJM5soLsuHpQJdFQZOA4uGj0V2u/CZ8bJ/u8ULDL5yq6FO/bCXnKHw==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7","@babel/helper-skip-transparent-expression-wrappers": "^7.16.0",@@ -967,7 +942,6 @@"version": "7.16.8","resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.16.8.tgz","integrity": "sha512-71YHIvMuiuqWJQkebWJtdhQTfd4Q4mF76q2IX37uZPkG9+olBxsX+rH1vkhFto4UeJZ9dPY2s+mDvhDm1u2BGQ==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7","@babel/helper-remap-async-to-generator": "^7.16.8",@@ -978,7 +952,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.16.7.tgz","integrity": "sha512-IobU0Xme31ewjYOShSIqd/ZGM/r/cuOz2z0MDbNrhF5FW+ZVgi0f2lyeoj9KFPDOAqsYxmLWZte1WOwlvY9aww==",- "dev": true,"requires": {"@babel/helper-create-class-features-plugin": "^7.16.7","@babel/helper-plugin-utils": "^7.16.7"@@ -988,7 +961,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.16.7.tgz","integrity": "sha512-dgqJJrcZoG/4CkMopzhPJjGxsIe9A8RlkQLnL/Vhhx8AA9ZuaRwGSlscSh42hazc7WSrya/IK7mTeoF0DP9tEw==",- "dev": true,"requires": {"@babel/helper-create-class-features-plugin": "^7.16.7","@babel/helper-plugin-utils": "^7.16.7",@@ -999,7 +971,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.16.7.tgz","integrity": "sha512-I8SW9Ho3/8DRSdmDdH3gORdyUuYnk1m4cMxUAdu5oy4n3OfN8flDEH+d60iG7dUfi0KkYwSvoalHzzdRzpWHTg==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7","@babel/plugin-syntax-dynamic-import": "^7.8.3"@@ -1009,7 +980,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.16.7.tgz","integrity": "sha512-ZxdtqDXLRGBL64ocZcs7ovt71L3jhC1RGSyR996svrCi3PYqHNkb3SwPJCs8RIzD86s+WPpt2S73+EHCGO+NUA==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7","@babel/plugin-syntax-export-namespace-from": "^7.8.3"@@ -1019,7 +989,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.16.7.tgz","integrity": "sha512-lNZ3EEggsGY78JavgbHsK9u5P3pQaW7k4axlgFLYkMd7UBsiNahCITShLjNQschPyjtO6dADrL24757IdhBrsQ==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7","@babel/plugin-syntax-json-strings": "^7.8.3"@@ -1029,7 +998,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.16.7.tgz","integrity": "sha512-K3XzyZJGQCr00+EtYtrDjmwX7o7PLK6U9bi1nCwkQioRFVUv6dJoxbQjtWVtP+bCPy82bONBKG8NPyQ4+i6yjg==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7","@babel/plugin-syntax-logical-assignment-operators": "^7.10.4"@@ -1039,7 +1007,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.16.7.tgz","integrity": "sha512-aUOrYU3EVtjf62jQrCj63pYZ7k6vns2h/DQvHPWGmsJRYzWXZ6/AsfgpiRy6XiuIDADhJzP2Q9MwSMKauBQ+UQ==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7","@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3"@@ -1049,7 +1016,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.16.7.tgz","integrity": "sha512-vQgPMknOIgiuVqbokToyXbkY/OmmjAzr/0lhSIbG/KmnzXPGwW/AdhdKpi+O4X/VkWiWjnkKOBiqJrTaC98VKw==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7","@babel/plugin-syntax-numeric-separator": "^7.10.4"@@ -1059,7 +1025,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.16.7.tgz","integrity": "sha512-3O0Y4+dw94HA86qSg9IHfyPktgR7q3gpNVAeiKQd+8jBKFaU5NQS1Yatgo4wY+UFNuLjvxcSmzcsHqrhgTyBUA==",- "dev": true,"requires": {"@babel/compat-data": "^7.16.4","@babel/helper-compilation-targets": "^7.16.7",@@ -1072,7 +1037,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.16.7.tgz","integrity": "sha512-eMOH/L4OvWSZAE1VkHbr1vckLG1WUcHGJSLqqQwl2GaUqG6QjddvrOaTUMNYiv77H5IKPMZ9U9P7EaHwvAShfA==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7","@babel/plugin-syntax-optional-catch-binding": "^7.8.3"@@ -1082,7 +1046,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.16.7.tgz","integrity": "sha512-eC3xy+ZrUcBtP7x+sq62Q/HYd674pPTb/77XZMb5wbDPGWIdUbSr4Agr052+zaUPSb+gGRnjxXfKFvx5iMJ+DA==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7","@babel/helper-skip-transparent-expression-wrappers": "^7.16.0",@@ -1093,7 +1056,6 @@"version": "7.16.11","resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.16.11.tgz","integrity": "sha512-F/2uAkPlXDr8+BHpZvo19w3hLFKge+k75XUprE6jaqKxjGkSYcK+4c+bup5PdW/7W/Rpjwql7FTVEDW+fRAQsw==",- "dev": true,"requires": {"@babel/helper-create-class-features-plugin": "^7.16.10","@babel/helper-plugin-utils": "^7.16.7"@@ -1103,7 +1065,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.16.7.tgz","integrity": "sha512-rMQkjcOFbm+ufe3bTZLyOfsOUOxyvLXZJCTARhJr+8UMSoZmqTe1K1BgkFcrW37rAchWg57yI69ORxiWvUINuQ==",- "dev": true,"requires": {"@babel/helper-annotate-as-pure": "^7.16.7","@babel/helper-create-class-features-plugin": "^7.16.7",@@ -1115,7 +1076,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.16.7.tgz","integrity": "sha512-QRK0YI/40VLhNVGIjRNAAQkEHws0cswSdFFjpFyt943YmJIU1da9uW63Iu6NFV6CxTZW5eTDCrwZUstBWgp/Rg==",- "dev": true,"requires": {"@babel/helper-create-regexp-features-plugin": "^7.16.7","@babel/helper-plugin-utils": "^7.16.7"@@ -1125,7 +1085,6 @@"version": "7.8.4","resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz","integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.8.0"}@@ -1143,7 +1102,6 @@"version": "7.12.13","resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz","integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.12.13"}@@ -1152,7 +1110,6 @@"version": "7.14.5","resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz","integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.14.5"}@@ -1161,7 +1118,6 @@"version": "7.8.3","resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz","integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.8.0"}@@ -1170,7 +1126,6 @@"version": "7.8.3","resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz","integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.8.3"}@@ -1188,7 +1143,6 @@"version": "7.8.3","resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz","integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.8.0"}@@ -1197,7 +1151,6 @@"version": "7.10.4","resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz","integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.10.4"}@@ -1206,7 +1159,6 @@"version": "7.8.3","resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz","integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.8.0"}@@ -1215,7 +1167,6 @@"version": "7.10.4","resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz","integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.10.4"}@@ -1224,7 +1175,6 @@"version": "7.8.3","resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz","integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.8.0"}@@ -1233,7 +1183,6 @@"version": "7.8.3","resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz","integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.8.0"}@@ -1242,7 +1191,6 @@"version": "7.8.3","resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz","integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.8.0"}@@ -1251,7 +1199,6 @@"version": "7.14.5","resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz","integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.14.5"}@@ -1260,7 +1207,6 @@"version": "7.14.5","resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz","integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.14.5"}@@ -1278,7 +1224,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.16.7.tgz","integrity": "sha512-9ffkFFMbvzTvv+7dTp/66xvZAWASuPD5Tl9LK3Z9vhOmANo6j94rik+5YMBt4CwHVMWLWpMsriIc2zsa3WW3xQ==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1287,7 +1232,6 @@"version": "7.16.8","resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.16.8.tgz","integrity": "sha512-MtmUmTJQHCnyJVrScNzNlofQJ3dLFuobYn3mwOTKHnSCMtbNsqvF71GQmJfFjdrXSsAA7iysFmYWw4bXZ20hOg==",- "dev": true,"requires": {"@babel/helper-module-imports": "^7.16.7","@babel/helper-plugin-utils": "^7.16.7",@@ -1298,7 +1242,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.16.7.tgz","integrity": "sha512-JUuzlzmF40Z9cXyytcbZEZKckgrQzChbQJw/5PuEHYeqzCsvebDx0K0jWnIIVcmmDOAVctCgnYs0pMcrYj2zJg==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1307,7 +1250,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.16.7.tgz","integrity": "sha512-ObZev2nxVAYA4bhyusELdo9hb3H+A56bxH3FZMbEImZFiEDYVHXQSJ1hQKFlDnlt8G9bBrCZ5ZpURZUrV4G5qQ==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1316,7 +1258,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.16.7.tgz","integrity": "sha512-WY7og38SFAGYRe64BrjKf8OrE6ulEHtr5jEYaZMwox9KebgqPi67Zqz8K53EKk1fFEJgm96r32rkKZ3qA2nCWQ==",- "dev": true,"requires": {"@babel/helper-annotate-as-pure": "^7.16.7","@babel/helper-environment-visitor": "^7.16.7",@@ -1332,7 +1273,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.16.7.tgz","integrity": "sha512-gN72G9bcmenVILj//sv1zLNaPyYcOzUho2lIJBMh/iakJ9ygCo/hEF9cpGb61SCMEDxbbyBoVQxrt+bWKu5KGw==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1341,7 +1281,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.16.7.tgz","integrity": "sha512-VqAwhTHBnu5xBVDCvrvqJbtLUa++qZaWC0Fgr2mqokBlulZARGyIvZDoqbPlPaKImQ9dKAcCzbv+ul//uqu70A==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1350,7 +1289,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.16.7.tgz","integrity": "sha512-Lyttaao2SjZF6Pf4vk1dVKv8YypMpomAbygW+mU5cYP3S5cWTfCJjG8xV6CFdzGFlfWK81IjL9viiTvpb6G7gQ==",- "dev": true,"requires": {"@babel/helper-create-regexp-features-plugin": "^7.16.7","@babel/helper-plugin-utils": "^7.16.7"@@ -1360,7 +1298,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.16.7.tgz","integrity": "sha512-03DvpbRfvWIXyK0/6QiR1KMTWeT6OcQ7tbhjrXyFS02kjuX/mu5Bvnh5SDSWHxyawit2g5aWhKwI86EE7GUnTw==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1369,7 +1306,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.16.7.tgz","integrity": "sha512-8UYLSlyLgRixQvlYH3J2ekXFHDFLQutdy7FfFAMm3CPZ6q9wHCwnUyiXpQCe3gVVnQlHc5nsuiEVziteRNTXEA==",- "dev": true,"requires": {"@babel/helper-builder-binary-assignment-operator-visitor": "^7.16.7","@babel/helper-plugin-utils": "^7.16.7"@@ -1379,7 +1315,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.16.7.tgz","integrity": "sha512-/QZm9W92Ptpw7sjI9Nx1mbcsWz33+l8kuMIQnDwgQBG5s3fAfQvkRjQ7NqXhtNcKOnPkdICmUHyCaWW06HCsqg==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1388,7 +1323,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.16.7.tgz","integrity": "sha512-SU/C68YVwTRxqWj5kgsbKINakGag0KTgq9f2iZEXdStoAbOzLHEBRYzImmA6yFo8YZhJVflvXmIHUO7GWHmxxA==",- "dev": true,"requires": {"@babel/helper-compilation-targets": "^7.16.7","@babel/helper-function-name": "^7.16.7",@@ -1399,7 +1333,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.16.7.tgz","integrity": "sha512-6tH8RTpTWI0s2sV6uq3e/C9wPo4PTqqZps4uF0kzQ9/xPLFQtipynvmT1g/dOfEJ+0EQsHhkQ/zyRId8J2b8zQ==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1408,7 +1341,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.16.7.tgz","integrity": "sha512-mBruRMbktKQwbxaJof32LT9KLy2f3gH+27a5XSuXo6h7R3vqltl0PgZ80C8ZMKw98Bf8bqt6BEVi3svOh2PzMw==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1417,7 +1349,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.16.7.tgz","integrity": "sha512-KaaEtgBL7FKYwjJ/teH63oAmE3lP34N3kshz8mm4VMAw7U3PxjVwwUmxEFksbgsNUaO3wId9R2AVQYSEGRa2+g==",- "dev": true,"requires": {"@babel/helper-module-transforms": "^7.16.7","@babel/helper-plugin-utils": "^7.16.7",@@ -1428,7 +1359,6 @@"version": "7.16.8","resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.16.8.tgz","integrity": "sha512-oflKPvsLT2+uKQopesJt3ApiaIS2HW+hzHFcwRNtyDGieAeC/dIHZX8buJQ2J2X1rxGPy4eRcUijm3qcSPjYcA==",- "dev": true,"requires": {"@babel/helper-module-transforms": "^7.16.7","@babel/helper-plugin-utils": "^7.16.7",@@ -1440,7 +1370,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.16.7.tgz","integrity": "sha512-DuK5E3k+QQmnOqBR9UkusByy5WZWGRxfzV529s9nPra1GE7olmxfqO2FHobEOYSPIjPBTr4p66YDcjQnt8cBmw==",- "dev": true,"requires": {"@babel/helper-hoist-variables": "^7.16.7","@babel/helper-module-transforms": "^7.16.7",@@ -1452,8 +1381,7 @@"@babel/helper-validator-identifier": {"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz",- "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==",- "dev": true+ "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw=="}}},@@ -1461,7 +1389,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.16.7.tgz","integrity": "sha512-EMh7uolsC8O4xhudF2F6wedbSHm1HHZ0C6aJ7K67zcDNidMzVcxWdGr+htW9n21klm+bOn+Rx4CBsAntZd3rEQ==",- "dev": true,"requires": {"@babel/helper-module-transforms": "^7.16.7","@babel/helper-plugin-utils": "^7.16.7"@@ -1471,7 +1398,6 @@"version": "7.16.8","resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.16.8.tgz","integrity": "sha512-j3Jw+n5PvpmhRR+mrgIh04puSANCk/T/UA3m3P1MjJkhlK906+ApHhDIqBQDdOgL/r1UYpz4GNclTXxyZrYGSw==",- "dev": true,"requires": {"@babel/helper-create-regexp-features-plugin": "^7.16.7"}@@ -1480,7 +1406,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.16.7.tgz","integrity": "sha512-xiLDzWNMfKoGOpc6t3U+etCE2yRnn3SM09BXqWPIZOBpL2gvVrBWUKnsJx0K/ADi5F5YC5f8APFfWrz25TdlGg==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1489,7 +1414,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.16.7.tgz","integrity": "sha512-14J1feiQVWaGvRxj2WjyMuXS2jsBkgB3MdSN5HuC2G5nRspa5RK9COcs82Pwy5BuGcjb+fYaUj94mYcOj7rCvw==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7","@babel/helper-replace-supers": "^7.16.7"@@ -1499,7 +1423,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.16.7.tgz","integrity": "sha512-AT3MufQ7zZEhU2hwOA11axBnExW0Lszu4RL/tAlUJBuNoRak+wehQW8h6KcXOcgjY42fHtDxswuMhMjFEuv/aw==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1508,7 +1431,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.16.7.tgz","integrity": "sha512-z4FGr9NMGdoIl1RqavCqGG+ZuYjfZ/hkCIeuH6Do7tXmSm0ls11nYVSJqFEUOSJbDab5wC6lRE/w6YjVcr6Hqw==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1517,7 +1439,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.16.7.tgz","integrity": "sha512-mF7jOgGYCkSJagJ6XCujSQg+6xC1M77/03K2oBmVJWoFGNUtnVJO4WHKJk3dnPC8HCcj4xBQP1Egm8DWh3Pb3Q==",- "dev": true,"requires": {"regenerator-transform": "^0.14.2"}@@ -1526,7 +1447,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.16.7.tgz","integrity": "sha512-KQzzDnZ9hWQBjwi5lpY5v9shmm6IVG0U9pB18zvMu2i4H90xpT4gmqwPYsn8rObiadYe2M0gmgsiOIF5A/2rtg==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1535,7 +1455,6 @@"version": "7.16.10","resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.16.10.tgz","integrity": "sha512-9nwTiqETv2G7xI4RvXHNfpGdr8pAA+Q/YtN3yLK7OoK7n9OibVm/xymJ838a9A6E/IciOLPj82lZk0fW6O4O7w==",- "dev": true,"requires": {"@babel/helper-module-imports": "^7.16.7","@babel/helper-plugin-utils": "^7.16.7",@@ -1548,8 +1467,7 @@"semver": {"version": "6.3.0","resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",- "dev": true+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="}}},@@ -1557,7 +1475,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.16.7.tgz","integrity": "sha512-hah2+FEnoRoATdIb05IOXf+4GzXYTq75TVhIn1PewihbpyrNWUt2JbudKQOETWw6QpLe+AIUpJ5MVLYTQbeeUg==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1566,7 +1483,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.16.7.tgz","integrity": "sha512-+pjJpgAngb53L0iaA5gU/1MLXJIfXcYepLgXB3esVRf4fqmj8f2cxM3/FKaHsZms08hFQJkFccEWuIpm429TXg==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7","@babel/helper-skip-transparent-expression-wrappers": "^7.16.0"@@ -1576,7 +1492,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.16.7.tgz","integrity": "sha512-NJa0Bd/87QV5NZZzTuZG5BPJjLYadeSZ9fO6oOUoL4iQx+9EEuw/eEM92SrsT19Yc2jgB1u1hsjqDtH02c3Drw==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1585,7 +1500,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.16.7.tgz","integrity": "sha512-VwbkDDUeenlIjmfNeDX/V0aWrQH2QiVyJtwymVQSzItFDTpxfyJh3EVaQiS0rIN/CqbLGr0VcGmuwyTdZtdIsA==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1594,7 +1508,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.16.7.tgz","integrity": "sha512-p2rOixCKRJzpg9JB4gjnG4gjWkWa89ZoYUnl9snJ1cWIcTH/hvxZqfO+WjG6T8DRBpctEol5jw1O5rA8gkCokQ==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1614,7 +1527,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.16.7.tgz","integrity": "sha512-TAV5IGahIz3yZ9/Hfv35TV2xEm+kaBDaZQCn2S/hG9/CZ0DktxJv9eKfPc7yYCvOYR4JGx1h8C+jcSOvgaaI/Q==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.16.7"}@@ -1623,7 +1535,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.16.7.tgz","integrity": "sha512-oC5tYYKw56HO75KZVLQ+R/Nl3Hro9kf8iG0hXoaHP7tjAyCpvqBiSNe6vGrZni1Z6MggmUOC6A7VP7AVmw225Q==",- "dev": true,"requires": {"@babel/helper-create-regexp-features-plugin": "^7.16.7","@babel/helper-plugin-utils": "^7.16.7"@@ -1633,7 +1544,6 @@"version": "7.16.11","resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.16.11.tgz","integrity": "sha512-qcmWG8R7ZW6WBRPZK//y+E3Cli151B20W1Rv7ln27vuPaXU/8TKms6jFdiJtF7UDTxcrb7mZd88tAeK9LjdT8g==",- "dev": true,"requires": {"@babel/compat-data": "^7.16.8","@babel/helper-compilation-targets": "^7.16.7",@@ -1714,8 +1624,7 @@"semver": {"version": "6.3.0","resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",- "dev": true+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="}}},@@ -1723,7 +1632,6 @@"version": "0.1.5","resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz","integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.0.0","@babel/plugin-proposal-unicode-property-regex": "^7.4.4",@@ -1747,7 +1655,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.7.tgz","integrity": "sha512-9E9FJowqAsytyOY6LG+1KuueckRL+aQW+mKvXRXnuFGyRAyepJPmEo9vgMfXUA6O9u3IeEdv9MAkppFcaQwogQ==",- "dev": true,"requires": {"regenerator-runtime": "^0.13.4"}@@ -1869,8 +1776,7 @@"@discoveryjs/json-ext": {"version": "0.5.6","resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.6.tgz",- "integrity": "sha512-ws57AidsDvREKrZKYffXddNkyaF14iHNHm8VQnZH6t99E8gczjNN0GpvcGny0imC80yQ0tHz1xVUKk/KFQSUyA==",- "dev": true+ "integrity": "sha512-ws57AidsDvREKrZKYffXddNkyaF14iHNHm8VQnZH6t99E8gczjNN0GpvcGny0imC80yQ0tHz1xVUKk/KFQSUyA=="},"@fortawesome/fontawesome-free": {"version": "6.0.0",@@ -1880,14 +1786,574 @@"@gar/promisify": {"version": "1.1.2","resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.2.tgz",- "integrity": "sha512-82cpyJyKRoQoRi+14ibCeGPu0CwypgtBAdBhq1WfvagpCZNKqwXbKwXllYSMG91DhmG4jt9gN8eP6lGOtozuaw==",- "dev": true+ "integrity": "sha512-82cpyJyKRoQoRi+14ibCeGPu0CwypgtBAdBhq1WfvagpCZNKqwXbKwXllYSMG91DhmG4jt9gN8eP6lGOtozuaw=="+ },+ "@iharbeck/ngx-virtual-scroller": {+ "version": "13.0.4",+ "resolved": "https://registry.npmjs.org/@iharbeck/ngx-virtual-scroller/-/ngx-virtual-scroller-13.0.4.tgz",+ "integrity": "sha512-giKoIn3WIk3zlq1v/91vOxKLshIZEAQDCTX+qR1ekFWHfojolm00FAu7zp5lQXD4cEC6WqJi7YC+XneVMlsw8Q==",+ "requires": {+ "@angular-devkit/build-angular": "^13.3.5",+ "@tweenjs/tween.js": "^18.6.4",+ "@types/tween.js": "^18.6.1",+ "tslib": "^2.3.0"+ },+ "dependencies": {+ "@ampproject/remapping": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz",+ "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==",+ "requires": {+ "@jridgewell/gen-mapping": "^0.1.0",+ "@jridgewell/trace-mapping": "^0.3.9"+ }+ },+ "@angular-devkit/architect": {+ "version": "0.1303.7",+ "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1303.7.tgz",+ "integrity": "sha512-xr35v7AuJygRdiaFhgoBSLN2ZMUri8x8Qx9jkmCkD3WLKz33TSFyAyqwdNNmOO9riK8ePXMH/QcSv0wY12pFBw==",+ "requires": {+ "@angular-devkit/core": "13.3.7",+ "rxjs": "6.6.7"+ }+ },+ "@angular-devkit/build-angular": {+ "version": "13.3.7",+ "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-13.3.7.tgz",+ "integrity": "sha512-XUmiq/3zpuna+r0UOqNSvA9kEcPwsLblEmNLUYyZXL9v/aGWUHOSH0nhGVrNRrSud4ryklEnxfkxkxlZlT4mjQ==",+ "requires": {+ "@ampproject/remapping": "2.2.0",+ "@angular-devkit/architect": "0.1303.7",+ "@angular-devkit/build-webpack": "0.1303.7",+ "@angular-devkit/core": "13.3.7",+ "@babel/core": "7.16.12",+ "@babel/generator": "7.16.8",+ "@babel/helper-annotate-as-pure": "7.16.7",+ "@babel/plugin-proposal-async-generator-functions": "7.16.8",+ "@babel/plugin-transform-async-to-generator": "7.16.8",+ "@babel/plugin-transform-runtime": "7.16.10",+ "@babel/preset-env": "7.16.11",+ "@babel/runtime": "7.16.7",+ "@babel/template": "7.16.7",+ "@discoveryjs/json-ext": "0.5.6",+ "@ngtools/webpack": "13.3.7",+ "ansi-colors": "4.1.1",+ "babel-loader": "8.2.5",+ "babel-plugin-istanbul": "6.1.1",+ "browserslist": "^4.9.1",+ "cacache": "15.3.0",+ "circular-dependency-plugin": "5.2.2",+ "copy-webpack-plugin": "10.2.1",+ "core-js": "3.20.3",+ "critters": "0.0.16",+ "css-loader": "6.5.1",+ "esbuild": "0.14.22",+ "esbuild-wasm": "0.14.22",+ "glob": "7.2.0",+ "https-proxy-agent": "5.0.0",+ "inquirer": "8.2.0",+ "jsonc-parser": "3.0.0",+ "karma-source-map-support": "1.4.0",+ "less": "4.1.2",+ "less-loader": "10.2.0",+ "license-webpack-plugin": "4.0.2",+ "loader-utils": "3.2.0",+ "mini-css-extract-plugin": "2.5.3",+ "minimatch": "3.0.5",+ "open": "8.4.0",+ "ora": "5.4.1",+ "parse5-html-rewriting-stream": "6.0.1",+ "piscina": "3.2.0",+ "postcss": "8.4.5",+ "postcss-import": "14.0.2",+ "postcss-loader": "6.2.1",+ "postcss-preset-env": "7.2.3",+ "regenerator-runtime": "0.13.9",+ "resolve-url-loader": "5.0.0",+ "rxjs": "6.6.7",+ "sass": "1.49.9",+ "sass-loader": "12.4.0",+ "semver": "7.3.5",+ "source-map-loader": "3.0.1",+ "source-map-support": "0.5.21",+ "stylus": "0.56.0",+ "stylus-loader": "6.2.0",+ "terser": "5.11.0",+ "text-table": "0.2.0",+ "tree-kill": "1.2.2",+ "tslib": "2.3.1",+ "webpack": "5.70.0",+ "webpack-dev-middleware": "5.3.0",+ "webpack-dev-server": "4.7.3",+ "webpack-merge": "5.8.0",+ "webpack-subresource-integrity": "5.1.0"+ },+ "dependencies": {+ "esbuild": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.22.tgz",+ "integrity": "sha512-CjFCFGgYtbFOPrwZNJf7wsuzesx8kqwAffOlbYcFDLFuUtP8xloK1GH+Ai13Qr0RZQf9tE7LMTHJ2iVGJ1SKZA==",+ "optional": true,+ "requires": {+ "esbuild-android-arm64": "0.14.22",+ "esbuild-darwin-64": "0.14.22",+ "esbuild-darwin-arm64": "0.14.22",+ "esbuild-freebsd-64": "0.14.22",+ "esbuild-freebsd-arm64": "0.14.22",+ "esbuild-linux-32": "0.14.22",+ "esbuild-linux-64": "0.14.22",+ "esbuild-linux-arm": "0.14.22",+ "esbuild-linux-arm64": "0.14.22",+ "esbuild-linux-mips64le": "0.14.22",+ "esbuild-linux-ppc64le": "0.14.22",+ "esbuild-linux-riscv64": "0.14.22",+ "esbuild-linux-s390x": "0.14.22",+ "esbuild-netbsd-64": "0.14.22",+ "esbuild-openbsd-64": "0.14.22",+ "esbuild-sunos-64": "0.14.22",+ "esbuild-windows-32": "0.14.22",+ "esbuild-windows-64": "0.14.22",+ "esbuild-windows-arm64": "0.14.22"+ }+ }+ }+ },+ "@angular-devkit/build-webpack": {+ "version": "0.1303.7",+ "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1303.7.tgz",+ "integrity": "sha512-5vF399cPdwuCbzbxS4yNGgChdAzEM0/By21P0uiqBcIe/Zxuz3IUPapjvcyhkAo5OTu+d7smY9eusLHqoq1WFQ==",+ "requires": {+ "@angular-devkit/architect": "0.1303.7",+ "rxjs": "6.6.7"+ }+ },+ "@angular-devkit/core": {+ "version": "13.3.7",+ "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-13.3.7.tgz",+ "integrity": "sha512-Ucy4bJmlgCoBenuVeGMdtW9dE8+cD+guWCgqexsFIG21KJ/l0ShZEZ/dGC1XibzaIs1HbKiTr/T1MOjInCV1rA==",+ "requires": {+ "ajv": "8.9.0",+ "ajv-formats": "2.1.1",+ "fast-json-stable-stringify": "2.1.0",+ "magic-string": "0.25.7",+ "rxjs": "6.6.7",+ "source-map": "0.7.3"+ }+ },+ "@babel/code-frame": {+ "version": "7.16.7",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz",+ "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==",+ "requires": {+ "@babel/highlight": "^7.16.7"+ }+ },+ "@babel/core": {+ "version": "7.16.12",+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.16.12.tgz",+ "integrity": "sha512-dK5PtG1uiN2ikk++5OzSYsitZKny4wOCD0nrO4TqnW4BVBTQ2NGS3NgilvT/TEyxTST7LNyWV/T4tXDoD3fOgg==",+ "requires": {+ "@babel/code-frame": "^7.16.7",+ "@babel/generator": "^7.16.8",+ "@babel/helper-compilation-targets": "^7.16.7",+ "@babel/helper-module-transforms": "^7.16.7",+ "@babel/helpers": "^7.16.7",+ "@babel/parser": "^7.16.12",+ "@babel/template": "^7.16.7",+ "@babel/traverse": "^7.16.10",+ "@babel/types": "^7.16.8",+ "convert-source-map": "^1.7.0",+ "debug": "^4.1.0",+ "gensync": "^1.0.0-beta.2",+ "json5": "^2.1.2",+ "semver": "^6.3.0",+ "source-map": "^0.5.0"+ },+ "dependencies": {+ "semver": {+ "version": "6.3.0",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="+ },+ "source-map": {+ "version": "0.5.7",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",+ "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ=="+ }+ }+ },+ "@babel/generator": {+ "version": "7.16.8",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.16.8.tgz",+ "integrity": "sha512-1ojZwE9+lOXzcWdWmO6TbUzDfqLD39CmEhN8+2cX9XkDo5yW1OpgfejfliysR2AWLpMamTiOiAp/mtroaymhpw==",+ "requires": {+ "@babel/types": "^7.16.8",+ "jsesc": "^2.5.1",+ "source-map": "^0.5.0"+ },+ "dependencies": {+ "source-map": {+ "version": "0.5.7",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",+ "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ=="+ }+ }+ },+ "@babel/helper-validator-identifier": {+ "version": "7.16.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz",+ "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw=="+ },+ "@babel/highlight": {+ "version": "7.17.12",+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.17.12.tgz",+ "integrity": "sha512-7yykMVF3hfZY2jsHZEEgLc+3x4o1O+fYyULu11GynEUQNwB6lua+IIQn1FiJxNucd5UlyJryrwsOh8PL9Sn8Qg==",+ "requires": {+ "@babel/helper-validator-identifier": "^7.16.7",+ "chalk": "^2.0.0",+ "js-tokens": "^4.0.0"+ }+ },+ "@jridgewell/trace-mapping": {+ "version": "0.3.13",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.13.tgz",+ "integrity": "sha512-o1xbKhp9qnIAoHJSWd6KlCZfqslL4valSF81H8ImioOAxluWYWOpWkpyktY2vnt4tbrX9XYaxovq6cgowaJp2w==",+ "requires": {+ "@jridgewell/resolve-uri": "^3.0.3",+ "@jridgewell/sourcemap-codec": "^1.4.10"+ }+ },+ "@ngtools/webpack": {+ "version": "13.3.7",+ "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-13.3.7.tgz",+ "integrity": "sha512-KtNMHOGZIU2oaNTzk97ZNwTnJLbvnSpwyG3/+VW9xN92b2yw8gG9tHPKW2fsFrfzF9Mz8kqJeF31ftvkYuKtuA=="+ },+ "@types/estree": {+ "version": "0.0.51",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz",+ "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ=="+ },+ "agent-base": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",+ "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",+ "requires": {+ "debug": "4"+ }+ },+ "ajv": {+ "version": "8.9.0",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.9.0.tgz",+ "integrity": "sha512-qOKJyNj/h+OWx7s5DePL6Zu1KeM9jPZhwBqs+7DzP6bGOvqzVCSf0xueYmVuaC/oQ/VtS2zLMLHdQFbkka+XDQ==",+ "requires": {+ "fast-deep-equal": "^3.1.1",+ "json-schema-traverse": "^1.0.0",+ "require-from-string": "^2.0.2",+ "uri-js": "^4.2.2"+ }+ },+ "babel-loader": {+ "version": "8.2.5",+ "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.2.5.tgz",+ "integrity": "sha512-OSiFfH89LrEMiWd4pLNqGz4CwJDtbs2ZVc+iGu2HrkRfPxId9F2anQj38IxWpmRfsUY0aBZYi1EFcd3mhtRMLQ==",+ "requires": {+ "find-cache-dir": "^3.3.1",+ "loader-utils": "^2.0.0",+ "make-dir": "^3.1.0",+ "schema-utils": "^2.6.5"+ },+ "dependencies": {+ "loader-utils": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.2.tgz",+ "integrity": "sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A==",+ "requires": {+ "big.js": "^5.2.2",+ "emojis-list": "^3.0.0",+ "json5": "^2.1.2"+ }+ }+ }+ },+ "enhanced-resolve": {+ "version": "5.9.3",+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.9.3.tgz",+ "integrity": "sha512-Bq9VSor+kjvW3f9/MiiR4eE3XYgOl7/rS8lnSxbRbF3kS0B2r+Y9w5krBWxZgDxASVZbdYrn5wT4j/Wb0J9qow==",+ "requires": {+ "graceful-fs": "^4.2.4",+ "tapable": "^2.2.0"+ }+ },+ "esbuild-android-arm64": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.22.tgz",+ "integrity": "sha512-k1Uu4uC4UOFgrnTj2zuj75EswFSEBK+H6lT70/DdS4mTAOfs2ECv2I9ZYvr3w0WL0T4YItzJdK7fPNxcPw6YmQ==",+ "optional": true+ },+ "esbuild-darwin-64": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.22.tgz",+ "integrity": "sha512-d8Ceuo6Vw6HM3fW218FB6jTY6O3r2WNcTAU0SGsBkXZ3k8SDoRLd3Nrc//EqzdgYnzDNMNtrWegK2Qsss4THhw==",+ "optional": true+ },+ "esbuild-darwin-arm64": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.22.tgz",+ "integrity": "sha512-YAt9Tj3SkIUkswuzHxkaNlT9+sg0xvzDvE75LlBo4DI++ogSgSmKNR6B4eUhU5EUUepVXcXdRIdqMq9ppeRqfw==",+ "optional": true+ },+ "esbuild-freebsd-64": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.22.tgz",+ "integrity": "sha512-ek1HUv7fkXMy87Qm2G4IRohN+Qux4IcnrDBPZGXNN33KAL0pEJJzdTv0hB/42+DCYWylSrSKxk3KUXfqXOoH4A==",+ "optional": true+ },+ "esbuild-freebsd-arm64": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.22.tgz",+ "integrity": "sha512-zPh9SzjRvr9FwsouNYTqgqFlsMIW07O8mNXulGeQx6O5ApgGUBZBgtzSlBQXkHi18WjrosYfsvp5nzOKiWzkjQ==",+ "optional": true+ },+ "esbuild-linux-32": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.22.tgz",+ "integrity": "sha512-SnpveoE4nzjb9t2hqCIzzTWBM0RzcCINDMBB67H6OXIuDa4KqFqaIgmTchNA9pJKOVLVIKd5FYxNiJStli21qg==",+ "optional": true+ },+ "esbuild-linux-64": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.22.tgz",+ "integrity": "sha512-Zcl9Wg7gKhOWWNqAjygyqzB+fJa19glgl2JG7GtuxHyL1uEnWlpSMytTLMqtfbmRykIHdab797IOZeKwk5g0zg==",+ "optional": true+ },+ "esbuild-linux-arm": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.22.tgz",+ "integrity": "sha512-soPDdbpt/C0XvOOK45p4EFt8HbH5g+0uHs5nUKjHVExfgR7du734kEkXR/mE5zmjrlymk5AA79I0VIvj90WZ4g==",+ "optional": true+ },+ "esbuild-linux-arm64": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.22.tgz",+ "integrity": "sha512-8q/FRBJtV5IHnQChO3LHh/Jf7KLrxJ/RCTGdBvlVZhBde+dk3/qS9fFsUy+rs3dEi49aAsyVitTwlKw1SUFm+A==",+ "optional": true+ },+ "esbuild-linux-mips64le": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.22.tgz",+ "integrity": "sha512-SiNDfuRXhGh1JQLLA9JPprBgPVFOsGuQ0yDfSPTNxztmVJd8W2mX++c4FfLpAwxuJe183mLuKf7qKCHQs5ZnBQ==",+ "optional": true+ },+ "esbuild-linux-ppc64le": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.22.tgz",+ "integrity": "sha512-6t/GI9I+3o1EFm2AyN9+TsjdgWCpg2nwniEhjm2qJWtJyJ5VzTXGUU3alCO3evopu8G0hN2Bu1Jhz2YmZD0kng==",+ "optional": true+ },+ "esbuild-linux-s390x": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.22.tgz",+ "integrity": "sha512-Sz1NjZewTIXSblQDZWEFZYjOK6p8tV6hrshYdXZ0NHTjWE+lwxpOpWeElUGtEmiPcMT71FiuA9ODplqzzSxkzw==",+ "optional": true+ },+ "esbuild-netbsd-64": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.22.tgz",+ "integrity": "sha512-TBbCtx+k32xydImsHxvFgsOCuFqCTGIxhzRNbgSL1Z2CKhzxwT92kQMhxort9N/fZM2CkRCPPs5wzQSamtzEHA==",+ "optional": true+ },+ "esbuild-openbsd-64": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.22.tgz",+ "integrity": "sha512-vK912As725haT313ANZZZN+0EysEEQXWC/+YE4rQvOQzLuxAQc2tjbzlAFREx3C8+uMuZj/q7E5gyVB7TzpcTA==",+ "optional": true+ },+ "esbuild-sunos-64": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.22.tgz",+ "integrity": "sha512-/mbJdXTW7MTcsPhtfDsDyPEOju9EOABvCjeUU2OJ7fWpX/Em/H3WYDa86tzLUbcVg++BScQDzqV/7RYw5XNY0g==",+ "optional": true+ },+ "esbuild-wasm": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-wasm/-/esbuild-wasm-0.14.22.tgz",+ "integrity": "sha512-FOSAM29GN1fWusw0oLMv6JYhoheDIh5+atC72TkJKfIUMID6yISlicoQSd9gsNSFsNBvABvtE2jR4JB1j4FkFw=="+ },+ "esbuild-windows-32": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.22.tgz",+ "integrity": "sha512-1vRIkuvPTjeSVK3diVrnMLSbkuE36jxA+8zGLUOrT4bb7E/JZvDRhvtbWXWaveUc/7LbhaNFhHNvfPuSw2QOQg==",+ "optional": true+ },+ "esbuild-windows-64": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.22.tgz",+ "integrity": "sha512-AxjIDcOmx17vr31C5hp20HIwz1MymtMjKqX4qL6whPj0dT9lwxPexmLj6G1CpR3vFhui6m75EnBEe4QL82SYqw==",+ "optional": true+ },+ "esbuild-windows-arm64": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.22.tgz",+ "integrity": "sha512-5wvQ+39tHmRhNpu2Fx04l7QfeK3mQ9tKzDqqGR8n/4WUxsFxnVLfDRBGirIfk4AfWlxk60kqirlODPoT5LqMUg==",+ "optional": true+ },+ "glob": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz",+ "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==",+ "requires": {+ "fs.realpath": "^1.0.0",+ "inflight": "^1.0.4",+ "inherits": "2",+ "minimatch": "^3.0.4",+ "once": "^1.3.0",+ "path-is-absolute": "^1.0.0"+ }+ },+ "https-proxy-agent": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz",+ "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==",+ "requires": {+ "agent-base": "6",+ "debug": "4"+ }+ },+ "json-schema-traverse": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="+ },+ "license-webpack-plugin": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/license-webpack-plugin/-/license-webpack-plugin-4.0.2.tgz",+ "integrity": "sha512-771TFWFD70G1wLTC4oU2Cw4qvtmNrIw+wRvBtn+okgHl7slJVi7zfNcdmqDL72BojM30VNJ2UHylr1o77U37Jw==",+ "requires": {+ "webpack-sources": "^3.0.0"+ }+ },+ "minimatch": {+ "version": "3.0.5",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.5.tgz",+ "integrity": "sha512-tUpxzX0VAzJHjLu0xUfFv1gwVp9ba3IOuRAVH2EGuRW8a5emA2FlACLqiT/lDVtS1W+TGNwqz3sWaNyLgDJWuw==",+ "requires": {+ "brace-expansion": "^1.1.7"+ }+ },+ "rxjs": {+ "version": "6.6.7",+ "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",+ "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",+ "requires": {+ "tslib": "^1.9.0"+ },+ "dependencies": {+ "tslib": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",+ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="+ }+ }+ },+ "sass": {+ "version": "1.49.9",+ "resolved": "https://registry.npmjs.org/sass/-/sass-1.49.9.tgz",+ "integrity": "sha512-YlYWkkHP9fbwaFRZQRXgDi3mXZShslVmmo+FVK3kHLUELHHEYrCmL1x6IUjC7wLS6VuJSAFXRQS/DxdsC4xL1A==",+ "requires": {+ "chokidar": ">=3.0.0 <4.0.0",+ "immutable": "^4.0.0",+ "source-map-js": ">=0.6.2 <2.0.0"+ }+ },+ "semver": {+ "version": "7.3.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz",+ "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==",+ "requires": {+ "lru-cache": "^6.0.0"+ }+ },+ "source-map": {+ "version": "0.7.3",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz",+ "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ=="+ },+ "terser": {+ "version": "5.11.0",+ "resolved": "https://registry.npmjs.org/terser/-/terser-5.11.0.tgz",+ "integrity": "sha512-uCA9DLanzzWSsN1UirKwylhhRz3aKPInlfmpGfw8VN6jHsAtu8HJtIpeeHHK23rxnE/cDc+yvmq5wqkIC6Kn0A==",+ "requires": {+ "acorn": "^8.5.0",+ "commander": "^2.20.0",+ "source-map": "~0.7.2",+ "source-map-support": "~0.5.20"+ }+ },+ "webpack": {+ "version": "5.70.0",+ "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.70.0.tgz",+ "integrity": "sha512-ZMWWy8CeuTTjCxbeaQI21xSswseF2oNOwc70QSKNePvmxE7XW36i7vpBMYZFAUHPwQiEbNGCEYIOOlyRbdGmxw==",+ "requires": {+ "@types/eslint-scope": "^3.7.3",+ "@types/estree": "^0.0.51",+ "@webassemblyjs/ast": "1.11.1",+ "@webassemblyjs/wasm-edit": "1.11.1",+ "@webassemblyjs/wasm-parser": "1.11.1",+ "acorn": "^8.4.1",+ "acorn-import-assertions": "^1.7.6",+ "browserslist": "^4.14.5",+ "chrome-trace-event": "^1.0.2",+ "enhanced-resolve": "^5.9.2",+ "es-module-lexer": "^0.9.0",+ "eslint-scope": "5.1.1",+ "events": "^3.2.0",+ "glob-to-regexp": "^0.4.1",+ "graceful-fs": "^4.2.9",+ "json-parse-better-errors": "^1.0.2",+ "loader-runner": "^4.2.0",+ "mime-types": "^2.1.27",+ "neo-async": "^2.6.2",+ "schema-utils": "^3.1.0",+ "tapable": "^2.1.1",+ "terser-webpack-plugin": "^5.1.3",+ "watchpack": "^2.3.1",+ "webpack-sources": "^3.2.3"+ },+ "dependencies": {+ "ajv": {+ "version": "6.12.6",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",+ "requires": {+ "fast-deep-equal": "^3.1.1",+ "fast-json-stable-stringify": "^2.0.0",+ "json-schema-traverse": "^0.4.1",+ "uri-js": "^4.2.2"+ }+ },+ "json-schema-traverse": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="+ },+ "schema-utils": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz",+ "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==",+ "requires": {+ "@types/json-schema": "^7.0.8",+ "ajv": "^6.12.5",+ "ajv-keywords": "^3.5.2"+ }+ }+ }+ }+ }},"@istanbuljs/load-nyc-config": {"version": "1.1.0","resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz","integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==",- "dev": true,"requires": {"camelcase": "^5.3.1","find-up": "^4.1.0",@@ -1899,8 +2365,7 @@"@istanbuljs/schema": {"version": "0.1.3","resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz",- "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==",- "dev": true+ "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA=="},"@jest/console": {"version": "27.5.1",@@ -2392,23 +2857,34 @@}}},+ "@jridgewell/gen-mapping": {+ "version": "0.1.1",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz",+ "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==",+ "requires": {+ "@jridgewell/set-array": "^1.0.0",+ "@jridgewell/sourcemap-codec": "^1.4.10"+ }+ },"@jridgewell/resolve-uri": {"version": "3.0.5","resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.0.5.tgz",- "integrity": "sha512-VPeQ7+wH0itvQxnG+lIzWgkysKIr3L9sslimFW55rHMdGu/qCQ5z5h9zq4gI8uBtqkpHhsF4Z/OwExufUCThew==",- "dev": true+ "integrity": "sha512-VPeQ7+wH0itvQxnG+lIzWgkysKIr3L9sslimFW55rHMdGu/qCQ5z5h9zq4gI8uBtqkpHhsF4Z/OwExufUCThew=="+ },+ "@jridgewell/set-array": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.1.tgz",+ "integrity": "sha512-Ct5MqZkLGEXTVmQYbGtx9SVqD2fqwvdubdps5D3djjAkgkKwT918VNOz65pEHFaYTeWcukmJmH5SwsA9Tn2ObQ=="},"@jridgewell/sourcemap-codec": {"version": "1.4.11","resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.11.tgz",- "integrity": "sha512-Fg32GrJo61m+VqYSdRSjRXMjQ06j8YIYfcTqndLYVAaHmroZHLJZCydsWBOTDqXS2v+mjxohBWEMfg97GXmYQg==",- "dev": true+ "integrity": "sha512-Fg32GrJo61m+VqYSdRSjRXMjQ06j8YIYfcTqndLYVAaHmroZHLJZCydsWBOTDqXS2v+mjxohBWEMfg97GXmYQg=="},"@jridgewell/trace-mapping": {"version": "0.3.4","resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.4.tgz","integrity": "sha512-vFv9ttIedivx0ux3QSjhgtCVjPZd5l46ZOMDSCwnH1yUO2e964gO8LZGyv2QkqcgR6TnBU1v+1IFqmeoG+0UJQ==",- "dev": true,"requires": {"@jridgewell/resolve-uri": "^3.0.3","@jridgewell/sourcemap-codec": "^1.4.10"@@ -2424,12 +2900,22 @@"fetch-cookie": "^0.11.0","node-fetch": "^2.6.1","ws": "^7.4.5"+ },+ "dependencies": {+ "eventsource": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.1.1.tgz",+ "integrity": "sha512-qV5ZC0h7jYIAOhArFJgSfdyz6rALJyb270714o7ZtNnw2WSJ+eexhKtE0O8LYPRsHZHf2osHKZBxGPvm3kPkCA==",+ "requires": {+ "original": "^1.0.0"+ }+ }}},"@ng-bootstrap/ng-bootstrap": {- "version": "12.0.0",- "resolved": "https://registry.npmjs.org/@ng-bootstrap/ng-bootstrap/-/ng-bootstrap-12.0.0.tgz",- "integrity": "sha512-XWf/CsP1gH0aev7Mtsldtj0DPPFdTrJpSiyjzLFS29gU1ZuDlJz6OKthgUDxZoua6uNPAzaGMc0A20T+reMfRw==",+ "version": "12.1.2",+ "resolved": "https://registry.npmjs.org/@ng-bootstrap/ng-bootstrap/-/ng-bootstrap-12.1.2.tgz",+ "integrity": "sha512-p27c+mYVdHiJMYrj5hwClVJxLdiZxafAqlbw1sdJh2xJ1rGOe+H/kCf5YDRbhlHqRN+34Gr0RQqIUeD1I2V8hg==","requires": {"tslib": "^2.3.0"}@@ -2444,7 +2930,6 @@"version": "2.1.5","resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz","integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",- "dev": true,"requires": {"@nodelib/fs.stat": "2.0.5","run-parallel": "^1.1.9"@@ -2453,14 +2938,12 @@"@nodelib/fs.stat": {"version": "2.0.5","resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",- "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",- "dev": true+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A=="},"@nodelib/fs.walk": {"version": "1.2.8","resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz","integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",- "dev": true,"requires": {"@nodelib/fs.scandir": "2.1.5","fastq": "^1.6.0"@@ -2470,7 +2953,6 @@"version": "1.1.1","resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz","integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==",- "dev": true,"requires": {"@gar/promisify": "^1.0.1","semver": "^7.3.5"@@ -2480,7 +2962,6 @@"version": "7.3.5","resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz","integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==",- "dev": true,"requires": {"lru-cache": "^6.0.0"}@@ -2534,7 +3015,6 @@"version": "1.1.2","resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz","integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==",- "dev": true,"requires": {"mkdirp": "^1.0.4","rimraf": "^3.0.2"@@ -2543,8 +3023,7 @@"mkdirp": {"version": "1.0.4","resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",- "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",- "dev": true+ "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw=="}}},@@ -2916,6 +3395,11 @@"integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==","dev": true},+ "@tweenjs/tween.js": {+ "version": "18.6.4",+ "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-18.6.4.tgz",+ "integrity": "sha512-lB9lMjuqjtuJrx7/kOkqQBtllspPIN+96OvTCeJ2j5FEzinoAXTdAMFnDAQT1KVPRlnYfBrqxtqP66vDM40xxQ=="+ },"@types/babel__core": {"version": "7.1.18","resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.18.tgz",@@ -2961,7 +3445,6 @@"version": "1.19.2","resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz","integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==",- "dev": true,"requires": {"@types/connect": "*","@types/node": "*"@@ -2971,7 +3454,6 @@"version": "3.5.10","resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.10.tgz","integrity": "sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==",- "dev": true,"requires": {"@types/node": "*"}@@ -2980,7 +3462,6 @@"version": "3.4.35","resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz","integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==",- "dev": true,"requires": {"@types/node": "*"}@@ -2989,7 +3470,6 @@"version": "1.3.5","resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.3.5.tgz","integrity": "sha512-h8QJa8xSb1WD4fpKBDcATDNGXghFj6/3GRWG6dhmRcu0RX1Ubasur2Uvx5aeEwlf0MwblEC2bMzzMQntxnw/Cw==",- "dev": true,"requires": {"@types/express-serve-static-core": "*","@types/node": "*"@@ -2999,7 +3479,6 @@"version": "8.4.1","resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.1.tgz","integrity": "sha512-GE44+DNEyxxh2Kc6ro/VkIj+9ma0pO0bwv9+uHSyBrikYOHr8zYcdPvnBOp1aw8s+CjRvuSx7CyWqRrNFQ59mA==",- "dev": true,"requires": {"@types/estree": "*","@types/json-schema": "*"@@ -3009,7 +3488,6 @@"version": "3.7.3","resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.3.tgz","integrity": "sha512-PB3ldyrcnAicT35TWPs5IcwKD8S333HMaa2VVv4+wdvebJkjWuW/xESoB8IwRcog8HYVYamb1g/R31Qv5Bx03g==",- "dev": true,"requires": {"@types/eslint": "*","@types/estree": "*"@@ -3018,14 +3496,12 @@"@types/estree": {"version": "0.0.50","resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.50.tgz",- "integrity": "sha512-C6N5s2ZFtuZRj54k2/zyRhNDjJwwcViAM3Nbm8zjBpbqAdZ00mr0CFxvSKeO8Y/e03WVFLpQMdHYVfUd6SB+Hw==",- "dev": true+ "integrity": "sha512-C6N5s2ZFtuZRj54k2/zyRhNDjJwwcViAM3Nbm8zjBpbqAdZ00mr0CFxvSKeO8Y/e03WVFLpQMdHYVfUd6SB+Hw=="},"@types/express": {"version": "4.17.13","resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.13.tgz","integrity": "sha512-6bSZTPaTIACxn48l50SR+axgrqm6qXFIxrdAKaG6PaJk3+zuUr35hBlgT7vOmJcum+OEaIBLtHV/qloEAFITeA==",- "dev": true,"requires": {"@types/body-parser": "*","@types/express-serve-static-core": "^4.17.18",@@ -3037,7 +3513,6 @@"version": "4.17.28","resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.28.tgz","integrity": "sha512-P1BJAEAW3E2DJUlkgq4tOL3RyMunoWXqbSCygWo5ZIWTjUgN1YnaXWW4VWl/oc8vs/XoYibEGBKP0uZyF4AHig==",- "dev": true,"requires": {"@types/node": "*","@types/qs": "*",@@ -3062,7 +3537,6 @@"version": "1.17.8","resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.8.tgz","integrity": "sha512-5kPLG5BKpWYkw/LVOGWpiq3nEVqxiN32rTgI53Sk12/xHFQ2rG3ehI9IO+O3W2QoKeyB92dJkoka8SUm6BX1pA==",- "dev": true,"requires": {"@types/node": "*"}@@ -3104,26 +3578,22 @@"@types/json-schema": {"version": "7.0.9","resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz",- "integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==",- "dev": true+ "integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ=="},"@types/mime": {"version": "1.3.2","resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz",- "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==",- "dev": true+ "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw=="},"@types/node": {"version": "17.0.17","resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.17.tgz",- "integrity": "sha512-e8PUNQy1HgJGV3iU/Bp2+D/DXh3PYeyli8LgIwsQcs1Ar1LoaWHSIT6Rw+H2rNJmiq6SNWiDytfx8+gYj7wDHw==",- "dev": true+ "integrity": "sha512-e8PUNQy1HgJGV3iU/Bp2+D/DXh3PYeyli8LgIwsQcs1Ar1LoaWHSIT6Rw+H2rNJmiq6SNWiDytfx8+gYj7wDHw=="},"@types/parse-json": {"version": "4.0.0","resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz",- "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==",- "dev": true+ "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA=="},"@types/prettier": {"version": "2.4.4",@@ -3134,20 +3604,17 @@"@types/qs": {"version": "6.9.7","resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz",- "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==",- "dev": true+ "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw=="},"@types/range-parser": {"version": "1.2.4","resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz",- "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==",- "dev": true+ "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw=="},"@types/retry": {"version": "0.12.1","resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.1.tgz",- "integrity": "sha512-xoDlM2S4ortawSWORYqsdU+2rxdh4LRW9ytc3zmT37RIKQh6IHyKwwtKhKis9ah8ol07DCkZxPt8BBvPjC6v4g==",- "dev": true+ "integrity": "sha512-xoDlM2S4ortawSWORYqsdU+2rxdh4LRW9ytc3zmT37RIKQh6IHyKwwtKhKis9ah8ol07DCkZxPt8BBvPjC6v4g=="},"@types/selenium-webdriver": {"version": "3.0.17",@@ -3159,7 +3626,6 @@"version": "1.9.1","resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz","integrity": "sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==",- "dev": true,"requires": {"@types/express": "*"}@@ -3168,7 +3634,6 @@"version": "1.13.10","resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.13.10.tgz","integrity": "sha512-nCkHGI4w7ZgAdNkrEu0bv+4xNV/XDqW+DydknebMOQwkpDGx8G+HTlj7R7ABI8i8nKxVw0wtKPi1D+lPOkh4YQ==",- "dev": true,"requires": {"@types/mime": "^1","@types/node": "*"@@ -3178,7 +3643,6 @@"version": "0.3.33","resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.33.tgz","integrity": "sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==",- "dev": true,"requires": {"@types/node": "*"}@@ -3189,11 +3653,18 @@"integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==","dev": true},+ "@types/tween.js": {+ "version": "18.6.1",+ "resolved": "https://registry.npmjs.org/@types/tween.js/-/tween.js-18.6.1.tgz",+ "integrity": "sha512-TJsLKUQtHPMvxEzh9Iy1Rb8C+a1q8IRrZsYy21LX4l9mhVtvfkPzQ7p7SA25N2YvCm0dEZ0V0y/5cPOnGI/atw==",+ "requires": {+ "@tweenjs/tween.js": "*"+ }+ },"@types/ws": {"version": "8.2.2","resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.2.2.tgz","integrity": "sha512-NOn5eIcgWLOo6qW8AcuLZ7G8PycXu0xTxxkS6Q18VWFxgPUSOwV0pBj2a/4viNZVu25i7RIB7GttdkAIUUXOOg==",- "dev": true,"requires": {"@types/node": "*"}@@ -3227,7 +3698,6 @@"version": "1.11.1","resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz","integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==",- "dev": true,"requires": {"@webassemblyjs/helper-numbers": "1.11.1","@webassemblyjs/helper-wasm-bytecode": "1.11.1"@@ -3236,26 +3706,22 @@"@webassemblyjs/floating-point-hex-parser": {"version": "1.11.1","resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz",- "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==",- "dev": true+ "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ=="},"@webassemblyjs/helper-api-error": {"version": "1.11.1","resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz",- "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==",- "dev": true+ "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg=="},"@webassemblyjs/helper-buffer": {"version": "1.11.1","resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz",- "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==",- "dev": true+ "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA=="},"@webassemblyjs/helper-numbers": {"version": "1.11.1","resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz","integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==",- "dev": true,"requires": {"@webassemblyjs/floating-point-hex-parser": "1.11.1","@webassemblyjs/helper-api-error": "1.11.1",@@ -3265,14 +3731,12 @@"@webassemblyjs/helper-wasm-bytecode": {"version": "1.11.1","resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz",- "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==",- "dev": true+ "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q=="},"@webassemblyjs/helper-wasm-section": {"version": "1.11.1","resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz","integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==",- "dev": true,"requires": {"@webassemblyjs/ast": "1.11.1","@webassemblyjs/helper-buffer": "1.11.1",@@ -3284,7 +3748,6 @@"version": "1.11.1","resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz","integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==",- "dev": true,"requires": {"@xtuc/ieee754": "^1.2.0"}@@ -3293,7 +3756,6 @@"version": "1.11.1","resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz","integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==",- "dev": true,"requires": {"@xtuc/long": "4.2.2"}@@ -3301,14 +3763,12 @@"@webassemblyjs/utf8": {"version": "1.11.1","resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz",- "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==",- "dev": true+ "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ=="},"@webassemblyjs/wasm-edit": {"version": "1.11.1","resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz","integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==",- "dev": true,"requires": {"@webassemblyjs/ast": "1.11.1","@webassemblyjs/helper-buffer": "1.11.1",@@ -3324,7 +3784,6 @@"version": "1.11.1","resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz","integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==",- "dev": true,"requires": {"@webassemblyjs/ast": "1.11.1","@webassemblyjs/helper-wasm-bytecode": "1.11.1",@@ -3337,7 +3796,6 @@"version": "1.11.1","resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz","integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==",- "dev": true,"requires": {"@webassemblyjs/ast": "1.11.1","@webassemblyjs/helper-buffer": "1.11.1",@@ -3349,7 +3807,6 @@"version": "1.11.1","resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz","integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==",- "dev": true,"requires": {"@webassemblyjs/ast": "1.11.1","@webassemblyjs/helper-api-error": "1.11.1",@@ -3363,7 +3820,6 @@"version": "1.11.1","resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz","integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==",- "dev": true,"requires": {"@webassemblyjs/ast": "1.11.1","@xtuc/long": "4.2.2"@@ -3372,14 +3828,12 @@"@xtuc/ieee754": {"version": "1.2.0","resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz",- "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==",- "dev": true+ "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA=="},"@xtuc/long": {"version": "4.2.2","resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz",- "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==",- "dev": true+ "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ=="},"@yarnpkg/lockfile": {"version": "1.1.0",@@ -3390,8 +3844,7 @@"abab": {"version": "2.0.5","resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz",- "integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==",- "dev": true+ "integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q=="},"abbrev": {"version": "1.1.1",@@ -3411,7 +3864,6 @@"version": "1.3.8","resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz","integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",- "dev": true,"requires": {"mime-types": "~2.1.34","negotiator": "0.6.3"@@ -3420,14 +3872,12 @@"mime-db": {"version": "1.51.0","resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz",- "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==",- "dev": true+ "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g=="},"mime-types": {"version": "2.1.34","resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz","integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==",- "dev": true,"requires": {"mime-db": "1.51.0"}@@ -3466,8 +3916,7 @@"acorn-import-assertions": {"version": "1.8.0","resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz",- "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==",- "dev": true+ "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw=="},"acorn-walk": {"version": "8.2.0",@@ -3478,7 +3927,6 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/adjust-sourcemap-loader/-/adjust-sourcemap-loader-4.0.0.tgz","integrity": "sha512-OXwN5b9pCUXNQHJpwwD2qP40byEmSgzj8B4ydSN0uMNYWiFmJ6x6KwUllMmfk8Rwu/HJDFR7U8ubsWBoN0Xp0A==",- "dev": true,"requires": {"loader-utils": "^2.0.0","regex-parser": "^2.2.11"@@ -3488,7 +3936,6 @@"version": "2.0.2","resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.2.tgz","integrity": "sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A==",- "dev": true,"requires": {"big.js": "^5.2.2","emojis-list": "^3.0.0",@@ -3527,7 +3974,6 @@"version": "3.1.0","resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz","integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==",- "dev": true,"requires": {"clean-stack": "^2.0.0","indent-string": "^4.0.0"@@ -3537,7 +3983,6 @@"version": "6.12.6","resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz","integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",- "dev": true,"requires": {"fast-deep-equal": "^3.1.1","fast-json-stable-stringify": "^2.0.0",@@ -3549,7 +3994,6 @@"version": "2.1.1","resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz","integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==",- "dev": true,"requires": {"ajv": "^8.0.0"},@@ -3558,7 +4002,6 @@"version": "8.10.0","resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz","integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==",- "dev": true,"requires": {"fast-deep-equal": "^3.1.1","json-schema-traverse": "^1.0.0",@@ -3569,28 +4012,24 @@"json-schema-traverse": {"version": "1.0.0","resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",- "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",- "dev": true+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="}}},"ajv-keywords": {"version": "3.5.2","resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz",- "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==",- "dev": true+ "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ=="},"ansi-colors": {"version": "4.1.1","resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz",- "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==",- "dev": true+ "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA=="},"ansi-escapes": {"version": "4.3.2","resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz","integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==",- "dev": true,"requires": {"type-fest": "^0.21.3"}@@ -3598,8 +4037,7 @@"ansi-html-community": {"version": "0.0.8","resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz",- "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==",- "dev": true+ "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw=="},"ansi-regex": {"version": "5.0.1",@@ -3618,7 +4056,6 @@"version": "3.1.2","resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz","integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==",- "dev": true,"requires": {"normalize-path": "^3.0.0","picomatch": "^2.0.4"@@ -3669,7 +4106,6 @@"version": "1.0.10","resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz","integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",- "dev": true,"requires": {"sprintf-js": "~1.0.2"}@@ -3687,14 +4123,12 @@"array-flatten": {"version": "2.1.2","resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz",- "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==",- "dev": true+ "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ=="},"array-union": {"version": "3.0.1","resolved": "https://registry.npmjs.org/array-union/-/array-union-3.0.1.tgz",- "integrity": "sha512-1OvF9IbWwaeiM9VhzYXVQacMibxpXOMYVNIvMtKRyX9SImBXpKcFr8XvFDeEslCyuH/t6KRt7HEO94AlP8Iatw==",- "dev": true+ "integrity": "sha512-1OvF9IbWwaeiM9VhzYXVQacMibxpXOMYVNIvMtKRyX9SImBXpKcFr8XvFDeEslCyuH/t6KRt7HEO94AlP8Iatw=="},"array-uniq": {"version": "1.0.3",@@ -3733,7 +4167,6 @@"version": "2.6.4","resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz","integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==",- "dev": true,"requires": {"lodash": "^4.17.14"}@@ -3747,14 +4180,12 @@"atob": {"version": "2.1.2","resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz",- "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==",- "dev": true+ "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg=="},"autoprefixer": {"version": "10.4.2","resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.2.tgz","integrity": "sha512-9fOPpHKuDW1w/0EKfRmVnxTDt8166MAnLI3mgZ1JCnhNtYWxcJ6Ud5CO/AVOZi/AvFa8DY9RTy3h3+tFBlrrdQ==",- "dev": true,"requires": {"browserslist": "^4.19.1","caniuse-lite": "^1.0.30001297",@@ -3896,7 +4327,6 @@"version": "2.3.3","resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz","integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==",- "dev": true,"requires": {"object.assign": "^4.1.0"}@@ -3905,7 +4335,6 @@"version": "6.1.1","resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz","integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==",- "dev": true,"requires": {"@babel/helper-plugin-utils": "^7.0.0","@istanbuljs/load-nyc-config": "^1.0.0",@@ -3930,7 +4359,6 @@"version": "0.3.1","resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.1.tgz","integrity": "sha512-v7/T6EQcNfVLfcN2X8Lulb7DjprieyLWJK/zOWH5DUYcAgex9sP3h25Q+DLsX9TloXe3y1O8l2q2Jv9q8UVB9w==",- "dev": true,"requires": {"@babel/compat-data": "^7.13.11","@babel/helper-define-polyfill-provider": "^0.3.1",@@ -3940,8 +4368,7 @@"semver": {"version": "6.3.0","resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",- "dev": true+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="}}},@@ -3949,7 +4376,6 @@"version": "0.5.2","resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.5.2.tgz","integrity": "sha512-G3uJih0XWiID451fpeFaYGVuxHEjzKTHtc9uGFEjR6hHrvNzeS/PX+LLLcetJcytsB5m4j+K3o/EpXJNb/5IEQ==",- "dev": true,"requires": {"@babel/helper-define-polyfill-provider": "^0.3.1","core-js-compat": "^3.21.0"@@ -3959,7 +4385,6 @@"version": "0.3.1","resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.3.1.tgz","integrity": "sha512-Y2B06tvgHYt1x0yz17jGkGeeMr5FeKUu+ASJ+N6nB5lQ8Dapfg42i0OVrf8PNGJ3zKL4A23snMi1IRwrqqND7A==",- "dev": true,"requires": {"@babel/helper-define-polyfill-provider": "^0.3.1"}@@ -4002,14 +4427,12 @@"base64-js": {"version": "1.5.1","resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",- "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",- "dev": true+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="},"batch": {"version": "0.6.1","resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz",- "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=",- "dev": true+ "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY="},"bcrypt-pbkdf": {"version": "1.0.2",@@ -4023,20 +4446,17 @@"big.js": {"version": "5.2.2","resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz",- "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==",- "dev": true+ "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ=="},"binary-extensions": {"version": "2.2.0","resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",- "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",- "dev": true+ "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA=="},"bl": {"version": "4.1.0","resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz","integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",- "dev": true,"requires": {"buffer": "^5.5.0","inherits": "^2.0.4",@@ -4047,7 +4467,6 @@"version": "3.6.0","resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz","integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",- "dev": true,"requires": {"inherits": "^2.0.3","string_decoder": "^1.1.1",@@ -4069,7 +4488,6 @@"version": "1.19.1","resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.1.tgz","integrity": "sha512-8ljfQi5eBk8EJfECMrgqNGWPEY5jWP+1IzkzkGdFFEwFQZZyaZ21UqdaHktgiMlH0xLHqIFtE/u2OYE5dOtViA==",- "dev": true,"requires": {"bytes": "3.1.1","content-type": "~1.0.4",@@ -4086,14 +4504,12 @@"bytes": {"version": "3.1.1","resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.1.tgz",- "integrity": "sha512-dWe4nWO/ruEOY7HkUJ5gFt1DCFV9zPRoJr8pV0/ASQermOZjtq8jMjOprC0Kd10GLN+l7xaUPvxzJFWtxGu8Fg==",- "dev": true+ "integrity": "sha512-dWe4nWO/ruEOY7HkUJ5gFt1DCFV9zPRoJr8pV0/ASQermOZjtq8jMjOprC0Kd10GLN+l7xaUPvxzJFWtxGu8Fg=="},"debug": {"version": "2.6.9","resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz","integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",- "dev": true,"requires": {"ms": "2.0.0"}@@ -4101,8 +4517,7 @@"ms": {"version": "2.0.0","resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",- "dev": true+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="}}},@@ -4110,7 +4525,6 @@"version": "3.5.0","resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz","integrity": "sha1-jokKGD2O6aI5OzhExpGkK897yfU=",- "dev": true,"requires": {"array-flatten": "^2.1.0","deep-equal": "^1.0.1",@@ -4123,8 +4537,7 @@"boolbase": {"version": "1.0.0","resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",- "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=",- "dev": true+ "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24="},"bootstrap": {"version": "5.1.3",@@ -4149,7 +4562,6 @@"version": "3.0.2","resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz","integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",- "dev": true,"requires": {"fill-range": "^7.0.1"}@@ -4164,7 +4576,6 @@"version": "4.19.1","resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.19.1.tgz","integrity": "sha512-u2tbbG5PdKRTUoctO3NBD8FQ5HdPh1ZXPHzp1rwaa5jTc+RV9/+RlWiAIKmjRPQF+xbGM9Kklj5bZQFa2s/38A==",- "dev": true,"requires": {"caniuse-lite": "^1.0.30001286","electron-to-chromium": "^1.4.17",@@ -4204,7 +4615,6 @@"version": "5.7.1","resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz","integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",- "dev": true,"requires": {"base64-js": "^1.3.1","ieee754": "^1.1.13"@@ -4219,14 +4629,12 @@"buffer-from": {"version": "1.1.2","resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",- "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",- "dev": true+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="},"buffer-indexof": {"version": "1.1.1","resolved": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.1.1.tgz",- "integrity": "sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g==",- "dev": true+ "integrity": "sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g=="},"builtin-modules": {"version": "1.1.1",@@ -4243,14 +4651,12 @@"bytes": {"version": "3.0.0","resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz",- "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=",- "dev": true+ "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg="},"cacache": {"version": "15.3.0","resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz","integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==",- "dev": true,"requires": {"@npmcli/fs": "^1.0.0","@npmcli/move-file": "^1.0.1",@@ -4275,8 +4681,7 @@"mkdirp": {"version": "1.0.4","resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",- "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",- "dev": true+ "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw=="}}},@@ -4284,7 +4689,6 @@"version": "1.0.2","resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz","integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",- "dev": true,"requires": {"function-bind": "^1.1.1","get-intrinsic": "^1.0.2"@@ -4293,20 +4697,17 @@"callsites": {"version": "3.1.0","resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",- "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",- "dev": true+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ=="},"camelcase": {"version": "5.3.1","resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",- "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",- "dev": true+ "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg=="},"caniuse-lite": {"version": "1.0.30001311","resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001311.tgz",- "integrity": "sha512-mleTFtFKfykEeW34EyfhGIFjGCqzhh38Y0LhdQ9aWF+HorZTtdgKV/1hEE0NlFkG2ubvisPV6l400tlbPys98A==",- "dev": true+ "integrity": "sha512-mleTFtFKfykEeW34EyfhGIFjGCqzhh38Y0LhdQ9aWF+HorZTtdgKV/1hEE0NlFkG2ubvisPV6l400tlbPys98A=="},"caseless": {"version": "0.12.0",@@ -4333,14 +4734,12 @@"chardet": {"version": "0.7.0","resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz",- "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==",- "dev": true+ "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA=="},"chokidar": {"version": "3.5.3","resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz","integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",- "dev": true,"requires": {"anymatch": "~3.1.2","braces": "~3.0.2",@@ -4356,7 +4755,6 @@"version": "5.1.2","resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz","integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",- "dev": true,"requires": {"is-glob": "^4.0.1"}@@ -4366,14 +4764,12 @@"chownr": {"version": "2.0.0","resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",- "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",- "dev": true+ "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ=="},"chrome-trace-event": {"version": "1.0.3","resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz",- "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==",- "dev": true+ "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg=="},"ci-info": {"version": "3.3.0",@@ -4384,8 +4780,7 @@"circular-dependency-plugin": {"version": "5.2.2","resolved": "https://registry.npmjs.org/circular-dependency-plugin/-/circular-dependency-plugin-5.2.2.tgz",- "integrity": "sha512-g38K9Cm5WRwlaH6g03B9OEz/0qRizI+2I7n+Gz+L5DxXJAPAiWQvwlYNm1V1jkdpUv95bOe/ASm2vfi/G560jQ==",- "dev": true+ "integrity": "sha512-g38K9Cm5WRwlaH6g03B9OEz/0qRizI+2I7n+Gz+L5DxXJAPAiWQvwlYNm1V1jkdpUv95bOe/ASm2vfi/G560jQ=="},"cjs-module-lexer": {"version": "1.2.2",@@ -4396,14 +4791,12 @@"clean-stack": {"version": "2.2.0","resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz",- "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==",- "dev": true+ "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A=="},"cli-cursor": {"version": "3.1.0","resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz","integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==",- "dev": true,"requires": {"restore-cursor": "^3.1.0"}@@ -4411,14 +4804,12 @@"cli-spinners": {"version": "2.6.1","resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.6.1.tgz",- "integrity": "sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==",- "dev": true+ "integrity": "sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g=="},"cli-width": {"version": "3.0.0","resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz",- "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==",- "dev": true+ "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw=="},"cliui": {"version": "7.0.4",@@ -4433,14 +4824,12 @@"clone": {"version": "1.0.4","resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz",- "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=",- "dev": true+ "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4="},"clone-deep": {"version": "4.0.1","resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz","integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==",- "dev": true,"requires": {"is-plain-object": "^2.0.4","kind-of": "^6.0.2",@@ -4544,8 +4933,7 @@"colorette": {"version": "2.0.16","resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.16.tgz",- "integrity": "sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g==",- "dev": true+ "integrity": "sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g=="},"colors": {"version": "1.4.0",@@ -4565,20 +4953,17 @@"commander": {"version": "2.20.3","resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",- "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",- "dev": true+ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="},"commondir": {"version": "1.0.1","resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",- "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=",- "dev": true+ "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs="},"compressible": {"version": "2.0.18","resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz","integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==",- "dev": true,"requires": {"mime-db": ">= 1.43.0 < 2"}@@ -4587,7 +4972,6 @@"version": "1.7.4","resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz","integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==",- "dev": true,"requires": {"accepts": "~1.3.5","bytes": "3.0.0",@@ -4602,7 +4986,6 @@"version": "2.6.9","resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz","integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",- "dev": true,"requires": {"ms": "2.0.0"}@@ -4610,8 +4993,7 @@"ms": {"version": "2.0.0","resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",- "dev": true+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="}}},@@ -4623,8 +5005,7 @@"connect-history-api-fallback": {"version": "1.6.0","resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz",- "integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==",- "dev": true+ "integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg=="},"console-control-strings": {"version": "1.1.0",@@ -4636,7 +5017,6 @@"version": "0.5.4","resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz","integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",- "dev": true,"requires": {"safe-buffer": "5.2.1"},@@ -4644,16 +5024,14 @@"safe-buffer": {"version": "5.2.1","resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",- "dev": true+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="}}},"content-type": {"version": "1.0.4","resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",- "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==",- "dev": true+ "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA=="},"convert-source-map": {"version": "1.8.0",@@ -4666,20 +5044,17 @@"cookie": {"version": "0.4.1","resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz",- "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==",- "dev": true+ "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA=="},"cookie-signature": {"version": "1.0.6","resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",- "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=",- "dev": true+ "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="},"copy-anything": {"version": "2.0.6","resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-2.0.6.tgz","integrity": "sha512-1j20GZTsvKNkc4BY3NpMOM8tt///wY3FpIzozTOFO2ffuZcV61nojHXVKIy3WM+7ADCy5FVhdZYHYDdgTU0yJw==",- "dev": true,"requires": {"is-what": "^3.14.1"}@@ -4688,7 +5063,6 @@"version": "10.2.1","resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-10.2.1.tgz","integrity": "sha512-nr81NhCAIpAWXGCK5thrKmfCQ6GDY0L5RN0U+BnIn/7Us55+UCex5ANNsNKmIVtDRnk0Ecf+/kzp9SUVrrBMLg==",- "dev": true,"requires": {"fast-glob": "^3.2.7","glob-parent": "^6.0.1",@@ -4702,7 +5076,6 @@"version": "8.10.0","resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz","integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==",- "dev": true,"requires": {"fast-deep-equal": "^3.1.1","json-schema-traverse": "^1.0.0",@@ -4714,22 +5087,19 @@"version": "5.1.0","resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz","integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==",- "dev": true,"requires": {"fast-deep-equal": "^3.1.3"}},"json-schema-traverse": {"version": "1.0.0",- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",- "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",- "dev": true+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="},"schema-utils": {"version": "4.0.0","resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz","integrity": "sha512-1edyXKgh6XnJsJSQ8mKWXnN/BVaIbFMLpouRUrXgVq7WYne5kw3MW7UPhO44uRXQSIpTSXoJbmrR2X0w9kUTyg==",- "dev": true,"requires": {"@types/json-schema": "^7.0.9","ajv": "^8.8.0",@@ -4742,14 +5112,12 @@"core-js": {"version": "3.20.3","resolved": "https://registry.npmjs.org/core-js/-/core-js-3.20.3.tgz",- "integrity": "sha512-vVl8j8ph6tRS3B8qir40H7yw7voy17xL0piAjlbBUsH7WIfzoedL/ZOr1OV9FyZQLWXsayOJyV4tnRyXR85/ag==",- "dev": true+ "integrity": "sha512-vVl8j8ph6tRS3B8qir40H7yw7voy17xL0piAjlbBUsH7WIfzoedL/ZOr1OV9FyZQLWXsayOJyV4tnRyXR85/ag=="},"core-js-compat": {"version": "3.21.0","resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.21.0.tgz","integrity": "sha512-OSXseNPSK2OPJa6GdtkMz/XxeXx8/CJvfhQWTqd6neuUraujcL4jVsjkLQz1OWnax8xVQJnRPe0V2jqNWORA+A==",- "dev": true,"requires": {"browserslist": "^4.19.1","semver": "7.0.0"@@ -4758,22 +5126,19 @@"semver": {"version": "7.0.0","resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz",- "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==",- "dev": true+ "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A=="}}},"core-util-is": {"version": "1.0.2","resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",- "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",- "dev": true+ "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="},"cosmiconfig": {"version": "7.0.1","resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz","integrity": "sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==",- "dev": true,"requires": {"@types/parse-json": "^4.0.0","import-fresh": "^3.2.1",@@ -4792,7 +5157,6 @@"version": "0.0.16","resolved": "https://registry.npmjs.org/critters/-/critters-0.0.16.tgz","integrity": "sha512-JwjgmO6i3y6RWtLYmXwO5jMd+maZt8Tnfu7VVISmEWyQqfLpB8soBswf8/2bu6SBXxtKA68Al3c+qIG1ApT68A==",- "dev": true,"requires": {"chalk": "^4.1.0","css-select": "^4.2.0",@@ -4806,7 +5170,6 @@"version": "4.3.0","resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz","integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dev": true,"requires": {"color-convert": "^2.0.1"}@@ -4815,7 +5178,6 @@"version": "4.1.2","resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz","integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dev": true,"requires": {"ansi-styles": "^4.1.0","supports-color": "^7.1.0"@@ -4825,7 +5187,6 @@"version": "2.0.1","resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz","integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dev": true,"requires": {"color-name": "~1.1.4"}@@ -4833,26 +5194,22 @@"color-name": {"version": "1.1.4","resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",- "dev": true+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="},"has-flag": {"version": "4.0.0","resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",- "dev": true+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="},"parse5": {"version": "6.0.1","resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz",- "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==",- "dev": true+ "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw=="},"supports-color": {"version": "7.2.0","resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz","integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",- "dev": true,"requires": {"has-flag": "^4.0.0"}@@ -4863,7 +5220,6 @@"version": "7.0.3","resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz","integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",- "dev": true,"requires": {"path-key": "^3.1.0","shebang-command": "^2.0.0",@@ -4874,7 +5230,6 @@"version": "3.0.0","resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz","integrity": "sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==",- "dev": true,"requires": {"inherits": "^2.0.4","source-map": "^0.6.1",@@ -4884,8 +5239,7 @@"source-map": {"version": "0.6.1","resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",- "dev": true+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="}}},@@ -4893,7 +5247,6 @@"version": "3.0.3","resolved": "https://registry.npmjs.org/css-blank-pseudo/-/css-blank-pseudo-3.0.3.tgz","integrity": "sha512-VS90XWtsHGqoM0t4KpH053c4ehxZ2E6HtGI7x68YFV0pTo/QmkV/YFA+NnlvK8guxZVNWGQhVNJGC39Q8XF4OQ==",- "dev": true,"requires": {"postcss-selector-parser": "^6.0.9"}@@ -4902,7 +5255,6 @@"version": "3.0.4","resolved": "https://registry.npmjs.org/css-has-pseudo/-/css-has-pseudo-3.0.4.tgz","integrity": "sha512-Vse0xpR1K9MNlp2j5w1pgWIJtm1a8qS0JwS9goFYcImjlHEmywP9VUF05aGBXzGpDJF86QXk4L0ypBmwPhGArw==",- "dev": true,"requires": {"postcss-selector-parser": "^6.0.9"}@@ -4911,7 +5263,6 @@"version": "6.5.1","resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.5.1.tgz","integrity": "sha512-gEy2w9AnJNnD9Kuo4XAP9VflW/ujKoS9c/syO+uWMlm5igc7LysKzPXaDoR2vroROkSwsTS2tGr1yGGEbZOYZQ==",- "dev": true,"requires": {"icss-utils": "^5.1.0","postcss": "^8.2.15",@@ -4927,7 +5278,6 @@"version": "7.3.5","resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz","integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==",- "dev": true,"requires": {"lru-cache": "^6.0.0"}@@ -4937,14 +5287,12 @@"css-prefers-color-scheme": {"version": "6.0.3","resolved": "https://registry.npmjs.org/css-prefers-color-scheme/-/css-prefers-color-scheme-6.0.3.tgz",- "integrity": "sha512-4BqMbZksRkJQx2zAjrokiGMd07RqOa2IxIrrN10lyBe9xhn9DEvjUK79J6jkeiv9D9hQFXKb6g1jwU62jziJZA==",- "dev": true+ "integrity": "sha512-4BqMbZksRkJQx2zAjrokiGMd07RqOa2IxIrrN10lyBe9xhn9DEvjUK79J6jkeiv9D9hQFXKb6g1jwU62jziJZA=="},"css-select": {"version": "4.2.1","resolved": "https://registry.npmjs.org/css-select/-/css-select-4.2.1.tgz","integrity": "sha512-/aUslKhzkTNCQUB2qTX84lVmfia9NyjP3WpDGtj/WxhwBzWBYUV3DgUpurHTme8UTPcPlAD1DJ+b0nN/t50zDQ==",- "dev": true,"requires": {"boolbase": "^1.0.0","css-what": "^5.1.0",@@ -4966,8 +5314,7 @@"css-what": {"version": "5.1.0","resolved": "https://registry.npmjs.org/css-what/-/css-what-5.1.0.tgz",- "integrity": "sha512-arSMRWIIFY0hV8pIxZMEfmMI47Wj3R/aWpZDDxWYCPEiOMv6tfOrnpDtgxBYPEQD4V0Y/958+1TdC3iWTFcUPw==",- "dev": true+ "integrity": "sha512-arSMRWIIFY0hV8pIxZMEfmMI47Wj3R/aWpZDDxWYCPEiOMv6tfOrnpDtgxBYPEQD4V0Y/958+1TdC3iWTFcUPw=="},"cssauron": {"version": "1.4.0",@@ -4981,14 +5328,12 @@"cssdb": {"version": "5.1.0","resolved": "https://registry.npmjs.org/cssdb/-/cssdb-5.1.0.tgz",- "integrity": "sha512-/vqjXhv1x9eGkE/zO6o8ZOI7dgdZbLVLUGyVRbPgk6YipXbW87YzUCcO+Jrmi5bwJlAH6oD+MNeZyRgXea1GZw==",- "dev": true+ "integrity": "sha512-/vqjXhv1x9eGkE/zO6o8ZOI7dgdZbLVLUGyVRbPgk6YipXbW87YzUCcO+Jrmi5bwJlAH6oD+MNeZyRgXea1GZw=="},"cssesc": {"version": "3.0.0","resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",- "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",- "dev": true+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg=="},"cssom": {"version": "0.4.4",@@ -5090,8 +5435,7 @@"decode-uri-component": {"version": "0.2.0","resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz",- "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=",- "dev": true+ "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU="},"dedent": {"version": "0.7.0",@@ -5103,7 +5447,6 @@"version": "1.1.1","resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.1.tgz","integrity": "sha512-yd9c5AdiqVcR+JjcwUQb9DkhJc8ngNr0MahEBGvDiJw8puWab2yZlh+nkasOnZP+EGTAP6rRp2JzJhJZzvNF8g==",- "dev": true,"requires": {"is-arguments": "^1.0.4","is-date-object": "^1.0.1",@@ -5129,7 +5472,6 @@"version": "6.0.3","resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz","integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==",- "dev": true,"requires": {"execa": "^5.0.0"}@@ -5138,7 +5480,6 @@"version": "1.0.3","resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz","integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=",- "dev": true,"requires": {"clone": "^1.0.2"}@@ -5146,14 +5487,12 @@"define-lazy-prop": {"version": "2.0.0","resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",- "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==",- "dev": true+ "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og=="},"define-properties": {"version": "1.1.3","resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz","integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==",- "dev": true,"requires": {"object-keys": "^1.0.12"}@@ -5162,7 +5501,6 @@"version": "6.0.0","resolved": "https://registry.npmjs.org/del/-/del-6.0.0.tgz","integrity": "sha512-1shh9DQ23L16oXSZKB2JxpL7iMy2E0S9d517ptA1P8iw0alkPtQcrKH7ru31rYtKwF499HkTu+DRzq3TCKDFRQ==",- "dev": true,"requires": {"globby": "^11.0.1","graceful-fs": "^4.2.4",@@ -5177,14 +5515,12 @@"array-union": {"version": "2.1.0","resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",- "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",- "dev": true+ "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw=="},"globby": {"version": "11.1.0","resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz","integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",- "dev": true,"requires": {"array-union": "^2.1.0","dir-glob": "^3.0.1",@@ -5197,8 +5533,7 @@"slash": {"version": "3.0.0","resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",- "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",- "dev": true+ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q=="}}},@@ -5217,8 +5552,7 @@"depd": {"version": "1.1.2","resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",- "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=",- "dev": true+ "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak="},"dependency-graph": {"version": "0.11.0",@@ -5229,8 +5563,7 @@"destroy": {"version": "1.0.4","resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",- "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=",- "dev": true+ "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="},"detect-newline": {"version": "3.1.0",@@ -5241,8 +5574,7 @@"detect-node": {"version": "2.1.0","resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz",- "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==",- "dev": true+ "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g=="},"detect-passive-events": {"version": "1.0.5",@@ -5265,7 +5597,6 @@"version": "3.0.1","resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz","integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",- "dev": true,"requires": {"path-type": "^4.0.0"}@@ -5273,14 +5604,12 @@"dns-equal": {"version": "1.0.0","resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz",- "integrity": "sha1-s55/HabrCnW6nBcySzR1PEfgZU0=",- "dev": true+ "integrity": "sha1-s55/HabrCnW6nBcySzR1PEfgZU0="},"dns-packet": {"version": "1.3.4","resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.4.tgz","integrity": "sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA==",- "dev": true,"requires": {"ip": "^1.1.0","safe-buffer": "^5.0.1"@@ -5290,7 +5619,6 @@"version": "2.0.2","resolved": "https://registry.npmjs.org/dns-txt/-/dns-txt-2.0.2.tgz","integrity": "sha1-uR2Ab10nGI5Ks+fRB9iBocxGQrY=",- "dev": true,"requires": {"buffer-indexof": "^1.0.0"}@@ -5299,7 +5627,6 @@"version": "1.3.2","resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz","integrity": "sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==",- "dev": true,"requires": {"domelementtype": "^2.0.1","domhandler": "^4.2.0",@@ -5317,8 +5644,7 @@"domelementtype": {"version": "2.2.0","resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz",- "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==",- "dev": true+ "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A=="},"domexception": {"version": "2.0.1",@@ -5341,7 +5667,6 @@"version": "4.3.0","resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.0.tgz","integrity": "sha512-fC0aXNQXqKSFTr2wDNZDhsEYjCiYsDWl3D01kwt25hm1YIPyDGHvvi3rw+PLqHAl/m71MaiF7d5zvBr0p5UB2g==",- "dev": true,"requires": {"domelementtype": "^2.2.0"}@@ -5350,7 +5675,6 @@"version": "2.8.0","resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz","integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==",- "dev": true,"requires": {"dom-serializer": "^1.0.1","domelementtype": "^2.2.0",@@ -5375,14 +5699,12 @@"ee-first": {"version": "1.1.1","resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",- "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=",- "dev": true+ "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="},"electron-to-chromium": {"version": "1.4.68","resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.68.tgz",- "integrity": "sha512-cId+QwWrV8R1UawO6b9BR1hnkJ4EJPCPAr4h315vliHUtVUJDk39Sg1PMNnaWKfj5x+93ssjeJ9LKL6r8LaMiA==",- "dev": true+ "integrity": "sha512-cId+QwWrV8R1UawO6b9BR1hnkJ4EJPCPAr4h315vliHUtVUJDk39Sg1PMNnaWKfj5x+93ssjeJ9LKL6r8LaMiA=="},"emittery": {"version": "0.8.1",@@ -5398,14 +5720,12 @@"emojis-list": {"version": "3.0.0","resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz",- "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==",- "dev": true+ "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q=="},"encodeurl": {"version": "1.0.2","resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",- "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=",- "dev": true+ "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k="},"encoding": {"version": "0.1.13",@@ -5451,8 +5771,7 @@"entities": {"version": "2.2.0","resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz",- "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==",- "dev": true+ "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A=="},"env-paths": {"version": "2.2.1",@@ -5470,7 +5789,6 @@"version": "0.1.8","resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz","integrity": "sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==",- "dev": true,"optional": true,"requires": {"prr": "~1.0.1"@@ -5480,7 +5798,6 @@"version": "1.3.2","resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz","integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",- "dev": true,"requires": {"is-arrayish": "^0.2.1"}@@ -5488,8 +5805,7 @@"es-module-lexer": {"version": "0.9.3","resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz",- "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==",- "dev": true+ "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ=="},"es6-promise": {"version": "4.2.8",@@ -5583,6 +5899,12 @@"dev": true,"optional": true},+ "esbuild-linux-riscv64": {+ "version": "0.14.22",+ "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.22.tgz",+ "integrity": "sha512-AyJHipZKe88sc+tp5layovquw5cvz45QXw5SaDgAq2M911wLHiCvDtf/07oDx8eweCyzYzG5Y39Ih568amMTCQ==",+ "optional": true+ },"esbuild-linux-s390x": {"version": "0.14.14","resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.14.tgz",@@ -5646,8 +5968,7 @@"escape-html": {"version": "1.0.3","resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",- "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=",- "dev": true+ "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="},"escape-string-regexp": {"version": "1.0.5",@@ -5686,7 +6007,6 @@"version": "5.1.1","resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz","integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",- "dev": true,"requires": {"esrecurse": "^4.3.0","estraverse": "^4.1.1"@@ -5695,14 +6015,12 @@"esprima": {"version": "4.0.1","resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",- "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",- "dev": true+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="},"esrecurse": {"version": "4.3.0","resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz","integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",- "dev": true,"requires": {"estraverse": "^5.2.0"},@@ -5710,28 +6028,24 @@"estraverse": {"version": "5.3.0","resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",- "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",- "dev": true+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA=="}}},"estraverse": {"version": "4.3.0","resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",- "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",- "dev": true+ "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw=="},"esutils": {"version": "2.0.3","resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",- "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",- "dev": true+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g=="},"etag": {"version": "1.8.1","resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",- "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=",- "dev": true+ "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc="},"event-target-shim": {"version": "5.0.1",@@ -5741,34 +6055,27 @@"eventemitter-asyncresource": {"version": "1.0.0","resolved": "https://registry.npmjs.org/eventemitter-asyncresource/-/eventemitter-asyncresource-1.0.0.tgz",- "integrity": "sha512-39F7TBIV0G7gTelxwbEqnwhp90eqCPON1k0NwNfwhgKn4Co4ybUbj2pECcXT0B3ztRKZ7Pw1JujUUgmQJHcVAQ==",- "dev": true+ "integrity": "sha512-39F7TBIV0G7gTelxwbEqnwhp90eqCPON1k0NwNfwhgKn4Co4ybUbj2pECcXT0B3ztRKZ7Pw1JujUUgmQJHcVAQ=="},"eventemitter3": {"version": "4.0.7","resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",- "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==",- "dev": true+ "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw=="},"events": {"version": "3.3.0","resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz",- "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==",- "dev": true+ "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q=="},"eventsource": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.1.0.tgz",- "integrity": "sha512-VSJjT5oCNrFvCS6igjzPAt5hBzQ2qPBFIbJ03zLI9SE0mxwZpMw6BfJrbFHm1a141AavMEB8JHmBhWAd66PfCg==",- "requires": {- "original": "^1.0.0"- }+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-2.0.2.tgz",+ "integrity": "sha512-IzUmBGPR3+oUG9dUeXynyNmf91/3zUSJg1lCktzKw47OXuhco54U3r9B7O4XX+Rb1Itm9OZ2b0RkTs10bICOxA=="},"execa": {"version": "5.1.1","resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz","integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",- "dev": true,"requires": {"cross-spawn": "^7.0.3","get-stream": "^6.0.0",@@ -5803,7 +6110,6 @@"version": "4.17.2","resolved": "https://registry.npmjs.org/express/-/express-4.17.2.tgz","integrity": "sha512-oxlxJxcQlYwqPWKVJJtvQiwHgosH/LrLSPA+H4UxpyvSS6jC5aH+5MoHFM+KABgTOt0APue4w66Ha8jCUo9QGg==",- "dev": true,"requires": {"accepts": "~1.3.7","array-flatten": "1.1.1",@@ -5840,14 +6146,12 @@"array-flatten": {"version": "1.1.1","resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",- "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=",- "dev": true+ "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="},"debug": {"version": "2.6.9","resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz","integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",- "dev": true,"requires": {"ms": "2.0.0"}@@ -5855,14 +6159,12 @@"ms": {"version": "2.0.0","resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",- "dev": true+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="},"safe-buffer": {"version": "5.2.1","resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",- "dev": true+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="}}},@@ -5876,7 +6178,6 @@"version": "3.1.0","resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz","integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==",- "dev": true,"requires": {"chardet": "^0.7.0","iconv-lite": "^0.4.24",@@ -5915,14 +6216,12 @@"fast-deep-equal": {"version": "3.1.3","resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",- "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",- "dev": true+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="},"fast-glob": {"version": "3.2.11","resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz","integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==",- "dev": true,"requires": {"@nodelib/fs.stat": "^2.0.2","@nodelib/fs.walk": "^1.2.3",@@ -5935,7 +6234,6 @@"version": "5.1.2","resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz","integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",- "dev": true,"requires": {"is-glob": "^4.0.1"}@@ -5945,8 +6243,7 @@"fast-json-stable-stringify": {"version": "2.1.0","resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",- "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",- "dev": true+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="},"fast-levenshtein": {"version": "2.0.6",@@ -5964,7 +6261,6 @@"version": "1.13.0","resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz","integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==",- "dev": true,"requires": {"reusify": "^1.0.4"}@@ -5973,7 +6269,6 @@"version": "0.11.4","resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz","integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==",- "dev": true,"requires": {"websocket-driver": ">=0.5.1"}@@ -6008,7 +6303,6 @@"version": "3.2.0","resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz","integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==",- "dev": true,"requires": {"escape-string-regexp": "^1.0.5"}@@ -6022,7 +6316,6 @@"version": "7.0.1","resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz","integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",- "dev": true,"requires": {"to-regex-range": "^5.0.1"}@@ -6031,7 +6324,6 @@"version": "1.1.2","resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz","integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==",- "dev": true,"requires": {"debug": "2.6.9","encodeurl": "~1.0.2",@@ -6046,7 +6338,6 @@"version": "2.6.9","resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz","integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",- "dev": true,"requires": {"ms": "2.0.0"}@@ -6054,8 +6345,7 @@"ms": {"version": "2.0.0","resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",- "dev": true+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="}}},@@ -6063,7 +6353,6 @@"version": "3.3.2","resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz","integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==",- "dev": true,"requires": {"commondir": "^1.0.1","make-dir": "^3.0.2",@@ -6074,7 +6363,6 @@"version": "4.1.0","resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz","integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",- "dev": true,"requires": {"locate-path": "^5.0.0","path-exists": "^4.0.0"@@ -6083,8 +6371,7 @@"follow-redirects": {"version": "1.14.8","resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.8.tgz",- "integrity": "sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA==",- "dev": true+ "integrity": "sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA=="},"forever-agent": {"version": "0.6.1",@@ -6106,26 +6393,22 @@"forwarded": {"version": "0.2.0","resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",- "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",- "dev": true+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow=="},"fraction.js": {"version": "4.1.3","resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.1.3.tgz",- "integrity": "sha512-pUHWWt6vHzZZiQJcM6S/0PXfS+g6FM4BF5rj9wZyreivhQPdsh5PpE25VtSNxq80wHS5RfY51Ii+8Z0Zl/pmzg==",- "dev": true+ "integrity": "sha512-pUHWWt6vHzZZiQJcM6S/0PXfS+g6FM4BF5rj9wZyreivhQPdsh5PpE25VtSNxq80wHS5RfY51Ii+8Z0Zl/pmzg=="},"fresh": {"version": "0.5.2","resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",- "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=",- "dev": true+ "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac="},"fs-minipass": {"version": "2.1.0","resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz","integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",- "dev": true,"requires": {"minipass": "^3.0.0"}@@ -6133,8 +6416,7 @@"fs-monkey": {"version": "1.0.3","resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz",- "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==",- "dev": true+ "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q=="},"fs.realpath": {"version": "1.0.0",@@ -6145,7 +6427,6 @@"version": "2.3.2","resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz","integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",- "dev": true,"optional": true},"function-bind": {@@ -6206,7 +6487,6 @@"version": "1.1.1","resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz","integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==",- "dev": true,"requires": {"function-bind": "^1.1.1","has": "^1.0.3",@@ -6216,14 +6496,12 @@"get-package-type": {"version": "0.1.0","resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz",- "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==",- "dev": true+ "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q=="},"get-stream": {"version": "6.0.1","resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",- "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",- "dev": true+ "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg=="},"getpass": {"version": "0.1.7",@@ -6238,7 +6516,6 @@"version": "7.1.6","resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz","integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",- "dev": true,"requires": {"fs.realpath": "^1.0.0","inflight": "^1.0.4",@@ -6252,7 +6529,6 @@"version": "6.0.2","resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz","integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",- "dev": true,"requires": {"is-glob": "^4.0.3"}@@ -6260,8 +6536,7 @@"glob-to-regexp": {"version": "0.4.1","resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz",- "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==",- "dev": true+ "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw=="},"globals": {"version": "11.12.0",@@ -6272,7 +6547,6 @@"version": "12.2.0","resolved": "https://registry.npmjs.org/globby/-/globby-12.2.0.tgz","integrity": "sha512-wiSuFQLZ+urS9x2gGPl1H5drc5twabmm4m2gTR27XDFyjUHJUNsS8o/2aKyIF6IoBaR630atdher0XJ5g6OMmA==",- "dev": true,"requires": {"array-union": "^3.0.1","dir-glob": "^3.0.1",@@ -6285,8 +6559,7 @@"graceful-fs": {"version": "4.2.9","resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz",- "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==",- "dev": true+ "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ=="},"gzip-size": {"version": "6.0.0",@@ -6299,8 +6572,7 @@"handle-thing": {"version": "2.0.1","resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz",- "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==",- "dev": true+ "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg=="},"har-schema": {"version": "2.0.0",@@ -6351,14 +6623,12 @@"has-symbols": {"version": "1.0.2","resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz",- "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==",- "dev": true+ "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw=="},"has-tostringtag": {"version": "1.0.0","resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz","integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==",- "dev": true,"requires": {"has-symbols": "^1.0.2"}@@ -6373,7 +6643,6 @@"version": "2.0.3","resolved": "https://registry.npmjs.org/hdr-histogram-js/-/hdr-histogram-js-2.0.3.tgz","integrity": "sha512-Hkn78wwzWHNCp2uarhzQ2SGFLU3JY8SBDDd3TAABK4fc30wm+MuPOrg5QVFVfkKOQd6Bfz3ukJEI+q9sXEkK1g==",- "dev": true,"requires": {"@assemblyscript/loader": "^0.10.1","base64-js": "^1.2.0",@@ -6383,8 +6652,7 @@"hdr-histogram-percentiles-obj": {"version": "3.0.0","resolved": "https://registry.npmjs.org/hdr-histogram-percentiles-obj/-/hdr-histogram-percentiles-obj-3.0.0.tgz",- "integrity": "sha512-7kIufnBqdsBGcSZLPJwqHT3yhk1QTsSlFsVD3kx5ixH/AlgBs9yM1q6DPhXZ8f8gtdqgh7N7/5btRLpQsS2gHw==",- "dev": true+ "integrity": "sha512-7kIufnBqdsBGcSZLPJwqHT3yhk1QTsSlFsVD3kx5ixH/AlgBs9yM1q6DPhXZ8f8gtdqgh7N7/5btRLpQsS2gHw=="},"hosted-git-info": {"version": "4.1.0",@@ -6399,7 +6667,6 @@"version": "2.1.6","resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz","integrity": "sha1-h3dMCUnlE/QuhFdbPEVoH63ioLI=",- "dev": true,"requires": {"inherits": "^2.0.1","obuf": "^1.0.0",@@ -6419,8 +6686,7 @@"html-entities": {"version": "2.3.2","resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.2.tgz",- "integrity": "sha512-c3Ab/url5ksaT0WyleslpBEthOzWhrjQbg75y7XUsfSzi3Dgzt0l8w5e7DylRn15MTlMMD58dTfzddNS2kcAjQ==",- "dev": true+ "integrity": "sha512-c3Ab/url5ksaT0WyleslpBEthOzWhrjQbg75y7XUsfSzi3Dgzt0l8w5e7DylRn15MTlMMD58dTfzddNS2kcAjQ=="},"html-escaper": {"version": "2.0.2",@@ -6437,14 +6703,12 @@"http-deceiver": {"version": "1.2.7","resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz",- "integrity": "sha1-+nFolEq5pRnTN8sL7HKE3D5yPYc=",- "dev": true+ "integrity": "sha1-+nFolEq5pRnTN8sL7HKE3D5yPYc="},"http-errors": {"version": "1.8.1","resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.1.tgz","integrity": "sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==",- "dev": true,"requires": {"depd": "~1.1.2","inherits": "2.0.4",@@ -6456,14 +6720,12 @@"http-parser-js": {"version": "0.5.5","resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.5.tgz",- "integrity": "sha512-x+JVEkO2PoM8qqpbPbOL3cqHPwerep7OwzK7Ay+sMQjKzaKCqWvjoXm5tqMP9tXWWTnTzAjIhXg+J99XYuPhPA==",- "dev": true+ "integrity": "sha512-x+JVEkO2PoM8qqpbPbOL3cqHPwerep7OwzK7Ay+sMQjKzaKCqWvjoXm5tqMP9tXWWTnTzAjIhXg+J99XYuPhPA=="},"http-proxy": {"version": "1.18.1","resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz","integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==",- "dev": true,"requires": {"eventemitter3": "^4.0.0","follow-redirects": "^1.0.0",@@ -6496,7 +6758,6 @@"version": "2.0.3","resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.3.tgz","integrity": "sha512-1bloEwnrHMnCoO/Gcwbz7eSVvW50KPES01PecpagI+YLNLci4AcuKJrujW4Mc3sBLpFxMSlsLNHS5Nl/lvrTPA==",- "dev": true,"requires": {"@types/http-proxy": "^1.17.8","http-proxy": "^1.18.1",@@ -6540,8 +6801,7 @@"human-signals": {"version": "2.1.0","resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",- "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",- "dev": true+ "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw=="},"humanize-ms": {"version": "1.2.1",@@ -6556,7 +6816,6 @@"version": "0.4.24","resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz","integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",- "dev": true,"requires": {"safer-buffer": ">= 2.1.2 < 3"}@@ -6564,20 +6823,17 @@"icss-utils": {"version": "5.1.0","resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz",- "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==",- "dev": true+ "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA=="},"ieee754": {"version": "1.2.1","resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",- "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",- "dev": true+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA=="},"ignore": {"version": "5.2.0","resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz",- "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==",- "dev": true+ "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ=="},"ignore-walk": {"version": "4.0.1",@@ -6592,7 +6848,6 @@"version": "0.5.5","resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz","integrity": "sha1-Cd/Uq50g4p6xw+gLiZA3jfnjy5w=",- "dev": true,"optional": true},"immediate": {@@ -6604,14 +6859,12 @@"immutable": {"version": "4.0.0","resolved": "https://registry.npmjs.org/immutable/-/immutable-4.0.0.tgz",- "integrity": "sha512-zIE9hX70qew5qTUjSS7wi1iwj/l7+m54KWU247nhM3v806UdGj1yDndXj+IOYxxtW9zyLI+xqFNZjTuDaLUqFw==",- "dev": true+ "integrity": "sha512-zIE9hX70qew5qTUjSS7wi1iwj/l7+m54KWU247nhM3v806UdGj1yDndXj+IOYxxtW9zyLI+xqFNZjTuDaLUqFw=="},"import-fresh": {"version": "3.3.0","resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz","integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",- "dev": true,"requires": {"parent-module": "^1.0.0","resolve-from": "^4.0.0"@@ -6620,8 +6873,7 @@"resolve-from": {"version": "4.0.0","resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",- "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",- "dev": true+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g=="}}},@@ -6638,20 +6890,17 @@"imurmurhash": {"version": "0.1.4","resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",- "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=",- "dev": true+ "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o="},"indent-string": {"version": "4.0.0","resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",- "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",- "dev": true+ "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg=="},"infer-owner": {"version": "1.0.4","resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz",- "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==",- "dev": true+ "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A=="},"inflight": {"version": "1.0.6",@@ -6677,7 +6926,6 @@"version": "8.2.0","resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.0.tgz","integrity": "sha512-0crLweprevJ02tTuA6ThpoAERAGyVILC4sS74uib58Xf/zSr1/ZWtmm7D5CI+bSQEaA04f0K7idaHpQbSWgiVQ==",- "dev": true,"requires": {"ansi-escapes": "^4.2.1","chalk": "^4.1.1",@@ -6699,7 +6947,6 @@"version": "4.3.0","resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz","integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dev": true,"requires": {"color-convert": "^2.0.1"}@@ -6708,7 +6955,6 @@"version": "4.1.2","resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz","integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dev": true,"requires": {"ansi-styles": "^4.1.0","supports-color": "^7.1.0"@@ -6718,7 +6964,6 @@"version": "2.0.1","resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz","integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dev": true,"requires": {"color-name": "~1.1.4"}@@ -6726,20 +6971,17 @@"color-name": {"version": "1.1.4","resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",- "dev": true+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="},"has-flag": {"version": "4.0.0","resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",- "dev": true+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="},"supports-color": {"version": "7.2.0","resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz","integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",- "dev": true,"requires": {"has-flag": "^4.0.0"}@@ -6749,20 +6991,17 @@"ip": {"version": "1.1.5","resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz",- "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=",- "dev": true+ "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo="},"ipaddr.js": {"version": "2.0.1","resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.0.1.tgz",- "integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==",- "dev": true+ "integrity": "sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng=="},"is-arguments": {"version": "1.1.1","resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz","integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==",- "dev": true,"requires": {"call-bind": "^1.0.2","has-tostringtag": "^1.0.0"@@ -6771,14 +7010,12 @@"is-arrayish": {"version": "0.2.1","resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",- "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",- "dev": true+ "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0="},"is-binary-path": {"version": "2.1.0","resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz","integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",- "dev": true,"requires": {"binary-extensions": "^2.0.0"}@@ -6795,7 +7032,6 @@"version": "1.0.5","resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz","integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==",- "dev": true,"requires": {"has-tostringtag": "^1.0.0"}@@ -6803,14 +7039,12 @@"is-docker": {"version": "2.2.1","resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",- "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",- "dev": true+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ=="},"is-extglob": {"version": "2.1.1","resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",- "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",- "dev": true+ "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI="},"is-fullwidth-code-point": {"version": "3.0.0",@@ -6827,7 +7061,6 @@"version": "4.0.3","resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz","integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",- "dev": true,"requires": {"is-extglob": "^2.1.1"}@@ -6835,8 +7068,7 @@"is-interactive": {"version": "1.0.0","resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz",- "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==",- "dev": true+ "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w=="},"is-lambda": {"version": "1.0.1",@@ -6847,32 +7079,27 @@"is-number": {"version": "7.0.0","resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",- "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",- "dev": true+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="},"is-path-cwd": {"version": "2.2.0","resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz",- "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==",- "dev": true+ "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ=="},"is-path-inside": {"version": "3.0.3","resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",- "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",- "dev": true+ "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ=="},"is-plain-obj": {"version": "3.0.0","resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz",- "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==",- "dev": true+ "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA=="},"is-plain-object": {"version": "2.0.4","resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz","integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==",- "dev": true,"requires": {"isobject": "^3.0.1"}@@ -6887,7 +7114,6 @@"version": "1.1.4","resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz","integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==",- "dev": true,"requires": {"call-bind": "^1.0.2","has-tostringtag": "^1.0.0"@@ -6896,8 +7122,7 @@"is-stream": {"version": "2.0.1","resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",- "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",- "dev": true+ "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg=="},"is-typedarray": {"version": "1.0.0",@@ -6908,20 +7133,17 @@"is-unicode-supported": {"version": "0.1.0","resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",- "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",- "dev": true+ "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw=="},"is-what": {"version": "3.14.1","resolved": "https://registry.npmjs.org/is-what/-/is-what-3.14.1.tgz",- "integrity": "sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA==",- "dev": true+ "integrity": "sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA=="},"is-wsl": {"version": "2.2.0","resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz","integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",- "dev": true,"requires": {"is-docker": "^2.0.0"}@@ -6929,20 +7151,17 @@"isarray": {"version": "1.0.0","resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",- "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",- "dev": true+ "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="},"isexe": {"version": "2.0.0","resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",- "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",- "dev": true+ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA="},"isobject": {"version": "3.0.1","resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",- "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=",- "dev": true+ "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8="},"isstream": {"version": "0.1.2",@@ -6953,14 +7172,12 @@"istanbul-lib-coverage": {"version": "3.2.0","resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz",- "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==",- "dev": true+ "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw=="},"istanbul-lib-instrument": {"version": "5.1.0","resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.1.0.tgz","integrity": "sha512-czwUz525rkOFDJxfKK6mYfIs9zBKILyrZQxjz3ABhjQXhbhFsSbo1HW/BFcsDnfJYJWA6thRR5/TUY2qs5W99Q==",- "dev": true,"requires": {"@babel/core": "^7.12.3","@babel/parser": "^7.14.7",@@ -6973,7 +7190,6 @@"version": "2.1.1","resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.1.1.tgz","integrity": "sha512-Aolwjd7HSC2PyY0fDj/wA/EimQT4HfEnFYNp5s9CQlrdhyvWTtvZ5YzrUPu6R6/1jKiUlxu8bUhkdSnKHNAHMA==",- "dev": true,"requires": {"@jridgewell/trace-mapping": "^0.3.0"}@@ -6982,7 +7198,6 @@"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz","integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==",- "dev": true,"requires": {"@babel/highlight": "^7.16.7"}@@ -6991,7 +7206,6 @@"version": "7.17.2","resolved": "https://registry.npmjs.org/@babel/core/-/core-7.17.2.tgz","integrity": "sha512-R3VH5G42VSDolRHyUO4V2cfag8WHcZyxdq5Z/m8Xyb92lW/Erm/6kM+XtRFGf3Mulre3mveni2NHfEUws8wSvw==",- "dev": true,"requires": {"@ampproject/remapping": "^2.0.0","@babel/code-frame": "^7.16.7",@@ -7013,14 +7227,12 @@"@babel/helper-validator-identifier": {"version": "7.16.7","resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz",- "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==",- "dev": true+ "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw=="},"@babel/highlight": {"version": "7.16.10","resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.16.10.tgz","integrity": "sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw==",- "dev": true,"requires": {"@babel/helper-validator-identifier": "^7.16.7","chalk": "^2.0.0",@@ -7030,8 +7242,7 @@"semver": {"version": "6.3.0","resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",- "dev": true+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="}}},@@ -8634,7 +8845,6 @@"version": "27.5.1","resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz","integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==",- "dev": true,"requires": {"@types/node": "*","merge-stream": "^2.0.0",@@ -8644,14 +8854,12 @@"has-flag": {"version": "4.0.0","resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",- "dev": true+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="},"supports-color": {"version": "8.1.1","resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz","integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",- "dev": true,"requires": {"has-flag": "^4.0.0"}@@ -8673,7 +8881,6 @@"version": "3.14.1","resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz","integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",- "dev": true,"requires": {"argparse": "^1.0.7","esprima": "^4.0.0"@@ -8803,14 +9010,12 @@"json-parse-better-errors": {"version": "1.0.2","resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",- "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==",- "dev": true+ "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw=="},"json-parse-even-better-errors": {"version": "2.3.1","resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",- "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",- "dev": true+ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w=="},"json-schema": {"version": "0.4.0",@@ -8821,8 +9026,7 @@"json-schema-traverse": {"version": "0.4.1","resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",- "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",- "dev": true+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="},"json-stringify-safe": {"version": "5.0.1",@@ -8841,8 +9045,7 @@"jsonc-parser": {"version": "3.0.0","resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz",- "integrity": "sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==",- "dev": true+ "integrity": "sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA=="},"jsonparse": {"version": "1.3.1",@@ -8892,7 +9095,6 @@"version": "1.4.0","resolved": "https://registry.npmjs.org/karma-source-map-support/-/karma-source-map-support-1.4.0.tgz","integrity": "sha512-RsBECncGO17KAoJCYXjv+ckIz+Ii9NCi+9enk+rq6XC81ezYkb4/RHE6CTXdA7IOJqoF3wcaLfVG0CPmE5ca6A==",- "dev": true,"requires": {"source-map-support": "^0.5.5"}@@ -8900,8 +9102,7 @@"kind-of": {"version": "6.0.3","resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",- "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",- "dev": true+ "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw=="},"kleur": {"version": "3.0.3",@@ -8912,8 +9113,7 @@"klona": {"version": "2.0.5","resolved": "https://registry.npmjs.org/klona/-/klona-2.0.5.tgz",- "integrity": "sha512-pJiBpiXMbt7dkzXe8Ghj/u4FfXOOa98fPW+bihOJ4SjnoijweJrNThJfd3ifXpXhREjpoF2mZVH1GfS9LV3kHQ==",- "dev": true+ "integrity": "sha512-pJiBpiXMbt7dkzXe8Ghj/u4FfXOOa98fPW+bihOJ4SjnoijweJrNThJfd3ifXpXhREjpoF2mZVH1GfS9LV3kHQ=="},"lazysizes": {"version": "5.3.2",@@ -8924,7 +9124,6 @@"version": "4.1.2","resolved": "https://registry.npmjs.org/less/-/less-4.1.2.tgz","integrity": "sha512-EoQp/Et7OSOVu0aJknJOtlXZsnr8XE8KwuzTHOLeVSEx8pVWUICc8Q0VYRHgzyjX78nMEyC/oztWFbgyhtNfDA==",- "dev": true,"requires": {"copy-anything": "^2.0.1","errno": "^0.1.1",@@ -8942,7 +9141,6 @@"version": "2.1.0","resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz","integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==",- "dev": true,"optional": true,"requires": {"pify": "^4.0.1",@@ -8953,7 +9151,6 @@"version": "0.6.1","resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz","integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",- "dev": true,"optional": true}}@@ -8962,7 +9159,6 @@"version": "10.2.0","resolved": "https://registry.npmjs.org/less-loader/-/less-loader-10.2.0.tgz","integrity": "sha512-AV5KHWvCezW27GT90WATaDnfXBv99llDbtaj4bshq6DvAihMdNjaPDcUMa6EXKLRF+P2opFenJp89BXg91XLYg==",- "dev": true,"requires": {"klona": "^2.0.4"}@@ -9004,26 +9200,22 @@"lines-and-columns": {"version": "1.2.4","resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",- "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",- "dev": true+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg=="},"loader-runner": {"version": "4.2.0","resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.2.0.tgz",- "integrity": "sha512-92+huvxMvYlMzMt0iIOukcwYBFpkYJdpl2xsZ7LrlayO7E8SOv+JJUEK17B/dJIHAOLMfh2dZZ/Y18WgmGtYNw==",- "dev": true+ "integrity": "sha512-92+huvxMvYlMzMt0iIOukcwYBFpkYJdpl2xsZ7LrlayO7E8SOv+JJUEK17B/dJIHAOLMfh2dZZ/Y18WgmGtYNw=="},"loader-utils": {"version": "3.2.0","resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.0.tgz",- "integrity": "sha512-HVl9ZqccQihZ7JM85dco1MvO9G+ONvxoGa9rkhzFsneGLKSUg1gJf9bWzhRhcvm2qChhWpebQhP44qxjKIUCaQ==",- "dev": true+ "integrity": "sha512-HVl9ZqccQihZ7JM85dco1MvO9G+ONvxoGa9rkhzFsneGLKSUg1gJf9bWzhRhcvm2qChhWpebQhP44qxjKIUCaQ=="},"locate-path": {"version": "5.0.0","resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz","integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",- "dev": true,"requires": {"p-locate": "^4.1.0"}@@ -9036,8 +9228,12 @@"lodash.debounce": {"version": "4.0.8","resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",- "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=",- "dev": true+ "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168="+ },+ "lodash.deburr": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/lodash.deburr/-/lodash.deburr-4.1.0.tgz",+ "integrity": "sha512-m/M1U1f3ddMCs6Hq2tAsYThTBDaAKFDX3dwDo97GEYzamXi9SqUpjWi/Rrj/gf3X2n8ktwgZrlP1z6E3v/IExQ=="},"lodash.memoize": {"version": "4.1.2",@@ -9049,7 +9245,6 @@"version": "4.1.0","resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz","integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",- "dev": true,"requires": {"chalk": "^4.1.0","is-unicode-supported": "^0.1.0"@@ -9059,7 +9254,6 @@"version": "4.3.0","resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz","integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dev": true,"requires": {"color-convert": "^2.0.1"}@@ -9068,7 +9262,6 @@"version": "4.1.2","resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz","integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dev": true,"requires": {"ansi-styles": "^4.1.0","supports-color": "^7.1.0"@@ -9078,7 +9271,6 @@"version": "2.0.1","resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz","integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dev": true,"requires": {"color-name": "~1.1.4"}@@ -9086,20 +9278,17 @@"color-name": {"version": "1.1.4","resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",- "dev": true+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="},"has-flag": {"version": "4.0.0","resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",- "dev": true+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="},"supports-color": {"version": "7.2.0","resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz","integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",- "dev": true,"requires": {"has-flag": "^4.0.0"}@@ -9110,7 +9299,6 @@"version": "6.0.0","resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz","integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",- "dev": true,"requires": {"yallist": "^4.0.0"}@@ -9119,7 +9307,6 @@"version": "0.25.7","resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz","integrity": "sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==",- "dev": true,"requires": {"sourcemap-codec": "^1.4.4"}@@ -9128,7 +9315,6 @@"version": "3.1.0","resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz","integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",- "dev": true,"requires": {"semver": "^6.0.0"},@@ -9136,8 +9322,7 @@"semver": {"version": "6.3.0","resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",- "dev": true+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="}}},@@ -9204,14 +9389,12 @@"media-typer": {"version": "0.3.0","resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",- "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=",- "dev": true+ "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g="},"memfs": {"version": "3.4.1","resolved": "https://registry.npmjs.org/memfs/-/memfs-3.4.1.tgz","integrity": "sha512-1c9VPVvW5P7I85c35zAdEr1TD5+F11IToIHIlrVIcflfnzPkJa0ZoYEoEdYDP8KgPFoSZ/opDrUsAoZWym3mtw==",- "dev": true,"requires": {"fs-monkey": "1.0.3"}@@ -9219,32 +9402,27 @@"merge-descriptors": {"version": "1.0.1","resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",- "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=",- "dev": true+ "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E="},"merge-stream": {"version": "2.0.0","resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",- "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",- "dev": true+ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w=="},"merge2": {"version": "1.4.1","resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",- "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",- "dev": true+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg=="},"methods": {"version": "1.1.2","resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",- "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=",- "dev": true+ "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4="},"micromatch": {"version": "4.0.4","resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz","integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==",- "dev": true,"requires": {"braces": "^3.0.1","picomatch": "^2.2.3"@@ -9253,20 +9431,17 @@"mime": {"version": "1.6.0","resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",- "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",- "dev": true+ "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="},"mime-db": {"version": "1.44.0","resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz",- "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==",- "dev": true+ "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg=="},"mime-types": {"version": "2.1.27","resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz","integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==",- "dev": true,"requires": {"mime-db": "1.44.0"}@@ -9274,14 +9449,12 @@"mimic-fn": {"version": "2.1.0","resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",- "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",- "dev": true+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg=="},"mini-css-extract-plugin": {"version": "2.5.3","resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.5.3.tgz","integrity": "sha512-YseMB8cs8U/KCaAGQoqYmfUuhhGW0a9p9XvWXrxVOkE3/IiISTLw4ALNt7JR5B2eYauFM+PQGSbXMDmVbR7Tfw==",- "dev": true,"requires": {"schema-utils": "^4.0.0"},@@ -9290,7 +9463,6 @@"version": "8.10.0","resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz","integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==",- "dev": true,"requires": {"fast-deep-equal": "^3.1.1","json-schema-traverse": "^1.0.0",@@ -9302,7 +9474,6 @@"version": "5.1.0","resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz","integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==",- "dev": true,"requires": {"fast-deep-equal": "^3.1.3"}@@ -9310,14 +9481,12 @@"json-schema-traverse": {"version": "1.0.0","resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",- "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",- "dev": true+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="},"schema-utils": {"version": "4.0.0","resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz","integrity": "sha512-1edyXKgh6XnJsJSQ8mKWXnN/BVaIbFMLpouRUrXgVq7WYne5kw3MW7UPhO44uRXQSIpTSXoJbmrR2X0w9kUTyg==",- "dev": true,"requires": {"@types/json-schema": "^7.0.9","ajv": "^8.8.0",@@ -9330,8 +9499,7 @@"minimalistic-assert": {"version": "1.0.1","resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz",- "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==",- "dev": true+ "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A=="},"minimatch": {"version": "3.0.4",@@ -9350,7 +9518,6 @@"version": "3.1.6","resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.6.tgz","integrity": "sha512-rty5kpw9/z8SX9dmxblFA6edItUmwJgMeYDZRrwlIVN27i8gysGbznJwUggw2V/FVqFSDdWy040ZPS811DYAqQ==",- "dev": true,"requires": {"yallist": "^4.0.0"}@@ -9359,7 +9526,6 @@"version": "1.0.2","resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz","integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==",- "dev": true,"requires": {"minipass": "^3.0.0"}@@ -9380,7 +9546,6 @@"version": "1.0.5","resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz","integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==",- "dev": true,"requires": {"minipass": "^3.0.0"}@@ -9399,7 +9564,6 @@"version": "1.2.4","resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz","integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==",- "dev": true,"requires": {"minipass": "^3.0.0"}@@ -9417,7 +9581,6 @@"version": "2.1.2","resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz","integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",- "dev": true,"requires": {"minipass": "^3.0.0","yallist": "^4.0.0"@@ -9427,7 +9590,6 @@"version": "0.5.5","resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz","integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",- "dev": true,"requires": {"minimist": "^1.2.5"}@@ -9446,7 +9608,6 @@"version": "6.2.3","resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-6.2.3.tgz","integrity": "sha512-ji6J5enbMyGRHIAkAOu3WdV8nggqviKCEKtXcOqfphZZtQrmHKycfynJ2V7eVPUA4NhJ6V7Wf4TmGbTwKE9B6g==",- "dev": true,"requires": {"dns-packet": "^1.3.1","thunky": "^1.0.2"@@ -9455,20 +9616,17 @@"multicast-dns-service-types": {"version": "1.1.0","resolved": "https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz",- "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=",- "dev": true+ "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE="},"mute-stream": {"version": "0.0.8","resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz",- "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==",- "dev": true+ "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA=="},"nanoid": {"version": "3.2.0","resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.2.0.tgz",- "integrity": "sha512-fmsZYa9lpn69Ad5eDn7FMcnnSR+8R34W9qJEijxYhTbfOWzr22n1QxCMzXLK+ODyW2973V3Fux959iQoUxzUIA==",- "dev": true+ "integrity": "sha512-fmsZYa9lpn69Ad5eDn7FMcnnSR+8R34W9qJEijxYhTbfOWzr22n1QxCMzXLK+ODyW2973V3Fux959iQoUxzUIA=="},"natural-compare": {"version": "1.4.0",@@ -9480,7 +9638,6 @@"version": "2.9.1","resolved": "https://registry.npmjs.org/needle/-/needle-2.9.1.tgz","integrity": "sha512-6R9fqJ5Zcmf+uYaFgdIHmLwNldn5HbK8L5ybn7Uz+ylX/rnOsSp1AHcvQSrCaFN+qNM1wpymHqD7mVasEOlHGQ==",- "dev": true,"optional": true,"requires": {"debug": "^3.2.6",@@ -9492,7 +9649,6 @@"version": "3.2.7","resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz","integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",- "dev": true,"optional": true,"requires": {"ms": "^2.1.1"@@ -9503,14 +9659,12 @@"negotiator": {"version": "0.6.3","resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",- "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",- "dev": true+ "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="},"neo-async": {"version": "2.6.2","resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz",- "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",- "dev": true+ "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw=="},"ng-circle-progress": {"version": "1.6.0",@@ -9528,6 +9682,15 @@"tslib": "^2.3.0"}},+ "ngx-extended-pdf-viewer": {+ "version": "13.5.2",+ "resolved": "https://registry.npmjs.org/ngx-extended-pdf-viewer/-/ngx-extended-pdf-viewer-13.5.2.tgz",+ "integrity": "sha512-dbGozWdfjHosHtJXRbM7zZQ8Zojdpv2/5e68767htvPRQ2JCUtRN+u6NwA59k+sNpNCliHhjaeFMXfWEWEHDMQ==",+ "requires": {+ "lodash.deburr": "^4.1.0",+ "tslib": "^2.3.0"+ }+ },"ngx-file-drop": {"version": "13.0.0","resolved": "https://registry.npmjs.org/ngx-file-drop/-/ngx-file-drop-13.0.0.tgz",@@ -9536,6 +9699,14 @@"tslib": "^2.0.0"}},+ "ngx-infinite-scroll": {+ "version": "13.0.2",+ "resolved": "https://registry.npmjs.org/ngx-infinite-scroll/-/ngx-infinite-scroll-13.0.2.tgz",+ "integrity": "sha512-RSezL0DUxo1B57SyRMOSt3a/5lLXJs6P8lavtxOh10uhX+hn662cMYHUO7LiU2a/vJxef2R020s4jkUqhnXTcg==",+ "requires": {+ "tslib": "^2.3.0"+ }+ },"ngx-toastr": {"version": "14.2.1","resolved": "https://registry.npmjs.org/ngx-toastr/-/ngx-toastr-14.2.1.tgz",@@ -9548,7 +9719,6 @@"version": "1.0.2","resolved": "https://registry.npmjs.org/nice-napi/-/nice-napi-1.0.2.tgz","integrity": "sha512-px/KnJAJZf5RuBGcfD+Sp2pAKq0ytz8j+1NehvgIGFkvtvFrDM3T8E4x/JJODXK9WZow8RRGrbA9QQ3hs+pDhA==",- "dev": true,"optional": true,"requires": {"node-addon-api": "^3.0.0",@@ -9559,7 +9729,6 @@"version": "3.2.1","resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz","integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==",- "dev": true,"optional": true},"node-fetch": {@@ -9573,8 +9742,7 @@"node-forge": {"version": "1.3.0","resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.0.tgz",- "integrity": "sha512-08ARB91bUi6zNKzVmaj3QO7cr397uiDT2nJ63cHjyNtCTWIgvS47j3eT0WfzUwS9+6Z5YshRaoasFkXCKrIYbA==",- "dev": true+ "integrity": "sha512-08ARB91bUi6zNKzVmaj3QO7cr397uiDT2nJ63cHjyNtCTWIgvS47j3eT0WfzUwS9+6Z5YshRaoasFkXCKrIYbA=="},"node-gyp": {"version": "8.4.1",@@ -9609,7 +9777,6 @@"version": "4.3.0","resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.3.0.tgz","integrity": "sha512-iWjXZvmboq0ja1pUGULQBexmxq8CV4xBhX7VDOTbL7ZR4FOowwY/VOtRxBN/yKxmdGoIp4j5ysNT4u3S2pDQ3Q==",- "dev": true,"optional": true},"node-int64": {@@ -9621,8 +9788,7 @@"node-releases": {"version": "2.0.2","resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.2.tgz",- "integrity": "sha512-XxYDdcQ6eKqp/YjI+tb2C5WM2LgjnZrfYg4vgQt49EK268b6gYCHsBLrK2qvJo4FmCtqmKezb0WZFK4fkrZNsg==",- "dev": true+ "integrity": "sha512-XxYDdcQ6eKqp/YjI+tb2C5WM2LgjnZrfYg4vgQt49EK268b6gYCHsBLrK2qvJo4FmCtqmKezb0WZFK4fkrZNsg=="},"nopt": {"version": "5.0.0",@@ -9636,14 +9802,12 @@"normalize-path": {"version": "3.0.0","resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",- "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",- "dev": true+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA=="},"normalize-range": {"version": "0.1.2","resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz",- "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=",- "dev": true+ "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI="},"npm-bundled": {"version": "1.1.2",@@ -9823,7 +9987,6 @@"version": "4.0.1","resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz","integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",- "dev": true,"requires": {"path-key": "^3.0.0"}@@ -9844,7 +10007,6 @@"version": "2.0.1","resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.0.1.tgz","integrity": "sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w==",- "dev": true,"requires": {"boolbase": "^1.0.0"}@@ -9871,7 +10033,6 @@"version": "1.1.5","resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz","integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==",- "dev": true,"requires": {"call-bind": "^1.0.2","define-properties": "^1.1.3"@@ -9880,14 +10041,12 @@"object-keys": {"version": "1.1.1","resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",- "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",- "dev": true+ "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA=="},"object.assign": {"version": "4.1.2","resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz","integrity": "sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==",- "dev": true,"requires": {"call-bind": "^1.0.0","define-properties": "^1.1.3",@@ -9898,14 +10057,12 @@"obuf": {"version": "1.1.2","resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz",- "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==",- "dev": true+ "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg=="},"on-finished": {"version": "2.3.0","resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz","integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=",- "dev": true,"requires": {"ee-first": "1.1.1"}@@ -9913,8 +10070,7 @@"on-headers": {"version": "1.0.2","resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz",- "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==",- "dev": true+ "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA=="},"once": {"version": "1.4.0",@@ -9928,7 +10084,6 @@"version": "5.1.2","resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz","integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",- "dev": true,"requires": {"mimic-fn": "^2.1.0"}@@ -9937,7 +10092,6 @@"version": "8.4.0","resolved": "https://registry.npmjs.org/open/-/open-8.4.0.tgz","integrity": "sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==",- "dev": true,"requires": {"define-lazy-prop": "^2.0.0","is-docker": "^2.1.1",@@ -9967,7 +10121,6 @@"version": "5.4.1","resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz","integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==",- "dev": true,"requires": {"bl": "^4.1.0","chalk": "^4.1.0",@@ -9984,7 +10137,6 @@"version": "4.3.0","resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz","integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dev": true,"requires": {"color-convert": "^2.0.1"}@@ -9993,7 +10145,6 @@"version": "4.1.2","resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz","integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dev": true,"requires": {"ansi-styles": "^4.1.0","supports-color": "^7.1.0"@@ -10003,7 +10154,6 @@"version": "2.0.1","resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz","integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dev": true,"requires": {"color-name": "~1.1.4"}@@ -10011,20 +10161,17 @@"color-name": {"version": "1.1.4","resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",- "dev": true+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="},"has-flag": {"version": "4.0.0","resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",- "dev": true+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="},"supports-color": {"version": "7.2.0","resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz","integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",- "dev": true,"requires": {"has-flag": "^4.0.0"}@@ -10042,14 +10189,12 @@"os-tmpdir": {"version": "1.0.2","resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",- "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",- "dev": true+ "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ="},"p-limit": {"version": "2.3.0","resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz","integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",- "dev": true,"requires": {"p-try": "^2.0.0"}@@ -10058,7 +10203,6 @@"version": "4.1.0","resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz","integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",- "dev": true,"requires": {"p-limit": "^2.2.0"}@@ -10067,7 +10211,6 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz","integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==",- "dev": true,"requires": {"aggregate-error": "^3.0.0"}@@ -10076,7 +10219,6 @@"version": "4.6.1","resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.1.tgz","integrity": "sha512-e2xXGNhZOZ0lfgR9kL34iGlU8N/KO0xZnQxVEwdeOvpqNDQfdnxIYizvWtK8RglUa3bGqI8g0R/BdfzLMxRkiA==",- "dev": true,"requires": {"@types/retry": "^0.12.0","retry": "^0.13.1"@@ -10085,8 +10227,7 @@"p-try": {"version": "2.2.0","resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",- "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",- "dev": true+ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ=="},"pacote": {"version": "12.0.3",@@ -10126,14 +10267,12 @@"pako": {"version": "1.0.11","resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",- "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==",- "dev": true+ "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw=="},"parent-module": {"version": "1.0.1","resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz","integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",- "dev": true,"requires": {"callsites": "^3.0.0"}@@ -10142,7 +10281,6 @@"version": "5.2.0","resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz","integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",- "dev": true,"requires": {"@babel/code-frame": "^7.0.0","error-ex": "^1.3.1",@@ -10153,8 +10291,7 @@"parse-node-version": {"version": "1.0.1","resolved": "https://registry.npmjs.org/parse-node-version/-/parse-node-version-1.0.1.tgz",- "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==",- "dev": true+ "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA=="},"parse5": {"version": "5.1.1",@@ -10166,7 +10303,6 @@"version": "6.0.1","resolved": "https://registry.npmjs.org/parse5-html-rewriting-stream/-/parse5-html-rewriting-stream-6.0.1.tgz","integrity": "sha512-vwLQzynJVEfUlURxgnf51yAJDQTtVpNyGD8tKi2Za7m+akukNHxCcUQMAa/mUGLhCeicFdpy7Tlvj8ZNKadprg==",- "dev": true,"requires": {"parse5": "^6.0.1","parse5-sax-parser": "^6.0.1"@@ -10175,8 +10311,7 @@"parse5": {"version": "6.0.1","resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz",- "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==",- "dev": true+ "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw=="}}},@@ -10184,7 +10319,6 @@"version": "6.0.1","resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz","integrity": "sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==",- "dev": true,"requires": {"parse5": "^6.0.1"},@@ -10192,8 +10326,7 @@"parse5": {"version": "6.0.1","resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz",- "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==",- "dev": true+ "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw=="}}},@@ -10201,7 +10334,6 @@"version": "6.0.1","resolved": "https://registry.npmjs.org/parse5-sax-parser/-/parse5-sax-parser-6.0.1.tgz","integrity": "sha512-kXX+5S81lgESA0LsDuGjAlBybImAChYRMT+/uKCEXFBFOeEhS52qUCydGhU3qLRD8D9DVjaUo821WK7DM4iCeg==",- "dev": true,"requires": {"parse5": "^6.0.1"},@@ -10209,22 +10341,19 @@"parse5": {"version": "6.0.1","resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz",- "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==",- "dev": true+ "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw=="}}},"parseurl": {"version": "1.3.3","resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",- "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",- "dev": true+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="},"path-exists": {"version": "4.0.0","resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",- "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",- "dev": true+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="},"path-is-absolute": {"version": "1.0.1",@@ -10240,8 +10369,7 @@"path-key": {"version": "3.1.1","resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",- "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",- "dev": true+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="},"path-parse": {"version": "1.0.7",@@ -10251,14 +10379,12 @@"path-to-regexp": {"version": "0.1.7","resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",- "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=",- "dev": true+ "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="},"path-type": {"version": "4.0.0","resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",- "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",- "dev": true+ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw=="},"pend": {"version": "1.2.0",@@ -10275,20 +10401,17 @@"picocolors": {"version": "1.0.0","resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",- "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==",- "dev": true+ "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ=="},"picomatch": {"version": "2.3.1","resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",- "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",- "dev": true+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="},"pify": {"version": "4.0.1","resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz","integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==",- "dev": true,"optional": true},"pinkie": {@@ -10316,7 +10439,6 @@"version": "3.2.0","resolved": "https://registry.npmjs.org/piscina/-/piscina-3.2.0.tgz","integrity": "sha512-yn/jMdHRw+q2ZJhFhyqsmANcbF6V2QwmD84c6xRau+QpQOmtrBCoRGdvTfeuFDYXB5W2m6MfLkjkvQa9lUSmIA==",- "dev": true,"requires": {"eventemitter-asyncresource": "^1.0.0","hdr-histogram-js": "^2.0.1",@@ -10345,7 +10467,6 @@"version": "4.2.0","resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz","integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",- "dev": true,"requires": {"find-up": "^4.0.0"}@@ -10434,7 +10555,6 @@"version": "1.0.28","resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz","integrity": "sha512-Se+2isanIcEqf2XMHjyUKskczxbPH7dQnlMjXX6+dybayyHvAf/TCgyMRlzf/B6QDhAEFOGes0pzRo3by4AbMA==",- "dev": true,"requires": {"async": "^2.6.2","debug": "^3.1.1",@@ -10445,7 +10565,6 @@"version": "3.2.7","resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz","integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",- "dev": true,"requires": {"ms": "^2.1.1"}@@ -10456,7 +10575,6 @@"version": "8.4.5","resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.5.tgz","integrity": "sha512-jBDboWM8qpaqwkMwItqTQTiFikhs/67OYVvblFFTM7MrZjt6yMKd6r2kgXizEbTTljacm4NldIlZnhbjr84QYg==",- "dev": true,"requires": {"nanoid": "^3.1.30","picocolors": "^1.0.0",@@ -10467,7 +10585,6 @@"version": "5.0.0","resolved": "https://registry.npmjs.org/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-5.0.0.tgz","integrity": "sha512-b4g9eagFGq9T5SWX4+USfVyjIb3liPnjhHHRMP7FMB2kFVpYyfEscV0wP3eaXhKlcHKUut8lt5BGoeylWA/dBQ==",- "dev": true,"requires": {"postcss-selector-parser": "^6.0.2"}@@ -10476,7 +10593,6 @@"version": "4.2.2","resolved": "https://registry.npmjs.org/postcss-color-functional-notation/-/postcss-color-functional-notation-4.2.2.tgz","integrity": "sha512-DXVtwUhIk4f49KK5EGuEdgx4Gnyj6+t2jBSEmxvpIK9QI40tWrpS2Pua8Q7iIZWBrki2QOaeUdEaLPPa91K0RQ==",- "dev": true,"requires": {"postcss-value-parser": "^4.2.0"}@@ -10485,7 +10601,6 @@"version": "8.0.3","resolved": "https://registry.npmjs.org/postcss-color-hex-alpha/-/postcss-color-hex-alpha-8.0.3.tgz","integrity": "sha512-fESawWJCrBV035DcbKRPAVmy21LpoyiXdPTuHUfWJ14ZRjY7Y7PA6P4g8z6LQGYhU1WAxkTxjIjurXzoe68Glw==",- "dev": true,"requires": {"postcss-value-parser": "^4.2.0"}@@ -10494,7 +10609,6 @@"version": "7.0.2","resolved": "https://registry.npmjs.org/postcss-color-rebeccapurple/-/postcss-color-rebeccapurple-7.0.2.tgz","integrity": "sha512-SFc3MaocHaQ6k3oZaFwH8io6MdypkUtEy/eXzXEB1vEQlO3S3oDc/FSZA8AsS04Z25RirQhlDlHLh3dn7XewWw==",- "dev": true,"requires": {"postcss-value-parser": "^4.2.0"}@@ -10502,14 +10616,12 @@"postcss-custom-media": {"version": "8.0.0","resolved": "https://registry.npmjs.org/postcss-custom-media/-/postcss-custom-media-8.0.0.tgz",- "integrity": "sha512-FvO2GzMUaTN0t1fBULDeIvxr5IvbDXcIatt6pnJghc736nqNgsGao5NT+5+WVLAQiTt6Cb3YUms0jiPaXhL//g==",- "dev": true+ "integrity": "sha512-FvO2GzMUaTN0t1fBULDeIvxr5IvbDXcIatt6pnJghc736nqNgsGao5NT+5+WVLAQiTt6Cb3YUms0jiPaXhL//g=="},"postcss-custom-properties": {"version": "12.1.4","resolved": "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-12.1.4.tgz","integrity": "sha512-i6AytuTCoDLJkWN/MtAIGriJz3j7UX6bV7Z5t+KgFz+dwZS15/mlTJY1S0kRizlk6ba0V8u8hN50Fz5Nm7tdZw==",- "dev": true,"requires": {"postcss-value-parser": "^4.2.0"}@@ -10518,7 +10630,6 @@"version": "6.0.0","resolved": "https://registry.npmjs.org/postcss-custom-selectors/-/postcss-custom-selectors-6.0.0.tgz","integrity": "sha512-/1iyBhz/W8jUepjGyu7V1OPcGbc636snN1yXEQCinb6Bwt7KxsiU7/bLQlp8GwAXzCh7cobBU5odNn/2zQWR8Q==",- "dev": true,"requires": {"postcss-selector-parser": "^6.0.4"}@@ -10527,7 +10638,6 @@"version": "6.0.4","resolved": "https://registry.npmjs.org/postcss-dir-pseudo-class/-/postcss-dir-pseudo-class-6.0.4.tgz","integrity": "sha512-I8epwGy5ftdzNWEYok9VjW9whC4xnelAtbajGv4adql4FIF09rnrxnA9Y8xSHN47y7gqFIv10C5+ImsLeJpKBw==",- "dev": true,"requires": {"postcss-selector-parser": "^6.0.9"}@@ -10536,7 +10646,6 @@"version": "3.0.5","resolved": "https://registry.npmjs.org/postcss-double-position-gradients/-/postcss-double-position-gradients-3.0.5.tgz","integrity": "sha512-XiZzvdxLOWZwtt/1GgHJYGoD9scog/DD/yI5dcvPrXNdNDEv7T53/6tL7ikl+EM3jcerII5/XIQzd1UHOdTi2w==",- "dev": true,"requires": {"postcss-value-parser": "^4.2.0"}@@ -10545,7 +10654,6 @@"version": "4.0.5","resolved": "https://registry.npmjs.org/postcss-env-function/-/postcss-env-function-4.0.5.tgz","integrity": "sha512-gPUJc71ji9XKyl0WSzAalBeEA/89kU+XpffpPxSaaaZ1c48OL36r1Ep5R6+9XAPkIiDlSvVAwP4io12q/vTcvA==",- "dev": true,"requires": {"postcss-value-parser": "^4.2.0"}@@ -10554,7 +10662,6 @@"version": "6.0.4","resolved": "https://registry.npmjs.org/postcss-focus-visible/-/postcss-focus-visible-6.0.4.tgz","integrity": "sha512-QcKuUU/dgNsstIK6HELFRT5Y3lbrMLEOwG+A4s5cA+fx3A3y/JTq3X9LaOj3OC3ALH0XqyrgQIgey/MIZ8Wczw==",- "dev": true,"requires": {"postcss-selector-parser": "^6.0.9"}@@ -10563,7 +10670,6 @@"version": "5.0.4","resolved": "https://registry.npmjs.org/postcss-focus-within/-/postcss-focus-within-5.0.4.tgz","integrity": "sha512-vvjDN++C0mu8jz4af5d52CB184ogg/sSxAFS+oUJQq2SuCe7T5U2iIsVJtsCp2d6R4j0jr5+q3rPkBVZkXD9fQ==",- "dev": true,"requires": {"postcss-selector-parser": "^6.0.9"}@@ -10571,20 +10677,17 @@"postcss-font-variant": {"version": "5.0.0","resolved": "https://registry.npmjs.org/postcss-font-variant/-/postcss-font-variant-5.0.0.tgz",- "integrity": "sha512-1fmkBaCALD72CK2a9i468mA/+tr9/1cBxRRMXOUaZqO43oWPR5imcyPjXwuv7PXbCid4ndlP5zWhidQVVa3hmA==",- "dev": true+ "integrity": "sha512-1fmkBaCALD72CK2a9i468mA/+tr9/1cBxRRMXOUaZqO43oWPR5imcyPjXwuv7PXbCid4ndlP5zWhidQVVa3hmA=="},"postcss-gap-properties": {"version": "3.0.3","resolved": "https://registry.npmjs.org/postcss-gap-properties/-/postcss-gap-properties-3.0.3.tgz",- "integrity": "sha512-rPPZRLPmEKgLk/KlXMqRaNkYTUpE7YC+bOIQFN5xcu1Vp11Y4faIXv6/Jpft6FMnl6YRxZqDZG0qQOW80stzxQ==",- "dev": true+ "integrity": "sha512-rPPZRLPmEKgLk/KlXMqRaNkYTUpE7YC+bOIQFN5xcu1Vp11Y4faIXv6/Jpft6FMnl6YRxZqDZG0qQOW80stzxQ=="},"postcss-image-set-function": {"version": "4.0.6","resolved": "https://registry.npmjs.org/postcss-image-set-function/-/postcss-image-set-function-4.0.6.tgz","integrity": "sha512-KfdC6vg53GC+vPd2+HYzsZ6obmPqOk6HY09kttU19+Gj1nC3S3XBVEXDHxkhxTohgZqzbUb94bKXvKDnYWBm/A==",- "dev": true,"requires": {"postcss-value-parser": "^4.2.0"}@@ -10593,7 +10696,6 @@"version": "14.0.2","resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-14.0.2.tgz","integrity": "sha512-BJ2pVK4KhUyMcqjuKs9RijV5tatNzNa73e/32aBVE/ejYPe37iH+6vAu9WvqUkB5OAYgLHzbSvzHnorybJCm9g==",- "dev": true,"requires": {"postcss-value-parser": "^4.0.0","read-cache": "^1.0.0",@@ -10603,14 +10705,12 @@"postcss-initial": {"version": "4.0.1","resolved": "https://registry.npmjs.org/postcss-initial/-/postcss-initial-4.0.1.tgz",- "integrity": "sha512-0ueD7rPqX8Pn1xJIjay0AZeIuDoF+V+VvMt/uOnn+4ezUKhZM/NokDeP6DwMNyIoYByuN/94IQnt5FEkaN59xQ==",- "dev": true+ "integrity": "sha512-0ueD7rPqX8Pn1xJIjay0AZeIuDoF+V+VvMt/uOnn+4ezUKhZM/NokDeP6DwMNyIoYByuN/94IQnt5FEkaN59xQ=="},"postcss-lab-function": {"version": "4.0.4","resolved": "https://registry.npmjs.org/postcss-lab-function/-/postcss-lab-function-4.0.4.tgz","integrity": "sha512-TAEW8X/ahMYV33mvLFQARtBPAy1VVJsiR9VVx3Pcbu+zlqQj0EIyJ/Ie1/EwxwIt530CWtEDzzTXBDzfdb+qIQ==",- "dev": true,"requires": {"postcss-value-parser": "^4.2.0"}@@ -10619,7 +10719,6 @@"version": "6.2.1","resolved": "https://registry.npmjs.org/postcss-loader/-/postcss-loader-6.2.1.tgz","integrity": "sha512-WbbYpmAaKcux/P66bZ40bpWsBucjx/TTgVVzRZ9yUO8yQfVBlameJ0ZGVaPfH64hNSBh63a+ICP5nqOpBA0w+Q==",- "dev": true,"requires": {"cosmiconfig": "^7.0.0","klona": "^2.0.5",@@ -10630,7 +10729,6 @@"version": "7.3.5","resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz","integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==",- "dev": true,"requires": {"lru-cache": "^6.0.0"}@@ -10640,26 +10738,22 @@"postcss-logical": {"version": "5.0.4","resolved": "https://registry.npmjs.org/postcss-logical/-/postcss-logical-5.0.4.tgz",- "integrity": "sha512-RHXxplCeLh9VjinvMrZONq7im4wjWGlRJAqmAVLXyZaXwfDWP73/oq4NdIp+OZwhQUMj0zjqDfM5Fj7qby+B4g==",- "dev": true+ "integrity": "sha512-RHXxplCeLh9VjinvMrZONq7im4wjWGlRJAqmAVLXyZaXwfDWP73/oq4NdIp+OZwhQUMj0zjqDfM5Fj7qby+B4g=="},"postcss-media-minmax": {"version": "5.0.0","resolved": "https://registry.npmjs.org/postcss-media-minmax/-/postcss-media-minmax-5.0.0.tgz",- "integrity": "sha512-yDUvFf9QdFZTuCUg0g0uNSHVlJ5X1lSzDZjPSFaiCWvjgsvu8vEVxtahPrLMinIDEEGnx6cBe6iqdx5YWz08wQ==",- "dev": true+ "integrity": "sha512-yDUvFf9QdFZTuCUg0g0uNSHVlJ5X1lSzDZjPSFaiCWvjgsvu8vEVxtahPrLMinIDEEGnx6cBe6iqdx5YWz08wQ=="},"postcss-modules-extract-imports": {"version": "3.0.0","resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz",- "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==",- "dev": true+ "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw=="},"postcss-modules-local-by-default": {"version": "4.0.0","resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.0.tgz","integrity": "sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ==",- "dev": true,"requires": {"icss-utils": "^5.0.0","postcss-selector-parser": "^6.0.2",@@ -10670,7 +10764,6 @@"version": "3.0.0","resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz","integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==",- "dev": true,"requires": {"postcss-selector-parser": "^6.0.4"}@@ -10679,7 +10772,6 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz","integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==",- "dev": true,"requires": {"icss-utils": "^5.0.0"}@@ -10688,7 +10780,6 @@"version": "10.1.2","resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-10.1.2.tgz","integrity": "sha512-dJGmgmsvpzKoVMtDMQQG/T6FSqs6kDtUDirIfl4KnjMCiY9/ETX8jdKyCd20swSRAbUYkaBKV20pxkzxoOXLqQ==",- "dev": true,"requires": {"postcss-selector-parser": "^6.0.8"}@@ -10696,20 +10787,17 @@"postcss-overflow-shorthand": {"version": "3.0.3","resolved": "https://registry.npmjs.org/postcss-overflow-shorthand/-/postcss-overflow-shorthand-3.0.3.tgz",- "integrity": "sha512-CxZwoWup9KXzQeeIxtgOciQ00tDtnylYIlJBBODqkgS/PU2jISuWOL/mYLHmZb9ZhZiCaNKsCRiLp22dZUtNsg==",- "dev": true+ "integrity": "sha512-CxZwoWup9KXzQeeIxtgOciQ00tDtnylYIlJBBODqkgS/PU2jISuWOL/mYLHmZb9ZhZiCaNKsCRiLp22dZUtNsg=="},"postcss-page-break": {"version": "3.0.4","resolved": "https://registry.npmjs.org/postcss-page-break/-/postcss-page-break-3.0.4.tgz",- "integrity": "sha512-1JGu8oCjVXLa9q9rFTo4MbeeA5FMe00/9C7lN4va606Rdb+HkxXtXsmEDrIraQ11fGz/WvKWa8gMuCKkrXpTsQ==",- "dev": true+ "integrity": "sha512-1JGu8oCjVXLa9q9rFTo4MbeeA5FMe00/9C7lN4va606Rdb+HkxXtXsmEDrIraQ11fGz/WvKWa8gMuCKkrXpTsQ=="},"postcss-place": {"version": "7.0.4","resolved": "https://registry.npmjs.org/postcss-place/-/postcss-place-7.0.4.tgz","integrity": "sha512-MrgKeiiu5OC/TETQO45kV3npRjOFxEHthsqGtkh3I1rPbZSbXGD/lZVi9j13cYh+NA8PIAPyk6sGjT9QbRyvSg==",- "dev": true,"requires": {"postcss-value-parser": "^4.2.0"}@@ -10718,7 +10806,6 @@"version": "7.2.3","resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-7.2.3.tgz","integrity": "sha512-Ok0DhLfwrcNGrBn8sNdy1uZqWRk/9FId0GiQ39W4ILop5GHtjJs8bu1MY9isPwHInpVEPWjb4CEcEaSbBLpfwA==",- "dev": true,"requires": {"autoprefixer": "^10.4.2","browserslist": "^4.19.1",@@ -10759,7 +10846,6 @@"version": "7.1.1","resolved": "https://registry.npmjs.org/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-7.1.1.tgz","integrity": "sha512-JRoLFvPEX/1YTPxRxp1JO4WxBVXJYrSY7NHeak5LImwJ+VobFMwYDQHvfTXEpcn+7fYIeGkC29zYFhFWIZD8fg==",- "dev": true,"requires": {"postcss-selector-parser": "^6.0.9"}@@ -10767,14 +10853,12 @@"postcss-replace-overflow-wrap": {"version": "4.0.0","resolved": "https://registry.npmjs.org/postcss-replace-overflow-wrap/-/postcss-replace-overflow-wrap-4.0.0.tgz",- "integrity": "sha512-KmF7SBPphT4gPPcKZc7aDkweHiKEEO8cla/GjcBK+ckKxiZslIu3C4GCRW3DNfL0o7yW7kMQu9xlZ1kXRXLXtw==",- "dev": true+ "integrity": "sha512-KmF7SBPphT4gPPcKZc7aDkweHiKEEO8cla/GjcBK+ckKxiZslIu3C4GCRW3DNfL0o7yW7kMQu9xlZ1kXRXLXtw=="},"postcss-selector-not": {"version": "5.0.0","resolved": "https://registry.npmjs.org/postcss-selector-not/-/postcss-selector-not-5.0.0.tgz","integrity": "sha512-/2K3A4TCP9orP4TNS7u3tGdRFVKqz/E6pX3aGnriPG0jU78of8wsUcqE4QAhWEU0d+WnMSF93Ah3F//vUtK+iQ==",- "dev": true,"requires": {"balanced-match": "^1.0.0"}@@ -10783,7 +10867,6 @@"version": "6.0.9","resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.9.tgz","integrity": "sha512-UO3SgnZOVTwu4kyLR22UQ1xZh086RyNZppb7lLAKBFK8a32ttG5i87Y/P3+2bRSjZNyJ1B7hfFNo273tKe9YxQ==",- "dev": true,"requires": {"cssesc": "^3.0.0","util-deprecate": "^1.0.2"@@ -10792,8 +10875,7 @@"postcss-value-parser": {"version": "4.2.0","resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",- "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",- "dev": true+ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="},"prelude-ls": {"version": "1.1.2",@@ -10804,8 +10886,7 @@"pretty-bytes": {"version": "5.6.0","resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz",- "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==",- "dev": true+ "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg=="},"pretty-format": {"version": "27.5.1",@@ -10829,8 +10910,7 @@"process-nextick-args": {"version": "2.0.1","resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",- "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",- "dev": true+ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="},"progress": {"version": "2.0.3",@@ -10841,8 +10921,7 @@"promise-inflight": {"version": "1.0.1","resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz",- "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=",- "dev": true+ "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM="},"promise-retry": {"version": "2.0.1",@@ -11238,7 +11317,6 @@"version": "2.0.7","resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz","integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",- "dev": true,"requires": {"forwarded": "0.2.0","ipaddr.js": "1.9.1"@@ -11247,8 +11325,7 @@"ipaddr.js": {"version": "1.9.1","resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",- "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",- "dev": true+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="}}},@@ -11262,7 +11339,6 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz","integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=",- "dev": true,"optional": true},"psl": {@@ -11288,8 +11364,7 @@"qs": {"version": "6.9.6","resolved": "https://registry.npmjs.org/qs/-/qs-6.9.6.tgz",- "integrity": "sha512-TIRk4aqYLNoJUbd+g2lEdz5kLWIuTMRagAXxl78Q0RiVjAOugHmeKNGdd3cwo/ktpf9aL9epCfFqWDEKysUlLQ==",- "dev": true+ "integrity": "sha512-TIRk4aqYLNoJUbd+g2lEdz5kLWIuTMRagAXxl78Q0RiVjAOugHmeKNGdd3cwo/ktpf9aL9epCfFqWDEKysUlLQ=="},"querystringify": {"version": "2.2.0",@@ -11299,14 +11374,12 @@"queue-microtask": {"version": "1.2.3","resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",- "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",- "dev": true+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A=="},"randombytes": {"version": "2.1.0","resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz","integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",- "dev": true,"requires": {"safe-buffer": "^5.1.0"}@@ -11314,14 +11387,12 @@"range-parser": {"version": "1.2.1","resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",- "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",- "dev": true+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="},"raw-body": {"version": "2.4.2","resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.2.tgz","integrity": "sha512-RPMAFUJP19WIet/99ngh6Iv8fzAbqum4Li7AD6DtGaW2RpMB/11xDoalPiJMTbu6I3hkbMVkATvZrqb9EEqeeQ==",- "dev": true,"requires": {"bytes": "3.1.1","http-errors": "1.8.1",@@ -11332,8 +11403,7 @@"bytes": {"version": "3.1.1","resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.1.tgz",- "integrity": "sha512-dWe4nWO/ruEOY7HkUJ5gFt1DCFV9zPRoJr8pV0/ASQermOZjtq8jMjOprC0Kd10GLN+l7xaUPvxzJFWtxGu8Fg==",- "dev": true+ "integrity": "sha512-dWe4nWO/ruEOY7HkUJ5gFt1DCFV9zPRoJr8pV0/ASQermOZjtq8jMjOprC0Kd10GLN+l7xaUPvxzJFWtxGu8Fg=="}}},@@ -11347,7 +11417,6 @@"version": "1.0.0","resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz","integrity": "sha1-5mTvMRYRZsl1HNvo28+GtftY93Q=",- "dev": true,"requires": {"pify": "^2.3.0"},@@ -11355,8 +11424,7 @@"pify": {"version": "2.3.0","resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",- "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",- "dev": true+ "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw="}}},@@ -11374,7 +11442,6 @@"version": "2.3.7","resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz","integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",- "dev": true,"requires": {"core-util-is": "~1.0.0","inherits": "~2.0.3",@@ -11389,7 +11456,6 @@"version": "3.6.0","resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz","integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",- "dev": true,"requires": {"picomatch": "^2.2.1"}@@ -11403,14 +11469,12 @@"regenerate": {"version": "1.4.2","resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz",- "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==",- "dev": true+ "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A=="},"regenerate-unicode-properties": {"version": "10.0.1","resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.0.1.tgz","integrity": "sha512-vn5DU6yg6h8hP/2OkQo3K7uVILvY4iu0oI4t3HFa81UPkhGJwkRwM10JEc3upjdhHjs/k8GJY1sRBhk5sr69Bw==",- "dev": true,"requires": {"regenerate": "^1.4.2"}@@ -11418,14 +11482,12 @@"regenerator-runtime": {"version": "0.13.9","resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",- "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==",- "dev": true+ "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA=="},"regenerator-transform": {"version": "0.14.5","resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.5.tgz","integrity": "sha512-eOf6vka5IO151Jfsw2NO9WpGX58W6wWmefK3I1zEGr0lOD0u8rwPaNqQL1aRxUaxLeKO3ArNh3VYg1KbaD+FFw==",- "dev": true,"requires": {"@babel/runtime": "^7.8.4"}@@ -11433,14 +11495,12 @@"regex-parser": {"version": "2.2.11","resolved": "https://registry.npmjs.org/regex-parser/-/regex-parser-2.2.11.tgz",- "integrity": "sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q==",- "dev": true+ "integrity": "sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q=="},"regexp.prototype.flags": {"version": "1.4.1","resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.1.tgz","integrity": "sha512-pMR7hBVUUGI7PMA37m2ofIdQCsomVnas+Jn5UPGAHQ+/LlwKm/aTLJHdasmHRzlfeZwHiAOaRSo2rbBDm3nNUQ==",- "dev": true,"requires": {"call-bind": "^1.0.2","define-properties": "^1.1.3"@@ -11450,7 +11510,6 @@"version": "5.0.1","resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.0.1.tgz","integrity": "sha512-CriEZlrKK9VJw/xQGJpQM5rY88BtuL8DM+AEwvcThHilbxiTAy8vq4iJnd2tqq8wLmjbGZzP7ZcKFjbGkmEFrw==",- "dev": true,"requires": {"regenerate": "^1.4.2","regenerate-unicode-properties": "^10.0.1",@@ -11463,14 +11522,12 @@"regjsgen": {"version": "0.6.0","resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.6.0.tgz",- "integrity": "sha512-ozE883Uigtqj3bx7OhL1KNbCzGyW2NQZPl6Hs09WTvCuZD5sTI4JY58bkbQWa/Y9hxIsvJ3M8Nbf7j54IqeZbA==",- "dev": true+ "integrity": "sha512-ozE883Uigtqj3bx7OhL1KNbCzGyW2NQZPl6Hs09WTvCuZD5sTI4JY58bkbQWa/Y9hxIsvJ3M8Nbf7j54IqeZbA=="},"regjsparser": {"version": "0.8.4","resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.8.4.tgz","integrity": "sha512-J3LABycON/VNEu3abOviqGHuB/LOtOQj8SKmfP9anY5GfAVw/SPjwzSjxGjbZXIxbGfqTHtJw58C2Li/WkStmA==",- "dev": true,"requires": {"jsesc": "~0.5.0"},@@ -11478,8 +11535,7 @@"jsesc": {"version": "0.5.0","resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz",- "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=",- "dev": true+ "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0="}}},@@ -11527,8 +11583,7 @@"require-from-string": {"version": "2.0.2","resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",- "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",- "dev": true+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="},"require-main-filename": {"version": "2.0.0",@@ -11536,6 +11591,11 @@"integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==","dev": true},+ "requires": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/requires/-/requires-1.0.2.tgz",+ "integrity": "sha1-djBOghNFYi/j+sCwcRoeTygo8Po="+ },"requires-port": {"version": "1.0.0","resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",@@ -11562,14 +11622,12 @@"resolve-from": {"version": "5.0.0","resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",- "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",- "dev": true+ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw=="},"resolve-url-loader": {"version": "5.0.0","resolved": "https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-5.0.0.tgz","integrity": "sha512-uZtduh8/8srhBoMx//5bwqjQ+rfYOUq8zC9NrMUGtjBiGTtFJM42s58/36+hTqeqINcnYe08Nj3LkK9lW4N8Xg==",- "dev": true,"requires": {"adjust-sourcemap-loader": "^4.0.0","convert-source-map": "^1.7.0",@@ -11582,7 +11640,6 @@"version": "2.0.2","resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.2.tgz","integrity": "sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A==",- "dev": true,"requires": {"big.js": "^5.2.2","emojis-list": "^3.0.0",@@ -11592,8 +11649,7 @@"source-map": {"version": "0.6.1","resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",- "dev": true+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="}}},@@ -11607,7 +11663,6 @@"version": "3.1.0","resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz","integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==",- "dev": true,"requires": {"onetime": "^5.1.0","signal-exit": "^3.0.2"@@ -11616,20 +11671,17 @@"retry": {"version": "0.13.1","resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz",- "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==",- "dev": true+ "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg=="},"reusify": {"version": "1.0.4","resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",- "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",- "dev": true+ "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw=="},"rimraf": {"version": "3.0.2","resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz","integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",- "dev": true,"requires": {"glob": "^7.1.3"}@@ -11637,14 +11689,12 @@"run-async": {"version": "2.4.1","resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz",- "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==",- "dev": true+ "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ=="},"run-parallel": {"version": "1.2.0","resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz","integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",- "dev": true,"requires": {"queue-microtask": "^1.2.2"}@@ -11670,8 +11720,7 @@"safer-buffer": {"version": "2.1.2","resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",- "dev": true+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="},"sass": {"version": "1.49.0",@@ -11688,7 +11737,6 @@"version": "12.4.0","resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-12.4.0.tgz","integrity": "sha512-7xN+8khDIzym1oL9XyS6zP6Ges+Bo2B2xbPrjdMHEYyV3AQYhd/wXeru++3ODHF0zMjYmVadblSKrPrjEkL8mg==",- "dev": true,"requires": {"klona": "^2.0.4","neo-async": "^2.6.2"@@ -11706,8 +11754,7 @@"sax": {"version": "1.2.4","resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",- "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==",- "dev": true+ "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw=="},"saxes": {"version": "5.0.1",@@ -11722,7 +11769,6 @@"version": "2.7.1","resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz","integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==",- "dev": true,"requires": {"@types/json-schema": "^7.0.5","ajv": "^6.12.4",@@ -11732,8 +11778,7 @@"select-hose": {"version": "2.0.0","resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz",- "integrity": "sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo=",- "dev": true+ "integrity": "sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo="},"selenium-webdriver": {"version": "3.6.0",@@ -11771,7 +11816,6 @@"version": "2.0.0","resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.0.0.tgz","integrity": "sha512-cUdFiCbKoa1mZ6osuJs2uDHrs0k0oprsKveFiiaBKCNq3SYyb5gs2HxhQyDNLCmL51ZZThqi4YNDpCK6GOP1iQ==",- "dev": true,"requires": {"node-forge": "^1.2.0"}@@ -11794,7 +11838,6 @@"version": "0.17.2","resolved": "https://registry.npmjs.org/send/-/send-0.17.2.tgz","integrity": "sha512-UJYB6wFSJE3G00nEivR5rgWp8c2xXvJ3OPWPhmuteU0IKj8nKbG3DrjiOmLwpnHGYWAVwA69zmTm++YG0Hmwww==",- "dev": true,"requires": {"debug": "2.6.9","depd": "~1.1.2",@@ -11815,7 +11858,6 @@"version": "2.6.9","resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz","integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",- "dev": true,"requires": {"ms": "2.0.0"},@@ -11823,16 +11865,14 @@"ms": {"version": "2.0.0","resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",- "dev": true+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="}}},"ms": {"version": "2.1.3","resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",- "dev": true+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="}}},@@ -11840,7 +11880,6 @@"version": "6.0.0","resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz","integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==",- "dev": true,"requires": {"randombytes": "^2.1.0"}@@ -11849,7 +11888,6 @@"version": "1.9.1","resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz","integrity": "sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=",- "dev": true,"requires": {"accepts": "~1.3.4","batch": "0.6.1",@@ -11864,7 +11902,6 @@"version": "2.6.9","resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz","integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",- "dev": true,"requires": {"ms": "2.0.0"}@@ -11873,7 +11910,6 @@"version": "1.6.3","resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz","integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=",- "dev": true,"requires": {"depd": "~1.1.2","inherits": "2.0.3",@@ -11884,20 +11920,17 @@"inherits": {"version": "2.0.3","resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",- "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",- "dev": true+ "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="},"ms": {"version": "2.0.0","resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",- "dev": true+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="},"setprototypeof": {"version": "1.1.0","resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz",- "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==",- "dev": true+ "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ=="}}},@@ -11905,7 +11938,6 @@"version": "1.14.2","resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.2.tgz","integrity": "sha512-+TMNA9AFxUEGuC0z2mevogSnn9MXKb4fa7ngeRMJaaGv8vTwnIEkKi+QGvPt33HSnf8pRS+WGM0EbMtCJLKMBQ==",- "dev": true,"requires": {"encodeurl": "~1.0.2","escape-html": "~1.0.3",@@ -11928,14 +11960,12 @@"setprototypeof": {"version": "1.2.0","resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",- "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",- "dev": true+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="},"shallow-clone": {"version": "3.0.1","resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz","integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==",- "dev": true,"requires": {"kind-of": "^6.0.2"}@@ -11944,7 +11974,6 @@"version": "2.0.0","resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz","integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",- "dev": true,"requires": {"shebang-regex": "^3.0.0"}@@ -11952,14 +11981,12 @@"shebang-regex": {"version": "3.0.0","resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",- "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",- "dev": true+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="},"signal-exit": {"version": "3.0.7","resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",- "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",- "dev": true+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="},"sirv": {"version": "1.0.19",@@ -11980,8 +12007,7 @@"slash": {"version": "4.0.0","resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz",- "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==",- "dev": true+ "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew=="},"smart-buffer": {"version": "4.2.0",@@ -11993,7 +12019,6 @@"version": "0.3.24","resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz","integrity": "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==",- "dev": true,"requires": {"faye-websocket": "^0.11.3","uuid": "^8.3.2",@@ -12003,8 +12028,7 @@"uuid": {"version": "8.3.2","resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",- "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",- "dev": true+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="}}},@@ -12048,14 +12072,12 @@"source-map-js": {"version": "1.0.2","resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",- "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",- "dev": true+ "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw=="},"source-map-loader": {"version": "3.0.1","resolved": "https://registry.npmjs.org/source-map-loader/-/source-map-loader-3.0.1.tgz","integrity": "sha512-Vp1UsfyPvgujKQzi4pyDiTOnE3E4H+yHvkVRN3c/9PJmQS4CQJExvcDvaX/D+RV+xQben9HJ56jMJS3CgUeWyA==",- "dev": true,"requires": {"abab": "^2.0.5","iconv-lite": "^0.6.3",@@ -12066,7 +12088,6 @@"version": "0.6.3","resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz","integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",- "dev": true,"requires": {"safer-buffer": ">= 2.1.2 < 3.0.0"}@@ -12077,7 +12098,6 @@"version": "0.6.0","resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz","integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==",- "dev": true,"requires": {"atob": "^2.1.2","decode-uri-component": "^0.2.0"@@ -12087,7 +12107,6 @@"version": "0.5.21","resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz","integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",- "dev": true,"requires": {"buffer-from": "^1.0.0","source-map": "^0.6.0"@@ -12096,22 +12115,19 @@"source-map": {"version": "0.6.1","resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",- "dev": true+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="}}},"sourcemap-codec": {"version": "1.4.8","resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz",- "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==",- "dev": true+ "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA=="},"spdy": {"version": "4.0.2","resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz","integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==",- "dev": true,"requires": {"debug": "^4.1.0","handle-thing": "^2.0.0",@@ -12124,7 +12140,6 @@"version": "3.0.0","resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz","integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==",- "dev": true,"requires": {"debug": "^4.1.0","detect-node": "^2.0.4",@@ -12138,7 +12153,6 @@"version": "3.6.0","resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz","integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",- "dev": true,"requires": {"inherits": "^2.0.3","string_decoder": "^1.1.1",@@ -12150,8 +12164,7 @@"sprintf-js": {"version": "1.0.3","resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",- "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",- "dev": true+ "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw="},"sshpk": {"version": "1.16.1",@@ -12179,7 +12192,6 @@"version": "8.0.1","resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz","integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==",- "dev": true,"requires": {"minipass": "^3.1.1"}@@ -12204,8 +12216,7 @@"statuses": {"version": "1.5.0","resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",- "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=",- "dev": true+ "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow="},"string-length": {"version": "4.0.2",@@ -12231,7 +12242,6 @@"version": "1.1.1","resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz","integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",- "dev": true,"requires": {"safe-buffer": "~5.1.0"}@@ -12253,8 +12263,7 @@"strip-final-newline": {"version": "2.0.0","resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",- "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",- "dev": true+ "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA=="},"strip-json-comments": {"version": "3.1.1",@@ -12266,7 +12275,6 @@"version": "0.56.0","resolved": "https://registry.npmjs.org/stylus/-/stylus-0.56.0.tgz","integrity": "sha512-Ev3fOb4bUElwWu4F9P9WjnnaSpc8XB9OFHSFZSKMFL1CE1oM+oFXWEgAqPmmZIyhBihuqIQlFsVTypiiS9RxeA==",- "dev": true,"requires": {"css": "^3.0.0","debug": "^4.3.2",@@ -12279,8 +12287,7 @@"source-map": {"version": "0.7.3","resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz",- "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==",- "dev": true+ "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ=="}}},@@ -12288,7 +12295,6 @@"version": "6.2.0","resolved": "https://registry.npmjs.org/stylus-loader/-/stylus-loader-6.2.0.tgz","integrity": "sha512-5dsDc7qVQGRoc6pvCL20eYgRUxepZ9FpeK28XhdXaIPP6kXr6nI1zAAKFQgP5OBkOfKaURp4WUpJzspg1f01Gg==",- "dev": true,"requires": {"fast-glob": "^3.2.7","klona": "^2.0.4",@@ -12360,14 +12366,12 @@"tapable": {"version": "2.2.1","resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz",- "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==",- "dev": true+ "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ=="},"tar": {"version": "6.1.11","resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz","integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==",- "dev": true,"requires": {"chownr": "^2.0.0","fs-minipass": "^2.0.0",@@ -12380,8 +12384,7 @@"mkdirp": {"version": "1.0.4","resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",- "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",- "dev": true+ "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw=="}}},@@ -12399,7 +12402,6 @@"version": "5.10.0","resolved": "https://registry.npmjs.org/terser/-/terser-5.10.0.tgz","integrity": "sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA==",- "dev": true,"requires": {"commander": "^2.20.0","source-map": "~0.7.2",@@ -12409,8 +12411,7 @@"source-map": {"version": "0.7.3","resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz",- "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==",- "dev": true+ "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ=="}}},@@ -12418,7 +12419,6 @@"version": "5.3.1","resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.1.tgz","integrity": "sha512-GvlZdT6wPQKbDNW/GDQzZFg/j4vKU96yl2q6mcUkzKOgW4gwf1Z8cZToUCrz31XHlPWH8MVb1r2tFtdDtTGJ7g==",- "dev": true,"requires": {"jest-worker": "^27.4.5","schema-utils": "^3.1.1",@@ -12431,7 +12431,6 @@"version": "3.1.1","resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz","integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==",- "dev": true,"requires": {"@types/json-schema": "^7.0.8","ajv": "^6.12.5",@@ -12441,8 +12440,7 @@"source-map": {"version": "0.6.1","resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",- "dev": true+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="}}},@@ -12450,7 +12448,6 @@"version": "6.0.0","resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz","integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==",- "dev": true,"requires": {"@istanbuljs/schema": "^0.1.2","glob": "^7.1.4",@@ -12460,8 +12457,7 @@"text-table": {"version": "0.2.0","resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",- "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=",- "dev": true+ "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ="},"throat": {"version": "6.0.1",@@ -12472,20 +12468,17 @@"through": {"version": "2.3.8","resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",- "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=",- "dev": true+ "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU="},"thunky": {"version": "1.1.0","resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz",- "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==",- "dev": true+ "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA=="},"tmp": {"version": "0.0.33","resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz","integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==",- "dev": true,"requires": {"os-tmpdir": "~1.0.2"}@@ -12505,7 +12498,6 @@"version": "5.0.1","resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz","integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",- "dev": true,"requires": {"is-number": "^7.0.0"}@@ -12513,8 +12505,7 @@"toidentifier": {"version": "1.0.1","resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",- "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",- "dev": true+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA=="},"totalist": {"version": "1.1.0",@@ -12538,8 +12529,7 @@"tree-kill": {"version": "1.2.2","resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz",- "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==",- "dev": true+ "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A=="},"ts-jest": {"version": "27.1.3",@@ -12685,14 +12675,12 @@"type-fest": {"version": "0.21.3","resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",- "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",- "dev": true+ "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w=="},"type-is": {"version": "1.6.18","resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz","integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",- "dev": true,"requires": {"media-typer": "0.3.0","mime-types": "~2.1.24"@@ -12701,8 +12689,7 @@"typed-assert": {"version": "1.0.8","resolved": "https://registry.npmjs.org/typed-assert/-/typed-assert-1.0.8.tgz",- "integrity": "sha512-5NkbXZUlmCE73Fs7gvkp1XXJWHYetPkg60QnQ2NXQmBYNFxbBr2zA8GCtaH4K2s2WhOmSlgiSTmrjrcm5tnM5g==",- "dev": true+ "integrity": "sha512-5NkbXZUlmCE73Fs7gvkp1XXJWHYetPkg60QnQ2NXQmBYNFxbBr2zA8GCtaH4K2s2WhOmSlgiSTmrjrcm5tnM5g=="},"typedarray-to-buffer": {"version": "3.1.5",@@ -12722,14 +12709,12 @@"unicode-canonical-property-names-ecmascript": {"version": "2.0.0","resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz",- "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==",- "dev": true+ "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ=="},"unicode-match-property-ecmascript": {"version": "2.0.0","resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz","integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==",- "dev": true,"requires": {"unicode-canonical-property-names-ecmascript": "^2.0.0","unicode-property-aliases-ecmascript": "^2.0.0"@@ -12738,20 +12723,17 @@"unicode-match-property-value-ecmascript": {"version": "2.0.0","resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz",- "integrity": "sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==",- "dev": true+ "integrity": "sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw=="},"unicode-property-aliases-ecmascript": {"version": "2.0.0","resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.0.0.tgz",- "integrity": "sha512-5Zfuy9q/DFr4tfO7ZPeVXb1aPoeQSdeFMLpYuFebehDAhbuevLs5yxSZmIFN1tP5F9Wl4IpJrYojg85/zgyZHQ==",- "dev": true+ "integrity": "sha512-5Zfuy9q/DFr4tfO7ZPeVXb1aPoeQSdeFMLpYuFebehDAhbuevLs5yxSZmIFN1tP5F9Wl4IpJrYojg85/zgyZHQ=="},"unique-filename": {"version": "1.1.1","resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz","integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==",- "dev": true,"requires": {"unique-slug": "^2.0.0"}@@ -12760,7 +12742,6 @@"version": "2.0.2","resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz","integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==",- "dev": true,"requires": {"imurmurhash": "^0.1.4"}@@ -12774,14 +12755,12 @@"unpipe": {"version": "1.0.0","resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",- "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=",- "dev": true+ "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw="},"uri-js": {"version": "4.4.0","resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.0.tgz","integrity": "sha512-B0yRTzYdUCCn9n+F4+Gh4yIDtMQcaJsmYBDsTSG8g/OejKBodLQ2IHfN3bM7jUsRXndopT7OIXWdYqc1fjmV6g==",- "dev": true,"requires": {"punycode": "^2.1.0"}@@ -12798,14 +12777,12 @@"util-deprecate": {"version": "1.0.2","resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",- "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",- "dev": true+ "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="},"utils-merge": {"version": "1.0.1","resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",- "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=",- "dev": true+ "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM="},"uuid": {"version": "3.4.0",@@ -12850,8 +12827,7 @@"vary": {"version": "1.1.2","resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",- "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=",- "dev": true+ "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw="},"verror": {"version": "1.10.0",@@ -12895,7 +12871,6 @@"version": "2.3.1","resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.3.1.tgz","integrity": "sha512-x0t0JuydIo8qCNctdDrn1OzH/qDzk2+rdCOC3YzumZ42fiMqmQ7T3xQurykYMhYfHaPHTp4ZxAx2NfUo1K6QaA==",- "dev": true,"requires": {"glob-to-regexp": "^0.4.1","graceful-fs": "^4.1.2"@@ -12905,7 +12880,6 @@"version": "1.7.3","resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz","integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==",- "dev": true,"requires": {"minimalistic-assert": "^1.0.0"}@@ -12914,7 +12888,6 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz","integrity": "sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=",- "dev": true,"requires": {"defaults": "^1.0.3"}@@ -13049,7 +13022,6 @@"version": "5.3.0","resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.0.tgz","integrity": "sha512-MouJz+rXAm9B1OTOYaJnn6rtD/lWZPy2ufQCH3BPs8Rloh/Du6Jze4p7AeLYHkVi0giJnYLaSGDC7S+GM9arhg==",- "dev": true,"requires": {"colorette": "^2.0.10","memfs": "^3.2.2",@@ -13062,7 +13034,6 @@"version": "8.10.0","resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz","integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==",- "dev": true,"requires": {"fast-deep-equal": "^3.1.1","json-schema-traverse": "^1.0.0",@@ -13074,7 +13045,6 @@"version": "5.1.0","resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz","integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==",- "dev": true,"requires": {"fast-deep-equal": "^3.1.3"}@@ -13082,20 +13052,17 @@"json-schema-traverse": {"version": "1.0.0","resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",- "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",- "dev": true+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="},"mime-db": {"version": "1.51.0","resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz",- "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==",- "dev": true+ "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g=="},"mime-types": {"version": "2.1.34","resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz","integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==",- "dev": true,"requires": {"mime-db": "1.51.0"}@@ -13104,7 +13071,6 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz","integrity": "sha512-1edyXKgh6XnJsJSQ8mKWXnN/BVaIbFMLpouRUrXgVq7WYne5kw3MW7UPhO44uRXQSIpTSXoJbmrR2X0w9kUTyg==",- "dev": true,"requires": {"@types/json-schema": "^7.0.9","ajv": "^8.8.0",@@ -13118,7 +13084,6 @@"version": "4.7.3","resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.7.3.tgz","integrity": "sha512-mlxq2AsIw2ag016nixkzUkdyOE8ST2GTy34uKSABp1c4nhjZvH90D5ZRR+UOLSsG4Z3TFahAi72a3ymRtfRm+Q==",- "dev": true,"requires": {"@types/bonjour": "^3.5.9","@types/connect-history-api-fallback": "^1.3.5",@@ -13155,7 +13120,6 @@"version": "8.10.0","resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz","integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==",- "dev": true,"requires": {"fast-deep-equal": "^3.1.1","json-schema-traverse": "^1.0.0",@@ -13167,7 +13131,6 @@"version": "5.1.0","resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz","integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==",- "dev": true,"requires": {"fast-deep-equal": "^3.1.3"}@@ -13175,20 +13138,17 @@"ansi-regex": {"version": "6.0.1","resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz",- "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==",- "dev": true+ "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA=="},"json-schema-traverse": {"version": "1.0.0","resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",- "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",- "dev": true+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="},"schema-utils": {"version": "4.0.0","resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.0.tgz","integrity": "sha512-1edyXKgh6XnJsJSQ8mKWXnN/BVaIbFMLpouRUrXgVq7WYne5kw3MW7UPhO44uRXQSIpTSXoJbmrR2X0w9kUTyg==",- "dev": true,"requires": {"@types/json-schema": "^7.0.9","ajv": "^8.8.0",@@ -13200,7 +13160,6 @@"version": "7.0.1","resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz","integrity": "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==",- "dev": true,"requires": {"ansi-regex": "^6.0.1"}@@ -13208,8 +13167,7 @@"ws": {"version": "8.5.0","resolved": "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz",- "integrity": "sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==",- "dev": true+ "integrity": "sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg=="}}},@@ -13217,7 +13175,6 @@"version": "5.8.0","resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz","integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==",- "dev": true,"requires": {"clone-deep": "^4.0.1","wildcard": "^2.0.0"@@ -13226,14 +13183,12 @@"webpack-sources": {"version": "3.2.3","resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz",- "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==",- "dev": true+ "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w=="},"webpack-subresource-integrity": {"version": "5.1.0","resolved": "https://registry.npmjs.org/webpack-subresource-integrity/-/webpack-subresource-integrity-5.1.0.tgz","integrity": "sha512-sacXoX+xd8r4WKsy9MvH/q/vBtEHr86cpImXwyg74pFIpERKt6FmB8cXpeuh0ZLgclOlHI4Wcll7+R5L02xk9Q==",- "dev": true,"requires": {"typed-assert": "^1.0.8"}@@ -13242,7 +13197,6 @@"version": "0.7.4","resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz","integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==",- "dev": true,"requires": {"http-parser-js": ">=0.5.1","safe-buffer": ">=5.1.0",@@ -13252,8 +13206,7 @@"websocket-extensions": {"version": "0.1.4","resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz",- "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==",- "dev": true+ "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg=="},"whatwg-encoding": {"version": "1.0.5",@@ -13283,7 +13236,6 @@"version": "2.0.2","resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz","integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",- "dev": true,"requires": {"isexe": "^2.0.0"}@@ -13306,8 +13258,7 @@"wildcard": {"version": "2.0.0","resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz",- "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==",- "dev": true+ "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw=="},"word-wrap": {"version": "1.2.3",@@ -13407,14 +13358,12 @@"yallist": {"version": "4.0.0","resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",- "dev": true+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="},"yaml": {"version": "1.10.2","resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",- "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",- "dev": true+ "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg=="},"yargs": {"version": "17.3.1",diff --git a/UI/Web/package.json b/UI/Web/package.jsonindex 8d1020079..a089bf6f4 100644--- a/UI/Web/package.json+++ b/UI/Web/package.json@@ -27,18 +27,23 @@"@angular/platform-browser-dynamic": "~13.2.2","@angular/router": "~13.2.2","@fortawesome/fontawesome-free": "^6.0.0",+ "@iharbeck/ngx-virtual-scroller": "^13.0.4","@microsoft/signalr": "^6.0.2",- "@ng-bootstrap/ng-bootstrap": "^12.0.0",+ "@ng-bootstrap/ng-bootstrap": "^12.1.2","@popperjs/core": "^2.11.2","@types/file-saver": "^2.0.5","bootstrap": "^5.1.2","bowser": "^2.11.0",+ "eventsource": "^2.0.2","file-saver": "^2.0.5","lazysizes": "^5.3.2","ng-circle-progress": "^1.6.0","ngx-color-picker": "^12.0.0",+ "ngx-extended-pdf-viewer": "^13.5.2","ngx-file-drop": "^13.0.0",+ "ngx-infinite-scroll": "^13.0.2","ngx-toastr": "^14.2.1",+ "requires": "^1.0.2","rxjs": "~7.5.4","swiper": "^8.0.6","tslib": "^2.3.1",diff --git a/UI/Web/src/app/_models/chapter-metadata.ts b/UI/Web/src/app/_models/chapter-metadata.tsindex 4f877cd5b..edda5dec4 100644--- a/UI/Web/src/app/_models/chapter-metadata.ts+++ b/UI/Web/src/app/_models/chapter-metadata.ts@@ -17,6 +17,8 @@ export interface ChapterMetadata {summary: string;count: number;totalCount: number;+ wordCount: number;+genres: Array<Genre>;diff --git a/UI/Web/src/app/_models/chapter.ts b/UI/Web/src/app/_models/chapter.tsindex 96e4d894c..0fedbbb80 100644--- a/UI/Web/src/app/_models/chapter.ts+++ b/UI/Web/src/app/_models/chapter.ts@@ -1,4 +1,7 @@+import { HourEstimateRange } from './hour-estimate-range';import { MangaFile } from './manga-file';+import { AgeRating } from './metadata/age-rating';+import { AgeRatingDto } from './metadata/age-rating-dto';/*** Chapter table object. This does not have metadata on it, use ChapterMetadata which is the same Chapter but with those fields.@@ -23,4 +26,19 @@ export interface Chapter {* Actual name of the Chapter if populated in underlying metadata*/titleName: string;+ /**+ * Summary for the chapter+ */+ summary?: string;+ minHoursToRead: number;+ maxHoursToRead: number;+ avgHoursToRead: number;++ ageRating: AgeRating;+ releaseDate: string;+ wordCount: number;+ /**+ * 'Volume number'. Only available for SeriesDetail+ */+ volumeTitle?: string;}diff --git a/UI/Web/src/app/_models/events/user-update-event.ts b/UI/Web/src/app/_models/events/user-update-event.tsnew file mode 100644index 000000000..95db9f50b--- /dev/null+++ b/UI/Web/src/app/_models/events/user-update-event.ts@@ -0,0 +1,4 @@+export interface UserUpdateEvent {+ userId: number;+ userName: string;+}\ No newline at end of filediff --git a/UI/Web/src/app/_models/hour-estimate-range.ts b/UI/Web/src/app/_models/hour-estimate-range.tsnew file mode 100644index 000000000..f94ac569b--- /dev/null+++ b/UI/Web/src/app/_models/hour-estimate-range.ts@@ -0,0 +1,6 @@+export interface HourEstimateRange{+ minHours: number;+ maxHours: number;+ avgHours: number;+ //hasProgress: boolean;+}\ No newline at end of filediff --git a/UI/Web/src/app/_models/job/job.ts b/UI/Web/src/app/_models/job/job.tsnew file mode 100644index 000000000..00ce0dffa--- /dev/null+++ b/UI/Web/src/app/_models/job/job.ts@@ -0,0 +1,7 @@+export interface Job {+ id: string;+ title: string;+ cron: string;+ createdAt: string;+ lastExecution: string;+}\ No newline at end of filediff --git a/UI/Web/src/app/_models/jumpbar/jump-key.ts b/UI/Web/src/app/_models/jumpbar/jump-key.tsnew file mode 100644index 000000000..e49c9eddc--- /dev/null+++ b/UI/Web/src/app/_models/jumpbar/jump-key.ts@@ -0,0 +1,5 @@+export interface JumpKey {+ size: number;+ key: string;+ title: string;+}\ No newline at end of filediff --git a/UI/Web/src/app/_models/page-layout-mode.ts b/UI/Web/src/app/_models/page-layout-mode.tsnew file mode 100644index 000000000..00b3e9c2f--- /dev/null+++ b/UI/Web/src/app/_models/page-layout-mode.ts@@ -0,0 +1,10 @@+export enum PageLayoutMode {+ /**+ * Use Cards for laying out data+ */+ Cards = 0,+ /**+ * Use list style for laying out items+ */+ List = 1+}\ No newline at end of filediff --git a/UI/Web/src/app/_models/preferences/preferences.ts b/UI/Web/src/app/_models/preferences/preferences.tsindex 874dd09a9..da9d3022f 100644--- a/UI/Web/src/app/_models/preferences/preferences.ts+++ b/UI/Web/src/app/_models/preferences/preferences.ts@@ -1,6 +1,7 @@import { LayoutMode } from 'src/app/manga-reader/_models/layout-mode';import { BookPageLayoutMode } from '../book-page-layout-mode';+import { PageLayoutMode } from '../page-layout-mode';import { PageSplitOption } from './page-split-option';import { ReaderMode } from './reader-mode';import { ReadingDirection } from './reading-direction';@@ -31,6 +32,8 @@ export interface Preferences {// Globaltheme: SiteTheme;+ globalPageLayoutMode: PageLayoutMode;+ blurUnreadSummaries: boolean;}export const readingDirections = [{text: 'Left to Right', value: ReadingDirection.LeftToRight}, {text: 'Right to Left', value: ReadingDirection.RightToLeft}];@@ -39,3 +42,4 @@ export const pageSplitOptions = [{text: 'Fit to Screen', value: PageSplitOption.export const readingModes = [{text: 'Left to Right', value: ReaderMode.LeftRight}, {text: 'Up to Down', value: ReaderMode.UpDown}, {text: 'Webtoon', value: ReaderMode.Webtoon}];export const layoutModes = [{text: 'Single', value: LayoutMode.Single}, {text: 'Double', value: LayoutMode.Double}, {text: 'Double (Manga)', value: LayoutMode.DoubleReversed}];export const bookLayoutModes = [{text: 'Default', value: BookPageLayoutMode.Default}, {text: '1 Column', value: BookPageLayoutMode.Column1}, {text: '2 Column', value: BookPageLayoutMode.Column2}];+export const pageLayoutModes = [{text: 'Cards', value: PageLayoutMode.Cards}, {text: 'List', value: PageLayoutMode.List}];diff --git a/UI/Web/src/app/_models/reading-list.ts b/UI/Web/src/app/_models/reading-list.tsindex da7932acc..3a1dd7297 100644--- a/UI/Web/src/app/_models/reading-list.ts+++ b/UI/Web/src/app/_models/reading-list.ts@@ -21,4 +21,8 @@ export interface ReadingList {promoted: boolean;coverImageLocked: boolean;items: Array<ReadingListItem>;+ /**+ * If this is empty or null, the cover image isn't set. Do not use this externally.+ */+ coverImage: string;}\ No newline at end of filediff --git a/UI/Web/src/app/_models/series-filter.ts b/UI/Web/src/app/_models/series-filter.tsindex c2b823ce3..e346ccd4f 100644--- a/UI/Web/src/app/_models/series-filter.ts+++ b/UI/Web/src/app/_models/series-filter.ts@@ -41,7 +41,8 @@ export enum SortField {SortName = 1,Created = 2,LastModified = 3,- LastChapterAdded = 4+ LastChapterAdded = 4,+ TimeToRead = 5}export interface ReadStatus {diff --git a/UI/Web/src/app/_models/series.ts b/UI/Web/src/app/_models/series.tsindex 17b489b6e..8ceda4fc3 100644--- a/UI/Web/src/app/_models/series.ts+++ b/UI/Web/src/app/_models/series.ts@@ -48,4 +48,11 @@ export interface Series {* DateTime representing last time a chapter was added to the Series*/lastChapterAdded: string;+ /**+ * Number of words in the series+ */+ wordCount: number;+ minHoursToRead: number;+ maxHoursToRead: number;+ avgHoursToRead: number;}diff --git a/UI/Web/src/app/_models/system/directory-dto.ts b/UI/Web/src/app/_models/system/directory-dto.tsnew file mode 100644index 000000000..d666e59b8--- /dev/null+++ b/UI/Web/src/app/_models/system/directory-dto.ts@@ -0,0 +1,8 @@+export interface DirectoryDto {+ name: string;+ fullPath: string;+ /**+ * This is only on the UI to disable paths+ */+ disabled: boolean;+}\ No newline at end of filediff --git a/UI/Web/src/app/_models/volume.ts b/UI/Web/src/app/_models/volume.tsindex 675e9612e..e1d48f3fb 100644--- a/UI/Web/src/app/_models/volume.ts+++ b/UI/Web/src/app/_models/volume.ts@@ -1,4 +1,5 @@import { Chapter } from './chapter';+import { HourEstimateRange } from './hour-estimate-range';export interface Volume {id: number;@@ -8,5 +9,12 @@ export interface Volume {lastModified: string;pages: number;pagesRead: number;- chapters: Array<Chapter>; // TODO: Validate any cases where this is undefined+ chapters: Array<Chapter>;+ /**+ * This is only available on the object when fetched for SeriesDetail+ */+ timeEstimate?: HourEstimateRange;+ minHoursToRead: number;+ maxHoursToRead: number;+ avgHoursToRead: number;}diff --git a/UI/Web/src/app/_services/account.service.ts b/UI/Web/src/app/_services/account.service.tsindex 6238c7b6a..51a468c77 100644--- a/UI/Web/src/app/_services/account.service.ts+++ b/UI/Web/src/app/_services/account.service.ts@@ -1,14 +1,15 @@import { HttpClient } from '@angular/common/http';import { Injectable, OnDestroy } from '@angular/core';import { Observable, of, ReplaySubject, Subject } from 'rxjs';-import { map, takeUntil } from 'rxjs/operators';+import { filter, map, switchMap, takeUntil } from 'rxjs/operators';import { environment } from 'src/environments/environment';import { Preferences } from '../_models/preferences/preferences';import { User } from '../_models/user';import { Router } from '@angular/router';-import { MessageHubService } from './message-hub.service';+import { EVENTS, MessageHubService } from './message-hub.service';import { ThemeService } from './theme.service';import { InviteUserResponse } from '../_models/invite-user-response';+import { UserUpdateEvent } from '../_models/events/user-update-event';@Injectable({providedIn: 'root'@@ -32,7 +33,13 @@ export class AccountService implements OnDestroy {private readonly onDestroy = new Subject<void>();constructor(private httpClient: HttpClient, private router: Router,- private messageHub: MessageHubService, private themeService: ThemeService) {}+ private messageHub: MessageHubService, private themeService: ThemeService) {+ messageHub.messages$.pipe(filter(evt => evt.event === EVENTS.UserUpdate),+ map(evt => evt.payload as UserUpdateEvent),+ filter(userUpdateEvent => userUpdateEvent.userName === this.currentUser?.username),+ switchMap(() => this.refreshToken()))+ .subscribe(() => {});+ }ngOnDestroy(): void {this.onDestroy.next();@@ -85,8 +92,9 @@ export class AccountService implements OnDestroy {this.themeService.setTheme(this.themeService.defaultTheme);}- this.currentUserSource.next(user);this.currentUser = user;+ this.currentUserSource.next(user);+if (this.currentUser !== undefined) {this.startRefreshTokenTimer();} else {@@ -211,6 +219,7 @@ export class AccountService implements OnDestroy {private refreshToken() {if (this.currentUser === null || this.currentUser === undefined) return of();+ //console.log('refreshing token and updating user account');return this.httpClient.post<{token: string, refreshToken: string}>(this.baseUrl + 'account/refresh-token', {token: this.currentUser.token, refreshToken: this.currentUser.refreshToken}).pipe(map(user => {if (this.currentUser) {@@ -218,8 +227,7 @@ export class AccountService implements OnDestroy {this.currentUser.refreshToken = user.refreshToken;}- this.currentUserSource.next(this.currentUser);- this.startRefreshTokenTimer();+ this.setCurrentUser(this.currentUser);return user;}));}diff --git a/UI/Web/src/app/_services/action-factory.service.ts b/UI/Web/src/app/_services/action-factory.service.tsindex b67a162bd..5d728f80c 100644--- a/UI/Web/src/app/_services/action-factory.service.ts+++ b/UI/Web/src/app/_services/action-factory.service.ts@@ -9,20 +9,53 @@ import { Volume } from '../_models/volume';import { AccountService } from './account.service';export enum Action {+ /**+ * Mark entity as read+ */MarkAsRead = 0,+ /**+ * Mark entity as unread+ */MarkAsUnread = 1,+ /**+ * Invoke a Scan Library+ */ScanLibrary = 2,+ /**+ * Delete the entity+ */Delete = 3,+ /**+ * Open edit modal+ */Edit = 4,+ /**+ * Open details modal+ */Info = 5,+ /**+ * Invoke a refresh covers+ */RefreshMetadata = 6,+ /**+ * Download the entity+ */Download = 7,/**- * @deprecated This is no longer supported. Use the dedicated page instead+ * Invoke an Analyze Files which calculates word count+ */+ AnalyzeFiles = 8,+ /**+ * Read in incognito mode aka no progress tracking*/- Bookmarks = 8,IncognitoRead = 9,+ /**+ * Add to reading list+ */AddToReadingList = 10,+ /**+ * Add to collection+ */AddToCollection = 11,/*** Essentially a download, but handled differently. Needed so card bubbles it up for handling@@ -31,7 +64,11 @@ export enum Action {/*** Open Series detail page for said series*/- ViewSeries = 13+ ViewSeries = 13,+ /**+ * Open the reader for entity+ */+ Read = 14,}export interface ActionItem<T> {@@ -97,6 +134,13 @@ export class ActionFactoryService {requiresAdmin: true});+ this.seriesActions.push({+ action: Action.AnalyzeFiles,+ title: 'Analyze Files',+ callback: this.dummyCallback,+ requiresAdmin: true+ });+this.seriesActions.push({action: Action.Delete,title: 'Delete',@@ -131,6 +175,13 @@ export class ActionFactoryService {callback: this.dummyCallback,requiresAdmin: true});++ this.libraryActions.push({+ action: Action.AnalyzeFiles,+ title: 'Analyze Files',+ callback: this.dummyCallback,+ requiresAdmin: true+ });this.chapterActions.push({action: Action.Edit,@@ -200,11 +251,6 @@ export class ActionFactoryService {return actions;}- filterBookmarksForFormat(action: ActionItem<Series>, series: Series) {- if (action.action === Action.Bookmarks && series?.format === MangaFormat.EPUB) return false;- return true;- }-dummyCallback(action: Action, data: any) {}_resetActions() {diff --git a/UI/Web/src/app/_services/action.service.ts b/UI/Web/src/app/_services/action.service.tsindex 7f05a02d8..cee5ea59e 100644--- a/UI/Web/src/app/_services/action.service.ts+++ b/UI/Web/src/app/_services/action.service.ts@@ -2,7 +2,7 @@ import { Injectable, OnDestroy } from '@angular/core';import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap';import { ToastrService } from 'ngx-toastr';import { Subject } from 'rxjs';-import { take } from 'rxjs/operators';+import { finalize, take, takeWhile } from 'rxjs/operators';import { BulkAddToCollectionComponent } from '../cards/_modals/bulk-add-to-collection/bulk-add-to-collection.component';import { AddToListModalComponent, ADD_FLOW } from '../reading-list/_modals/add-to-list-modal/add-to-list-modal.component';import { EditReadingListModalComponent } from '../reading-list/_modals/edit-reading-list-modal/edit-reading-list-modal.component';@@ -64,6 +64,7 @@ export class ActionService implements OnDestroy {});}+/*** Request a refresh of Metadata for a given Library* @param library Partial Library, must have id and name populated@@ -90,6 +91,32 @@ export class ActionService implements OnDestroy {});}+ /**+ * Request an analysis of files for a given Library (currently just word count)+ * @param library Partial Library, must have id and name populated+ * @param callback Optional callback to perform actions after API completes+ * @returns+ */+ async analyzeFiles(library: Partial<Library>, callback?: LibraryActionCallback) {+ if (!library.hasOwnProperty('id') || library.id === undefined) {+ return;+ }++ if (!await this.confirmService.alert('This is a long running process. Please give it the time to complete before invoking again.')) {+ if (callback) {+ callback(library);+ }+ return;+ }++ this.libraryService.analyze(library?.id).pipe(take(1)).subscribe((res: any) => {+ this.toastr.info('Library file analysis queued for ' + library.name);+ if (callback) {+ callback(library);+ }+ });+ }+/*** Mark a series as read; updates the series pagesRead* @param series Series, must have id and name populated@@ -121,7 +148,7 @@ export class ActionService implements OnDestroy {}/**- * Start a file scan for a Series (currently just does the library not the series directly)+ * Start a file scan for a Series* @param series Series, must have libraryId and name populated* @param callback Optional callback to perform actions after API completes*/@@ -134,6 +161,20 @@ export class ActionService implements OnDestroy {});}+ /**+ * Start a file scan for analyze files for a Series+ * @param series Series, must have libraryId and name populated+ * @param callback Optional callback to perform actions after API completes+ */+ analyzeFilesForSeries(series: Series, callback?: SeriesActionCallback) {+ this.seriesService.analyzeFiles(series.libraryId, series.id).pipe(take(1)).subscribe((res: any) => {+ this.toastr.info('Scan queued for ' + series.name);+ if (callback) {+ callback(series);+ }+ });+ }+/*** Start a metadata refresh for a Series* @param series Series, must have libraryId, id and name populated@@ -486,5 +527,4 @@ export class ActionService implements OnDestroy {}});}-}diff --git a/UI/Web/src/app/_services/library.service.ts b/UI/Web/src/app/_services/library.service.tsindex 697de7b1c..ce03c2666 100644--- a/UI/Web/src/app/_services/library.service.ts+++ b/UI/Web/src/app/_services/library.service.ts@@ -3,8 +3,10 @@ import { Injectable } from '@angular/core';import { of } from 'rxjs';import { map, take } from 'rxjs/operators';import { environment } from 'src/environments/environment';+import { JumpKey } from '../_models/jumpbar/jump-key';import { Library, LibraryType } from '../_models/library';import { SearchResultGroup } from '../_models/search/search-result-group';+import { DirectoryDto } from '../_models/system/directory-dto';@Injectable({@@ -55,7 +57,11 @@ export class LibraryService {query = '?path=' + encodeURIComponent(rootPath);}- return this.httpClient.get<string[]>(this.baseUrl + 'library/list' + query);+ return this.httpClient.get<DirectoryDto[]>(this.baseUrl + 'library/list' + query);+ }++ getJumpBar(libraryId: number) {+ return this.httpClient.get<JumpKey[]>(this.baseUrl + 'library/jump-bar?libraryId=' + libraryId);}getLibraries() {@@ -74,6 +80,10 @@ export class LibraryService {return this.httpClient.post(this.baseUrl + 'library/scan?libraryId=' + libraryId, {});}+ analyze(libraryId: number) {+ return this.httpClient.post(this.baseUrl + 'library/analyze?libraryId=' + libraryId, {});+ }+refreshMetadata(libraryId: number) {return this.httpClient.post(this.baseUrl + 'library/refresh-metadata?libraryId=' + libraryId, {});}diff --git a/UI/Web/src/app/_services/message-hub.service.ts b/UI/Web/src/app/_services/message-hub.service.tsindex 852d8a906..5b89d51e6 100644--- a/UI/Web/src/app/_services/message-hub.service.ts+++ b/UI/Web/src/app/_services/message-hub.service.ts@@ -7,6 +7,7 @@ import { environment } from 'src/environments/environment';import { LibraryModifiedEvent } from '../_models/events/library-modified-event';import { NotificationProgressEvent } from '../_models/events/notification-progress-event';import { ThemeProgressEvent } from '../_models/events/theme-progress-event';+import { UserUpdateEvent } from '../_models/events/user-update-event';import { User } from '../_models/user';export enum EVENTS {@@ -31,7 +32,7 @@ export enum EVENTS {*/DownloadProgress = 'DownloadProgress',/**- * A generic progress event+ * A generic progress event*/NotificationProgress = 'NotificationProgress',/**@@ -58,6 +59,18 @@ export enum EVENTS {* A user updates an entities read progress*/UserProgressUpdate = 'UserProgressUpdate',+ /**+ * A user updates account or preferences+ */+ UserUpdate = 'UserUpdate',+ /**+ * When bulk bookmarks are being converted+ */+ ConvertBookmarksProgress = 'ConvertBookmarksProgress',+ /**+ * When files are being scanned to calculate word count+ */+ WordCountAnalyzerProgress = 'WordCountAnalyzerProgress'}export interface Message<T> {@@ -94,15 +107,15 @@ export class MessageHubService {/*** Tests that an event is of the type passed- * @param event- * @param eventType- * @returns+ * @param event+ * @param eventType+ * @returns*/public isEventType(event: Message<any>, eventType: EVENTS) {if (event.event == EVENTS.NotificationProgress) {const notification = event.payload as NotificationProgressEvent;return notification.eventType.toLowerCase() == eventType.toLowerCase();- }+ }return event.event === eventType;}@@ -139,6 +152,20 @@ export class MessageHubService {});});+ this.hubConnection.on(EVENTS.ConvertBookmarksProgress, resp => {+ this.messagesSource.next({+ event: EVENTS.ConvertBookmarksProgress,+ payload: resp.body+ });+ });++ this.hubConnection.on(EVENTS.WordCountAnalyzerProgress, resp => {+ this.messagesSource.next({+ event: EVENTS.WordCountAnalyzerProgress,+ payload: resp.body+ });+ });+this.hubConnection.on(EVENTS.LibraryModified, resp => {this.messagesSource.next({event: EVENTS.LibraryModified,@@ -175,6 +202,13 @@ export class MessageHubService {});});+ this.hubConnection.on(EVENTS.UserUpdate, resp => {+ this.messagesSource.next({+ event: EVENTS.UserUpdate,+ payload: resp.body as UserUpdateEvent+ });+ });+this.hubConnection.on(EVENTS.Error, resp => {this.messagesSource.next({event: EVENTS.Error,diff --git a/UI/Web/src/app/_services/metadata.service.ts b/UI/Web/src/app/_services/metadata.service.tsindex f99410894..a8b1e9b3e 100644--- a/UI/Web/src/app/_services/metadata.service.ts+++ b/UI/Web/src/app/_services/metadata.service.ts@@ -20,8 +20,9 @@ export class MetadataService {baseUrl = environment.apiUrl;private ageRatingTypes: {[key: number]: string} | undefined = undefined;+ private validLanguages: Array<Language> = [];- constructor(private httpClient: HttpClient, private utilityService: UtilityService) { }+ constructor(private httpClient: HttpClient) { }getAgeRating(ageRating: AgeRating) {if (this.ageRatingTypes != undefined && this.ageRatingTypes.hasOwnProperty(ageRating)) {@@ -81,7 +82,12 @@ export class MetadataService {* All the potential language tags there can be*/getAllValidLanguages() {- return this.httpClient.get<Array<Language>>(this.baseUrl + 'metadata/all-languages');+ if (this.validLanguages != undefined && this.validLanguages.length > 0) {+ return of(this.validLanguages);+ }+ return this.httpClient.get<Array<Language>>(this.baseUrl + 'metadata/all-languages').pipe(map(l => this.validLanguages = l));++ //return this.httpClient.get<Array<Language>>(this.baseUrl + 'metadata/all-languages').pipe();}getAllPeople(libraries?: Array<number>) {@@ -91,4 +97,8 @@ export class MetadataService {}return this.httpClient.get<Array<Person>>(this.baseUrl + method);}++ getChapterSummary(chapterId: number) {+ return this.httpClient.get<string>(this.baseUrl + 'metadata/chapter-summary?chapterId=' + chapterId, {responseType: 'text' as 'json'});+ }}diff --git a/UI/Web/src/app/_services/reader.service.ts b/UI/Web/src/app/_services/reader.service.tsindex b41efcb93..8d6986259 100644--- a/UI/Web/src/app/_services/reader.service.ts+++ b/UI/Web/src/app/_services/reader.service.ts@@ -4,10 +4,14 @@ import { environment } from 'src/environments/environment';import { ChapterInfo } from '../manga-reader/_models/chapter-info';import { UtilityService } from '../shared/_services/utility.service';import { Chapter } from '../_models/chapter';+import { HourEstimateRange } from '../_models/hour-estimate-range';+import { MangaFormat } from '../_models/manga-format';import { BookmarkInfo } from '../_models/manga-reader/bookmark-info';import { PageBookmark } from '../_models/page-bookmark';import { ProgressBookmark } from '../_models/progress-bookmark';-import { Volume } from '../_models/volume';++export const CHAPTER_ID_DOESNT_EXIST = -1;+export const CHAPTER_ID_NOT_FETCHED = -2;@Injectable({providedIn: 'root'@@ -21,6 +25,22 @@ export class ReaderService {constructor(private httpClient: HttpClient, private utilityService: UtilityService) { }+ getNavigationArray(libraryId: number, seriesId: number, chapterId: number, format: MangaFormat) {+ if (format === undefined) format = MangaFormat.ARCHIVE;++ if (format === MangaFormat.EPUB) {+ return ['library', libraryId, 'series', seriesId, 'book', chapterId];+ } else if (format === MangaFormat.PDF) {+ return ['library', libraryId, 'series', seriesId, 'pdf', chapterId];+ } else {+ return ['library', libraryId, 'series', seriesId, 'manga', chapterId];+ }+ }++ downloadPdf(chapterId: number) {+ return this.baseUrl + 'reader/pdf?chapterId=' + chapterId;+ }+bookmark(seriesId: number, volumeId: number, chapterId: number, page: number) {return this.httpClient.post(this.baseUrl + 'reader/bookmark', {seriesId, volumeId, chapterId, page});}@@ -51,7 +71,7 @@ export class ReaderService {/*** Used exclusively for reading multiple bookmarks from a series- * @param seriesId+ * @param seriesId*/getBookmarkInfo(seriesId: number) {return this.httpClient.get<BookmarkInfo>(this.baseUrl + 'reader/bookmark-info?seriesId=' + seriesId);@@ -100,7 +120,7 @@ export class ReaderService {markVolumeUnread(seriesId: number, volumeId: number) {return this.httpClient.post(this.baseUrl + 'reader/mark-volume-unread', {seriesId, volumeId});}-+getNextChapter(seriesId: number, volumeId: number, currentChapterId: number, readingListId: number = -1) {if (readingListId > 0) {@@ -124,6 +144,11 @@ export class ReaderService {return this.httpClient.get<Chapter>(this.baseUrl + 'reader/continue-point?seriesId=' + seriesId);}+ // TODO: Cache this information+ getTimeLeft(seriesId: number) {+ return this.httpClient.get<HourEstimateRange>(this.baseUrl + 'reader/time-left?seriesId=' + seriesId);+ }+/*** Captures current body color and forces background color to be black. Call @see resetOverrideStyles() on destroy of component to revert changes*/@@ -145,7 +170,7 @@ export class ReaderService {/*** Parses out the page number from a Image src url* @param imageSrc Src attribute of Image- * @returns+ * @returns*/imageUrlToPageNum(imageSrc: string) {if (imageSrc === undefined || imageSrc === '') { return -1; }@@ -187,7 +212,7 @@ export class ReaderService {}enterFullscreen(el: Element, callback?: VoidFunction) {- if (!document.fullscreenElement) {+ if (!document.fullscreenElement) {if (el.requestFullscreen) {el.requestFullscreen().then(() => {if (callback) {@@ -209,7 +234,7 @@ export class ReaderService {}/**- *+ ** @returns If document is in fullscreen mode*/checkFullscreenMode() {diff --git a/UI/Web/src/app/_services/recommendation.service.ts b/UI/Web/src/app/_services/recommendation.service.tsindex ae3360ec3..b6795416f 100644--- a/UI/Web/src/app/_services/recommendation.service.ts+++ b/UI/Web/src/app/_services/recommendation.service.ts@@ -22,6 +22,13 @@ export class RecommendationService {.pipe(map(response => this.utilityService.createPaginatedResult(response)));}+ getQuickCatchupReads(libraryId: number, pageNum?: number, itemsPerPage?: number) {+ let params = new HttpParams();+ params = this.utilityService.addPaginationIfExists(params, pageNum, itemsPerPage);+ return this.httpClient.get<PaginatedResult<Series[]>>(this.baseUrl + 'recommended/quick-catchup-reads?libraryId=' + libraryId, {observe: 'response', params})+ .pipe(map(response => this.utilityService.createPaginatedResult(response)));+ }+getHighlyRated(libraryId: number, pageNum?: number, itemsPerPage?: number) {let params = new HttpParams();params = this.utilityService.addPaginationIfExists(params, pageNum, itemsPerPage);diff --git a/UI/Web/src/app/_services/scroll.service.ts b/UI/Web/src/app/_services/scroll.service.tsindex 7c4b07ea2..7137c5aeb 100644--- a/UI/Web/src/app/_services/scroll.service.ts+++ b/UI/Web/src/app/_services/scroll.service.ts@@ -1,4 +1,4 @@-import { ElementRef, Injectable } from '@angular/core';+import { Injectable } from '@angular/core';@Injectable({providedIn: 'root'diff --git a/UI/Web/src/app/_services/series.service.ts b/UI/Web/src/app/_services/series.service.tsindex e62ec97a9..288e7dd01 100644--- a/UI/Web/src/app/_services/series.service.ts+++ b/UI/Web/src/app/_services/series.service.ts@@ -145,6 +145,10 @@ export class SeriesService {return this.httpClient.post(this.baseUrl + 'series/scan', {libraryId: libraryId, seriesId: seriesId});}+ analyzeFiles(libraryId: number, seriesId: number) {+ return this.httpClient.post(this.baseUrl + 'series/analyze', {libraryId: libraryId, seriesId: seriesId});+ }+getMetadata(seriesId: number) {return this.httpClient.get<SeriesMetadata>(this.baseUrl + 'series/metadata?seriesId=' + seriesId).pipe(map(items => {items?.collectionTags.forEach(tag => tag.coverImage = this.imageService.getCollectionCoverImage(tag.id));diff --git a/UI/Web/src/app/_services/server.service.ts b/UI/Web/src/app/_services/server.service.tsindex fcc94435c..0d51a9120 100644--- a/UI/Web/src/app/_services/server.service.ts+++ b/UI/Web/src/app/_services/server.service.ts@@ -3,6 +3,7 @@ import { Injectable } from '@angular/core';import { environment } from 'src/environments/environment';import { ServerInfo } from '../admin/_models/server-info';import { UpdateVersionEvent } from '../_models/events/update-version-event';+import { Job } from '../_models/job/job';@Injectable({providedIn: 'root'@@ -40,4 +41,12 @@ export class ServerService {isServerAccessible() {return this.httpClient.get<boolean>(this.baseUrl + 'server/accessible');}++ getReoccuringJobs() {+ return this.httpClient.get<Job[]>(this.baseUrl + 'server/jobs');+ }++ convertBookmarks() {+ return this.httpClient.post(this.baseUrl + 'server/convert-bookmarks', {});+ }}diff --git a/UI/Web/src/app/admin/_modals/directory-picker/directory-picker.component.html b/UI/Web/src/app/admin/_modals/directory-picker/directory-picker.component.htmlindex 58a9ec9d3..d7c9b08f0 100644--- a/UI/Web/src/app/admin/_modals/directory-picker/directory-picker.component.html+++ b/UI/Web/src/app/admin/_modals/directory-picker/directory-picker.component.html@@ -3,49 +3,61 @@<button type="button" class="btn-close" aria-label="Close" (click)="close()"></button></div><div class="modal-body">+<div class="mb-3">- <label for="filter" class="form-label">Filter</label>+ <label for="filter" class="form-label">Path</label><div class="input-group">- <input id="filter" autocomplete="off" class="form-control" [(ngModel)]="filterQuery" type="text" aria-describedby="reset-input">- <button class="btn btn-outline-secondary" type="button" id="reset-input" (click)="filterQuery = '';">Clear</button>+ <input id="typeahead-focus" type="text" class="form-control" [(ngModel)]="path" [ngbTypeahead]="search"+ (focus)="focus$.next($any($event).target.value)" (click)="click$.next($any($event).target.value)"+ (ngModelChange)="updateTable()" #instance="ngbTypeahead" placeholder="Start typing or select path"+ [resultTemplate]="rt" /></div>+ <ng-template #rt let-r="result" let-t="term">+ <ngb-highlight [result]="r" [term]="t"></ngb-highlight>+ </ng-template></div>+<nav aria-label="directory breadcrumb"><ol class="breadcrumb" *ngIf="routeStack.peek() !== undefined; else noBreadcrumb">- <li class="breadcrumb-item {{route === routeStack.peek() ? 'active' : ''}}" *ngFor="let route of routeStack.items; let index = index">+ <li class="breadcrumb-item {{route === routeStack.peek() ? 'active' : ''}}"+ *ngFor="let route of routeStack.items; let index = index"><ng-container *ngIf="route === routeStack.peek(); else nonActive">{{route}}- </ng-container>+ </ng-container><ng-template #nonActive><a href="javascript:void(0);" (click)="navigateTo(index)">{{route}}</a></ng-template>- </li>+ </li></ol><ng-template #noBreadcrumb>- <div class="breadcrumb">Select a folder to view breadcrumb. Don't see your directory, try checking / first.</div>+ <div class="breadcrumb">Select a folder to view breadcrumb. Don't see your directory, try checking / first.+ </div></ng-template></nav>- <ul class="list-group">- <div class="list-group-item list-group-item-action">- <button (click)="goBack()" class="btn btn-secondary" [disabled]="routeStack.peek() === undefined">- <i class="fa fa-arrow-left me-2" aria-hidden="true"></i>- Back- </button>- <button type="button" class="btn btn-primary float-end" [disabled]="routeStack.peek() === undefined" (click)="shareFolder('', $event)">Share</button>- </div>- </ul>- <ul class="list-group scrollable">- <button *ngFor="let folder of folders | filter: filterFolder" class="list-group-item list-group-item-action" (click)="selectNode(folder)">- <span>{{getStem(folder)}}</span>- <button type="button" class="btn btn-primary float-end" (click)="shareFolder(folder, $event)">Share</button>- </button>- <div class="list-group-item text-center" *ngIf="folders.length === 0">- There are no folders here- </div>- </ul>+ <table class="table table-striped scrollable">+ <thead>+ <tr>+ <th scope="col" style="width: 40px;">Type</th>+ <th scope="col">Name</th>+ </tr>+ </thead>+ <tbody>+ <tr (click)="goBack()">+ <td><i class="fa-solid fa-arrow-turn-up" aria-hidden="true"></i></td>+ <td>...</td>+ </tr>+ <tr *ngFor="let folder of folders; let idx = index;" (click)="selectNode(folder)" style="cursor: pointer;" [ngClass]="{'disabled': folder.disabled}">+ <td><i class="fa-regular fa-folder" aria-hidden="true"></i></td>+ <td id="folder--{{idx}}">+ {{folder.name}}+ </td>+ </tr>+ </tbody>+ </table></div><div class="modal-footer"><a class="btn btn-icon" *ngIf="helpUrl.length > 0" href="{{helpUrl}}" target="_blank">Help</a><button type="button" class="btn btn-secondary" (click)="close()">Cancel</button>-</div>\ No newline at end of file+ <button type="button" class="btn btn-primary" (click)="share()">Share</button>+</div>diff --git a/UI/Web/src/app/admin/_modals/directory-picker/directory-picker.component.scss b/UI/Web/src/app/admin/_modals/directory-picker/directory-picker.component.scssindex eb27b2165..bbe577134 100644--- a/UI/Web/src/app/admin/_modals/directory-picker/directory-picker.component.scss+++ b/UI/Web/src/app/admin/_modals/directory-picker/directory-picker.component.scss@@ -12,4 +12,14 @@ $breadcrumb-divider: quote(">");.btn-outline-secondary {border: 1px solid #ced4da;+}++.table {+ background-color: lightgrey;+}++.disabled {+ color: lightgrey !important;+ cursor: not-allowed !important;+ background-color: var(--error-color);}\ No newline at end of filediff --git a/UI/Web/src/app/admin/_modals/directory-picker/directory-picker.component.ts b/UI/Web/src/app/admin/_modals/directory-picker/directory-picker.component.tsindex fe3db20e3..01c54bd6e 100644--- a/UI/Web/src/app/admin/_modals/directory-picker/directory-picker.component.ts+++ b/UI/Web/src/app/admin/_modals/directory-picker/directory-picker.component.ts@@ -1,6 +1,8 @@-import { Component, Input, OnInit } from '@angular/core';-import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';+import { Component, Input, OnInit, ViewChild } from '@angular/core';+import { NgbActiveModal, NgbTypeahead } from '@ng-bootstrap/ng-bootstrap';+import { catchError, debounceTime, distinctUntilChanged, filter, map, merge, Observable, of, OperatorFunction, Subject, switchMap, tap } from 'rxjs';import { Stack } from 'src/app/shared/data-structures/stack';+import { DirectoryDto } from 'src/app/_models/system/directory-dto';import { LibraryService } from '../../../_services/library.service';@@ -10,6 +12,7 @@ export interface DirectoryPickerResult {}+@Component({selector: 'app-directory-picker',templateUrl: './directory-picker.component.html',@@ -24,9 +27,40 @@ export class DirectoryPickerComponent implements OnInit {@Input() helpUrl: string = 'https://wiki.kavitareader.com/en/guides/first-time-setup#adding-a-library-to-kavita';currentRoot = '';- folders: string[] = [];+ folders: DirectoryDto[] = [];routeStack: Stack<string> = new Stack<string>();- filterQuery: string = '';+++ path: string = '';+ @ViewChild('instance', {static: true}) instance!: NgbTypeahead;+ focus$ = new Subject<string>();+ click$ = new Subject<string>();+ searching: boolean = false;+ searchFailed: boolean = false;+++ search: OperatorFunction<string, readonly string[]> = (text$: Observable<string>) => {+ const debouncedText$ = text$.pipe(debounceTime(200), distinctUntilChanged());+ const clicksWithClosedPopup$ = this.click$.pipe(filter(() => !this.instance.isPopupOpen()));+ const inputFocus$ = this.focus$;++ return merge(debouncedText$, inputFocus$, clicksWithClosedPopup$, text$).pipe(+ debounceTime(300),+ distinctUntilChanged(),+ tap(() => this.searching = true),+ switchMap(term =>+ this.libraryService.listDirectories(this.path).pipe(+ tap(() => this.searchFailed = false),+ tap((folders) => this.folders = folders),+ map(folders => folders.map(f => f.fullPath)),+ catchError(() => {+ this.searchFailed = true;+ return of([]);+ }))+ ),+ tap(() => this.searching = false)+ )+ }constructor(public modal: NgbActiveModal, private libraryService: LibraryService) {@@ -51,15 +85,17 @@ export class DirectoryPickerComponent implements OnInit {}}- filterFolder = (folder: string) => {- return folder.toLowerCase().indexOf((this.filterQuery || '').toLowerCase()) >= 0;+ updateTable() {+ this.loadChildren(this.path);}- selectNode(folderName: string) {- this.currentRoot = folderName;- this.routeStack.push(folderName);- const fullPath = this.routeStack.items.join('/');- this.loadChildren(fullPath);++ selectNode(folder: DirectoryDto) {+ if (folder.disabled) return;+ this.currentRoot = folder.name;+ this.routeStack.push(folder.name);+ this.path = folder.fullPath;+ this.loadChildren(this.path);}goBack() {@@ -77,27 +113,28 @@ export class DirectoryPickerComponent implements OnInit {loadChildren(path: string) {this.libraryService.listDirectories(path).subscribe(folders => {- this.filterQuery = '';this.folders = folders;}, err => {// If there was an error, pop off last directory added to stackthis.routeStack.pop();+ const item = this.folders.find(f => f.fullPath === path);+ if (item) {+ item.disabled = true;+ }});}- shareFolder(folderName: string, event: any) {+ shareFolder(fullPath: string, event: any) {event.preventDefault();event.stopPropagation();- let fullPath = folderName;- if (this.routeStack.items.length > 0) {- const pathJoin = this.routeStack.items.join('/');- fullPath = pathJoin + ((pathJoin.endsWith('/') || pathJoin.endsWith('\\')) ? '' : '/') + folderName;- }-this.modal.close({success: true, folderPath: fullPath});}+ share() {+ this.modal.close({success: true, folderPath: this.path});+ }+close() {this.modal.close({success: false, folderPath: undefined});}@@ -122,6 +159,9 @@ export class DirectoryPickerComponent implements OnInit {}const fullPath = this.routeStack.items.join('/');+ this.path = fullPath;this.loadChildren(fullPath);}}++diff --git a/UI/Web/src/app/admin/_modals/library-editor-modal/library-editor-modal.component.html b/UI/Web/src/app/admin/_modals/library-editor-modal/library-editor-modal.component.htmlindex 53c434ce5..921ae6ca3 100644--- a/UI/Web/src/app/admin/_modals/library-editor-modal/library-editor-modal.component.html+++ b/UI/Web/src/app/admin/_modals/library-editor-modal/library-editor-modal.component.html@@ -19,7 +19,7 @@<label for="library-type" class="form-label">Type</label> <i class="fa fa-info-circle" placement="right" [ngbTooltip]="typeTooltip" role="button" tabindex="0"></i><ng-template #typeTooltip>Library type determines how filenames are parsed and if the UI shows Chapters (Manga) vs Issues (Comics). Book work the same way as Manga but fall back to embedded data.</ng-template><span class="visually-hidden" id="library-type-help">Library type determines how filenames are parsed and if the UI shows Chapters (Manga) vs Issues (Comics). Book work the same way as Manga but fall back to embedded data.</span>- <select class="form-select" id="library-type" formControlName="type" [attr.disabled]="this.library" aria-describedby="library-type-help">+ <select class="form-select" id="library-type" formControlName="type" aria-describedby="library-type-help"> <!-- [attr.disabled]="this.library" --><option [value]="i" *ngFor="let opt of libraryTypes; let i = index">{{opt}}</option></select></div>diff --git a/UI/Web/src/app/admin/_modals/library-editor-modal/library-editor-modal.component.ts b/UI/Web/src/app/admin/_modals/library-editor-modal/library-editor-modal.component.tsindex 767299381..710d0e4d7 100644--- a/UI/Web/src/app/admin/_modals/library-editor-modal/library-editor-modal.component.ts+++ b/UI/Web/src/app/admin/_modals/library-editor-modal/library-editor-modal.component.ts@@ -2,6 +2,7 @@ import { Component, Input, OnInit } from '@angular/core';import { FormControl, FormGroup, Validators } from '@angular/forms';import { NgbActiveModal, NgbModal } from '@ng-bootstrap/ng-bootstrap';import { ToastrService } from 'ngx-toastr';+import { ConfirmService } from 'src/app/shared/confirm.service';import { Library } from 'src/app/_models/library';import { LibraryService } from 'src/app/_services/library.service';import { SettingsService } from '../../settings.service';@@ -28,7 +29,7 @@ export class LibraryEditorModalComponent implements OnInit {constructor(private modalService: NgbModal, private libraryService: LibraryService, public modal: NgbActiveModal, private settingService: SettingsService,- private toastr: ToastrService) { }+ private toastr: ToastrService, private confirmService: ConfirmService) { }ngOnInit(): void {@@ -45,7 +46,7 @@ export class LibraryEditorModalComponent implements OnInit {this.madeChanges = true;}- submitLibrary() {+ async submitLibrary() {const model = this.libraryForm.value;model.folders = this.selectedFolders;@@ -57,6 +58,12 @@ export class LibraryEditorModalComponent implements OnInit {model.id = this.library.id;model.folders = model.folders.map((item: string) => item.startsWith('\\') ? item.substr(1, item.length) : item);model.type = parseInt(model.type, 10);++ if (model.type !== this.library.type) {+ if (!await this.confirmService.confirm(`Changing library type will trigger a new scan with different parsing rules and may lead to+ series being re-created and hence you may loose progress and bookmarks. You should backup before you do this. Are you sure you want to continue?`)) return;+ }+this.libraryService.update(model).subscribe(() => {this.close(true);}, err => {diff --git a/UI/Web/src/app/admin/_models/server-settings.ts b/UI/Web/src/app/admin/_models/server-settings.tsindex 101434a43..736cd39f2 100644--- a/UI/Web/src/app/admin/_models/server-settings.ts+++ b/UI/Web/src/app/admin/_models/server-settings.ts@@ -9,4 +9,7 @@ export interface ServerSettings {baseUrl: string;bookmarksDirectory: string;emailServiceUrl: string;+ convertBookmarkToWebP: boolean;+ enableSwaggerUi: boolean;+ totalBackups: number;}diff --git a/UI/Web/src/app/admin/admin.module.ts b/UI/Web/src/app/admin/admin.module.tsindex a76eefdf5..dd20d02ca 100644--- a/UI/Web/src/app/admin/admin.module.ts+++ b/UI/Web/src/app/admin/admin.module.ts@@ -2,7 +2,7 @@ import { NgModule } from '@angular/core';import { CommonModule } from '@angular/common';import { AdminRoutingModule } from './admin-routing.module';import { DashboardComponent } from './dashboard/dashboard.component';-import { NgbDropdownModule, NgbNavModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';+import { NgbDropdownModule, NgbNavModule, NgbTooltipModule, NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap';import { ManageLibraryComponent } from './manage-library/manage-library.component';import { ManageUsersComponent } from './manage-users/manage-users.component';import { LibraryEditorModalComponent } from './_modals/library-editor-modal/library-editor-modal.component';@@ -20,6 +20,9 @@ import { LibrarySelectorComponent } from './library-selector/library-selector.coimport { EditUserComponent } from './edit-user/edit-user.component';import { UserSettingsModule } from '../user-settings/user-settings.module';import { SidenavModule } from '../sidenav/sidenav.module';+import { ManageMediaSettingsComponent } from './manage-media-settings/manage-media-settings.component';+import { ManageEmailSettingsComponent } from './manage-email-settings/manage-email-settings.component';+import { ManageTasksSettingsComponent } from './manage-tasks-settings/manage-tasks-settings.component';@@ -39,6 +42,9 @@ import { SidenavModule } from '../sidenav/sidenav.module';RoleSelectorComponent,LibrarySelectorComponent,EditUserComponent,+ ManageMediaSettingsComponent,+ ManageEmailSettingsComponent,+ ManageTasksSettingsComponent,],imports: [CommonModule,@@ -47,11 +53,12 @@ import { SidenavModule } from '../sidenav/sidenav.module';FormsModule,NgbNavModule,NgbTooltipModule,+ NgbTypeaheadModule, // Directory PickerNgbDropdownModule,SharedModule,PipeModule,SidenavModule,- UserSettingsModule // API-key componet+ UserSettingsModule, // API-key componet],providers: []})diff --git a/UI/Web/src/app/admin/dashboard/dashboard.component.html b/UI/Web/src/app/admin/dashboard/dashboard.component.htmlindex bfbad082b..6dbcd7cf6 100644--- a/UI/Web/src/app/admin/dashboard/dashboard.component.html+++ b/UI/Web/src/app/admin/dashboard/dashboard.component.html@@ -3,23 +3,35 @@Admin Dashboard</h2></app-side-nav-companion-bar>-<div class="container-fluid">+<div class="container-fluid g-0"><ul ngbNav #nav="ngbNav" [(activeId)]="active" class="nav nav-tabs"><li *ngFor="let tab of tabs" [ngbNavItem]="tab"><a ngbNavLink routerLink="." [fragment]="tab.fragment">{{ tab.title | sentenceCase }}</a><ng-template ngbNavContent>- <ng-container *ngIf="tab.fragment === ''">+ <ng-container *ngIf="tab.fragment === TabID.General"><app-manage-settings></app-manage-settings></ng-container>- <ng-container *ngIf="tab.fragment === 'users'">+ <ng-container *ngIf="tab.fragment === TabID.Email">+ <app-manage-email-settings></app-manage-email-settings>+ </ng-container>+ <ng-container *ngIf="tab.fragment === TabID.Media">+ <app-manage-media-settings></app-manage-media-settings>+ </ng-container>+ <ng-container *ngIf="tab.fragment === TabID.Users"><app-manage-users></app-manage-users></ng-container>- <ng-container *ngIf="tab.fragment === 'libraries'">+ <ng-container *ngIf="tab.fragment === TabID.Libraries"><app-manage-library></app-manage-library></ng-container>- <ng-container *ngIf="tab.fragment === 'system'">+ <ng-container *ngIf="tab.fragment === TabID.System"><app-manage-system></app-manage-system></ng-container>+ <ng-container *ngIf="tab.fragment === TabID.Tasks">+ <app-manage-tasks-settings></app-manage-tasks-settings>+ </ng-container>+ <ng-container *ngIf="tab.fragment === TabID.Plugins">+ Nothing here yet. This will be built out in a future update.+ </ng-container></ng-template></li></ul>diff --git a/UI/Web/src/app/admin/dashboard/dashboard.component.ts b/UI/Web/src/app/admin/dashboard/dashboard.component.tsindex d84b3ba26..097a3674b 100644--- a/UI/Web/src/app/admin/dashboard/dashboard.component.ts+++ b/UI/Web/src/app/admin/dashboard/dashboard.component.ts@@ -5,7 +5,16 @@ import { ServerService } from 'src/app/_services/server.service';import { Title } from '@angular/platform-browser';import { NavService } from '../../_services/nav.service';-+enum TabID {+ General = '',+ Email = 'email',+ Media = 'media',+ Users = 'users',+ Libraries = 'libraries',+ System = 'system',+ Plugins = 'plugins',+ Tasks = 'tasks'+}@Component({selector: 'app-dashboard',@@ -15,14 +24,22 @@ import { NavService } from '../../_services/nav.service';export class DashboardComponent implements OnInit {tabs: Array<{title: string, fragment: string}> = [- {title: 'General', fragment: ''},- {title: 'Users', fragment: 'users'},- {title: 'Libraries', fragment: 'libraries'},- {title: 'System', fragment: 'system'},+ {title: 'General', fragment: TabID.General},+ {title: 'Users', fragment: TabID.Users},+ {title: 'Libraries', fragment: TabID.Libraries},+ {title: 'Media', fragment: TabID.Media},+ {title: 'Email', fragment: TabID.Email},+ //{title: 'Plugins', fragment: TabID.Plugins},+ {title: 'Tasks', fragment: TabID.Tasks},+ {title: 'System', fragment: TabID.System},];counter = this.tabs.length + 1;active = this.tabs[0];+ get TabID() {+ return TabID;+ }+constructor(public route: ActivatedRoute, private serverService: ServerService,private toastr: ToastrService, private titleService: Title, public navService: NavService) {this.route.fragment.subscribe(frag => {diff --git a/UI/Web/src/app/admin/manage-email-settings/manage-email-settings.component.html b/UI/Web/src/app/admin/manage-email-settings/manage-email-settings.component.htmlnew file mode 100644index 000000000..62dd94ea5--- /dev/null+++ b/UI/Web/src/app/admin/manage-email-settings/manage-email-settings.component.html@@ -0,0 +1,29 @@+<div class="container-fluid">+ <form [formGroup]="settingsForm" *ngIf="serverSettings !== undefined">+ <h4>Email Services (SMTP)</h4>+ <p>Kavita comes out of the box with an email service to power flows like invite user, forgot password, etc. Emails sent via our service are deleted immediately. You can use your own+ email service. Set the url of the email service and use the Test button to ensure it works. At any time you can reset to ours. There is no way to disable emails although you are not required to use a+ valid email address for users. Confirmation links will always be saved to logs. Emails will not be sent if you are not accessing Kavita via a publically reachable url.+ </p>+ <div class="mb-3">+ <label for="settings-emailservice" class="form-label">Email Service Url</label> <i class="fa fa-info-circle" placement="right" [ngbTooltip]="emailServiceTooltip" role="button" tabindex="0"></i>+ <ng-template #emailServiceTooltip>Use fully qualified url of the email service. Do not include ending slash.</ng-template>+ <span class="visually-hidden" id="settings-emailservice-help"><ng-container [ngTemplateOutlet]="emailServiceTooltip"></ng-container></span>+ <div class="input-group">+ <input id="settings-emailservice" aria-describedby="settings-emailservice-help" class="form-control" formControlName="emailServiceUrl" type="text" aria-describedby="change-bookmarks-dir">+ <button class="btn btn-outline-secondary" (click)="resetEmailServiceUrl()">+ Reset+ </button>+ <button class="btn btn-outline-secondary" (click)="testEmailServiceUrl()">+ Test+ </button>+ </div>+ </div>++ <div class="col-auto d-flex d-md-block justify-content-sm-center text-md-end">+ <button type="button" class="flex-fill btn btn-secondary me-2" (click)="resetToDefaults()">Reset to Default</button>+ <button type="button" class="flex-fill btn btn-secondary me-2" (click)="resetForm()">Reset</button>+ <button type="submit" class="flex-fill btn btn-primary" (click)="saveSettings()" [disabled]="!settingsForm.touched && !settingsForm.dirty">Save</button>+ </div>+ </form>+</div>\ No newline at end of filediff --git a/UI/Web/src/app/reader-shared/_modals/shorcuts-modal/shorcuts-modal.component.scss b/UI/Web/src/app/admin/manage-email-settings/manage-email-settings.component.scsssimilarity index 100%rename from UI/Web/src/app/reader-shared/_modals/shorcuts-modal/shorcuts-modal.component.scssrename to UI/Web/src/app/admin/manage-email-settings/manage-email-settings.component.scssdiff --git a/UI/Web/src/app/admin/manage-email-settings/manage-email-settings.component.ts b/UI/Web/src/app/admin/manage-email-settings/manage-email-settings.component.tsnew file mode 100644index 000000000..94be4b793--- /dev/null+++ b/UI/Web/src/app/admin/manage-email-settings/manage-email-settings.component.ts@@ -0,0 +1,78 @@+import { Component, OnInit } from '@angular/core';+import { FormControl, FormGroup, Validators } from '@angular/forms';+import { ToastrService } from 'ngx-toastr';+import { take } from 'rxjs';+import { SettingsService, EmailTestResult } from '../settings.service';+import { ServerSettings } from '../_models/server-settings';++@Component({+ selector: 'app-manage-email-settings',+ templateUrl: './manage-email-settings.component.html',+ styleUrls: ['./manage-email-settings.component.scss']+})+export class ManageEmailSettingsComponent implements OnInit {++ serverSettings!: ServerSettings;+ settingsForm: FormGroup = new FormGroup({});++ constructor(private settingsService: SettingsService, private toastr: ToastrService) { }++ ngOnInit(): void {+ this.settingsService.getServerSettings().pipe(take(1)).subscribe((settings: ServerSettings) => {+ this.serverSettings = settings;+ this.settingsForm.addControl('emailServiceUrl', new FormControl(this.serverSettings.emailServiceUrl, [Validators.required]));+ });+ }++ resetForm() {+ this.settingsForm.get('emailServiceUrl')?.setValue(this.serverSettings.emailServiceUrl);+ }++ async saveSettings() {+ const modelSettings = Object.assign({}, this.serverSettings);+ modelSettings.emailServiceUrl = this.settingsForm.get('emailServiceUrl')?.value;++ this.settingsService.updateServerSettings(modelSettings).pipe(take(1)).subscribe(async (settings: ServerSettings) => {+ this.serverSettings = settings;+ this.resetForm();+ this.toastr.success('Server settings updated');+ }, (err: any) => {+ console.error('error: ', err);+ });+ }++ resetToDefaults() {+ this.settingsService.resetServerSettings().pipe(take(1)).subscribe(async (settings: ServerSettings) => {+ this.serverSettings = settings;+ this.resetForm();+ this.toastr.success('Server settings updated');+ }, (err: any) => {+ console.error('error: ', err);+ });+ }++ resetEmailServiceUrl() {+ this.settingsService.resetEmailServerSettings().pipe(take(1)).subscribe(async (settings: ServerSettings) => {+ this.serverSettings.emailServiceUrl = settings.emailServiceUrl;+ this.resetForm();+ this.toastr.success('Email Service Reset');+ }, (err: any) => {+ console.error('error: ', err);+ });+ }++ testEmailServiceUrl() {+ this.settingsService.testEmailServerSettings(this.settingsForm.get('emailServiceUrl')?.value || '').pipe(take(1)).subscribe(async (result: EmailTestResult) => {+ if (result.successful) {+ this.toastr.success('Email Service Url validated');+ } else {+ this.toastr.error('Email Service Url did not respond. ' + result.errorMessage);+ }++ }, (err: any) => {+ console.error('error: ', err);+ });++ }++}diff --git a/UI/Web/src/app/admin/manage-media-settings/manage-media-settings.component.html b/UI/Web/src/app/admin/manage-media-settings/manage-media-settings.component.htmlnew file mode 100644index 000000000..da280aeb7--- /dev/null+++ b/UI/Web/src/app/admin/manage-media-settings/manage-media-settings.component.html@@ -0,0 +1,21 @@+<div class="container-fluid">+ <form [formGroup]="settingsForm" *ngIf="serverSettings !== undefined">+ <div class="row g-0">+ <div class="col-md-6 col-sm-12 mb-3">+ <label for="bookmark-webp" class="form-label" aria-describedby="collection-info">Save Bookmarks as WebP</label> <i class="fa fa-info-circle" placement="right" [ngbTooltip]="convertBookmarkToWebPTooltip" role="button" tabindex="0"></i>+ <ng-template #convertBookmarkToWebPTooltip>When saving bookmarks, covert them to WebP. WebP is not supported on Safari devices and will not render at all. WebP can drastically reduce space requirements for files.</ng-template>+ <span class="visually-hidden" id="settings-convertBookmarkToWebP-help"><ng-container [ngTemplateOutlet]="convertBookmarkToWebPTooltip"></ng-container></span>+ <div class="form-check form-switch">+ <input id="bookmark-webp" type="checkbox" class="form-check-input" formControlName="convertBookmarkToWebP" role="switch">+ <label for="bookmark-webp" class="form-check-label" aria-describedby="settings-convertBookmarkToWebP-help">{{settingsForm.get('convertBookmarkToWebP')?.value ? 'WebP' : 'Original' }}</label>+ </div>+ </div>+ </div>++ <div class="col-auto d-flex d-md-block justify-content-sm-center text-md-end">+ <button type="button" class="flex-fill btn btn-secondary me-2" (click)="resetToDefaults()">Reset to Default</button>+ <button type="button" class="flex-fill btn btn-secondary me-2" (click)="resetForm()">Reset</button>+ <button type="submit" class="flex-fill btn btn-primary" (click)="saveSettings()" [disabled]="!settingsForm.touched && !settingsForm.dirty">Save</button>+ </div>+ </form>+</div>\ No newline at end of filediff --git a/UI/Web/src/app/admin/manage-media-settings/manage-media-settings.component.scss b/UI/Web/src/app/admin/manage-media-settings/manage-media-settings.component.scssnew file mode 100644index 000000000..e69de29bbdiff --git a/UI/Web/src/app/admin/manage-media-settings/manage-media-settings.component.ts b/UI/Web/src/app/admin/manage-media-settings/manage-media-settings.component.tsnew file mode 100644index 000000000..8c6f6664c--- /dev/null+++ b/UI/Web/src/app/admin/manage-media-settings/manage-media-settings.component.ts@@ -0,0 +1,53 @@+import { Component, OnInit } from '@angular/core';+import { FormGroup, FormControl, Validators } from '@angular/forms';+import { ToastrService } from 'ngx-toastr';+import { take } from 'rxjs';+import { SettingsService } from '../settings.service';+import { ServerSettings } from '../_models/server-settings';++@Component({+ selector: 'app-manage-media-settings',+ templateUrl: './manage-media-settings.component.html',+ styleUrls: ['./manage-media-settings.component.scss']+})+export class ManageMediaSettingsComponent implements OnInit {++ serverSettings!: ServerSettings;+ settingsForm: FormGroup = new FormGroup({});++ constructor(private settingsService: SettingsService, private toastr: ToastrService) { }++ ngOnInit(): void {+ this.settingsService.getServerSettings().pipe(take(1)).subscribe((settings: ServerSettings) => {+ this.serverSettings = settings;+ this.settingsForm.addControl('convertBookmarkToWebP', new FormControl(this.serverSettings.convertBookmarkToWebP, [Validators.required]));+ });+ }++ resetForm() {+ this.settingsForm.get('convertBookmarkToWebP')?.setValue(this.serverSettings.convertBookmarkToWebP);+ }++ async saveSettings() {+ const modelSettings = Object.assign({}, this.serverSettings);+ modelSettings.convertBookmarkToWebP = this.settingsForm.get('convertBookmarkToWebP')?.value;++ this.settingsService.updateServerSettings(modelSettings).pipe(take(1)).subscribe(async (settings: ServerSettings) => {+ this.serverSettings = settings;+ this.resetForm();+ this.toastr.success('Server settings updated');+ }, (err: any) => {+ console.error('error: ', err);+ });+ }++ resetToDefaults() {+ this.settingsService.resetServerSettings().pipe(take(1)).subscribe(async (settings: ServerSettings) => {+ this.serverSettings = settings;+ this.resetForm();+ this.toastr.success('Server settings updated');+ }, (err: any) => {+ console.error('error: ', err);+ });+ }+}diff --git a/UI/Web/src/app/admin/manage-settings/manage-settings.component.html b/UI/Web/src/app/admin/manage-settings/manage-settings.component.htmlindex be06070a1..9a79d0684 100644--- a/UI/Web/src/app/admin/manage-settings/manage-settings.component.html+++ b/UI/Web/src/app/admin/manage-settings/manage-settings.component.html@@ -1,6 +1,6 @@<div class="container-fluid"><form [formGroup]="settingsForm" *ngIf="serverSettings !== undefined">- <p class="text-warning pt-2">Port and Logging Level require a manual restart of Kavita to take effect.</p>+ <p class="text-warning pt-2">Port, Logging Level, and Swagger require a manual restart of Kavita to take effect.</p><div class="mb-3"><label for="settings-cachedir" class="form-label">Cache Directory</label> <i class="fa fa-info-circle" placement="right" [ngbTooltip]="cacheDirectoryTooltip" role="button" tabindex="0"></i><ng-template #cacheDirectoryTooltip>Where the server place temporary files when reading. This will be cleaned up on a regular basis.</ng-template>@@ -10,7 +10,7 @@<div class="mb-3"><label for="settings-bookmarksdir" class="form-label">Bookmarks Directory</label> <i class="fa fa-info-circle" placement="right" [ngbTooltip]="bookmarksDirectoryTooltip" role="button" tabindex="0"></i>- <ng-template #bookmarksDirectoryTooltip>Location where bookmarks will be stored. Bookmarks are source files and can be large. Choose a location with adequate storage. Directory is managed, other files within directory will be deleted.</ng-template>+ <ng-template #bookmarksDirectoryTooltip>Location where bookmarks will be stored. Bookmarks are source files and can be large. Choose a location with adequate storage. Directory is managed, other files within directory will be deleted. If docker, mount an additional volume and use that.</ng-template><span class="visually-hidden" id="settings-bookmarksdir-help"><ng-container [ngTemplateOutlet]="bookmarksDirectoryTooltip"></ng-container></span><div class="input-group"><input readonly id="settings-bookmarksdir" aria-describedby="settings-bookmarksdir-help" class="form-control" formControlName="bookmarksDirectory" type="text" aria-describedby="change-bookmarks-dir">@@ -21,14 +21,32 @@</div><div class="row g-0 mb-2">- <div class="col-md-6 col-sm-12 pe-2">+ <div class="col-md-4 col-sm-12 pe-2"><label for="settings-port" class="form-label">Port</label> <i class="fa fa-info-circle" placement="right" [ngbTooltip]="portTooltip" role="button" tabindex="0"></i><ng-template #portTooltip>Port the server listens on. This is fixed if you are running on Docker. Requires restart to take effect.</ng-template><span class="visually-hidden" id="settings-port-help">Port the server listens on. This is fixed if you are running on Docker. Requires restart to take effect.</span><input id="settings-port" aria-describedby="settings-port-help" class="form-control" formControlName="port" type="number" step="1" min="1" onkeypress="return event.charCode >= 48 && event.charCode <= 57"></div>++ <div class="col-md-4 col-sm-12 pe-2">+ <label for="backup-tasks" class="form-label">Days of Backups</label> <i class="fa fa-info-circle" placement="right" [ngbTooltip]="backupTasksTooltip" role="button" tabindex="0"></i>+ <ng-template #backupTasksTooltip>The number of backups to maintain. Default is 30, minumum is 1, maximum is 30.</ng-template>+ <span class="visually-hidden" id="backup-tasks-help">The number of backups to maintain. Default is 30, minumum is 1, maximum is 30.</span>+ <input id="backup-tasks" aria-describedby="backup-tasks-help" class="form-control" formControlName="totalBackups" type="number" step="1" min="1" max="30" onkeypress="return event.charCode >= 48 && event.charCode <= 57">+ <ng-container *ngIf="settingsForm.get('totalBackups')?.errors as errors">+ <p class="invalid-feedback" *ngIf="errors.min">+ You must have at least 1 backup+ </p>+ <p class="invalid-feedback" *ngIf="errors.max">+ You cannot have more than {{errors.max.max}} backups+ </p>+ <p class="invalid-feedback" *ngIf="errors.required">+ This field is required+ </p>+ </ng-container>+ </div>- <div class="col-md-6 col-sm-12">+ <div class="col-md-4 col-sm-12"><label for="logging-level-port" class="form-label">Logging Level</label> <i class="fa fa-info-circle" placement="right" [ngbTooltip]="loggingLevelTooltip" role="button" tabindex="0"></i><ng-template #loggingLevelTooltip>Use debug to help identify issues. Debug can eat up a lot of disk space. Requires restart to take effect.</ng-template><span class="visually-hidden" id="logging-level-port-help">Port the server listens on. Requires restart to take effect.</span>@@ -40,13 +58,23 @@<div class="mb-3"><label for="stat-collection" class="form-label" aria-describedby="collection-info">Allow Anonymous Usage Collection</label>- <p class="accent" id="collection-info">Send anonymous usage and error information to Kavita's servers. This includes information on your browser, error reporting as well as OS and runtime version. We will use this information to prioritize features, bug fixes, and preformance tuning. Requires restart to take effect. See <a href="https://wiki.kavitareader.com/en/faq" target="_blank" referrerpolicy="no-refer">wiki</a> for what is collected.</p>+ <p class="accent" id="collection-info">Send anonymous usage data to Kavita's servers. This includes information on certain features used, number of files, OS version, kavita install version, cpu and memory. We will use this information to prioritize features, bug fixes, and preformance tuning. Requires restart to take effect. See <a href="https://wiki.kavitareader.com/en/faq" target="_blank" referrerpolicy="no-refer">wiki</a> for what is collected.</p><div class="form-check form-switch"><input id="stat-collection" type="checkbox" aria-label="Stat Collection" class="form-check-input" formControlName="allowStatCollection" role="switch"><label for="stat-collection" class="form-check-label">Send Data</label></div></div>+ <div class="mb-3">+ <label for="swagger-ui" class="form-label" aria-describedby="swaggerui-info">Expose Swagger UI</label>+ <p class="accent" id="swaggerui-info">Allows Swagger UI to be exposed via swagger/ on your server. Authentication is not required, but a valid JWT token is. Requires a restart to take effect. Swagger is hosted on yourip:5000/swagger</p>+ <div class="form-check form-switch">+ <input id="swagger-ui" type="checkbox" class="form-check-input" formControlName="enableSwaggerUi" role="switch">+ <label for="swagger-ui" class="form-check-label">Enable Swagger UI</label>+ </div>+ </div>++ <!-- TODO: Move this to Plugins tab once we build out some basic tables --><div class="mb-3"><label for="opds" aria-describedby="opds-info" class="form-label">OPDS</label><p class="accent" id="opds-info">OPDS support will allow all users to use OPDS to read and download content from the server. If OPDS is enabled, a user will not need download permissions to download media while using it.</p>@@ -55,46 +83,6 @@<label for="opds" class="form-check-label">Enable OPDS</label></div></div>-- <h4>Email Services (SMTP)</h4>- <p class="accent">Kavita comes out of the box with an email service to power flows like invite user, forgot password, etc. Emails sent via our service are deleted immediately. You can use your own- email service. Set the url of the email service and use the Test button to ensure it works. At any time you can reset to ours. There is no way to disable emails although confirmation links will always- be saved to logs.- </p>- <div class="mb-3">- <label for="settings-emailservice" class="form-label">Email Service Url</label> <i class="fa fa-info-circle" placement="right" [ngbTooltip]="emailServiceTooltip" role="button" tabindex="0"></i>- <ng-template #emailServiceTooltip>Use fully qualified url of the email service. Do not include ending slash.</ng-template>- <span class="visually-hidden" id="settings-emailservice-help"><ng-container [ngTemplateOutlet]="emailServiceTooltip"></ng-container></span>- <div class="input-group">- <input id="settings-emailservice" aria-describedby="settings-emailservice-help" class="form-control" formControlName="emailServiceUrl" type="text" aria-describedby="change-bookmarks-dir">- <button class="btn btn-outline-secondary" (click)="resetEmailServiceUrl()">- Reset- </button>- <button class="btn btn-outline-secondary" (click)="testEmailServiceUrl()">- Test- </button>- </div>- </div>--- <h4>Reoccuring Tasks</h4>- <div class="mb-3">- <label for="settings-tasks-scan" class="form-label">Library Scan</label> <i class="fa fa-info-circle" placement="right" [ngbTooltip]="taskScanTooltip" role="button" tabindex="0"></i>- <ng-template #taskScanTooltip>How often Kavita will scan and refresh metadata around manga files.</ng-template>- <span class="visually-hidden" id="settings-tasks-scan-help">How often Kavita will scan and refresh metatdata around manga files.</span>- <select class="form-select" aria-describedby="settings-tasks-scan-help" formControlName="taskScan" id="settings-tasks-scan">- <option *ngFor="let freq of taskFrequencies" [value]="freq">{{freq | titlecase}}</option>- </select>- </div>-- <div class="mb-3">- <label for="settings-tasks-backup" class="form-label">Library Database Backup</label> <i class="fa fa-info-circle" placement="right" [ngbTooltip]="taskBackupTooltip" role="button" tabindex="0"></i>- <ng-template #taskBackupTooltip>How often Kavita will backup the database.</ng-template>- <span class="visually-hidden" id="settings-tasks-backup-help">How often Kavita will backup the database.</span>- <select class="form-select" aria-describedby="settings-tasks-backup-help" formControlName="taskBackup" id="settings-tasks-backup">- <option *ngFor="let freq of taskFrequencies" [value]="freq">{{freq | titlecase}}</option>- </select>- </div><div class="col-auto d-flex d-md-block justify-content-sm-center text-md-end"><button type="button" class="flex-fill btn btn-secondary me-2" (click)="resetToDefaults()">Reset to Default</button>diff --git a/UI/Web/src/app/admin/manage-settings/manage-settings.component.scss b/UI/Web/src/app/admin/manage-settings/manage-settings.component.scssindex bdbc0edee..d58f774a2 100644--- a/UI/Web/src/app/admin/manage-settings/manage-settings.component.scss+++ b/UI/Web/src/app/admin/manage-settings/manage-settings.component.scss@@ -5,4 +5,8 @@padding: 10px;color: black;border-radius: 6px;+}++.invalid-feedback {+ display: inherit;}\ No newline at end of filediff --git a/UI/Web/src/app/admin/manage-settings/manage-settings.component.ts b/UI/Web/src/app/admin/manage-settings/manage-settings.component.tsindex 5de5a0ab5..40b062018 100644--- a/UI/Web/src/app/admin/manage-settings/manage-settings.component.ts+++ b/UI/Web/src/app/admin/manage-settings/manage-settings.component.ts@@ -3,8 +3,7 @@ import { FormGroup, FormControl, Validators } from '@angular/forms';import { NgbModal } from '@ng-bootstrap/ng-bootstrap';import { ToastrService } from 'ngx-toastr';import { take } from 'rxjs/operators';-import { ConfirmService } from 'src/app/shared/confirm.service';-import { EmailTestResult, SettingsService } from '../settings.service';+import { SettingsService } from '../settings.service';import { DirectoryPickerComponent, DirectoryPickerResult } from '../_modals/directory-picker/directory-picker.component';import { ServerSettings } from '../_models/server-settings';@@ -21,7 +20,7 @@ export class ManageSettingsComponent implements OnInit {taskFrequencies: Array<string> = [];logLevels: Array<string> = [];- constructor(private settingsService: SettingsService, private toastr: ToastrService, private confirmService: ConfirmService,+ constructor(private settingsService: SettingsService, private toastr: ToastrService,private modalService: NgbModal) { }ngOnInit(): void {@@ -43,6 +42,8 @@ export class ManageSettingsComponent implements OnInit {this.settingsForm.addControl('enableOpds', new FormControl(this.serverSettings.enableOpds, [Validators.required]));this.settingsForm.addControl('baseUrl', new FormControl(this.serverSettings.baseUrl, [Validators.required]));this.settingsForm.addControl('emailServiceUrl', new FormControl(this.serverSettings.emailServiceUrl, [Validators.required]));+ this.settingsForm.addControl('enableSwaggerUi', new FormControl(this.serverSettings.enableSwaggerUi, [Validators.required]));+ this.settingsForm.addControl('totalBackups', new FormControl(this.serverSettings.totalBackups, [Validators.required, Validators.min(1), Validators.max(30)]));});}@@ -57,6 +58,8 @@ export class ManageSettingsComponent implements OnInit {this.settingsForm.get('enableOpds')?.setValue(this.serverSettings.enableOpds);this.settingsForm.get('baseUrl')?.setValue(this.serverSettings.baseUrl);this.settingsForm.get('emailServiceUrl')?.setValue(this.serverSettings.emailServiceUrl);+ this.settingsForm.get('enableSwaggerUi')?.setValue(this.serverSettings.enableSwaggerUi);+ this.settingsForm.get('totalBackups')?.setValue(this.serverSettings.totalBackups);}async saveSettings() {@@ -92,29 +95,4 @@ export class ManageSettingsComponent implements OnInit {}});}-- resetEmailServiceUrl() {- this.settingsService.resetEmailServerSettings().pipe(take(1)).subscribe(async (settings: ServerSettings) => {- this.serverSettings.emailServiceUrl = settings.emailServiceUrl;- this.resetForm();- this.toastr.success('Email Service Reset');- }, (err: any) => {- console.error('error: ', err);- });- }-- testEmailServiceUrl() {- this.settingsService.testEmailServerSettings(this.settingsForm.get('emailServiceUrl')?.value || '').pipe(take(1)).subscribe(async (result: EmailTestResult) => {- if (result.successful) {- this.toastr.success('Email Service Url validated');- } else {- this.toastr.error('Email Service Url did not respond. ' + result.errorMessage);- }-- }, (err: any) => {- console.error('error: ', err);- });-- }-}diff --git a/UI/Web/src/app/admin/manage-system/manage-system.component.html b/UI/Web/src/app/admin/manage-system/manage-system.component.htmlindex 47032dfb3..68840a8d2 100644--- a/UI/Web/src/app/admin/manage-system/manage-system.component.html+++ b/UI/Web/src/app/admin/manage-system/manage-system.component.html@@ -1,31 +1,4 @@<div class="container-fluid">-- <div class="float-end">- <div class="d-inline-block" ngbDropdown #myDrop="ngbDropdown">- <button class="btn btn-outline-primary me-2" id="dropdownManual" ngbDropdownToggle>- <ng-container *ngIf="backupDBInProgress || clearCacheInProgress || isCheckingForUpdate || downloadLogsInProgress">- <span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>- <span class="visually-hidden">Loading...</span>- </ng-container>- Actions- </button>- <div ngbDropdownMenu aria-labelledby="dropdownManual">- <button ngbDropdownItem (click)="backupDB()" [disabled]="backupDBInProgress">- Backup Database- </button>- <button ngbDropdownItem (click)="clearCache()" [disabled]="clearCacheInProgress">- Clear Cache- </button>- <button ngbDropdownItem (click)="downloadLogs()" [disabled]="downloadLogsInProgress">- Download Logs- </button>- <button ngbDropdownItem (click)="checkForUpdates()">- Check for Updates- </button>- </div>- </div>- </div>-<h3>About System</h3><hr/><div class="mb-3" *ngIf="serverInfo">diff --git a/UI/Web/src/app/admin/manage-system/manage-system.component.ts b/UI/Web/src/app/admin/manage-system/manage-system.component.tsindex 86c1f1599..ecab34faf 100644--- a/UI/Web/src/app/admin/manage-system/manage-system.component.ts+++ b/UI/Web/src/app/admin/manage-system/manage-system.component.ts@@ -1,10 +1,7 @@import { Component, OnInit } from '@angular/core';import { FormControl, FormGroup, Validators } from '@angular/forms';-import { NgbModal } from '@ng-bootstrap/ng-bootstrap';import { ToastrService } from 'ngx-toastr';-import { finalize, take, takeWhile } from 'rxjs/operators';-import { UpdateNotificationModalComponent } from 'src/app/shared/update-notification/update-notification-modal.component';-import { DownloadService } from 'src/app/shared/_services/download.service';+import { take } from 'rxjs/operators';import { ServerService } from 'src/app/_services/server.service';import { SettingsService } from '../settings.service';import { ServerInfo } from '../_models/server-info';@@ -21,14 +18,9 @@ export class ManageSystemComponent implements OnInit {serverSettings!: ServerSettings;serverInfo!: ServerInfo;- clearCacheInProgress: boolean = false;- backupDBInProgress: boolean = false;- isCheckingForUpdate: boolean = false;- downloadLogsInProgress: boolean = false;constructor(private settingsService: SettingsService, private toastr: ToastrService,- private serverService: ServerService, public downloadService: DownloadService,- private modalService: NgbModal) { }+ private serverService: ServerService) { }ngOnInit(): void {@@ -67,45 +59,4 @@ export class ManageSystemComponent implements OnInit {console.error('error: ', err);});}-- clearCache() {- this.clearCacheInProgress = true;- this.serverService.clearCache().subscribe(res => {- this.clearCacheInProgress = false;- this.toastr.success('Cache has been cleared');- });- }-- backupDB() {- this.backupDBInProgress = true;- this.serverService.backupDatabase().subscribe(res => {- this.backupDBInProgress = false;- this.toastr.success('Database has been backed up');- });- }-- checkForUpdates() {- this.isCheckingForUpdate = true;- this.serverService.checkForUpdate().subscribe((update) => {- this.isCheckingForUpdate = false;- if (update === null) {- this.toastr.info('No updates available');- return;- }- const modalRef = this.modalService.open(UpdateNotificationModalComponent, { scrollable: true, size: 'lg' });- modalRef.componentInstance.updateData = update;- });- }-- downloadLogs() {- this.downloadLogsInProgress = true;- this.downloadService.downloadLogs().pipe(- takeWhile(val => {- return val.state != 'DONE';- }),- finalize(() => {- this.downloadLogsInProgress = false;- })).subscribe(() => {/* No Operation */});- }-}diff --git a/UI/Web/src/app/admin/manage-tasks-settings/manage-tasks-settings.component.html b/UI/Web/src/app/admin/manage-tasks-settings/manage-tasks-settings.component.htmlnew file mode 100644index 000000000..c6d22af31--- /dev/null+++ b/UI/Web/src/app/admin/manage-tasks-settings/manage-tasks-settings.component.html@@ -0,0 +1,73 @@+<div class="container-fluid">+ <form [formGroup]="settingsForm" *ngIf="serverSettings !== undefined">+ <h4>Reoccuring Tasks</h4>+ <div class="mb-3">+ <label for="settings-tasks-scan" class="form-label">Library Scan</label> <i class="fa fa-info-circle" placement="right" [ngbTooltip]="taskScanTooltip" role="button" tabindex="0"></i>+ <ng-template #taskScanTooltip>How often Kavita will scan and refresh metadata around manga files.</ng-template>+ <span class="visually-hidden" id="settings-tasks-scan-help">How often Kavita will scan and refresh metatdata around manga files.</span>+ <select class="form-select" aria-describedby="settings-tasks-scan-help" formControlName="taskScan" id="settings-tasks-scan">+ <option *ngFor="let freq of taskFrequencies" [value]="freq">{{freq | titlecase}}</option>+ </select>+ </div>++ <div class="mb-3">+ <label for="settings-tasks-backup" class="form-label">Library Database Backup</label> <i class="fa fa-info-circle" placement="right" [ngbTooltip]="taskBackupTooltip" role="button" tabindex="0"></i>+ <ng-template #taskBackupTooltip>How often Kavita will backup the database.</ng-template>+ <span class="visually-hidden" id="settings-tasks-backup-help">How often Kavita will backup the database.</span>+ <select class="form-select" aria-describedby="settings-tasks-backup-help" formControlName="taskBackup" id="settings-tasks-backup">+ <option *ngFor="let freq of taskFrequencies" [value]="freq">{{freq | titlecase}}</option>+ </select>+ </div>++ <h4>Ad-hoc Tasks</h4>+ <table class="table table-striped">+ <thead>+ <tr>+ <th scope="col">Job Title</th>+ <th scope="col">Description</th>+ <th scope="col">Action</th>+ </tr>+ </thead>+ <tbody>+ <tr *ngFor="let task of adhocTasks; let idx = index;">+ <td id="adhoctask--{{idx}}">+ {{task.name}}+ </td>+ <td>+ {{task.description}}+ </td>+ <td>+ <button class="btn btn-primary" (click)="runAdhoc(task)" attr.aria-labelledby="adhoctask--{{idx}}">Run</button>+ </td>+ </tr>+ </tbody>+ </table>++ <h4>Reoccuring Tasks</h4>+ <table class="table table-striped">+ <thead>+ <tr>+ <th scope="col">Job Title</th>+ <th scope="col">Last Executed</th>+ <th scope="col">Cron</th>+ </tr>+ </thead>+ <tbody>+ <tr *ngFor="let task of reoccuringTasks$ | async; index as i">+ <td>+ {{task.title | titlecase}}+ </td>+ <td>{{task.lastExecution | date:'short' | defaultValue }}</td>+ <td>{{task.cron}}</td>+ </tr>+ </tbody>+ </table>+++ <div class="col-auto d-flex d-md-block justify-content-sm-center text-md-end">+ <button type="button" class="flex-fill btn btn-secondary me-2" (click)="resetToDefaults()">Reset to Default</button>+ <button type="button" class="flex-fill btn btn-secondary me-2" (click)="resetForm()">Reset</button>+ <button type="submit" class="flex-fill btn btn-primary" (click)="saveSettings()" [disabled]="!settingsForm.touched && !settingsForm.dirty">Save</button>+ </div>+ </form>+</div>\ No newline at end of filediff --git a/UI/Web/src/app/admin/manage-tasks-settings/manage-tasks-settings.component.scss b/UI/Web/src/app/admin/manage-tasks-settings/manage-tasks-settings.component.scssnew file mode 100644index 000000000..3fe4d1b01--- /dev/null+++ b/UI/Web/src/app/admin/manage-tasks-settings/manage-tasks-settings.component.scss@@ -0,0 +1,3 @@+.table {+ background-color: lightgrey;+}\ No newline at end of filediff --git a/UI/Web/src/app/admin/manage-tasks-settings/manage-tasks-settings.component.ts b/UI/Web/src/app/admin/manage-tasks-settings/manage-tasks-settings.component.tsnew file mode 100644index 000000000..56c3edca4--- /dev/null+++ b/UI/Web/src/app/admin/manage-tasks-settings/manage-tasks-settings.component.ts@@ -0,0 +1,151 @@+import { Component, OnInit } from '@angular/core';+import { FormGroup, FormControl, Validators } from '@angular/forms';+import { ToastrService } from 'ngx-toastr';+import { ConfirmService } from 'src/app/shared/confirm.service';+import { SettingsService } from '../settings.service';+import { ServerSettings } from '../_models/server-settings';+import { catchError, finalize, shareReplay, take, takeWhile } from 'rxjs/operators';+import { forkJoin, Observable, of } from 'rxjs';+import { ServerService } from 'src/app/_services/server.service';+import { Job } from 'src/app/_models/job/job';+import { UpdateNotificationModalComponent } from 'src/app/shared/update-notification/update-notification-modal.component';+import { NgbModal } from '@ng-bootstrap/ng-bootstrap';+import { DownloadService } from 'src/app/shared/_services/download.service';++interface AdhocTask {+ name: string;+ description: string;+ api: Observable<any>;+ successMessage: string;+ successFunction?: (data: any) => void;+}++@Component({+ selector: 'app-manage-tasks-settings',+ templateUrl: './manage-tasks-settings.component.html',+ styleUrls: ['./manage-tasks-settings.component.scss']+})+export class ManageTasksSettingsComponent implements OnInit {++ serverSettings!: ServerSettings;+ settingsForm: FormGroup = new FormGroup({});+ taskFrequencies: Array<string> = [];+ logLevels: Array<string> = [];++ reoccuringTasks$: Observable<Array<Job>> = of([]);+ adhocTasks: Array<AdhocTask> = [+ {+ name: 'Convert Bookmarks to WebP',+ description: 'Runs a long-running task which will convert all bookmarks to WebP. This is slow (especially on ARM devices).',+ api: this.serverService.convertBookmarks(),+ successMessage: 'Conversion of Bookmarks has been queued'+ },+ {+ name: 'Clear Cache',+ description: 'Clears cached files for reading. Usefull when you\'ve just updated a file that you were previously reading within last 24 hours.',+ api: this.serverService.clearCache(),+ successMessage: 'Cache has been cleared'+ },+ {+ name: 'Backup Database',+ description: 'Takes a backup of the database, bookmarks, themes, manually uploaded covers, and config files',+ api: this.serverService.backupDatabase(),+ successMessage: 'A job to backup the database has been queued'+ },+ {+ name: 'Download Logs',+ description: 'Compiles all log files into a zip and downloads it',+ api: this.downloadService.downloadLogs().pipe(+ takeWhile(val => {+ return val.state != 'DONE';+ })),+ successMessage: ''+ },+ {+ name: 'Check for Updates',+ description: 'See if there are any Stable releases ahead of your version',+ api: this.serverService.checkForUpdate(),+ successMessage: '',+ successFunction: (update) => {+ if (update === null) {+ this.toastr.info('No updates available');+ return;+ }+ const modalRef = this.modalService.open(UpdateNotificationModalComponent, { scrollable: true, size: 'lg' });+ modalRef.componentInstance.updateData = update;+ }+ },+ ];++ constructor(private settingsService: SettingsService, private toastr: ToastrService,+ private serverService: ServerService, private modalService: NgbModal,+ private downloadService: DownloadService) { }++ ngOnInit(): void {+ forkJoin({+ frequencies: this.settingsService.getTaskFrequencies(),+ levels: this.settingsService.getLoggingLevels(),+ settings: this.settingsService.getServerSettings()+ }++ ).subscribe(result => {+ this.taskFrequencies = result.frequencies;+ this.logLevels = result.levels;+ this.serverSettings = result.settings;+ this.settingsForm.addControl('taskScan', new FormControl(this.serverSettings.taskScan, [Validators.required]));+ this.settingsForm.addControl('taskBackup', new FormControl(this.serverSettings.taskBackup, [Validators.required]));+ });++ this.reoccuringTasks$ = this.serverService.getReoccuringJobs().pipe(shareReplay());+ }++ resetForm() {+ this.settingsForm.get('taskScan')?.setValue(this.serverSettings.taskScan);+ this.settingsForm.get('taskBackup')?.setValue(this.serverSettings.taskBackup);+ }++ async saveSettings() {+ const modelSettings = Object.assign({}, this.serverSettings);+ modelSettings.taskBackup = this.settingsForm.get('taskBackup')?.value;+ modelSettings.taskScan = this.settingsForm.get('taskScan')?.value;++ this.settingsService.updateServerSettings(modelSettings).pipe(take(1)).subscribe(async (settings: ServerSettings) => {+ this.serverSettings = settings;+ this.resetForm();+ this.reoccuringTasks$ = this.serverService.getReoccuringJobs().pipe(shareReplay());+ this.toastr.success('Server settings updated');+ }, (err: any) => {+ console.error('error: ', err);+ });+ }++ resetToDefaults() {+ this.settingsService.resetServerSettings().pipe(take(1)).subscribe(async (settings: ServerSettings) => {+ this.serverSettings = settings;+ this.resetForm();+ this.toastr.success('Server settings updated');+ }, (err: any) => {+ console.error('error: ', err);+ });+ }++ runAdhocConvert() {+ this.serverService.convertBookmarks().subscribe(() => {+ this.toastr.success('Conversion of Bookmarks has been queued.');+ });+ }++ runAdhoc(task: AdhocTask) {+ task.api.subscribe((data: any) => {+ if (task.successMessage.length > 0) {+ this.toastr.success(task.successMessage);+ }++ if (task.successFunction) {+ task.successFunction(data);+ }+ });+ }+++}diff --git a/UI/Web/src/app/all-series/all-series.component.html b/UI/Web/src/app/all-series/all-series.component.htmlindex 198027462..84b01f493 100644--- a/UI/Web/src/app/all-series/all-series.component.html+++ b/UI/Web/src/app/all-series/all-series.component.html@@ -8,11 +8,12 @@<app-card-detail-layout[isLoading]="loadingSeries"[items]="series"+ [trackByIdentity]="trackByIdentity"[pagination]="pagination"[filterSettings]="filterSettings"[filterOpen]="filterOpen"+ [jumpBarKeys]="jumpbarKeys"(applyFilter)="updateFilter($event)"- (pageChange)="onPageChange($event)"><ng-template #cardItem let-item let-position="idx"><app-series-card [data]="item" [libraryId]="item.libraryId" (reload)="loadPage()"diff --git a/UI/Web/src/app/all-series/all-series.component.ts b/UI/Web/src/app/all-series/all-series.component.tsindex 7c4eab869..f46602e13 100644--- a/UI/Web/src/app/all-series/all-series.component.ts+++ b/UI/Web/src/app/all-series/all-series.component.ts@@ -7,11 +7,13 @@ import { BulkSelectionService } from '../cards/bulk-selection.service';import { FilterSettings } from '../metadata-filter/filter-settings';import { FilterUtilitiesService } from '../shared/_services/filter-utilities.service';import { KEY_CODES, UtilityService } from '../shared/_services/utility.service';+import { JumpKey } from '../_models/jumpbar/jump-key';import { Pagination } from '../_models/pagination';import { Series } from '../_models/series';import { FilterEvent, SeriesFilter } from '../_models/series-filter';import { Action } from '../_services/action-factory.service';import { ActionService } from '../_services/action.service';+import { LibraryService } from '../_services/library.service';import { EVENTS, Message, MessageHubService } from '../_services/message-hub.service';import { SeriesService } from '../_services/series.service';@@ -31,6 +33,7 @@ export class AllSeriesComponent implements OnInit, OnDestroy {filterOpen: EventEmitter<boolean> = new EventEmitter();filterActiveCheck!: SeriesFilter;filterActive: boolean = false;+ jumpbarKeys: Array<JumpKey> = [];bulkActionCallback = (action: Action, data: any) => {const selectedSeriesIndexies = this.bulkSelectionService.getSelectedCardsForSource('series');@@ -73,7 +76,7 @@ export class AllSeriesComponent implements OnInit, OnDestroy {private titleService: Title, private actionService: ActionService,public bulkSelectionService: BulkSelectionService, private hubService: MessageHubService,private utilityService: UtilityService, private route: ActivatedRoute,- private filterUtilityService: FilterUtilitiesService) {+ private filterUtilityService: FilterUtilitiesService, private libraryService: LibraryService) {this.router.routeReuseStrategy.shouldReuseRoute = () => false;this.titleService.setTitle('Kavita - All Series');@@ -108,6 +111,7 @@ export class AllSeriesComponent implements OnInit, OnDestroy {this.bulkSelectionService.isShiftDown = false;}}+updateFilter(data: FilterEvent) {this.filter = data.filter;@@ -118,18 +122,35 @@ export class AllSeriesComponent implements OnInit, OnDestroy {loadPage() {this.filterActive = !this.utilityService.deepEqual(this.filter, this.filterActiveCheck);- this.seriesService.getAllSeries(this.pagination?.currentPage, this.pagination?.itemsPerPage, this.filter).pipe(take(1)).subscribe(series => {+ this.seriesService.getAllSeries(undefined, undefined, this.filter).pipe(take(1)).subscribe(series => {this.series = series.result;+ const keys: {[key: string]: number} = {};+ series.result.forEach(s => {+ let ch = s.name.charAt(0);+ if (/\d|\#|!|%|@|\(|\)|\^|\*/g.test(ch)) {+ ch = '#';+ }+ if (!keys.hasOwnProperty(ch)) {+ keys[ch] = 0;+ }+ keys[ch] += 1;+ });+ this.jumpbarKeys = Object.keys(keys).map(k => {+ return {+ key: k,+ size: keys[k],+ title: k.toUpperCase()+ }+ }).sort((a, b) => {+ if (a.key < b.key) return -1;+ if (a.key > b.key) return 1;+ return 0;+ });this.pagination = series.pagination;this.loadingSeries = false;window.scrollTo(0, 0);});}- onPageChange(pagination: Pagination) {- this.filterUtilityService.updateUrlFromFilter(this.pagination, undefined);- this.loadPage();- }-- trackByIdentity = (index: number, item: Series) => `${item.name}_${item.originalName}_${item.localizedName}_${item.pagesRead}`;+ trackByIdentity = (index: number, item: Series) => `${item.name}_${item.localizedName}_${item.pagesRead}`;}diff --git a/UI/Web/src/app/app-routing.module.ts b/UI/Web/src/app/app-routing.module.tsindex 6a2bfff34..a11a842a5 100644--- a/UI/Web/src/app/app-routing.module.ts+++ b/UI/Web/src/app/app-routing.module.ts@@ -4,8 +4,6 @@ import { AuthGuard } from './_guards/auth.guard';import { LibraryAccessGuard } from './_guards/library-access.guard';import { AdminGuard } from './_guards/admin.guard';-// TODO: Once we modularize the components, use this and measure performance impact: https://angular.io/guide/lazy-loading-ngmodules#preloading-modules-// TODO: Use Prefetching of LazyLoaded Modulesconst routes: Routes = [{path: 'admin',@@ -70,15 +68,16 @@ const routes: Routes = [path: ':libraryId/series/:seriesId/book',loadChildren: () => import('../app/book-reader/book-reader.module').then(m => m.BookReaderModule)},+ {+ path: ':libraryId/series/:seriesId/pdf',+ loadChildren: () => import('../app/pdf-reader/pdf-reader.module').then(m => m.PdfReaderModule)+ },]},- {- path: 'theme',- loadChildren: () => import('../app/dev-only/dev-only.module').then(m => m.DevOnlyModule)- },{path: 'login', loadChildren: () => import('../app/registration/registration.module').then(m => m.RegistrationModule)},+ //{path: '', pathMatch: 'full', redirectTo: 'login'}, // This shouldn't be needed{path: '**', pathMatch: 'full', redirectTo: 'libraries'},- {path: '', pathMatch: 'full', redirectTo: 'libraries'},+ {path: '**', pathMatch: 'prefix', redirectTo: 'libraries'},];@NgModule({diff --git a/UI/Web/src/app/app.component.html b/UI/Web/src/app/app.component.htmlindex ffa817a4b..6a5d29b76 100644--- a/UI/Web/src/app/app.component.html+++ b/UI/Web/src/app/app.component.html@@ -3,7 +3,7 @@<a id="content"></a><app-side-nav *ngIf="navService.sideNavVisibility$ | async as sideNavVisibile"></app-side-nav><div class="container-fluid" [ngClass]="{'g-0': !(navService.sideNavVisibility$ | async)}">- <div style="padding: 20px 0;" *ngIf="navService.sideNavVisibility$ | async else noSideNav">+ <div style="padding: 20px 0 0;" *ngIf="navService.sideNavVisibility$ | async else noSideNav"><div class="companion-bar" [ngClass]="{'companion-bar-content': !(navService?.sideNavCollapsed$ | async)}"><router-outlet></router-outlet></div>diff --git a/UI/Web/src/app/app.component.ts b/UI/Web/src/app/app.component.tsindex 01d9baafa..5047bdaf2 100644--- a/UI/Web/src/app/app.component.ts+++ b/UI/Web/src/app/app.component.ts@@ -33,16 +33,15 @@ export class AppComponent implements OnInit {this.ngbModal.dismissAll();}});- }- @HostListener('window:resize', ['$event'])- onResize(){- this.setDocHeight();}+ @HostListener('window:resize', ['$event'])@HostListener('window:orientationchange', ['$event'])- onOrientationChange() {- this.setDocHeight();+ setDocHeight() {+ // Sets a CSS variable for the actual device viewport height. Needed for mobile dev.+ const vh = window.innerHeight * 0.01;+ this.document.documentElement.style.setProperty('--vh', `${vh}px`);}ngOnInit(): void {@@ -59,10 +58,4 @@ export class AppComponent implements OnInit {this.libraryService.getLibraryNames().pipe(take(1)).subscribe(() => {/* No Operation */});}}-- setDocHeight() {- // Sets a CSS variable for the actual device viewport height. Needed for mobile dev.- let vh = window.innerHeight * 0.01;- this.document.documentElement.style.setProperty('--vh', `${vh}px`);- }}diff --git a/UI/Web/src/app/book-reader/book-reader/book-reader.component.html b/UI/Web/src/app/book-reader/book-reader/book-reader.component.htmlindex 7750b91b5..9a10e7ce8 100644--- a/UI/Web/src/app/book-reader/book-reader/book-reader.component.html+++ b/UI/Web/src/app/book-reader/book-reader/book-reader.component.html@@ -72,24 +72,26 @@</app-drawer></div>- <div #readingSection class="reading-section {{ColumnLayout}}" [@isLoading]="isLoading ? true : false">+ <div #readingSection class="reading-section {{ColumnLayout}}" [ngClass]="{'immersive' : immersiveMode || !actionBarVisible}" [@isLoading]="isLoading ? true : false"><ng-container *ngIf="clickToPaginate">- <div class="left {{clickOverlayClass('left')}} no-observe"+ <div class="left {{clickOverlayClass('left')}} no-observe" [ngClass]="{'immersive' : immersiveMode}"(click)="movePage(readingDirection === ReadingDirection.LeftToRight ? PAGING_DIRECTION.BACKWARDS : PAGING_DIRECTION.FORWARD)"tabindex="-1" [ngStyle]="{height: PageHeightForPagination}"></div>- <div class="{{scrollbarNeeded ? 'right-with-scrollbar' : 'right'}} {{clickOverlayClass('right')}} no-observe"+ <div class="{{scrollbarNeeded ? 'right-with-scrollbar' : 'right'}} {{clickOverlayClass('right')}} no-observe"+ [ngClass]="{'immersive' : immersiveMode}"(click)="movePage(readingDirection === ReadingDirection.LeftToRight ? PAGING_DIRECTION.FORWARD : PAGING_DIRECTION.BACKWARDS)"tabindex="-1" [ngStyle]="{height: PageHeightForPagination}"></div></ng-container>- <div class="book-container {{ColumnLayout}}">+ <div class="book-container" [ngClass]="{'immersive' : immersiveMode}"> <!-- {{ColumnLayout}}-->- <div #readingHtml class="book-content {{ColumnLayout}}" [ngStyle]="{'max-height': ColumnHeight, 'column-width': ColumnWidth}"+ <div #readingHtml class="book-content {{ColumnLayout}}" [ngStyle]="{'max-height': ColumnHeight, 'column-width': ColumnWidth}"+ [ngClass]="{'immersive': immersiveMode && actionBarVisible}"[innerHtml]="page" *ngIf="page !== undefined" (click)="toggleMenu($event)" (mousedown)="mouseDown($event)"></div>- <div *ngIf="page !== undefined && (scrollbarNeeded || layoutMode !== BookPageLayoutMode.Default)" (click)="$event.stopPropagation();">+ <div *ngIf="page !== undefined && (scrollbarNeeded || layoutMode !== BookPageLayoutMode.Default)" (click)="$event.stopPropagation();" [ngClass]="{'bottom-bar': layoutMode !== BookPageLayoutMode.Default}"><ng-container [ngTemplateOutlet]="actionBar"></ng-container></div></div>diff --git a/UI/Web/src/app/book-reader/book-reader/book-reader.component.scss b/UI/Web/src/app/book-reader/book-reader/book-reader.component.scssindex 3eb8a3a7f..be2b9c444 100644--- a/UI/Web/src/app/book-reader/book-reader/book-reader.component.scss+++ b/UI/Web/src/app/book-reader/book-reader/book-reader.component.scss@@ -59,6 +59,8 @@ $action-bar-height: 38px;}.drawer-body {+ overflow: auto;+.reader-pills {justify-content: center;margin: 0 0.25rem;@@ -128,6 +130,7 @@ $action-bar-height: 38px;overflow: auto;height: calc(var(--vh, 1vh) * 100);position: relative;+ // This is completely invisible, everything else renders over it&.column-layout-1 {height: calc(var(--vh) * 100);@@ -143,8 +146,11 @@ $action-bar-height: 38px;//overflow: auto; // This will break progress reportingheight: 100vh;padding-top: $action-bar-height;+ padding-bottom: $action-bar-height;position: relative;+ //background-color: green !important;+&.column-layout-1 {height: calc((var(--vh, 1vh) * 100) - $action-bar-height);}@@ -152,12 +158,20 @@ $action-bar-height: 38px;&.column-layout-2 {height: calc((var(--vh, 1vh) * 100) - $action-bar-height);}++ &.immersive {+ height: calc((var(--vh, 1vh) * 100));+ //padding-top: 0px;+ //padding-bottom: 0px;+ }}.book-container {position: relative;height: 100%;+ //background-color: purple !important;+&.column-layout-1 {height: calc((var(--vh, 1vh) * 100) - $action-bar-height);}@@ -171,13 +185,18 @@ $action-bar-height: 38px;position: relative;padding: 20px 0;margin: 0px 0px;+ //background-color: red !important;&.column-layout-1 {- height: calc((var(--vh) * 100) - calc($action-bar-height * 2));+ height: calc((var(--vh) * 100) - calc($action-bar-height)); // * 2}&.column-layout-2 {- height: calc((var(--vh) * 100) - calc($action-bar-height * 2));+ height: calc((var(--vh) * 100) - calc($action-bar-height)); // * 2+ }++ &.immersive {+ height: calc((var(--vh, 1vh) * 100) - $action-bar-height);}a, :link {@@ -201,6 +220,12 @@ $action-bar-height: 38px;box-shadow: var(--drawer-pagination-horizontal-rule);}+.bottom-bar {+ position: fixed;+ width: 100%;+ bottom: 0px;+}+// This is essentially fitting the text to height and when you press next you are scrolling over by page width@@ -211,10 +236,6 @@ $action-bar-height: 38px;overflow: hidden;word-break: break-word;overflow-wrap: break-word;-- &.debug {- column-rule: 20px solid rebeccapurple;- }}@@ -227,10 +248,6 @@ $action-bar-height: 38px;overflow: hidden;word-break: break-word;overflow-wrap: break-word;-- &.debug {- column-rule: 20px solid rebeccapurple;- }}@@ -244,6 +261,12 @@ $action-bar-height: 38px;}}+// This is applied to images in the backend+::ng-deep .kavita-scale-width-container {+ width: auto;+ // * 4 is just for extra buffer which is needed based on testing. --book-reader-content-max-height is set by us on calculation of columnHeight+ max-height: calc(var(--book-reader-content-max-height) - ($action-bar-height * 4)), calc((var(--vh)*100) - ($action-bar-height * 4)) !important;+}// This is applied to images in the backend::ng-deep .kavita-scale-width {@@ -265,13 +288,21 @@ $action-bar-height: 38px;.right {position: absolute;- right: 0px; // with scrollbar: 17px+ right: 0px;top: $action-bar-height;- width: 20%; // with scrollbar: 18%-- z-index: 2;+ width: 20%;+ z-index: 3;cursor: pointer;background: transparent;+ border-color: transparent;+ border: none !important;+ opacity: 0;+ outline: none;+ //background-color: aqua;++ &.immersive {+ top: 0px;+ }}// This class pushes the click area to the left a bit to let users click the scrollbar@@ -280,9 +311,18 @@ $action-bar-height: 38px;right: 17px;top: $action-bar-height;width: 18%;- z-index: 2;+ z-index: 3;cursor: pointer;background: transparent;+ border-color: transparent;+ border: none !important;+ opacity: 0;+ outline: none;+ //background-color: aqua;++ &.immersive {+ top: 0px;+ }}.left {@@ -291,16 +331,24 @@ $action-bar-height: 38px;top: $action-bar-height;width: 20%;background: transparent;-- z-index: 2;+ border-color: transparent;+ border: none !important;+ z-index: 3;cursor: pointer;+ opacity: 0;+ outline: none;+ //background-color: aqua;++ &.immersive {+ top: 0px;+ }}.highlight {- background-color: rgba(65, 225, 100, 0.5) !important;- animation: fadein .5s both;+ background-color: rgba(65, 225, 100, 0.5) !important;+ animation: fadein .5s both;}.highlight-2 {background-color: rgba(65, 105, 225, 0.5) !important;@@ -326,13 +374,13 @@ $action-bar-height: 38px;background-color: unset;&:hover, &:focus {- border-color: var(--br-actionbar-button-hover-border-color); // #545b62;+ border-color: var(--br-actionbar-button-hover-border-color);}}span {background-color: unset;- color: var(--br-actionbar-button-text-color); // #6c757d;+ color: var(--br-actionbar-button-text-color);}i {diff --git a/UI/Web/src/app/book-reader/book-reader/book-reader.component.ts b/UI/Web/src/app/book-reader/book-reader/book-reader.component.tsindex 0607ea408..b85993337 100644--- a/UI/Web/src/app/book-reader/book-reader/book-reader.component.ts+++ b/UI/Web/src/app/book-reader/book-reader/book-reader.component.ts@@ -3,11 +3,11 @@ import {DOCUMENT, Location} from '@angular/common';import { ActivatedRoute, Router } from '@angular/router';import { ToastrService } from 'ngx-toastr';import { forkJoin, fromEvent, of, Subject } from 'rxjs';-import { catchError, debounceTime, take, takeUntil, tap } from 'rxjs/operators';+import { catchError, debounceTime, take, takeUntil } from 'rxjs/operators';import { Chapter } from 'src/app/_models/chapter';import { AccountService } from 'src/app/_services/account.service';import { NavService } from 'src/app/_services/nav.service';-import { ReaderService } from 'src/app/_services/reader.service';+import { CHAPTER_ID_DOESNT_EXIST, CHAPTER_ID_NOT_FETCHED, ReaderService } from 'src/app/_services/reader.service';import { SeriesService } from 'src/app/_services/series.service';import { DomSanitizer, SafeHtml } from '@angular/platform-browser';import { BookService } from '../book.service';@@ -27,7 +27,6 @@ import { User } from 'src/app/_models/user';import { ThemeService } from 'src/app/_services/theme.service';import { ScrollService } from 'src/app/_services/scroll.service';import { PAGING_DIRECTION } from 'src/app/manga-reader/_models/reader-enums';-import { LayoutMode } from 'src/app/manga-reader/_models/layout-mode';enum TabID {@@ -41,8 +40,6 @@ interface HistoryPoint {}const TOP_OFFSET = -50 * 1.5; // px the sticky header takes up // TODO: Do I need this or can I change it with new fixed top height-const CHAPTER_ID_NOT_FETCHED = -2;-const CHAPTER_ID_DOESNT_EXIST = -1;/*** Styles that should be applied on the top level book-content tag@@ -353,7 +350,9 @@ export class BookReaderComponent implements OnInit, AfterViewInit, OnDestroy {get ColumnHeight() {if (this.layoutMode !== BookPageLayoutMode.Default) {// Take the height after page loads, subtract the top/bottom bar- return this.windowHeight - (this.topOffset *2) + 'px';+ const height = this.windowHeight - (this.topOffset * 2);+ this.document.documentElement.style.setProperty('--book-reader-content-max-height', `${height}px`);+ return height + 'px';}return 'unset';}@@ -371,10 +370,11 @@ export class BookReaderComponent implements OnInit, AfterViewInit, OnDestroy {get PageHeightForPagination() {if (this.layoutMode === BookPageLayoutMode.Default) {- return (this.readingSectionElemRef?.nativeElement?.scrollHeight || 0) - (this.topOffset * 2) + 'px';+ return (this.readingSectionElemRef?.nativeElement?.scrollHeight || 0) - ((this.topOffset * (this.immersiveMode ? 0 : 1)) * 2) + 'px';}- return this.ColumnHeight;+ if (this.immersiveMode) return this.windowHeight + 'px';+ return (this.windowHeight) - (this.topOffset * 2) + 'px';}@@ -513,7 +513,7 @@ export class BookReaderComponent implements OnInit, AfterViewInit, OnDestroy {if (this.readingListMode && info.seriesFormat !== MangaFormat.EPUB) {// Redirect to the manga reader.const params = this.readerService.getQueryParamsObject(this.incognitoMode, this.readingListMode, this.readingListId);- this.router.navigate(['library', info.libraryId, 'series', info.seriesId, 'manga', this.chapterId], {queryParams: params});+ this.router.navigate(this.readerService.getNavigationArray(info.libraryId, info.seriesId, this.chapterId, info.seriesFormat), {queryParams: params});return;}@@ -809,7 +809,7 @@ export class BookReaderComponent implements OnInit, AfterViewInit, OnDestroy {const images = this.readingSectionElemRef?.nativeElement.querySelectorAll('img') || [];if (this.layoutMode !== BookPageLayoutMode.Default) {- const height = this.ColumnHeight;+ const height = (parseInt(this.ColumnHeight.replace('px', ''), 10) - (this.topOffset * 2)) + 'px';Array.from(images).forEach(img => {this.renderer.setStyle(img, 'max-height', height);});@@ -1210,6 +1210,12 @@ export class BookReaderComponent implements OnInit, AfterViewInit, OnDestroy {return;}setTimeout(() => {this.scrollbarNeeded = this.readingHtml.nativeElement.clientHeight > this.reader.nativeElement.clientHeight;});++ // When I switch layout, I might need to resume the progress point.+ if (mode === BookPageLayoutMode.Default) {+ const lastSelector = this.lastSeenScrollPartPath;+ setTimeout(() => this.scrollTo(lastSelector));+ }}updateReadingDirection(readingDirection: ReadingDirection) {@@ -1221,6 +1227,19 @@ export class BookReaderComponent implements OnInit, AfterViewInit, OnDestroy {if (this.immersiveMode && !this.drawerOpen) {this.actionBarVisible = false;}++ this.updateReadingSectionHeight();+ }++ updateReadingSectionHeight() {+ setTimeout(() => {+ //console.log('setting height on ', this.readingSectionElemRef)+ if (this.immersiveMode) {+ this.renderer.setStyle(this.readingSectionElemRef, 'height', 'calc(var(--vh, 1vh) * 100)', RendererStyleFlags2.Important);+ } else {+ this.renderer.setStyle(this.readingSectionElemRef, 'height', 'calc(var(--vh, 1vh) * 100 - ' + this.topOffset + 'px)', RendererStyleFlags2.Important);+ }+ });}// Table of Contentsdiff --git a/UI/Web/src/app/book-reader/reader-settings/reader-settings.component.html b/UI/Web/src/app/book-reader/reader-settings/reader-settings.component.htmlindex 0de05a19b..a57d80555 100644--- a/UI/Web/src/app/book-reader/reader-settings/reader-settings.component.html+++ b/UI/Web/src/app/book-reader/reader-settings/reader-settings.component.html@@ -122,7 +122,7 @@<input type="radio" formControlName="layoutMode" [value]="BookPageLayoutMode.Column2" class="btn-check" id="layout-mode-col2" autocomplete="off"><label class="btn btn-outline-primary" for="layout-mode-col2">2 Column</label>- </div>+ </div></div>diff --git a/UI/Web/src/app/bookmark/bookmarks/bookmarks.component.html b/UI/Web/src/app/bookmark/bookmarks/bookmarks.component.htmlindex 42151ba2b..b29ddccf1 100644--- a/UI/Web/src/app/bookmark/bookmarks/bookmarks.component.html+++ b/UI/Web/src/app/bookmark/bookmarks/bookmarks.component.html@@ -7,10 +7,12 @@<app-bulk-operations [actionCallback]="bulkActionCallback"></app-bulk-operations><app-card-detail-layout[isLoading]="loadingBookmarks"- [items]="series">+ [items]="series"+ [trackByIdentity]="trackByIdentity"+ ><ng-template #cardItem let-item let-position="idx"><app-card-item [entity]="item" (reload)="loadBookmarks()" [title]="item.name" [imageUrl]="imageService.getSeriesCoverImage(item.id)"- [supressArchiveWarning]="true" (clicked)="viewBookmarks(item)" [count]="seriesIds[item.id]" [allowSelection]="true"+ [suppressArchiveWarning]="true" (clicked)="viewBookmarks(item)" [count]="seriesIds[item.id]" [allowSelection]="true"[actions]="actions"[selected]="bulkSelectionService.isCardSelected('bookmark', position)" (selection)="bulkSelectionService.handleCardSelection('bookmark', position, series.length, $event)"></app-card-item>diff --git a/UI/Web/src/app/bookmark/bookmarks/bookmarks.component.ts b/UI/Web/src/app/bookmark/bookmarks/bookmarks.component.tsindex d8c939cc1..951224919 100644--- a/UI/Web/src/app/bookmark/bookmarks/bookmarks.component.ts+++ b/UI/Web/src/app/bookmark/bookmarks/bookmarks.component.ts@@ -28,6 +28,8 @@ export class BookmarksComponent implements OnInit, OnDestroy {clearingSeries: {[id: number]: boolean} = {};actions: ActionItem<Series>[] = [];+ trackByIdentity = (index: number, item: Series) => `${item.name}_${item.localizedName}_${item.pagesRead}`;+private onDestroy: Subject<void> = new Subject<void>();constructor(private readerService: ReaderService, private seriesService: SeriesService,diff --git a/UI/Web/src/app/cards/_modals/card-details-modal/card-details-modal.component.ts b/UI/Web/src/app/cards/_modals/card-details-modal/card-details-modal.component.tsindex 6c9b86133..451ec0fce 100644--- a/UI/Web/src/app/cards/_modals/card-details-modal/card-details-modal.component.ts+++ b/UI/Web/src/app/cards/_modals/card-details-modal/card-details-modal.component.ts@@ -222,10 +222,6 @@ export class CardDetailsModalComponent implements OnInit {return;}- if (chapter.files.length > 0 && chapter.files[0].format === MangaFormat.EPUB) {- this.router.navigate(['library', this.libraryId, 'series', this.seriesId, 'book', chapter.id]);- } else {- this.router.navigate(['library', this.libraryId, 'series', this.seriesId, 'manga', chapter.id]);- }+ this.router.navigate(this.readerService.getNavigationArray(this.libraryId, this.seriesId, this.chapter.id, chapter.files[0].format));}}diff --git a/UI/Web/src/app/cards/_modals/edit-collection-tags/edit-collection-tags.component.html b/UI/Web/src/app/cards/_modals/edit-collection-tags/edit-collection-tags.component.htmlindex 3e014b1af..4e7467b38 100644--- a/UI/Web/src/app/cards/_modals/edit-collection-tags/edit-collection-tags.component.html+++ b/UI/Web/src/app/cards/_modals/edit-collection-tags/edit-collection-tags.component.html@@ -7,8 +7,8 @@</div><div class="modal-body {{utilityService.getActiveBreakpoint() === Breakpoint.Mobile ? '' : 'd-flex'}}"><ul ngbNav #nav="ngbNav" [(activeId)]="active" class="nav-pills" orientation="{{utilityService.getActiveBreakpoint() === Breakpoint.Mobile ? 'horizontal' : 'vertical'}}" style="min-width: 135px;">- <li [ngbNavItem]="tabs[0]">- <a ngbNavLink>{{tabs[0]}}</a>+ <li [ngbNavItem]="tabs[TabID.General].id">+ <a ngbNavLink>{{tabs[TabID.General].title}}</a><ng-template ngbNavContent><p>This tag is currently {{tag?.promoted ? 'promoted' : 'not promoted'}} (<i class="fa fa-angle-double-up" aria-hidden="true"></i>).@@ -49,8 +49,8 @@</div></ng-template></li>- <li [ngbNavItem]="tabs[1]">- <a ngbNavLink>{{tabs[1]}}</a>+ <li [ngbNavItem]="tabs[TabID.CoverImage].id">+ <a ngbNavLink>{{tabs[TabID.CoverImage].title}}</a><ng-template ngbNavContent><p class="alert alert-primary" role="alert">Upload and choose a new cover image. Press Save to upload and override the cover.diff --git a/UI/Web/src/app/cards/_modals/edit-collection-tags/edit-collection-tags.component.ts b/UI/Web/src/app/cards/_modals/edit-collection-tags/edit-collection-tags.component.tsindex 6defd7126..f45370b9e 100644--- a/UI/Web/src/app/cards/_modals/edit-collection-tags/edit-collection-tags.component.ts+++ b/UI/Web/src/app/cards/_modals/edit-collection-tags/edit-collection-tags.component.ts@@ -16,6 +16,11 @@ import { SeriesService } from 'src/app/_services/series.service';import { UploadService } from 'src/app/_services/upload.service';+enum TabID {+ General = 0,+ CoverImage = 1,+}+@Component({selector: 'app-edit-collection-tags',templateUrl: './edit-collection-tags.component.html',@@ -32,8 +37,8 @@ export class EditCollectionTagsComponent implements OnInit {selectAll: boolean = true;libraryNames!: any;collectionTagForm!: FormGroup;- tabs = ['General', 'Cover Image'];- active = this.tabs[0];+ tabs = [{title: 'General', id: TabID.General}, {title: 'Cover Image', id: TabID.CoverImage}];+ active = TabID.General;imageUrls: Array<string> = [];selectedCover: string = '';@@ -45,6 +50,10 @@ export class EditCollectionTagsComponent implements OnInit {return Breakpoint;}+ get TabID() {+ return TabID;+ }+constructor(public modal: NgbActiveModal, private seriesService: SeriesService,private collectionService: CollectionTagService, private toastr: ToastrService,private confirmSerivce: ConfirmService, private libraryService: LibraryService,diff --git a/UI/Web/src/app/cards/_modals/edit-series-modal/edit-series-modal.component.html b/UI/Web/src/app/cards/_modals/edit-series-modal/edit-series-modal.component.htmlindex 08b135ef3..d0ac116b5 100644--- a/UI/Web/src/app/cards/_modals/edit-series-modal/edit-series-modal.component.html+++ b/UI/Web/src/app/cards/_modals/edit-series-modal/edit-series-modal.component.html@@ -341,7 +341,7 @@<h4>Information</h4><div class="row g-0 mb-2"><div class="col-md-6" *ngIf="libraryName">Library: {{libraryName | sentenceCase}}</div>- <div class="col-md-6">Format: <app-tag-badge>{{utilityService.mangaFormat(series.format)}}</app-tag-badge></div>+ <div class="col-md-6">Format: <app-tag-badge>{{series.format | mangaFormat}}</app-tag-badge></div></div><div class="row g-0 mb-2"><div class="col-md-6" >Created: {{series.created | date:'shortDate'}}</div>diff --git a/UI/Web/src/app/cards/_modals/edit-series-modal/edit-series-modal.component.ts b/UI/Web/src/app/cards/_modals/edit-series-modal/edit-series-modal.component.tsindex dcd48a0a0..a00efd58a 100644--- a/UI/Web/src/app/cards/_modals/edit-series-modal/edit-series-modal.component.ts+++ b/UI/Web/src/app/cards/_modals/edit-series-modal/edit-series-modal.component.ts@@ -338,11 +338,13 @@ export class EditSeriesModalComponent implements OnInit, OnDestroy {return a.isoCode == b.isoCode;}- if (this.metadata.language) {- const l = this.validLanguages.find(l => l.isoCode === this.metadata.language);- if (l !== undefined) {- this.languageSettings.savedData = l;- }+ if (this.metadata.language === undefined || this.metadata.language === null || this.metadata.language === '') {+ this.metadata.language = 'en';+ }++ const l = this.validLanguages.find(l => l.isoCode === this.metadata.language);+ if (l !== undefined) {+ this.languageSettings.savedData = l;}return of(true);}@@ -428,6 +430,7 @@ export class EditSeriesModalComponent implements OnInit, OnDestroy {model.nameLocked = this.series.nameLocked;model.sortNameLocked = this.series.sortNameLocked;model.localizedNameLocked = this.series.localizedNameLocked;+ model.language = this.metadata.language;apis.push(this.seriesService.updateSeries(model));}@@ -459,8 +462,12 @@ export class EditSeriesModalComponent implements OnInit, OnDestroy {this.metadata.genres = genres;}- updateLanguage(language: Language) {- this.metadata.language = language.isoCode;+ updateLanguage(language: Array<Language>) {+ if (language.length === 0) {+ this.metadata.language = '';+ return;+ }+ this.metadata.language = language[0].isoCode;}updatePerson(persons: Person[], role: PersonRole) {diff --git a/UI/Web/src/app/cards/bookmark/bookmark.component.html b/UI/Web/src/app/cards/bookmark/bookmark.component.htmldeleted file mode 100644index 6ad8fdf40..000000000--- a/UI/Web/src/app/cards/bookmark/bookmark.component.html+++ /dev/null@@ -1,27 +0,0 @@-<div class="card" *ngIf="bookmark != undefined">- <app-image height="230px" width="170px" [imageUrl]="imageService.getBookmarkedImage(bookmark.chapterId, bookmark.page)"></app-image>-- <div class="card-body" *ngIf="bookmark.page >= 0">- <div class="header-row">- <span class="card-title" tabindex="0">- Page {{bookmark.page + 1}}- </span>- <span class="card-actions float-end" *ngIf="series != undefined">- <button attr.aria-labelledby="series--{{series.name}}" class="btn btn-danger btn-sm" (click)="removeBookmark()"- [disabled]="isClearing" placement="top" ngbTooltip="Remove Bookmark" attr.aria-label="Remove Bookmark">- <ng-container *ngIf="isClearing; else notClearing">- <span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>- <span class="visually-hidden">Loading...</span>- </ng-container>- <ng-template #notClearing>- <i class="fa fa-trash-alt" aria-hidden="true"></i>- </ng-template>- </button>- </span>- </div>- <div>- <a *ngIf="series != undefined" class="title-overflow library" href="/library/{{series.libraryId}}/series/{{series.id}}"- placement="top" id="bookmark_card_{{series.name}}_{{bookmark.id}}" [ngbTooltip]="series.name | titlecase">{{series.name | titlecase}}</a>- </div>- </div>-</div>\ No newline at end of filediff --git a/UI/Web/src/app/cards/bookmark/bookmark.component.scss b/UI/Web/src/app/cards/bookmark/bookmark.component.scssdeleted file mode 100644index b64b52e8d..000000000--- a/UI/Web/src/app/cards/bookmark/bookmark.component.scss+++ /dev/null@@ -1,25 +0,0 @@-.card-body {- padding: 5px;-}--.card {- margin-left: 5px;- margin-right: 5px;-}--.header-row {- display: flex;- justify-content: space-between;- align-items: flex-start;-}--.title-overflow {- font-size: 13px;- width: 130px;- text-overflow: ellipsis;- white-space: nowrap;- overflow: hidden;- display: block;- margin-top: 2px;- margin-bottom: 0px;-}\ No newline at end of filediff --git a/UI/Web/src/app/cards/bookmark/bookmark.component.ts b/UI/Web/src/app/cards/bookmark/bookmark.component.tsdeleted file mode 100644index 437eb2227..000000000--- a/UI/Web/src/app/cards/bookmark/bookmark.component.ts+++ /dev/null@@ -1,43 +0,0 @@-import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';-import { Series } from 'src/app/_models/series';-import { ImageService } from 'src/app/_services/image.service';-import { ReaderService } from 'src/app/_services/reader.service';-import { SeriesService } from 'src/app/_services/series.service';-import { PageBookmark } from '../../_models/page-bookmark';--@Component({- selector: 'app-bookmark',- templateUrl: './bookmark.component.html',- styleUrls: ['./bookmark.component.scss']-})-export class BookmarkComponent implements OnInit {-- @Input() bookmark: PageBookmark | undefined;- @Output() bookmarkRemoved: EventEmitter<PageBookmark> = new EventEmitter<PageBookmark>();- series: Series | undefined;-- isClearing: boolean = false;- isDownloading: boolean = false;-- constructor(public imageService: ImageService, private seriesService: SeriesService, private readerService: ReaderService) { }-- ngOnInit(): void {- if (this.bookmark) {- this.seriesService.getSeries(this.bookmark.seriesId).subscribe(series => {- this.series = series;- });- }- }-- handleClick(event: any) {-- }-- removeBookmark() {- if (this.bookmark === undefined) return;- this.readerService.unbookmark(this.bookmark.seriesId, this.bookmark.volumeId, this.bookmark.chapterId, this.bookmark.page).subscribe(res => {- this.bookmarkRemoved.emit(this.bookmark);- this.bookmark = undefined;- });- }-}diff --git a/UI/Web/src/app/cards/bulk-operations/bulk-operations.component.ts b/UI/Web/src/app/cards/bulk-operations/bulk-operations.component.tsindex 6f5590339..8163dd4f6 100644--- a/UI/Web/src/app/cards/bulk-operations/bulk-operations.component.ts+++ b/UI/Web/src/app/cards/bulk-operations/bulk-operations.component.ts@@ -21,7 +21,7 @@ export class BulkOperationsComponent implements OnInit {ngOnInit(): void {const navBar = document.querySelector('.navbar');if (navBar) {- this.topOffset = Math.ceil(navBar.getBoundingClientRect().height);+ this.topOffset = Math.ceil(navBar.getBoundingClientRect().height); // TODO: We can make this fixed 63px}}diff --git a/UI/Web/src/app/cards/card-detail-drawer/card-detail-drawer.component.html b/UI/Web/src/app/cards/card-detail-drawer/card-detail-drawer.component.htmlnew file mode 100644index 000000000..a7e7efc3c--- /dev/null+++ b/UI/Web/src/app/cards/card-detail-drawer/card-detail-drawer.component.html@@ -0,0 +1,159 @@+<div class="offcanvas-header">+ <h5 class="offcanvas-title">+ <span class="modal-title" id="modal-basic-title">+ <app-entity-title [libraryType]="libraryType" [entity]="data" [seriesName]="parentName"></app-entity-title>+ </span>+ </h5>+ <button type="button" class="btn-close text-reset" aria-label="Close" (click)="activeOffcanvas.dismiss()"></button>+</div>++<div class="offcanvas-body pb-3">+ <div class="d-flex">+ <ul ngbNav #nav="ngbNav" [(activeId)]="active" class="nav-pills" orientation="vertical" style="max-width: 135px;">+ <li [ngbNavItem]="tabs[TabID.General]">+ <a ngbNavLink>General</a>+ <ng-template ngbNavContent>+ <div class="container-fluid" style="overflow: auto">++ <div class="row g-0">+ <div class="d-none d-md-block col-md-2 col-lg-1">+ <app-image class="me-2" width="74px" [imageUrl]="coverImageUrl"></app-image>+ </div>+ <div class="col-md-10 col-lg-11">+ <ng-container *ngIf="summary.length > 0; else noSummary">+ <app-read-more [text]="summary" [maxLength]="250"></app-read-more>+ </ng-container>+ <ng-template #noSummary>+ No Summary available.+ </ng-template>+ </div>+ </div>++ <app-entity-info-cards [entity]="data"></app-entity-info-cards>+++ <!-- 2 rows to show some tags-->+ <ng-container *ngIf="chapterMetadata !== undefined">+ <div class="row g-0 mb-2">+ <div class="col-md-6 col-sm-12">+ <h6>Authors/Writers</h6>+ <ng-container *ngIf="chapterMetadata.writers.length > 0; else noBadges">+ <app-badge-expander [items]="chapterMetadata.writers">+ <ng-template #badgeExpanderItem let-item let-position="idx">+ <app-person-badge [person]="item"></app-person-badge>+ </ng-template>+ </app-badge-expander>+ </ng-container>+ </div>+ <div class="col-md-6 col-sm-12">+ <h6>Genres</h6>+ <ng-container *ngIf="chapterMetadata.genres.length > 0; else noBadges">+ <app-badge-expander [items]="chapterMetadata.genres">+ <ng-template #badgeExpanderItem let-item let-position="idx">+ <app-tag-badge>{{item.title}}</app-tag-badge>+ </ng-template>+ </app-badge-expander>+ </ng-container>+ </div>+ </div>+ <div class="row g-0 mb-2">+ <div class="col-md-6 col-sm-12">+ <h6>Publisher</h6>+ <ng-container *ngIf="chapterMetadata.publishers.length > 0; else noBadges">+ <app-badge-expander [items]="chapterMetadata.publishers">+ <ng-template #badgeExpanderItem let-item let-position="idx">+ <app-person-badge [person]="item"></app-person-badge>+ </ng-template>+ </app-badge-expander>+ </ng-container>+ </div>+ <div class="col-md-6 col-sm-12">+ <h6>Tags</h6>+ <ng-container *ngIf="chapterMetadata.tags.length > 0; else noBadges">+ <app-badge-expander [items]="chapterMetadata.tags">+ <ng-template #badgeExpanderItem let-item let-position="idx">+ <app-tag-badge>{{item.title}}</app-tag-badge>+ </ng-template>+ </app-badge-expander>+ </ng-container>+ </div>+ </div>++ <ng-template #noBadges>+ Not defined+ </ng-template>+ </ng-container>++ </div>+ </ng-template>+ </li>++ <li [ngbNavItem]="tabs[TabID.Metadata]">+ <a ngbNavLink>{{tabs[TabID.Metadata].title}}</a>+ <ng-template ngbNavContent>+ <app-chapter-metadata-detail [chapter]="chapterMetadata"></app-chapter-metadata-detail>+ </ng-template>+ </li>++ <li [ngbNavItem]="tabs[TabID.Cover]">+ <a ngbNavLink>{{tabs[TabID.Cover].title}}</a>+ <ng-template ngbNavContent>+ <app-cover-image-chooser [(imageUrls)]="imageUrls"+ [showReset]="chapter.coverImageLocked"+ [showApplyButton]="true"+ (applyCover)="applyCoverImage($event)"+ (resetCover)="resetCoverImage()"+ >+ </app-cover-image-chooser>+ </ng-template>+ </li>++ <li [ngbNavItem]="tabs[TabID.Files]">+ <a ngbNavLink>{{tabs[TabID.Files].title}}</a>+ <ng-template ngbNavContent>+ <h4 *ngIf="!utilityService.isChapter(data)">{{utilityService.formatChapterName(libraryType) + 's'}}</h4>+ <ul class="list-unstyled">+ <li class="d-flex my-4" *ngFor="let chapter of chapters">+ <a (click)="readChapter(chapter)" href="javascript:void(0);" title="Read {{utilityService.formatChapterName(libraryType, true, false)}} {{formatChapterNumber(chapter)}}">+ <app-image class="me-2" width="74px" [imageUrl]="chapter.coverImage"></app-image>+ </a>+ <div class="flex-grow-1">+ <h5 class="mt-0 mb-1">+ <span >+ <span>+ <app-card-actionables (actionHandler)="performAction($event, chapter)" [actions]="chapterActions"+ [labelBy]="utilityService.formatChapterName(libraryType, true, true) + formatChapterNumber(chapter)"></app-card-actionables>+ <ng-container *ngIf="chapter.number !== '0'; else specialHeader">+ {{utilityService.formatChapterName(libraryType, true, false) }} {{formatChapterNumber(chapter)}}+ </ng-container>+ </span>+ <span class="badge bg-primary rounded-pill ms-1">+ <span *ngIf="chapter.pagesRead > 0 && chapter.pagesRead < chapter.pages">{{chapter.pagesRead}} / {{chapter.pages}}</span>+ <span *ngIf="chapter.pagesRead === 0">UNREAD</span>+ <span *ngIf="chapter.pagesRead === chapter.pages">READ</span>+ </span>+ </span>+ <ng-template #specialHeader>Files</ng-template>+ </h5>+ <ul class="list-group">+ <li *ngFor="let file of chapter.files" class="list-group-item no-hover">+ <span>{{file.filePath}}</span>+ <div class="row g-0">+ <div class="col">+ Pages: {{file.pages | number:''}}+ </div>+ <div class="col" *ngIf="data.hasOwnProperty('created')">+ Added: {{(data.created | date: 'short') || '-'}}+ </div>+ </div>+ </li>+ </ul>+ </div>+ </li>+ </ul>+ </ng-template>+ </li>+ </ul>+ <div [ngbNavOutlet]="nav" class="tab-content {{utilityService.getActiveBreakpoint() === Breakpoint.Mobile ? 'mt-3' : 'ms-4 flex-fill'}}"></div>+ </div>+</div>\ No newline at end of filediff --git a/UI/Web/src/app/cards/card-detail-drawer/card-detail-drawer.component.scss b/UI/Web/src/app/cards/card-detail-drawer/card-detail-drawer.component.scssnew file mode 100644index 000000000..8873c06ac--- /dev/null+++ b/UI/Web/src/app/cards/card-detail-drawer/card-detail-drawer.component.scss@@ -0,0 +1,20 @@+.hide-if-empty:empty {+ display: none !important;+}++.offcanvas-body {+ overflow: auto;+}++.offcanvas-header {+ padding: 1rem 1rem 0;+}++.tab-content {+ overflow: auto;+ height: calc(40vh - 63px); // drawer height - offcanvas heading height+}++.h6 {+ font-weight: 600;+}\ No newline at end of filediff --git a/UI/Web/src/app/cards/card-detail-drawer/card-detail-drawer.component.ts b/UI/Web/src/app/cards/card-detail-drawer/card-detail-drawer.component.tsnew file mode 100644index 000000000..ec970c3ef--- /dev/null+++ b/UI/Web/src/app/cards/card-detail-drawer/card-detail-drawer.component.ts@@ -0,0 +1,257 @@+import { Component, Input, OnInit } from '@angular/core';+import { Router } from '@angular/router';+import { NgbActiveOffcanvas } from '@ng-bootstrap/ng-bootstrap';+import { ToastrService } from 'ngx-toastr';+import { finalize, Observable, take, takeWhile } from 'rxjs';+import { Download } from 'src/app/shared/_models/download';+import { DownloadService } from 'src/app/shared/_services/download.service';+import { Breakpoint, UtilityService } from 'src/app/shared/_services/utility.service';+import { Chapter } from 'src/app/_models/chapter';+import { ChapterMetadata } from 'src/app/_models/chapter-metadata';+import { LibraryType } from 'src/app/_models/library';+import { MangaFile } from 'src/app/_models/manga-file';+import { MangaFormat } from 'src/app/_models/manga-format';+import { PersonRole } from 'src/app/_models/person';+import { Volume } from 'src/app/_models/volume';+import { AccountService } from 'src/app/_services/account.service';+import { ActionItem, ActionFactoryService, Action } from 'src/app/_services/action-factory.service';+import { ActionService } from 'src/app/_services/action.service';+import { ImageService } from 'src/app/_services/image.service';+import { LibraryService } from 'src/app/_services/library.service';+import { MetadataService } from 'src/app/_services/metadata.service';+import { ReaderService } from 'src/app/_services/reader.service';+import { SeriesService } from 'src/app/_services/series.service';+import { UploadService } from 'src/app/_services/upload.service';++enum TabID {+ General = 0,+ Metadata = 1,+ Cover = 2,+ Files = 3+}++@Component({+ selector: 'app-card-detail-drawer',+ templateUrl: './card-detail-drawer.component.html',+ styleUrls: ['./card-detail-drawer.component.scss']+})+export class CardDetailDrawerComponent implements OnInit {++ @Input() parentName = '';+ @Input() seriesId: number = 0;+ @Input() libraryId: number = 0;+ @Input() data!: Volume | Chapter;++ /**+ * If this is a volume, this will be first chapter for said volume.+ */+ chapter!: Chapter;+ isChapter = false;+ chapters: Chapter[] = [];++ imageUrls: Array<string> = [];+ /**+ * Cover image for the entity+ */+ coverImageUrl!: string;+++ actions: ActionItem<any>[] = [];+ chapterActions: ActionItem<Chapter>[] = [];+ libraryType: LibraryType = LibraryType.Manga;+++ tabs = [{title: 'General', disabled: false}, {title: 'Metadata', disabled: false}, {title: 'Cover', disabled: false}, {title: 'Info', disabled: false}];+ active = this.tabs[0];++ chapterMetadata!: ChapterMetadata;+ summary: string = '';++ download$: Observable<Download> | null = null;+ downloadInProgress: boolean = false;++++ get MangaFormat() {+ return MangaFormat;+ }++ get Breakpoint() {+ return Breakpoint;+ }++ get PersonRole() {+ return PersonRole;+ }++ get LibraryType() {+ return LibraryType;+ }++ get TabID() {+ return TabID;+ }++ constructor(public utilityService: UtilityService,+ public imageService: ImageService, private uploadService: UploadService, private toastr: ToastrService,+ private accountService: AccountService, private actionFactoryService: ActionFactoryService,+ private actionService: ActionService, private router: Router, private libraryService: LibraryService,+ private seriesService: SeriesService, private readerService: ReaderService, public metadataService: MetadataService,+ public activeOffcanvas: NgbActiveOffcanvas, private downloadService: DownloadService) { }++ ngOnInit(): void {+ this.isChapter = this.utilityService.isChapter(this.data);++ this.chapter = this.utilityService.isChapter(this.data) ? (this.data as Chapter) : (this.data as Volume).chapters[0];+ if (this.isChapter) {+ this.coverImageUrl = this.imageService.getChapterCoverImage(this.data.id);+ } else {+ this.coverImageUrl = this.imageService.getVolumeCoverImage(this.data.id);+ }++ this.imageUrls.push(this.imageService.getChapterCoverImage(this.chapter.id));++ this.seriesService.getChapterMetadata(this.chapter.id).subscribe(metadata => {+ this.chapterMetadata = metadata;+ });+++ if (this.isChapter) {+ this.summary = this.utilityService.asChapter(this.data).summary || '';+ } else {+ this.summary = this.utilityService.asVolume(this.data).chapters[0].summary || '';+ }++ this.accountService.currentUser$.pipe(take(1)).subscribe(user => {+ if (user) {+ if (!this.accountService.hasAdminRole(user)) {+ this.tabs.find(s => s.title === 'Cover')!.disabled = true;+ }+ }+ });++ this.libraryService.getLibraryType(this.libraryId).subscribe(type => {+ this.libraryType = type;+ });++ this.chapterActions = this.actionFactoryService.getChapterActions(this.handleChapterActionCallback.bind(this)).filter(item => item.action !== Action.Edit);+ this.chapterActions.push({title: 'Read', action: Action.Read, callback: this.handleChapterActionCallback.bind(this), requiresAdmin: false});++ if (this.isChapter) {+ this.chapters.push(this.data as Chapter);+ } else if (!this.isChapter) {+ this.chapters.push(...(this.data as Volume).chapters);+ }+ // TODO: Move this into the backend+ this.chapters.sort(this.utilityService.sortChapters);+ this.chapters.forEach(c => c.coverImage = this.imageService.getChapterCoverImage(c.id));+ // Try to show an approximation of the reading order for files+ var collator = new Intl.Collator(undefined, {numeric: true, sensitivity: 'base'});+ this.chapters.forEach((c: Chapter) => {+ c.files.sort((a: MangaFile, b: MangaFile) => collator.compare(a.filePath, b.filePath));+ });+ }++ close() {+ this.activeOffcanvas.close();+ }++ formatChapterNumber(chapter: Chapter) {+ if (chapter.number === '0') {+ return '1';+ }+ return chapter.number;+ }++ performAction(action: ActionItem<any>, chapter: Chapter) {+ if (typeof action.callback === 'function') {+ action.callback(action.action, chapter);+ }+ }++ applyCoverImage(coverUrl: string) {+ this.uploadService.updateChapterCoverImage(this.chapter.id, coverUrl).subscribe(() => {});+ }++ resetCoverImage() {+ this.uploadService.resetChapterCoverLock(this.chapter.id).subscribe(() => {+ this.toastr.info('A job has been enqueued to regenerate the cover image');+ });+ }++ markChapterAsRead(chapter: Chapter) {+ if (this.seriesId === 0) {+ return;+ }++ this.actionService.markChapterAsRead(this.seriesId, chapter, () => { /* No Action */ });+ }++ markChapterAsUnread(chapter: Chapter) {+ if (this.seriesId === 0) {+ return;+ }++ this.actionService.markChapterAsUnread(this.seriesId, chapter, () => { /* No Action */ });+ }++ handleChapterActionCallback(action: Action, chapter: Chapter) {+ switch (action) {+ case(Action.MarkAsRead):+ this.markChapterAsRead(chapter);+ break;+ case(Action.MarkAsUnread):+ this.markChapterAsUnread(chapter);+ break;+ case(Action.AddToReadingList):+ this.actionService.addChapterToReadingList(chapter, this.seriesId);+ break;+ case (Action.IncognitoRead):+ this.readChapter(chapter, true);+ break;+ case (Action.Download):+ this.download(chapter);+ break;+ case (Action.Read):+ this.readChapter(chapter, false);+ break;+ default:+ break;+ }+ }++ readChapter(chapter: Chapter, incognito: boolean = false) {+ if (chapter.pages === 0) {+ this.toastr.error('There are no pages. Kavita was not able to read this archive.');+ return;+ }++ const params = this.readerService.getQueryParamsObject(incognito, false);+ this.router.navigate(this.readerService.getNavigationArray(this.libraryId, this.seriesId, chapter.id, chapter.files[0].format), {queryParams: params});+ this.close();+ }++ download(chapter: Chapter) {+ if (this.downloadInProgress === true) {+ this.toastr.info('Download is already in progress. Please wait.');+ return;+ }++ this.downloadService.downloadChapterSize(chapter.id).pipe(take(1)).subscribe(async (size) => {+ const wantToDownload = await this.downloadService.confirmSize(size, 'chapter');+ if (!wantToDownload) { return; }++ this.downloadInProgress = true;+ this.download$ = this.downloadService.downloadChapter(chapter).pipe(+ takeWhile(val => {+ return val.state != 'DONE';+ }),+ finalize(() => {+ this.download$ = null;+ this.downloadInProgress = false;+ }));+ this.download$.subscribe(() => {});+ });+ }++}diff --git a/UI/Web/src/app/cards/card-detail-layout/card-detail-layout.component.html b/UI/Web/src/app/cards/card-detail-layout/card-detail-layout.component.htmlindex 8e7ae79f1..7bc9cc543 100644--- a/UI/Web/src/app/cards/card-detail-layout/card-detail-layout.component.html+++ b/UI/Web/src/app/cards/card-detail-layout/card-detail-layout.component.html@@ -12,85 +12,52 @@</h2></div></div>-<app-metadata-filter [filterSettings]="filterSettings" [filterOpen]="filterOpen" (applyFilter)="applyMetadataFilter($event)"></app-metadata-filter>--<ng-container [ngTemplateOutlet]="paginationTemplate" [ngTemplateOutletContext]="{ id: 'top' }"></ng-container>--<!-- <ng-container *ngIf="utilityService.getActiveBreakpoint() <= Breakpoint.Mobile; else cardTemplate">- <div class="d-flex justify-content-center row g-0 mt-2 mb-2">- <div class="col-auto ps-1 pe-1 mt-2 mb-2" *ngFor="let item of items; trackBy:trackByIdentity; index as i">- <ng-container [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ $implicit: item, idx: i }"></ng-container>+<div class="viewport-container">+ <div class="content-container">+ <div class="card-container mt-2 mb-2">+ <virtual-scroller #scroll [items]="items" [bufferAmount]="1" [parentScroll]="parentScroll">+ <div class="grid row g-0" #container>+ <div class="card col-auto mt-2 mb-2" *ngFor="let item of scroll.viewPortItems; trackBy:trackByIdentity; index as i" id="jumpbar-index--{{i}}" [attr.jumpbar-index]="i">+ <ng-container [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ $implicit: item, idx: scroll.viewPortInfo.startIndexWithBuffer + i }"></ng-container>+ </div>+ </div>+ </virtual-scroller>++ <p *ngIf="items.length === 0 && !isLoading">+ <ng-container [ngTemplateOutlet]="noDataTemplate"></ng-container>+ </p></div>--- <p *ngIf="items.length === 0 && !isLoading">- <ng-container [ngTemplateOutlet]="noDataTemplate"></ng-container>- </p></div>-</ng-container> -->--<ng-container [ngTemplateOutlet]="cardTemplate"></ng-container>-<ng-container [ngTemplateOutlet]="paginationTemplate" [ngTemplateOutletContext]="{ id: 'bottom' }"></ng-container>--<ng-template #cardTemplate>-<div class="card-container row g-0 mt-3 mb-3">- <div class="card col-auto mt-2 mb-2" *ngFor="let item of items; trackBy:trackByIdentity; index as i">- <ng-container [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ $implicit: item, idx: i }"></ng-container>- </div>-- <p *ngIf="items.length === 0 && !isLoading">- <ng-container [ngTemplateOutlet]="noDataTemplate"></ng-container>- </p>+ <ng-container *ngIf="jumpBarKeysToRender.length >= 4" [ngTemplateOutlet]="jumpBar" [ngTemplateOutletContext]="{ id: 'jumpbar' }"></ng-container></div>-</ng-template>--<ng-template #paginationTemplate let-id="id">-<div class="d-flex justify-content-center mb-0" *ngIf="pagination && items.length > 0">- <ngb-pagination- *ngIf="pagination.totalPages > 1"- [maxSize]="8"- [rotate]="true"- [ellipses]="false"- [(page)]="pagination.currentPage"- [pageSize]="pagination.itemsPerPage"- (pageChange)="onPageChange($event)"- [collectionSize]="pagination.totalItems">-- <ng-template ngbPaginationPages let-page let-pages="pages" *ngIf="pagination.totalItems / pagination.itemsPerPage > 20">- <li class="ngb-custom-pages-item" *ngIf="pagination.totalPages > 1">- <div class="d-flex flex-nowrap px-2">- <label- id="paginationInputLabel-{{id}}"- for="paginationInput-{{id}}"- class="col-form-label me-2 ms-1 form-label"- >Page</label>- <input #i- type="text"- inputmode="numeric"- pattern="[0-9]*"- class="form-control custom-pages-input"- id="paginationInput-{{id}}"- [value]="page"- (keyup.enter)="selectPageStr(i.value)"- (blur)="selectPageStr(i.value)"- (input)="formatInput($any($event).target)"- attr.aria-labelledby="paginationInputLabel-{{id}} paginationDescription-{{id}}"- [ngStyle]="{width: (0.5 + pagination.currentPage + '').length + 'rem'} "- />- <span id="paginationDescription-{{id}}" class="col-form-label text-nowrap px-2">- of {{pagination.totalPages}}</span>- </div>- </li>- </ng-template>+<ng-template #cardTemplate>+ <virtual-scroller #scroll [items]="items" [bufferAmount]="1">+ <div class="grid row g-0" #container>+ <div class="card col-auto mt-2 mb-2" *ngFor="let item of scroll.viewPortItems; trackBy:trackByIdentity; index as i" id="jumpbar-index--{{i}}" [attr.jumpbar-index]="i">+ <ng-container [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ $implicit: item, idx: i }"></ng-container>+ </div>+ </div>+ </virtual-scroller>- </ngb-pagination>-</div>+ <div class="mx-auto" *ngIf="items.length === 0 && !isLoading" style="width: 200px;">+ <p><ng-container [ngTemplateOutlet]="noDataTemplate"></ng-container></p>+ </div></ng-template><div class="mx-auto" *ngIf="isLoading" style="width: 200px;"><div class="spinner-border text-secondary loading" role="status"><span class="invisible">Loading...</span></div>-</div>\ No newline at end of file+</div>++<ng-template #jumpBar>+ <div class="jump-bar">+ <ng-container *ngFor="let jumpKey of jumpBarKeysToRender; let i = index;">+ <button class="btn btn-link" (click)="scrollTo(jumpKey)">+ {{jumpKey.title}}+ </button>+ </ng-container>+ </div>+</ng-template>\ No newline at end of filediff --git a/UI/Web/src/app/cards/card-detail-layout/card-detail-layout.component.scss b/UI/Web/src/app/cards/card-detail-layout/card-detail-layout.component.scssindex 0ddbed57f..01986ace8 100644--- a/UI/Web/src/app/cards/card-detail-layout/card-detail-layout.component.scss+++ b/UI/Web/src/app/cards/card-detail-layout/card-detail-layout.component.scss@@ -1,6 +1,84 @@+.viewport-container {+ display: flex;+ flex-direction: row;+ width: 100%;+ height: calc((var(--vh) *100) - 162px);+ margin-bottom: 10px;+}++.content-container {+ display: flex;+ flex-direction: column;+ width: 100%;+ height: 100%;+ margin-bottom: 10px;+}+.card-container {+ display: inline-block;+ width: 100%;+ //overflow-y: auto;+}++.grid {display: grid;grid-template-columns: repeat(auto-fill, 158px);grid-gap: 0.5rem;justify-content: space-around;-}\ No newline at end of file+ width: 100%;+ overflow-y: auto;+ overflow-x: hidden;+ align-items: start;+}++@media (max-width: 576px) {+ .grid {+ grid-gap: 0.3rem;+ }+}++.jump-bar {+ display: flex;+ flex-flow: column;+ flex-shrink: 0;+ font-size: 13px;+ overflow: hidden;+ padding: 0 10px;+ align-items: center;+ justify-content: space-around;++ .btn {+ text-decoration: none;+ color: hsla(0,0%,100%,.7);+ height: 25px;+ text-align: center;+ -webkit-tap-highlight-color: transparent;+ background: none;+ border: 0;+ border-radius: 0;+ cursor: pointer;+ line-height: inherit;+ margin: 0;+ outline: none;+ padding: 0;+ text-align: inherit;+ text-decoration: none;+ touch-action: manipulation;+ transition: color .2s;+ -webkit-user-select: none;+ user-select: none;++ &:hover {+ color: var(--primary-color);+ }+ }+}++.virtual-scroller, virtual-scroller {+ width: 100%;+ //height: calc(100vh - 160px); // 64 is a random number, 523 for me.+ height: calc(var(--vh) * 100 - 160px);+ //height: calc(100vh - 160px);+ //background-color: red;+ //max-height: calc(var(--vh)*100 - 170px);+}diff --git a/UI/Web/src/app/cards/card-detail-layout/card-detail-layout.component.ts b/UI/Web/src/app/cards/card-detail-layout/card-detail-layout.component.tsindex caea2f0dc..0012cf042 100644--- a/UI/Web/src/app/cards/card-detail-layout/card-detail-layout.component.ts+++ b/UI/Web/src/app/cards/card-detail-layout/card-detail-layout.component.ts@@ -1,26 +1,38 @@-import { Component, ContentChild, EventEmitter, Input, OnDestroy, OnInit, Output, TemplateRef } from '@angular/core';+import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';+import { DOCUMENT } from '@angular/common';+import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ElementRef, EventEmitter, HostListener, Inject, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChanges, TemplateRef, TrackByFunction, ViewChild } from '@angular/core';+import { VirtualScrollerComponent } from '@iharbeck/ngx-virtual-scroller';import { Subject } from 'rxjs';import { FilterSettings } from 'src/app/metadata-filter/filter-settings';import { Breakpoint, UtilityService } from 'src/app/shared/_services/utility.service';+import { JumpKey } from 'src/app/_models/jumpbar/jump-key';import { Library } from 'src/app/_models/library';import { Pagination } from 'src/app/_models/pagination';import { FilterEvent, FilterItem, SeriesFilter } from 'src/app/_models/series-filter';import { ActionItem } from 'src/app/_services/action-factory.service';import { SeriesService } from 'src/app/_services/series.service';-const FILTER_PAG_REGEX = /[^0-9]/g;+const keySize = 24;@Component({selector: 'app-card-detail-layout',templateUrl: './card-detail-layout.component.html',- styleUrls: ['./card-detail-layout.component.scss']+ styleUrls: ['./card-detail-layout.component.scss'],+ changeDetection: ChangeDetectionStrategy.OnPush})-export class CardDetailLayoutComponent implements OnInit, OnDestroy {+export class CardDetailLayoutComponent implements OnInit, OnDestroy, OnChanges {@Input() header: string = '';@Input() isLoading: boolean = false;@Input() items: any[] = [];@Input() pagination!: Pagination;+ /**+ * Parent scroll for virtualize pagination+ */+ @Input() parentScroll!: Element | Window;++ // Filter Code+ @Input() filterOpen!: EventEmitter<boolean>;/*** Should filtering be shown on the page*/@@ -29,65 +41,131 @@ export class CardDetailLayoutComponent implements OnInit, OnDestroy {* Any actions to exist on the header for the parent collection (library, collection)*/@Input() actions: ActionItem<any>[] = [];- @Input() trackByIdentity!: (index: number, item: any) => string;+ @Input() trackByIdentity!: TrackByFunction<any>; //(index: number, item: any) => string@Input() filterSettings!: FilterSettings;+++ @Input() jumpBarKeys: Array<JumpKey> = []; // This is aprox 784 pixels wide+ jumpBarKeysToRender: Array<JumpKey> = []; // Original+@Output() itemClicked: EventEmitter<any> = new EventEmitter();- @Output() pageChange: EventEmitter<Pagination> = new EventEmitter();@Output() applyFilter: EventEmitter<FilterEvent> = new EventEmitter();@ContentChild('cardItem') itemTemplate!: TemplateRef<any>;@ContentChild('noData') noDataTemplate!: TemplateRef<any>;+ @ViewChild('.jump-bar') jumpBar!: ElementRef<HTMLDivElement>;+ @ViewChild('scroller') scroller!: CdkVirtualScrollViewport;-- // Filter Code- @Input() filterOpen!: EventEmitter<boolean>;-+ @ViewChild(VirtualScrollerComponent) private virtualScroller!: VirtualScrollerComponent;filter!: SeriesFilter;libraries: Array<FilterItem<Library>> = [];updateApplied: number = 0;-private onDestory: Subject<void> = new Subject();get Breakpoint() {return Breakpoint;}- constructor(private seriesService: SeriesService, public utilityService: UtilityService) {+ constructor(private seriesService: SeriesService, public utilityService: UtilityService,+ @Inject(DOCUMENT) private document: Document, private changeDetectionRef: ChangeDetectorRef) {this.filter = this.seriesService.createSeriesFilter();+ this.changeDetectionRef.markForCheck();+ }++ @HostListener('window:resize', ['$event'])+ @HostListener('window:orientationchange', ['$event'])+ resizeJumpBar() {+ const fullSize = (this.jumpBarKeys.length * keySize);+ const currentSize = (this.document.querySelector('.viewport-container')?.getBoundingClientRect().height || 10) - 30;+ if (currentSize >= fullSize) {+ this.jumpBarKeysToRender = [...this.jumpBarKeys];+ this.changeDetectionRef.markForCheck();+ return;+ }++ const targetNumberOfKeys = parseInt(Math.floor(currentSize / keySize) + '', 10);+ const removeCount = this.jumpBarKeys.length - targetNumberOfKeys - 3;+ if (removeCount <= 0) return;+++ this.jumpBarKeysToRender = [];++ const removalTimes = Math.ceil(removeCount / 2);+ const midPoint = Math.floor(this.jumpBarKeys.length / 2);+ this.jumpBarKeysToRender.push(this.jumpBarKeys[0]);+ this.removeFirstPartOfJumpBar(midPoint, removalTimes);+ this.jumpBarKeysToRender.push(this.jumpBarKeys[midPoint]);+ this.removeSecondPartOfJumpBar(midPoint, removalTimes);+ this.jumpBarKeysToRender.push(this.jumpBarKeys[this.jumpBarKeys.length - 1]);+ this.changeDetectionRef.markForCheck();+ }++ removeSecondPartOfJumpBar(midPoint: number, numberOfRemovals: number = 1) {+ const removedIndexes: Array<number> = [];+ for(let removal = 0; removal < numberOfRemovals; removal++) {+ let min = 100000000;+ let minIndex = -1;+ for(let i = midPoint + 1; i < this.jumpBarKeys.length - 2; i++) {+ if (this.jumpBarKeys[i].size < min && !removedIndexes.includes(i)) {+ min = this.jumpBarKeys[i].size;+ minIndex = i;+ }+ }+ removedIndexes.push(minIndex);+ }+ for(let i = midPoint + 1; i < this.jumpBarKeys.length - 2; i++) {+ if (!removedIndexes.includes(i)) this.jumpBarKeysToRender.push(this.jumpBarKeys[i]);+ }+ }++ removeFirstPartOfJumpBar(midPoint: number, numberOfRemovals: number = 1) {+ const removedIndexes: Array<number> = [];+ for(let removal = 0; removal < numberOfRemovals; removal++) {+ let min = 100000000;+ let minIndex = -1;+ for(let i = 1; i < midPoint; i++) {+ if (this.jumpBarKeys[i].size < min && !removedIndexes.includes(i)) {+ min = this.jumpBarKeys[i].size;+ minIndex = i;+ }+ }+ removedIndexes.push(minIndex);+ }++ for(let i = 1; i < midPoint; i++) {+ if (!removedIndexes.includes(i)) this.jumpBarKeysToRender.push(this.jumpBarKeys[i]);+ }}ngOnInit(): void {- this.trackByIdentity = (index: number, item: any) => `${this.header}_${this.pagination?.currentPage}_${this.updateApplied}_${item?.libraryId}`;+ if (this.trackByIdentity === undefined) {+ this.trackByIdentity = (index: number, item: any) => `${this.header}_${this.updateApplied}_${item?.libraryId}`;+ }if (this.filterSettings === undefined) {this.filterSettings = new FilterSettings();+ this.changeDetectionRef.markForCheck();}if (this.pagination === undefined) {- this.pagination = {currentPage: 1, itemsPerPage: this.items.length, totalItems: this.items.length, totalPages: 1}+ this.pagination = {currentPage: 1, itemsPerPage: this.items.length, totalItems: this.items.length, totalPages: 1};+ this.changeDetectionRef.markForCheck();}}- ngOnDestroy() {- this.onDestory.next();- this.onDestory.complete();+ ngOnChanges(changes: SimpleChanges): void {+ this.jumpBarKeysToRender = [...this.jumpBarKeys];+ this.resizeJumpBar();}- onPageChange(page: number) {- this.pageChange.emit(this.pagination);- }-- selectPageStr(page: string) {- this.pagination.currentPage = parseInt(page, 10) || 1;- this.onPageChange(this.pagination.currentPage);- }- formatInput(input: HTMLInputElement) {- input.value = input.value.replace(FILTER_PAG_REGEX, '');+ ngOnDestroy() {+ this.onDestory.next();+ this.onDestory.complete();}performAction(action: ActionItem<any>) {@@ -99,6 +177,19 @@ export class CardDetailLayoutComponent implements OnInit, OnDestroy {applyMetadataFilter(event: FilterEvent) {this.applyFilter.emit(event);this.updateApplied++;+ this.changeDetectionRef.markForCheck();}++ scrollTo(jumpKey: JumpKey) {+ let targetIndex = 0;+ for(var i = 0; i < this.jumpBarKeys.length; i++) {+ if (this.jumpBarKeys[i].key === jumpKey.key) break;+ targetIndex += this.jumpBarKeys[i].size;+ }++ this.virtualScroller.scrollToIndex(targetIndex, true, undefined, 1000);+ this.changeDetectionRef.markForCheck();+ return;+ }}diff --git a/UI/Web/src/app/cards/card-item/card-actionables/card-actionables.component.html b/UI/Web/src/app/cards/card-item/card-actionables/card-actionables.component.htmlindex 2509711cb..504366f5d 100644--- a/UI/Web/src/app/cards/card-item/card-actionables/card-actionables.component.html+++ b/UI/Web/src/app/cards/card-item/card-actionables/card-actionables.component.html@@ -7,4 +7,5 @@<button ngbDropdownItem *ngFor="let action of adminActions" (click)="performAction($event, action)">{{action.title}}</button></div></div>+ <!-- TODO: If we are not on desktop, then let's open a bottom drawer instead--></ng-container>\ No newline at end of filediff --git a/UI/Web/src/app/cards/card-item/card-item.component.html b/UI/Web/src/app/cards/card-item/card-item.component.htmlindex 5c2ed5164..674b2b28e 100644--- a/UI/Web/src/app/cards/card-item/card-item.component.html+++ b/UI/Web/src/app/cards/card-item/card-item.component.html@@ -1,14 +1,14 @@<div class="card {{selected ? 'selected-highlight' : ''}}"><div class="overlay" (click)="handleClick($event)">- <ng-container *ngIf="total > 0 || supressArchiveWarning">+ <ng-container *ngIf="total > 0 || suppressArchiveWarning"><app-image borderRadius=".25rem .25rem 0 0" height="230px" width="158px" [imageUrl]="imageUrl"></app-image></ng-container>- <ng-container *ngIf="total === 0 && !supressArchiveWarning">+ <ng-container *ngIf="total === 0 && !suppressArchiveWarning"><app-image borderRadius=".25rem .25rem 0 0" height="230px" width="158px" [imageUrl]="imageService.errorImage"></app-image></ng-container>- <div class="progress-banner" *ngIf="read < total && total > 0 && read !== total">- <p><ngb-progressbar type="primary" height="5px" [value]="read" [max]="total"></ngb-progressbar></p>+ <div class="progress-banner">+ <p *ngIf="read < total && total > 0 && read !== total"><ngb-progressbar type="primary" height="5px" [value]="read" [max]="total"></ngb-progressbar></p><span class="download" *ngIf="download$ | async as download"><app-circular-loader [currentValue]="download.progress"></app-circular-loader>@@ -17,7 +17,7 @@</span></span></div>- <div class="error-banner" *ngIf="total === 0 && !supressArchiveWarning">+ <div class="error-banner" *ngIf="total === 0 && !suppressArchiveWarning">Cannot Read</div>@@ -44,7 +44,10 @@<i class="fa fa-angle-double-up" aria-hidden="true"></i><span class="visually-hidden">(promoted)</span></span>- <i class="fa {{utilityService.mangaFormatIcon(format)}}" aria-hidden="true" *ngIf="format != MangaFormat.UNKNOWN" title="{{utilityService.mangaFormat(format)}}"></i><span class="visually-hidden">{{utilityService.mangaFormat(format)}}</span>+ <ng-container *ngIf="format | mangaFormat as formatString">+ <i class="fa {{format | mangaFormatIcon}}" aria-hidden="true" *ngIf="format != MangaFormat.UNKNOWN" title="{{formatString}}"></i>+ <span class="visually-hidden">{{formatString}}</span>+ </ng-container> {{title}}</span><span class="card-actions float-end">diff --git a/UI/Web/src/app/cards/card-item/card-item.component.ts b/UI/Web/src/app/cards/card-item/card-item.component.tsindex bef21e716..217813d7b 100644--- a/UI/Web/src/app/cards/card-item/card-item.component.ts+++ b/UI/Web/src/app/cards/card-item/card-item.component.ts@@ -1,4 +1,4 @@-import { Component, EventEmitter, HostListener, Input, OnDestroy, OnInit, Output } from '@angular/core';+import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, HostListener, Input, OnDestroy, OnInit, Output } from '@angular/core';import { ToastrService } from 'ngx-toastr';import { Observable, Subject } from 'rxjs';import { filter, finalize, map, take, takeUntil, takeWhile } from 'rxjs/operators';@@ -19,12 +19,14 @@ import { Action, ActionItem } from 'src/app/_services/action-factory.service';import { ImageService } from 'src/app/_services/image.service';import { LibraryService } from 'src/app/_services/library.service';import { EVENTS, MessageHubService } from 'src/app/_services/message-hub.service';+import { ScrollService } from 'src/app/_services/scroll.service';import { BulkSelectionService } from '../bulk-selection.service';@Component({selector: 'app-card-item',templateUrl: './card-item.component.html',- styleUrls: ['./card-item.component.scss']+ styleUrls: ['./card-item.component.scss'],+ changeDetection: ChangeDetectionStrategy.OnPush})export class CardItemComponent implements OnInit, OnDestroy {@@ -47,11 +49,11 @@ export class CardItemComponent implements OnInit, OnDestroy {/*** Pages Read*/- @Input() read = 0;+ @Input() read = 0;/*** Total Pages*/- @Input() total = 0;+ @Input() total = 0;/*** Supress library link*/@@ -61,7 +63,7 @@ export class CardItemComponent implements OnInit, OnDestroy {*/@Input() entity!: Series | Volume | Chapter | CollectionTag | PageBookmark | RecentlyAddedItem;/**- * If the entity is selected or not.+ * If the entity is selected or not.*/@Input() selected: boolean = false;/**@@ -69,15 +71,15 @@ export class CardItemComponent implements OnInit, OnDestroy {*/@Input() allowSelection: boolean = false;/**- * This will supress the cannot read archive warning when total pages is 0+ * This will suppress the cannot read archive warning when total pages is 0*/- @Input() supressArchiveWarning: boolean = false;+ @Input() suppressArchiveWarning: boolean = false;/*** The number of updates/items within the card. If less than 2, will not be shown.*/@Input() count: number = 0;/**- * Additional information to show on the overlay area. Will always render.+ * Additional information to show on the overlay area. Will always render.*/@Input() overlayInformation: string = '';/**@@ -91,14 +93,14 @@ export class CardItemComponent implements OnInit, OnDestroy {/*** Library name item belongs to*/- libraryName: string | undefined = undefined;- libraryId: number | undefined = undefined;+ libraryName: string | undefined = undefined;+ libraryId: number | undefined = undefined;/*** Format of the entity (only applies to Series)*/format: MangaFormat = MangaFormat.UNKNOWN;chapterTitle: string = '';-+download$: Observable<Download> | null = null;downloadInProgress: boolean = false;@@ -111,6 +113,7 @@ export class CardItemComponent implements OnInit, OnDestroy {* Handles touch events for selection on mobile devices to ensure you aren't touch scrolling*/prevOffset: number = 0;+ selectionInProgress: boolean = false;private user: User | undefined;@@ -118,7 +121,7 @@ export class CardItemComponent implements OnInit, OnDestroy {if (this.chapterTitle === '' || this.chapterTitle === null) return this.title;return this.chapterTitle;}-+get MangaFormat(): typeof MangaFormat {return MangaFormat;@@ -126,14 +129,15 @@ export class CardItemComponent implements OnInit, OnDestroy {private readonly onDestroy = new Subject<void>();- constructor(public imageService: ImageService, private libraryService: LibraryService,+ constructor(public imageService: ImageService, private libraryService: LibraryService,public utilityService: UtilityService, private downloadService: DownloadService,private toastr: ToastrService, public bulkSelectionService: BulkSelectionService,- private messageHub: MessageHubService, private accountService: AccountService) {}+ private messageHub: MessageHubService, private accountService: AccountService, private scrollService: ScrollService, private changeDetectionRef: ChangeDetectorRef) {}ngOnInit(): void {if (this.entity.hasOwnProperty('promoted') && this.entity.hasOwnProperty('title')) {- this.supressArchiveWarning = true;+ this.suppressArchiveWarning = true;+ this.changeDetectionRef.markForCheck();}if (this.suppressLibraryLink === false) {@@ -144,6 +148,7 @@ export class CardItemComponent implements OnInit, OnDestroy {if (this.libraryId !== undefined && this.libraryId > 0) {this.libraryService.getLibraryName(this.libraryId).pipe(takeUntil(this.onDestroy)).subscribe(name => {this.libraryName = name;+ this.changeDetectionRef.markForCheck();});}}@@ -162,14 +167,15 @@ export class CardItemComponent implements OnInit, OnDestroy {this.user = user;});- this.messageHub.messages$.pipe(filter(event => event.event === EVENTS.UserProgressUpdate),+ this.messageHub.messages$.pipe(filter(event => event.event === EVENTS.UserProgressUpdate),map(evt => evt.payload as UserProgressUpdateEvent), takeUntil(this.onDestroy)).subscribe(updateEvent => {if (this.user === undefined || this.user.username !== updateEvent.username) return;if (this.utilityService.isChapter(this.entity) && updateEvent.chapterId !== this.entity.id) return;if (this.utilityService.isVolume(this.entity) && updateEvent.volumeId !== this.entity.id) return;if (this.utilityService.isSeries(this.entity) && updateEvent.seriesId !== this.entity.id) return;-+this.read = updateEvent.pagesRead;+ this.changeDetectionRef.markForCheck();});}@@ -178,37 +184,35 @@ export class CardItemComponent implements OnInit, OnDestroy {this.onDestroy.complete();}+ @HostListener('touchmove', ['$event'])+ onTouchMove(event: TouchEvent) {+ if (!this.allowSelection) return;++ this.selectionInProgress = false;+ }@HostListener('touchstart', ['$event'])onTouchStart(event: TouchEvent) {if (!this.allowSelection) return;- const verticalOffset = (window.pageYOffset- || document.documentElement.scrollTop- || document.body.scrollTop || 0);this.prevTouchTime = event.timeStamp;- this.prevOffset = verticalOffset;+ this.prevOffset = this.scrollService.scrollPosition;+ this.selectionInProgress = true;}@HostListener('touchend', ['$event'])onTouchEnd(event: TouchEvent) {if (!this.allowSelection) return;const delta = event.timeStamp - this.prevTouchTime;- const verticalOffset = (window.pageYOffset- || document.documentElement.scrollTop- || document.body.scrollTop || 0);+ const verticalOffset = this.scrollService.scrollPosition;- if (verticalOffset != this.prevOffset) {- this.prevTouchTime = 0;- return;- }-- if (delta >= 300 && delta <= 1000) {+ if (delta >= 300 && delta <= 1000 && (verticalOffset === this.prevOffset) && this.selectionInProgress) {this.handleSelection();event.stopPropagation();event.preventDefault();}this.prevTouchTime = 0;+ this.selectionInProgress = false;}@@ -216,10 +220,6 @@ export class CardItemComponent implements OnInit, OnDestroy {this.clicked.emit(this.title);}- isNullOrEmpty(val: string) {- return val === null || val === undefined || val === '';- }-preventClick(event: any) {event.stopPropagation();event.preventDefault();@@ -231,13 +231,14 @@ export class CardItemComponent implements OnInit, OnDestroy {this.toastr.info('Download is already in progress. Please wait.');return;}-+if (this.utilityService.isVolume(this.entity)) {const volume = this.utilityService.asVolume(this.entity);this.downloadService.downloadVolumeSize(volume.id).pipe(take(1)).subscribe(async (size) => {const wantToDownload = await this.downloadService.confirmSize(size, 'volume');if (!wantToDownload) { return; }this.downloadInProgress = true;+ this.changeDetectionRef.markForCheck();this.download$ = this.downloadService.downloadVolume(volume).pipe(takeWhile(val => {return val.state != 'DONE';@@ -245,6 +246,7 @@ export class CardItemComponent implements OnInit, OnDestroy {finalize(() => {this.download$ = null;this.downloadInProgress = false;+ this.changeDetectionRef.markForCheck();}));});} else if (this.utilityService.isChapter(this.entity)) {@@ -253,6 +255,7 @@ export class CardItemComponent implements OnInit, OnDestroy {const wantToDownload = await this.downloadService.confirmSize(size, 'chapter');if (!wantToDownload) { return; }this.downloadInProgress = true;+ this.changeDetectionRef.markForCheck();this.download$ = this.downloadService.downloadChapter(chapter).pipe(takeWhile(val => {return val.state != 'DONE';@@ -260,6 +263,7 @@ export class CardItemComponent implements OnInit, OnDestroy {finalize(() => {this.download$ = null;this.downloadInProgress = false;+ this.changeDetectionRef.markForCheck();}));});} else if (this.utilityService.isSeries(this.entity)) {@@ -268,6 +272,7 @@ export class CardItemComponent implements OnInit, OnDestroy {const wantToDownload = await this.downloadService.confirmSize(size, 'series');if (!wantToDownload) { return; }this.downloadInProgress = true;+ this.changeDetectionRef.markForCheck();this.download$ = this.downloadService.downloadSeries(series).pipe(takeWhile(val => {return val.state != 'DONE';@@ -275,6 +280,7 @@ export class CardItemComponent implements OnInit, OnDestroy {finalize(() => {this.download$ = null;this.downloadInProgress = false;+ this.changeDetectionRef.markForCheck();}));});}diff --git a/UI/Web/src/app/cards/cards.module.ts b/UI/Web/src/app/cards/cards.module.tsindex f18f3a967..71ff20172 100644--- a/UI/Web/src/app/cards/cards.module.ts+++ b/UI/Web/src/app/cards/cards.module.ts@@ -5,7 +5,7 @@ import { LibraryCardComponent } from './library-card/library-card.component';import { CoverImageChooserComponent } from './cover-image-chooser/cover-image-chooser.component';import { EditSeriesModalComponent } from './_modals/edit-series-modal/edit-series-modal.component';import { EditCollectionTagsComponent } from './_modals/edit-collection-tags/edit-collection-tags.component';-import { NgbTooltipModule, NgbCollapseModule, NgbPaginationModule, NgbDropdownModule, NgbProgressbarModule, NgbNavModule, NgbRatingModule } from '@ng-bootstrap/ng-bootstrap';+import { NgbTooltipModule, NgbCollapseModule, NgbPaginationModule, NgbDropdownModule, NgbProgressbarModule, NgbNavModule, NgbRatingModule, NgbOffcanvasModule } from '@ng-bootstrap/ng-bootstrap';import { CardActionablesComponent } from './card-item/card-actionables/card-actionables.component';import { FormsModule, ReactiveFormsModule } from '@angular/forms';import { NgxFileDropModule } from 'ngx-file-drop';@@ -22,6 +22,13 @@ import { ChapterMetadataDetailComponent } from './chapter-metadata-detail/chapteimport { FileInfoComponent } from './file-info/file-info.component';import { MetadataFilterModule } from '../metadata-filter/metadata-filter.module';import { EditSeriesRelationComponent } from './edit-series-relation/edit-series-relation.component';+import { CardDetailDrawerComponent } from './card-detail-drawer/card-detail-drawer.component';+import { EntityTitleComponent } from './entity-title/entity-title.component';+import { EntityInfoCardsComponent } from './entity-info-cards/entity-info-cards.component';+import { ListItemComponent } from './list-item/list-item.component';+import { VirtualScrollerModule } from '@iharbeck/ngx-virtual-scroller';+import { SeriesInfoCardsComponent } from './series-info-cards/series-info-cards.component';+@@ -41,6 +48,11 @@ import { EditSeriesRelationComponent } from './edit-series-relation/edit-series-ChapterMetadataDetailComponent,FileInfoComponent,EditSeriesRelationComponent,+ CardDetailDrawerComponent,+ EntityTitleComponent,+ EntityInfoCardsComponent,+ ListItemComponent,+ SeriesInfoCardsComponent,],imports: [CommonModule,@@ -57,15 +69,22 @@ import { EditSeriesRelationComponent } from './edit-series-relation/edit-series-NgbTooltipModule, // Card itemNgbCollapseModule,NgbRatingModule,++ VirtualScrollerModule,-+ NgbOffcanvasModule, // Series Detail, action of cardsNgbNavModule, //Series Detail- NgbPaginationModule, // CardDetailLayoutComponent+ NgbPaginationModule, // EditCollectionTagsComponentNgbDropdownModule,NgbProgressbarModule,NgxFileDropModule, // Cover Chooser- PipeModule // filter for BulkAddToCollectionComponent+ PipeModule, // filter for BulkAddToCollectionComponent+++++ SharedModule, // IconAndTitleComponent],exports: [CardItemComponent,@@ -81,7 +100,18 @@ import { EditSeriesRelationComponent } from './edit-series-relation/edit-series-CardDetailsModalComponent,BulkOperationsComponent,ChapterMetadataDetailComponent,- EditSeriesRelationComponent+ EditSeriesRelationComponent,++ EntityTitleComponent,+ EntityInfoCardsComponent,+ ListItemComponent,++ NgbOffcanvasModule,++ VirtualScrollerModule,+ SeriesInfoCardsComponent++]})export class CardsModule { }diff --git a/UI/Web/src/app/cards/chapter-metadata-detail/chapter-metadata-detail.component.ts b/UI/Web/src/app/cards/chapter-metadata-detail/chapter-metadata-detail.component.tsindex 1a3db1cc2..1e0c08f98 100644--- a/UI/Web/src/app/cards/chapter-metadata-detail/chapter-metadata-detail.component.ts+++ b/UI/Web/src/app/cards/chapter-metadata-detail/chapter-metadata-detail.component.ts@@ -1,5 +1,4 @@import { Component, Input, OnInit } from '@angular/core';-import { MetadataService } from 'src/app/_services/metadata.service';import { Chapter } from 'src/app/_models/chapter';import { ChapterMetadata } from 'src/app/_models/chapter-metadata';import { UtilityService } from 'src/app/shared/_services/utility.service';@@ -23,7 +22,7 @@ export class ChapterMetadataDetailComponent implements OnInit {return LibraryType;}- constructor(private metadataService: MetadataService, public utilityService: UtilityService) { }+ constructor(public utilityService: UtilityService) { }ngOnInit(): void {this.roles = Object.keys(PersonRole).filter(role => /[0-9]/.test(role) === false);@@ -41,19 +40,4 @@ export class ChapterMetadataDetailComponent implements OnInit {action.callback(action.action, chapter);}}-- readChapter(chapter: Chapter) {- // if (chapter.pages === 0) {- // this.toastr.error('There are no pages. Kavita was not able to read this archive.');- // return;- // }-- // if (chapter.files.length > 0 && chapter.files[0].format === MangaFormat.EPUB) {- // this.router.navigate(['library', this.libraryId, 'series', this.seriesId, 'book', chapter.id]);- // } else {- // this.router.navigate(['library', this.libraryId, 'series', this.seriesId, 'manga', chapter.id]);- // }- }--}diff --git a/UI/Web/src/app/cards/cover-image-chooser/cover-image-chooser.component.html b/UI/Web/src/app/cards/cover-image-chooser/cover-image-chooser.component.htmlindex caca55bd2..51dad01fb 100644--- a/UI/Web/src/app/cards/cover-image-chooser/cover-image-chooser.component.html+++ b/UI/Web/src/app/cards/cover-image-chooser/cover-image-chooser.component.html@@ -48,11 +48,27 @@</form><div class="row g-0 chooser" style="padding-top: 10px">- <div class="image-card col-auto {{selectedIndex === idx ? 'selected' : ''}}" *ngFor="let url of imageUrls; let idx = index;" tabindex="0" attr.aria-label="Image {{idx + 1}}" (click)="selectImage(idx)">- <app-image class="card-img-top" height="230px" width="158px" [imageUrl]="url"></app-image>+ <div class="image-card col-auto"+ *ngFor="let url of imageUrls; let idx = index;" tabindex="0" attr.aria-label="Image {{idx + 1}}" (click)="selectImage(idx)"+ [ngClass]="{'selected': !showApplyButton && selectedIndex === idx}">+ <app-image class="card-img-top" height="230px" width="158px" [imageUrl]="url" [processEvents]="idx > 0"></app-image>+ <ng-container *ngIf="showApplyButton">+ <br>+ <button class="btn btn-primary" style="width: 100%;" aria-label="Apply for uploaded image"+ (click)="applyImage(idx)">+ {{appliedIndex === idx ? 'Applied' : 'Apply'}}+ </button>+ </ng-container></div>- <div class="image-card col-auto {{selectedIndex === -1 ? 'selected' : ''}}" *ngIf="showReset" tabindex="0" attr.aria-label="Reset cover image" (click)="reset()">+ <div class="image-card col-auto"+ *ngIf="showReset" tabindex="0" attr.aria-label="Reset cover image" (click)="reset()"+ [ngClass]="{'selected': !showApplyButton && selectedIndex === -1}"><app-image class="card-img-top" title="Reset Cover Image" height="230px" width="158px" [imageUrl]="imageService.resetCoverImage"></app-image>+ <ng-container *ngIf="showApplyButton">+ <br>+ <button style="width: 100%;" class="btn btn-secondary" aria-label="Reset to generated image" (click)="resetImage()">Reset</button>+ </ng-container>+</div></div>diff --git a/UI/Web/src/app/cards/cover-image-chooser/cover-image-chooser.component.ts b/UI/Web/src/app/cards/cover-image-chooser/cover-image-chooser.component.tsindex 5f3a2e895..6fb505c39 100644--- a/UI/Web/src/app/cards/cover-image-chooser/cover-image-chooser.component.ts+++ b/UI/Web/src/app/cards/cover-image-chooser/cover-image-chooser.component.ts@@ -9,6 +9,8 @@ import { KEY_CODES } from 'src/app/shared/_services/utility.service';import { UploadService } from 'src/app/_services/upload.service';import { DOCUMENT } from '@angular/common';+export type SelectCoverFunction = (selectedCover: string) => void;+@Component({selector: 'app-cover-image-chooser',templateUrl: './cover-image-chooser.component.html',@@ -16,6 +18,19 @@ import { DOCUMENT } from '@angular/common';})export class CoverImageChooserComponent implements OnInit, OnDestroy {+ /**+ * If buttons show under images to allow immediate selection of cover images.+ */+ @Input() showApplyButton: boolean = false;+ /**+ * When a cover image is selected, this will be called with a base url representation of the file.+ */+ @Output() applyCover: EventEmitter<string> = new EventEmitter<string>();+ /**+ * When a cover image is reset, this will be called.+ */+ @Output() resetCover: EventEmitter<void> = new EventEmitter<void>();+@Input() imageUrls: Array<string> = [];@Output() imageUrlsChange: EventEmitter<Array<string>> = new EventEmitter<Array<string>>();@@ -37,6 +52,10 @@ export class CoverImageChooserComponent implements OnInit, OnDestroy {selectedIndex: number = 0;+ /**+ * Only applies for showApplyButton. Used to track which image is applied.+ */+ appliedIndex: number = 0;form!: FormGroup;files: NgxFileDropEntry[] = [];@@ -78,6 +97,19 @@ export class CoverImageChooserComponent implements OnInit, OnDestroy {this.selectedBase64Url.emit(this.imageUrls[this.selectedIndex]);}+ applyImage(index: number) {+ if (this.showApplyButton) {+ this.applyCover.emit(this.imageUrls[index]);+ this.appliedIndex = index;+ }+ }++ resetImage() {+ if (this.showApplyButton) {+ this.resetCover.emit();+ }+ }+loadImage() {const url = this.form.get('coverImageUrl')?.value.trim();if (url && url != '') {diff --git a/UI/Web/src/app/cards/entity-info-cards/entity-info-cards.component.html b/UI/Web/src/app/cards/entity-info-cards/entity-info-cards.component.htmlnew file mode 100644index 000000000..ff9a069ff--- /dev/null+++ b/UI/Web/src/app/cards/entity-info-cards/entity-info-cards.component.html@@ -0,0 +1,66 @@+<div class="row g-0 mt-4 mb-3">+ <ng-container *ngIf="totalPages > 0">+ <div class="col-auto mb-2">+ <app-icon-and-title label="Print Length" [clickable]="false" fontClasses="fa-regular fa-file-lines" title="Pages">+ {{totalPages | number:''}} Pages+ </app-icon-and-title>+ </div>+ <div class="vr d-none d-lg-block m-2"></div>+ </ng-container>++ <ng-container *ngIf="chapter !== undefined && chapter.releaseDate && (chapter.releaseDate | date: 'shortDate') !== '1/1/01'">+ <div class="col-auto mb-2">+ <app-icon-and-title label="Release Date" [clickable]="false" fontClasses="fa-regular fa-calendar" title="Release">+ {{chapter.releaseDate | date:'shortDate'}}+ </app-icon-and-title>+ </div>+ <div class="vr d-none d-lg-block m-2"></div>+ </ng-container>++ <ng-container *ngIf="chapter.files[0].format === MangaFormat.EPUB && totalWordCount > 0 || chapter.files[0].format !== MangaFormat.EPUB">+ <div class="col-auto mb-2">+ <app-icon-and-title label="Read Time" [clickable]="false" fontClasses="fa-regular fa-clock">+ <ng-container *ngIf="readingTime.maxHours === 0; else normalReadTime"><1 Hour</ng-container>+ <ng-template #normalReadTime>+ {{readingTime.minHours}}{{readingTime.maxHours !== readingTime.minHours ? ('-' + readingTime.maxHours) : ''}} Hour{{readingTime.minHours > 1 ? 's' : ''}}+ </ng-template>+ </app-icon-and-title>+ </div>+ </ng-container>++ <ng-container *ngIf="chapter.files[0].format === MangaFormat.EPUB && totalWordCount > 0">+ <div class="vr d-none d-lg-block m-2"></div>+ <div class="col-auto mb-2">+ <app-icon-and-title label="Word Count" [clickable]="false" fontClasses="fa-solid fa-book-open">+ {{totalWordCount | compactNumber}} Words+ </app-icon-and-title>+ </div>+ </ng-container>++ <ng-container *ngIf="chapter.ageRating !== AgeRating.Unknown">+ <div class="vr d-none d-lg-block m-2"></div>+ <div class="col-auto">+ <app-icon-and-title label="Age Rating" [clickable]="false" fontClasses="fas fa-eye" title="Age Rating">+ {{chapter.ageRating | ageRating | async}}+ </app-icon-and-title>+ </div>+ </ng-container>++ <ng-container *ngIf="showExtendedProperties && chapter.created && chapter.created !== '' && (chapter.created | date: 'shortDate') !== '1/1/01'">+ <div class="vr d-none d-lg-block m-2"></div>+ <div class="col-auto">+ <app-icon-and-title label="Date Added" [clickable]="false" fontClasses="fa-solid fa-file-import" title="Date Added">+ {{chapter.created | date:'short' || '-'}}+ </app-icon-and-title>+ </div>+ </ng-container>++ <ng-container *ngIf="showExtendedProperties">+ <div class="vr d-none d-lg-block m-2"></div>+ <div class="col-auto">+ <app-icon-and-title label="ID" [clickable]="false" fontClasses="fa-solid fa-fingerprint" title="ID">+ {{entity.id}}+ </app-icon-and-title>+ </div>+ </ng-container>+</div>\ No newline at end of filediff --git a/UI/Web/src/app/cards/entity-info-cards/entity-info-cards.component.scss b/UI/Web/src/app/cards/entity-info-cards/entity-info-cards.component.scssnew file mode 100644index 000000000..e69de29bbdiff --git a/UI/Web/src/app/cards/entity-info-cards/entity-info-cards.component.ts b/UI/Web/src/app/cards/entity-info-cards/entity-info-cards.component.tsnew file mode 100644index 000000000..c0d426cd7--- /dev/null+++ b/UI/Web/src/app/cards/entity-info-cards/entity-info-cards.component.ts@@ -0,0 +1,96 @@+import { Component, Input, OnDestroy, OnInit } from '@angular/core';+import { Subject } from 'rxjs';+import { UtilityService } from 'src/app/shared/_services/utility.service';+import { Chapter } from 'src/app/_models/chapter';+import { ChapterMetadata } from 'src/app/_models/chapter-metadata';+import { HourEstimateRange } from 'src/app/_models/hour-estimate-range';+import { LibraryType } from 'src/app/_models/library';+import { MangaFormat } from 'src/app/_models/manga-format';+import { AgeRating } from 'src/app/_models/metadata/age-rating';+import { Volume } from 'src/app/_models/volume';+import { SeriesService } from 'src/app/_services/series.service';++@Component({+ selector: 'app-entity-info-cards',+ templateUrl: './entity-info-cards.component.html',+ styleUrls: ['./entity-info-cards.component.scss']+})+export class EntityInfoCardsComponent implements OnInit, OnDestroy {++ @Input() entity!: Volume | Chapter;+ /**+ * This will pull extra information+ */+ @Input() includeMetadata: boolean = false;++ /**+ * Hide more system based fields, like Id or Date Added+ */+ @Input() showExtendedProperties: boolean = true;++ isChapter = false;+ chapter!: Chapter;++ chapterMetadata!: ChapterMetadata;+ ageRating!: string;+ totalPages: number = 0;+ totalWordCount: number = 0;+ readingTime: HourEstimateRange = {maxHours: 1, minHours: 1, avgHours: 1};++ private readonly onDestroy: Subject<void> = new Subject();++ get LibraryType() {+ return LibraryType;+ }++ get MangaFormat() {+ return MangaFormat;+ }++ get AgeRating() {+ return AgeRating;+ }++ constructor(private utilityService: UtilityService, private seriesService: SeriesService) {}++ ngOnInit(): void {+ this.isChapter = this.utilityService.isChapter(this.entity);++ this.chapter = this.utilityService.isChapter(this.entity) ? (this.entity as Chapter) : (this.entity as Volume).chapters[0];++ if (this.includeMetadata) {+ this.seriesService.getChapterMetadata(this.chapter.id).subscribe(metadata => {+ this.chapterMetadata = metadata;+ });+ }++ this.totalPages = this.chapter.pages;+ if (!this.isChapter) {+ this.totalPages = this.utilityService.asVolume(this.entity).pages;+ }++ this.totalWordCount = this.chapter.wordCount;+ if (!this.isChapter) {+ this.totalWordCount = this.utilityService.asVolume(this.entity).chapters.map(c => c.wordCount).reduce((sum, d) => sum + d);+ }++++ if (this.isChapter) {+ this.readingTime.minHours = this.chapter.minHoursToRead;+ this.readingTime.maxHours = this.chapter.maxHoursToRead;+ this.readingTime.avgHours = this.chapter.avgHoursToRead;+ } else {+ const vol = this.utilityService.asVolume(this.entity);+ this.readingTime.minHours = vol.minHoursToRead;+ this.readingTime.maxHours = vol.maxHoursToRead;+ this.readingTime.avgHours = vol.avgHoursToRead;+ }+ }++ ngOnDestroy(): void {+ this.onDestroy.next();+ this.onDestroy.complete();+ }++}diff --git a/UI/Web/src/app/cards/entity-title/entity-title.component.html b/UI/Web/src/app/cards/entity-title/entity-title.component.htmlnew file mode 100644index 000000000..a4f468e97--- /dev/null+++ b/UI/Web/src/app/cards/entity-title/entity-title.component.html@@ -0,0 +1,29 @@+<ng-container [ngSwitch]="libraryType">+ <ng-container *ngSwitchCase="LibraryType.Comic">+ <ng-container *ngIf="titleName != '' && prioritizeTitleName; else fullComicTitle">+ {{titleName}}+ </ng-container>+ <ng-template #fullComicTitle>+ {{seriesName.length > 0 ? seriesName + ' - ' : ''}}+ <ng-container *ngIf="includeVolume && volumeTitle != ''">+ {{entity.number != 0 ? (isChapter && includeVolume ? volumeTitle : '') : ''}}+ </ng-container>+ {{entity.number != 0 ? (isChapter ? 'Issue #' + entity.number : volumeTitle) : 'Special'}}+ </ng-template>+ </ng-container>+ <ng-container *ngSwitchCase="LibraryType.Manga">+ <ng-container *ngIf="titleName != '' && prioritizeTitleName; else fullMangaTitle">+ {{titleName}}+ </ng-container>+ <ng-template #fullMangaTitle>+ {{seriesName.length > 0 ? seriesName + ' - ' : ''}}+ <ng-container *ngIf="includeVolume && volumeTitle != ''">+ {{entity.number != 0 ? (isChapter && includeVolume ? volumeTitle : '') : ''}}+ </ng-container>+ {{entity.number != 0 ? (isChapter ? 'Chapter ' + entity.number : volumeTitle) : 'Special'}}+ </ng-template>+ </ng-container>+ <ng-container *ngSwitchCase="LibraryType.Book">+ {{volumeTitle}}+ </ng-container>+</ng-container>\ No newline at end of filediff --git a/UI/Web/src/app/cards/entity-title/entity-title.component.scss b/UI/Web/src/app/cards/entity-title/entity-title.component.scssnew file mode 100644index 000000000..e69de29bbdiff --git a/UI/Web/src/app/cards/entity-title/entity-title.component.ts b/UI/Web/src/app/cards/entity-title/entity-title.component.tsnew file mode 100644index 000000000..8a6a99e07--- /dev/null+++ b/UI/Web/src/app/cards/entity-title/entity-title.component.ts@@ -0,0 +1,57 @@+import { Component, Input, OnInit } from '@angular/core';+import { UtilityService } from 'src/app/shared/_services/utility.service';+import { Chapter } from 'src/app/_models/chapter';+import { LibraryType } from 'src/app/_models/library';+import { Volume } from 'src/app/_models/volume';++@Component({+ selector: 'app-entity-title',+ templateUrl: './entity-title.component.html',+ styleUrls: ['./entity-title.component.scss']+})+export class EntityTitleComponent implements OnInit {++ /**+ * Library type for which the entity belongs+ */+ @Input() libraryType: LibraryType = LibraryType.Manga;+ @Input() seriesName: string = '';+ @Input() entity!: Volume | Chapter;+ /**+ * When generating the title, should this prepend 'Volume number' before the Chapter wording+ */+ @Input() includeVolume: boolean = false;+ /**+ * When a titleName (aka a title) is avaliable on the entity, show it over Volume X Chapter Y+ */+ @Input() prioritizeTitleName: boolean = true;++ isChapter = false;+ chapter!: Chapter;+ titleName: string = '';+ volumeTitle: string = '';+++ get LibraryType() {+ return LibraryType;+ }++++ constructor(private utilityService: UtilityService) {+ }++ ngOnInit(): void {+ this.isChapter = this.utilityService.isChapter(this.entity);++ if (this.isChapter) {+ const c = (this.entity as Chapter);+ this.volumeTitle = c.volumeTitle || '';+ this.titleName = c.titleName || '';+ } else {+ const v = this.utilityService.asVolume(this.entity);+ this.volumeTitle = v.name || '';+ this.titleName = v.chapters[0].titleName || '';+ }+ }+}diff --git a/UI/Web/src/app/cards/list-item/list-item.component.html b/UI/Web/src/app/cards/list-item/list-item.component.htmlnew file mode 100644index 000000000..2c3b846fd--- /dev/null+++ b/UI/Web/src/app/cards/list-item/list-item.component.html@@ -0,0 +1,39 @@+<div class="list-item-container d-flex flex-row g-0 mb-2 p-2">+ <div class="pe-2">+ <app-image [imageUrl]="imageUrl" [height]="imageHeight" maxHeight="200px" [width]="imageWidth"></app-image>+ <div class="not-read-badge" *ngIf="pagesRead === 0 && totalPages > 0"></div>+ <span class="download" *ngIf="download$ | async as download">+ <app-circular-loader [currentValue]="download.progress"></app-circular-loader>+ <span class="visually-hidden" role="status">+ {{download.progress}}% downloaded+ </span>+ </span>+ <div class="progress-banner" *ngIf="pagesRead < totalPages && totalPages > 0 && pagesRead !== totalPages">+ <p><ngb-progressbar type="primary" height="5px" [value]="pagesRead" [max]="totalPages"></ngb-progressbar></p>+ </div>+ </div>+ <div class="flex-grow-1">+ <div class="g-0">+ <h5 style="margin-bottom: 0px">+ <app-card-actionables [disabled]="actionInProgress" (actionHandler)="performAction($event)" [actions]="actions" [labelBy]="seriesName" iconClass="fa-ellipsis-v"></app-card-actionables>+ <ng-content select="[title]"></ng-content>+ <button class="btn btn-primary float-end" (click)="read.emit()">+ <span>+ <i class="fa fa-book me-1" aria-hidden="true"></i>+ </span>+ <span class="d-none d-sm-inline-block">Read</span>+ </button>+ </h5>+ <!-- This isn't perfect, but it might work. TODO: Polish this-->+ <h6 class="text-muted" [ngClass]="{'subtitle-with-actionables' : actions.length > 0}" style="font-size: 0.75rem" *ngIf="Title != '' && showTitle">{{Title}}</h6>+ <ng-container *ngIf="summary.length > 0">+ <div class="mt-2 ps-2">+ <app-read-more [text]="summary" [blur]="pagesRead === 0 && blur" [maxLength]="250"></app-read-more>+ </div>+ </ng-container>+ <div class="ps-2 d-none d-md-inline-block">+ <app-entity-info-cards [entity]="entity" [showExtendedProperties]="false"></app-entity-info-cards>+ </div>+ </div>+ </div>+</div>\ No newline at end of filediff --git a/UI/Web/src/app/cards/list-item/list-item.component.scss b/UI/Web/src/app/cards/list-item/list-item.component.scssnew file mode 100644index 000000000..dc80a7506--- /dev/null+++ b/UI/Web/src/app/cards/list-item/list-item.component.scss@@ -0,0 +1,37 @@+$image-height: 230px;+$image-width: 160px;+$triangle-size: 30px;++.download {+ width: 80px;+ height: 80px;+ position: absolute;+ top: 55px;+ left: 20px;+}++.progress-banner {+ height: 5px;++ .progress {+ color: var(--card-progress-bar-color);+ background-color: transparent;+ }+}++.list-item-container {+ background: var(--card-list-item-bg-color);+ border-radius: 5px;+ position: relative;+}++.not-read-badge {+ position: absolute;+ top: 8px;+ left: 108px;+ width: 0;+ height: 0;+ border-style: solid;+ border-width: 0 $triangle-size $triangle-size 0;+ border-color: transparent var(--primary-color) transparent transparent;+}\ No newline at end of filediff --git a/UI/Web/src/app/cards/list-item/list-item.component.ts b/UI/Web/src/app/cards/list-item/list-item.component.tsnew file mode 100644index 000000000..cb45f33bc--- /dev/null+++ b/UI/Web/src/app/cards/list-item/list-item.component.ts@@ -0,0 +1,144 @@+import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';+import { ToastrService } from 'ngx-toastr';+import { finalize, Observable, of, take, takeWhile } from 'rxjs';+import { Download } from 'src/app/shared/_models/download';+import { DownloadService } from 'src/app/shared/_services/download.service';+import { UtilityService } from 'src/app/shared/_services/utility.service';+import { Chapter } from 'src/app/_models/chapter';+import { LibraryType } from 'src/app/_models/library';+import { Series } from 'src/app/_models/series';+import { RelationKind } from 'src/app/_models/series-detail/relation-kind';+import { Volume } from 'src/app/_models/volume';+import { Action, ActionItem } from 'src/app/_services/action-factory.service';++@Component({+ selector: 'app-list-item',+ templateUrl: './list-item.component.html',+ styleUrls: ['./list-item.component.scss']+})+export class ListItemComponent implements OnInit {++ /**+ * Volume or Chapter to render+ */+ @Input() entity!: Volume | Chapter;+ /**+ * Image to show+ */+ @Input() imageUrl: string = '';+ /**+ * Actions to show+ */+ @Input() actions: ActionItem<any>[] = []; // Volume | Chapter+ /**+ * Library type to help with formatting title+ */+ @Input() libraryType: LibraryType = LibraryType.Manga;+ /**+ * Name of the Series to show under the title+ */+ @Input() seriesName: string = '';++ /**+ * Size of the Image Height. Defaults to 230px.+ */+ @Input() imageHeight: string = '230px';+ /**+ * Size of the Image Width Defaults to 158px.+ */+ @Input() imageWidth: string = '158px';+ @Input() seriesLink: string = '';++ @Input() pagesRead: number = 0;+ @Input() totalPages: number = 0;++ @Input() relation: RelationKind | undefined = undefined;++ /**+ * When generating the title, should this prepend 'Volume number' before the Chapter wording+ */+ @Input() includeVolume: boolean = false;+ /**+ * Show's the title if avaible on entity+ */+ @Input() showTitle: boolean = true;+ /**+ * Blur the summary for the list item+ */+ @Input() blur: boolean = false;++ @Output() read: EventEmitter<void> = new EventEmitter<void>();++ actionInProgress: boolean = false;+ summary$: Observable<string> = of('');+ summary: string = '';+ isChapter: boolean = false;+++ download$: Observable<Download> | null = null;+ downloadInProgress: boolean = false;++ get Title() {+ if (this.isChapter) return (this.entity as Chapter).titleName;+ return '';+ }+++ constructor(private utilityService: UtilityService, private downloadService: DownloadService, private toastr: ToastrService) { }++ ngOnInit(): void {++ this.isChapter = this.utilityService.isChapter(this.entity);+ if (this.isChapter) {+ this.summary = this.utilityService.asChapter(this.entity).summary || '';+ } else {+ this.summary = this.utilityService.asVolume(this.entity).chapters[0].summary || '';+ }+ }++ performAction(action: ActionItem<any>) {+ if (action.action == Action.Download) {+ if (this.downloadInProgress === true) {+ this.toastr.info('Download is already in progress. Please wait.');+ return;+ }++ if (this.utilityService.isVolume(this.entity)) {+ const volume = this.utilityService.asVolume(this.entity);+ this.downloadService.downloadVolumeSize(volume.id).pipe(take(1)).subscribe(async (size) => {+ const wantToDownload = await this.downloadService.confirmSize(size, 'volume');+ if (!wantToDownload) { return; }+ this.downloadInProgress = true;+ this.download$ = this.downloadService.downloadVolume(volume).pipe(+ takeWhile(val => {+ return val.state != 'DONE';+ }),+ finalize(() => {+ this.download$ = null;+ this.downloadInProgress = false;+ }));+ });+ } else if (this.utilityService.isChapter(this.entity)) {+ const chapter = this.utilityService.asChapter(this.entity);+ this.downloadService.downloadChapterSize(chapter.id).pipe(take(1)).subscribe(async (size) => {+ const wantToDownload = await this.downloadService.confirmSize(size, 'chapter');+ if (!wantToDownload) { return; }+ this.downloadInProgress = true;+ this.download$ = this.downloadService.downloadChapter(chapter).pipe(+ takeWhile(val => {+ return val.state != 'DONE';+ }),+ finalize(() => {+ this.download$ = null;+ this.downloadInProgress = false;+ }));+ });+ }+ return; // Don't propagate the download from a card+ }++ if (typeof action.callback === 'function') {+ action.callback(action.action, this.entity);+ }+ }+}diff --git a/UI/Web/src/app/cards/series-card/series-card.component.ts b/UI/Web/src/app/cards/series-card/series-card.component.tsindex b202b89b7..0e9a10d90 100644--- a/UI/Web/src/app/cards/series-card/series-card.component.ts+++ b/UI/Web/src/app/cards/series-card/series-card.component.ts@@ -1,4 +1,4 @@-import { Component, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Output } from '@angular/core';+import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Output } from '@angular/core';import { Router } from '@angular/router';import { NgbModal } from '@ng-bootstrap/ng-bootstrap';import { ToastrService } from 'ngx-toastr';@@ -8,17 +8,16 @@ import { AccountService } from 'src/app/_services/account.service';import { ImageService } from 'src/app/_services/image.service';import { ActionFactoryService, Action, ActionItem } from 'src/app/_services/action-factory.service';import { SeriesService } from 'src/app/_services/series.service';-import { ConfirmService } from 'src/app/shared/confirm.service';import { ActionService } from 'src/app/_services/action.service';import { EditSeriesModalComponent } from '../_modals/edit-series-modal/edit-series-modal.component';-import { MessageHubService } from 'src/app/_services/message-hub.service';import { Subject } from 'rxjs';import { RelationKind } from 'src/app/_models/series-detail/relation-kind';@Component({selector: 'app-series-card',templateUrl: './series-card.component.html',- styleUrls: ['./series-card.component.scss']+ styleUrls: ['./series-card.component.scss'],+ changeDetection: ChangeDetectionStrategy.OnPush})export class SeriesCardComponent implements OnInit, OnChanges, OnDestroy {@Input() data!: Series;@@ -52,9 +51,9 @@ export class SeriesCardComponent implements OnInit, OnChanges, OnDestroy {constructor(private accountService: AccountService, private router: Router,private seriesService: SeriesService, private toastr: ToastrService,- private modalService: NgbModal, private confirmService: ConfirmService,- public imageService: ImageService, private actionFactoryService: ActionFactoryService,- private actionService: ActionService, private hubService: MessageHubService) {+ private modalService: NgbModal, private imageService: ImageService,+ private actionFactoryService: ActionFactoryService,+ private actionService: ActionService, private changeDetectionRef: ChangeDetectorRef) {this.accountService.currentUser$.pipe(take(1)).subscribe(user => {if (user) {this.isAdmin = this.accountService.hasAdminRole(user);@@ -71,8 +70,7 @@ export class SeriesCardComponent implements OnInit, OnChanges, OnDestroy {ngOnChanges(changes: any) {if (this.data) {- this.actions = this.actionFactoryService.getSeriesActions((action: Action, series: Series) => this.handleSeriesActionCallback(action, series)).filter(action => this.actionFactoryService.filterBookmarksForFormat(action, this.data));- this.imageUrl = this.imageService.randomize(this.imageService.getSeriesCoverImage(this.data.id));+ this.actions = this.actionFactoryService.getSeriesActions((action: Action, series: Series) => this.handleSeriesActionCallback(action, series));}}@@ -102,10 +100,13 @@ export class SeriesCardComponent implements OnInit, OnChanges, OnDestroy {this.openEditModal(series);break;case(Action.AddToReadingList):- this.actionService.addSeriesToReadingList(series, (series) => {/* No Operation */ });+ this.actionService.addSeriesToReadingList(series);break;case(Action.AddToCollection):- this.actionService.addMultipleSeriesToCollectionTag([series], () => {/* No Operation */ });+ this.actionService.addMultipleSeriesToCollectionTag([series]);+ break;+ case (Action.AnalyzeFiles):+ this.actionService.analyzeFilesForSeries(series);break;default:break;@@ -116,13 +117,10 @@ export class SeriesCardComponent implements OnInit, OnChanges, OnDestroy {const modalRef = this.modalService.open(EditSeriesModalComponent, { size: 'lg' });modalRef.componentInstance.series = data;modalRef.closed.subscribe((closeResult: {success: boolean, series: Series, coverImageUpdate: boolean}) => {- window.scrollTo(0, 0);if (closeResult.success) {- if (closeResult.coverImageUpdate) {- this.imageUrl = this.imageService.randomize(this.imageService.getSeriesCoverImage(closeResult.series.id));- }this.seriesService.getSeries(data.id).subscribe(series => {this.data = series;+ this.changeDetectionRef.markForCheck();this.reload.emit(true);this.dataChanged.emit(series);});@@ -152,6 +150,7 @@ export class SeriesCardComponent implements OnInit, OnChanges, OnDestroy {this.actionService.markSeriesAsUnread(series, () => {if (this.data) {this.data.pagesRead = 0;+ this.changeDetectionRef.markForCheck();}this.dataChanged.emit(series);@@ -162,6 +161,7 @@ export class SeriesCardComponent implements OnInit, OnChanges, OnDestroy {this.actionService.markSeriesAsRead(series, () => {if (this.data) {this.data.pagesRead = series.pages;+ this.changeDetectionRef.markForCheck();}this.dataChanged.emit(series);});diff --git a/UI/Web/src/app/cards/series-info-cards/series-info-cards.component.html b/UI/Web/src/app/cards/series-info-cards/series-info-cards.component.htmlnew file mode 100644index 000000000..88a511fd6--- /dev/null+++ b/UI/Web/src/app/cards/series-info-cards/series-info-cards.component.html@@ -0,0 +1,106 @@+<div class="row g-0 mb-4 mt-3">++ <ng-container *ngIf="seriesMetadata">+ <ng-container *ngIf="seriesMetadata.ageRating">+ <div class="col-lg-1 col-md-4 col-sm-4 col-4 mb-3">+ <app-icon-and-title label="Age Rating" [clickable]="true" fontClasses="fas fa-eye" (click)="handleGoTo(FilterQueryParam.AgeRating, seriesMetadata.ageRating)" title="Age Rating">+ {{metadataService.getAgeRating(this.seriesMetadata.ageRating) | async}}+ </app-icon-and-title>+ </div>+ <div class="vr d-none d-lg-block m-2"></div>+ </ng-container>++ <ng-container *ngIf="seriesMetadata.releaseYear > 0">+ <div class="col-lg-1 col-md-4 col-sm-4 col-4 mb-3">+ <app-icon-and-title label="Release Year" [clickable]="false" fontClasses="fa-regular fa-calendar" title="Release Year">+ {{seriesMetadata.releaseYear}}+ </app-icon-and-title>+ </div>+ <div class="vr d-none d-lg-block m-2"></div>+ </ng-container>++ <ng-container *ngIf="seriesMetadata.language !== null">+ <div class="col-lg-1 col-md-4 col-sm-4 col-4 mb-3">+ <app-icon-and-title label="Language" [clickable]="true" fontClasses="fas fa-language" (click)="handleGoTo(FilterQueryParam.Languages, seriesMetadata.language)" title="Language">+ {{seriesMetadata.language | defaultValue:'en' | languageName | async}}+ </app-icon-and-title>+ </div>+ <div class="vr d-none d-lg-block m-2"></div>+ </ng-container>+ </ng-container>++ <ng-container>+ <div class="d-none d-md-block col-lg-1 col-md-4 col-sm-4 col-4 mb-2">+ <ng-container *ngIf="seriesMetadata.publicationStatus | publicationStatus as pubStatus">+ <app-icon-and-title label="Publication" [clickable]="true" fontClasses="fa-solid fa-hourglass-{{pubStatus === 'Ongoing' ? 'empty' : 'end'}}" (click)="handleGoTo(FilterQueryParam.PublicationStatus, seriesMetadata.publicationStatus)" title="Publication Status ({{seriesMetadata.maxCount}} / {{seriesMetadata.totalCount}})">+ {{pubStatus}}+ </app-icon-and-title>+ </ng-container>+ </div>+ <div class="vr m-2 d-none d-lg-block"></div>+ </ng-container>++ <ng-container *ngIf="series">+ <ng-container>+ <div class="d-none d-md-block col-lg-1 col-md-4 col-sm-4 col-4 mb-2">+ <app-icon-and-title label="Format" [clickable]="true" [fontClasses]="'fa ' + (series.format | mangaFormatIcon)" (click)="handleGoTo(FilterQueryParam.Format, series.format)" title="Format">+ {{series.format | mangaFormat}}+ </app-icon-and-title>+ </div>+ <div class="vr d-none d-lg-block m-2"></div>+ </ng-container>++ <ng-container *ngIf="series.latestReadDate && series.latestReadDate !== '' && (series.latestReadDate | date: 'shortDate') !== '1/1/01'">+ <div class="d-none d-md-block col-lg-1 col-md-4 col-sm-4 col-4 mb-2">+ <app-icon-and-title label="Last Read" [clickable]="false" fontClasses="fa-regular fa-clock" title="Last Read">+ {{series.latestReadDate | date:'shortDate'}}+ </app-icon-and-title>+ </div>+ <div class="vr d-none d-lg-block m-2"></div>+ </ng-container>+++ <ng-container *ngIf="series.format === MangaFormat.EPUB; else showPages">+ <ng-container *ngIf="series.wordCount > 0">+ <div class="col-lg-1 col-md-4 col-sm-4 col-4 mb-2">+ <app-icon-and-title label="Word Count" [clickable]="false" fontClasses="fa-solid fa-book-open">+ {{series.wordCount | compactNumber}} Words+ </app-icon-and-title>+ </div>+ <div class="vr d-none d-lg-block m-2"></div>+ </ng-container>++ </ng-container>+ <ng-template #showPages>+ <div class="d-none d-md-block col-lg-1 col-md-4 col-sm-4 col-4 mb-2">+ <app-icon-and-title label="Print Length" [clickable]="false" fontClasses="fa-regular fa-file-lines">+ {{series.pages | number:''}} Pages+ </app-icon-and-title>+ </div>+ <div class="vr d-none d-lg-block m-2"></div>+ </ng-template>++++ <ng-container *ngIf="series.format === MangaFormat.EPUB && series.wordCount > 0 || series.format !== MangaFormat.EPUB">+ <div class="col-lg-1 col-md-4 col-sm-4 col-4 mb-2">+ <app-icon-and-title label="Read Time" [clickable]="false" fontClasses="fa-regular fa-clock">+ <ng-container *ngIf="readingTime.maxHours === 0; else normalReadTime"><1 Hour</ng-container>+ <ng-template #normalReadTime>+ {{readingTime.minHours}}{{readingTime.maxHours !== readingTime.minHours ? ('-' + readingTime.maxHours) : ''}} Hour{{readingTime.minHours > 1 ? 's' : ''}}+ </ng-template>+ </app-icon-and-title>+ </div>+ </ng-container>+++ <ng-container *ngIf="hasReadingProgress && showReadingTimeLeft && readingTimeLeft && readingTimeLeft.avgHours !== 0">+ <div class="vr d-none d-lg-block m-2"></div>+ <div class="col-lg-1 col-md-4 col-sm-4 col-4 mb-2">+ <app-icon-and-title label="Read Left" [clickable]="false" fontClasses="fa-solid fa-clock">+ ~{{readingTimeLeft.avgHours}} Hour{{readingTimeLeft.avgHours > 1 ? 's' : ''}} Left+ </app-icon-and-title>+ </div>+ </ng-container>+ </ng-container>+</div>\ No newline at end of filediff --git a/UI/Web/src/app/cards/series-info-cards/series-info-cards.component.scss b/UI/Web/src/app/cards/series-info-cards/series-info-cards.component.scssnew file mode 100644index 000000000..e69de29bbdiff --git a/UI/Web/src/app/cards/series-info-cards/series-info-cards.component.ts b/UI/Web/src/app/cards/series-info-cards/series-info-cards.component.tsnew file mode 100644index 000000000..04d523ae2--- /dev/null+++ b/UI/Web/src/app/cards/series-info-cards/series-info-cards.component.ts@@ -0,0 +1,55 @@+import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';+import { FilterQueryParam } from 'src/app/shared/_services/filter-utilities.service';+import { UtilityService } from 'src/app/shared/_services/utility.service';+import { HourEstimateRange } from 'src/app/_models/hour-estimate-range';+import { MangaFormat } from 'src/app/_models/manga-format';+import { Series } from 'src/app/_models/series';+import { SeriesMetadata } from 'src/app/_models/series-metadata';+import { MetadataService } from 'src/app/_services/metadata.service';+import { ReaderService } from 'src/app/_services/reader.service';++@Component({+ selector: 'app-series-info-cards',+ templateUrl: './series-info-cards.component.html',+ styleUrls: ['./series-info-cards.component.scss']+})+export class SeriesInfoCardsComponent implements OnInit {++ @Input() series!: Series;+ @Input() seriesMetadata!: SeriesMetadata;+ @Input() hasReadingProgress: boolean = false;+ @Input() readingTimeLeft: HourEstimateRange | undefined;+ /**+ * If this should make an API call to request readingTimeLeft+ */+ @Input() showReadingTimeLeft: boolean = true;+ @Output() goTo: EventEmitter<{queryParamName: FilterQueryParam, filter: any}> = new EventEmitter();++ readingTime: HourEstimateRange = {avgHours: 0, maxHours: 0, minHours: 0};++ get MangaFormat() {+ return MangaFormat;+ }++ get FilterQueryParam() {+ return FilterQueryParam;+ }++ constructor(public utilityService: UtilityService, public metadataService: MetadataService, private readerService: ReaderService) { }++ ngOnInit(): void {+ if (this.series !== null) {+ if (this.showReadingTimeLeft) this.readerService.getTimeLeft(this.series.id).subscribe((timeLeft) => this.readingTimeLeft = timeLeft);+ this.readingTime.minHours = this.series.minHoursToRead;+ this.readingTime.maxHours = this.series.maxHoursToRead;+ this.readingTime.avgHours = this.series.avgHoursToRead;+ }+ }++ handleGoTo(queryParamName: FilterQueryParam, filter: any) {+ this.goTo.emit({queryParamName, filter});+ }++++}diff --git a/UI/Web/src/app/carousel/carousel-reel/carousel-reel.component.html b/UI/Web/src/app/carousel/carousel-reel/carousel-reel.component.htmlindex e7c869d4b..d384c5864 100644--- a/UI/Web/src/app/carousel/carousel-reel/carousel-reel.component.html+++ b/UI/Web/src/app/carousel/carousel-reel/carousel-reel.component.html@@ -1,6 +1,6 @@<div class="carousel-container" *ngIf="items.length > 0 "><div>- <h3 style="display: inline-block;">+ <h3><a href="javascript:void(0)" (click)="sectionClicked($event)" class="section-title" [ngClass]="{'non-selectable': !clickableTitle}">{{title}}</a></h3><div class="float-end" *ngIf="swiper">diff --git a/UI/Web/src/app/carousel/carousel-reel/carousel-reel.component.scss b/UI/Web/src/app/carousel/carousel-reel/carousel-reel.component.scssindex c6bf119ac..529387a21 100644--- a/UI/Web/src/app/carousel/carousel-reel/carousel-reel.component.scss+++ b/UI/Web/src/app/carousel/carousel-reel/carousel-reel.component.scss@@ -35,3 +35,8 @@::ng-deep .last-carousel {margin-bottom: 0;}++h3 {+ display: inline-block;+ font-size: 1.2rem;+}\ No newline at end of filediff --git a/UI/Web/src/app/carousel/carousel-reel/carousel-reel.component.ts b/UI/Web/src/app/carousel/carousel-reel/carousel-reel.component.tsindex a2b786665..0a6580058 100644--- a/UI/Web/src/app/carousel/carousel-reel/carousel-reel.component.ts+++ b/UI/Web/src/app/carousel/carousel-reel/carousel-reel.component.ts@@ -1,10 +1,11 @@-import { Component, ContentChild, EventEmitter, Input, Output, TemplateRef } from '@angular/core';+import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, EventEmitter, Input, Output, TemplateRef } from '@angular/core';import { Swiper, SwiperEvents } from 'swiper/types';@Component({selector: 'app-carousel-reel',templateUrl: './carousel-reel.component.html',- styleUrls: ['./carousel-reel.component.scss']+ styleUrls: ['./carousel-reel.component.scss'],+ changeDetection: ChangeDetectionStrategy.OnPush})export class CarouselReelComponent {@@ -18,7 +19,7 @@ export class CarouselReelComponent {trackByIdentity: (index: number, item: any) => string;- constructor() {+ constructor(private readonly cdRef: ChangeDetectorRef) {this.trackByIdentity = (index: number, item: any) => `${this.title}_${item.id}_${item?.name}_${item?.pagesRead}_${index}`;}@@ -26,6 +27,7 @@ export class CarouselReelComponent {if (this.swiper) {if (this.swiper.isEnd) return;this.swiper.setProgress(this.swiper.progress + 0.25, 600);+ this.cdRef.markForCheck();}}@@ -33,6 +35,7 @@ export class CarouselReelComponent {if (this.swiper) {if (this.swiper.isBeginning) return;this.swiper.setProgress(this.swiper.progress - 0.25, 600);+ this.cdRef.markForCheck();}}@@ -42,5 +45,6 @@ export class CarouselReelComponent {onSwiper(eventParams: Parameters<SwiperEvents['init']>) {[this.swiper] = eventParams;+ this.cdRef.detectChanges();}}diff --git a/UI/Web/src/app/collections/all-collections/all-collections.component.html b/UI/Web/src/app/collections/all-collections/all-collections.component.htmlindex f5586d687..60b0ec1e2 100644--- a/UI/Web/src/app/collections/all-collections/all-collections.component.html+++ b/UI/Web/src/app/collections/all-collections/all-collections.component.html@@ -8,6 +8,7 @@[isLoading]="isLoading"[items]="collections"[filterOpen]="filterOpen"+ [jumpBarKeys]="jumpbarKeys"><ng-template #cardItem let-item let-position="idx"><app-card-item [title]="item.title" [entity]="item" [actions]="collectionTagActions" [imageUrl]="item.coverImage" (clicked)="loadCollection(item)"></app-card-item>diff --git a/UI/Web/src/app/collections/all-collections/all-collections.component.ts b/UI/Web/src/app/collections/all-collections/all-collections.component.tsindex 62371ea78..0628ce962 100644--- a/UI/Web/src/app/collections/all-collections/all-collections.component.ts+++ b/UI/Web/src/app/collections/all-collections/all-collections.component.ts@@ -4,6 +4,7 @@ import { Router } from '@angular/router';import { NgbModal } from '@ng-bootstrap/ng-bootstrap';import { EditCollectionTagsComponent } from 'src/app/cards/_modals/edit-collection-tags/edit-collection-tags.component';import { CollectionTag } from 'src/app/_models/collection-tag';+import { JumpKey } from 'src/app/_models/jumpbar/jump-key';import { ActionItem, ActionFactoryService, Action } from 'src/app/_services/action-factory.service';import { CollectionTagService } from 'src/app/_services/collection-tag.service';import { ImageService } from 'src/app/_services/image.service';@@ -19,6 +20,7 @@ export class AllCollectionsComponent implements OnInit {isLoading: boolean = true;collections: CollectionTag[] = [];collectionTagActions: ActionItem<CollectionTag>[] = [];+ jumpbarKeys: Array<JumpKey> = [];filterOpen: EventEmitter<boolean> = new EventEmitter();@@ -44,7 +46,31 @@ export class AllCollectionsComponent implements OnInit {this.collectionService.allTags().subscribe(tags => {this.collections = tags;this.isLoading = false;++ const keys: {[key: string]: number} = {};+ tags.forEach(s => {+ let ch = s.title.charAt(0);+ if (/\d|\#|!|%|@|\(|\)|\^|\*/g.test(ch)) {+ ch = '#';+ }+ if (!keys.hasOwnProperty(ch)) {+ keys[ch] = 0;+ }+ keys[ch] += 1;+ });+ this.jumpbarKeys = Object.keys(keys).map(k => {+ return {+ key: k,+ size: keys[k],+ title: k.toUpperCase()+ }+ }).sort((a, b) => {+ if (a.key < b.key) return -1;+ if (a.key > b.key) return 1;+ return 0;+ });});+}handleCollectionActionCallback(action: Action, collectionTag: CollectionTag) {diff --git a/UI/Web/src/app/collections/collection-detail/collection-detail.component.html b/UI/Web/src/app/collections/collection-detail/collection-detail.component.htmlindex 9e119a0ac..dfc210595 100644--- a/UI/Web/src/app/collections/collection-detail/collection-detail.component.html+++ b/UI/Web/src/app/collections/collection-detail/collection-detail.component.html@@ -1,12 +1,15 @@-<app-side-nav-companion-bar *ngIf="series !== undefined" [hasFilter]="true" (filterOpen)="filterOpen.emit($event)" [filterActive]="filterActive">- <ng-container title>- <h2 style="margin-bottom: 0px" *ngIf="collectionTag !== undefined">- <app-card-actionables [disabled]="actionInProgress" (actionHandler)="performAction($event)" [actions]="collectionTagActions" [labelBy]="collectionTag.title" iconClass="fa-ellipsis-v"></app-card-actionables>- {{collectionTag.title}}<span *ngIf="collectionTag.promoted"> (<i aria-hidden="true" class="fa fa-angle-double-up"></i>)</span>- </h2>- </ng-container>-</app-side-nav-companion-bar>-<div class="container-fluid pt-2" *ngIf="collectionTag !== undefined">+<div #companionBar>+ <app-side-nav-companion-bar *ngIf="series !== undefined" [hasFilter]="true" (filterOpen)="filterOpen.emit($event)" [filterActive]="filterActive">+ <ng-container title>+ <h2 style="margin-bottom: 0px" *ngIf="collectionTag !== undefined">+ <app-card-actionables [disabled]="actionInProgress" (actionHandler)="performAction($event)" [actions]="collectionTagActions" [labelBy]="collectionTag.title" iconClass="fa-ellipsis-v"></app-card-actionables>+ {{collectionTag.title}}<span class="ms-1" *ngIf="collectionTag.promoted">(<i aria-hidden="true" class="fa fa-angle-double-up"></i>)</span>+ </h2>+ </ng-container>+ </app-side-nav-companion-bar>+</div>++<div [ngStyle]="{'height': ScrollingBlockHeight}" class="main-container container-fluid pt-2" *ngIf="collectionTag !== undefined" #scrollingBlock><div class="row mb-3"><div class="col-md-2 col-xs-4 col-sm-6 d-none d-sm-block"><app-image maxWidth="481px" [imageUrl]="tagImage"></app-image>@@ -19,15 +22,15 @@<app-bulk-operations [actionCallback]="bulkActionCallback"></app-bulk-operations><app-card-detail-layout- header="Series"- [isLoading]="isLoading"- [items]="series"- [pagination]="seriesPagination"- [filterSettings]="filterSettings"- [filterOpen]="filterOpen"- (pageChange)="onPageChange($event)"- (applyFilter)="updateFilter($event)"- >+ header="Series"+ [isLoading]="isLoading"+ [items]="series"+ [pagination]="seriesPagination"+ [filterSettings]="filterSettings"+ [filterOpen]="filterOpen"++ [jumpBarKeys]="jumpbarKeys"+ (applyFilter)="updateFilter($event)"><ng-template #cardItem let-item let-position="idx"><app-series-card [data]="item" [libraryId]="item.libraryId" (reload)="loadPage()"(selection)="bulkSelectionService.handleCardSelection('series', position, series.length, $event)" [selected]="bulkSelectionService.isCardSelected('series', position)" [allowSelection]="true"diff --git a/UI/Web/src/app/collections/collection-detail/collection-detail.component.scss b/UI/Web/src/app/collections/collection-detail/collection-detail.component.scssindex c0ca48164..196c98dd9 100644--- a/UI/Web/src/app/collections/collection-detail/collection-detail.component.scss+++ b/UI/Web/src/app/collections/collection-detail/collection-detail.component.scss@@ -13,4 +13,26 @@.read-btn--text {display: none;}+}++.card-container {+ display: grid;+ grid-template-columns: repeat(auto-fill, 158px);+ grid-gap: 0.5rem;+ justify-content: space-around;+}+++.virtual-scroller, virtual-scroller {+ width: 100%;+ height: calc(100vh - 85px);+ max-height: calc(var(--vh)*100 - 170px);+}++// This is responsible for ensuring we scroll down and only tabs and companion bar is visible+.main-container {+ // Height set dynamically by get ScrollingBlockHeight()+ overflow-y: auto;+ position: relative;+ overscroll-behavior-y: none;}\ No newline at end of filediff --git a/UI/Web/src/app/collections/collection-detail/collection-detail.component.ts b/UI/Web/src/app/collections/collection-detail/collection-detail.component.tsindex b2f779d2a..3405ce9a7 100644--- a/UI/Web/src/app/collections/collection-detail/collection-detail.component.ts+++ b/UI/Web/src/app/collections/collection-detail/collection-detail.component.ts@@ -1,4 +1,5 @@-import { Component, EventEmitter, HostListener, OnDestroy, OnInit } from '@angular/core';+import { DOCUMENT } from '@angular/common';+import { Component, ElementRef, EventEmitter, HostListener, Inject, OnDestroy, OnInit, ViewChild } from '@angular/core';import { Title } from '@angular/platform-browser';import { Router, ActivatedRoute } from '@angular/router';import { NgbModal } from '@ng-bootstrap/ng-bootstrap';@@ -12,6 +13,7 @@ import { FilterUtilitiesService } from 'src/app/shared/_services/filter-utilitieimport { KEY_CODES, UtilityService } from 'src/app/shared/_services/utility.service';import { CollectionTag } from 'src/app/_models/collection-tag';import { SeriesAddedToCollectionEvent } from 'src/app/_models/events/series-added-to-collection-event';+import { JumpKey } from 'src/app/_models/jumpbar/jump-key';import { Pagination } from 'src/app/_models/pagination';import { Series } from 'src/app/_models/series';import { FilterEvent, SeriesFilter } from 'src/app/_models/series-filter';@@ -29,6 +31,9 @@ import { SeriesService } from 'src/app/_services/series.service';})export class CollectionDetailComponent implements OnInit, OnDestroy {+ @ViewChild('scrollingBlock') scrollingBlock: ElementRef<HTMLDivElement> | undefined;+ @ViewChild('companionBar') companionBar: ElementRef<HTMLDivElement> | undefined;+collectionTag!: CollectionTag;tagImage: string = '';isLoading: boolean = true;@@ -43,8 +48,10 @@ export class CollectionDetailComponent implements OnInit, OnDestroy {filterActiveCheck!: SeriesFilter;filterActive: boolean = false;+ jumpbarKeys: Array<JumpKey> = [];+filterOpen: EventEmitter<boolean> = new EventEmitter();-+private onDestory: Subject<void> = new Subject<void>();@@ -84,11 +91,22 @@ export class CollectionDetailComponent implements OnInit, OnDestroy {}}+ get ScrollingBlockHeight() {+ if (this.scrollingBlock === undefined) return 'calc(var(--vh)*100)';+ const navbar = this.document.querySelector('.navbar') as HTMLElement;+ if (navbar === null) return 'calc(var(--vh)*100)';++ const companionHeight = this.companionBar!.nativeElement.offsetHeight;+ const navbarHeight = navbar.offsetHeight;+ const totalHeight = companionHeight + navbarHeight + 21; //21px to account for padding+ return 'calc(var(--vh)*100 - ' + totalHeight + 'px)';+ }+constructor(public imageService: ImageService, private collectionService: CollectionTagService, private router: Router, private route: ActivatedRoute,private seriesService: SeriesService, private toastr: ToastrService, private actionFactoryService: ActionFactoryService,private modalService: NgbModal, private titleService: Title,public bulkSelectionService: BulkSelectionService, private actionService: ActionService, private messageHub: MessageHubService,- private filterUtilityService: FilterUtilitiesService, private utilityService: UtilityService) {+ private filterUtilityService: FilterUtilitiesService, private utilityService: UtilityService, @Inject(DOCUMENT) private document: Document) {this.router.routeReuseStrategy.shouldReuseRoute = () => false;const routeId = this.route.snapshot.paramMap.get('id');@@ -157,16 +175,40 @@ export class CollectionDetailComponent implements OnInit, OnDestroy {});}- onPageChange(pagination: Pagination) {- this.filterUtilityService.updateUrlFromFilter(this.seriesPagination, undefined);- this.loadPage();- }+ // onPageChange(pagination: Pagination) {+ // this.filterUtilityService.updateUrlFromFilter(this.seriesPagination, undefined);+ // this.loadPage();+ // }loadPage() {this.filterActive = !this.utilityService.deepEqual(this.filter, this.filterActiveCheck);- this.seriesService.getAllSeries(this.seriesPagination?.currentPage, this.seriesPagination?.itemsPerPage, this.filter).pipe(take(1)).subscribe(series => {+ this.seriesService.getAllSeries(undefined, undefined, this.filter).pipe(take(1)).subscribe(series => {this.series = series.result;this.seriesPagination = series.pagination;++ const keys: {[key: string]: number} = {};+ series.result.forEach(s => {+ let ch = s.name.charAt(0);+ if (/\d|\#|!|%|@|\(|\)|\^|\*/g.test(ch)) {+ ch = '#';+ }+ if (!keys.hasOwnProperty(ch)) {+ keys[ch] = 0;+ }+ keys[ch] += 1;+ });+ this.jumpbarKeys = Object.keys(keys).map(k => {+ return {+ key: k,+ size: keys[k],+ title: k.toUpperCase()+ }+ }).sort((a, b) => {+ if (a.key < b.key) return -1;+ if (a.key > b.key) return 1;+ return 0;+ });+this.isLoading = false;window.scrollTo(0, 0);});diff --git a/UI/Web/src/app/dashboard/dashboard.component.html b/UI/Web/src/app/dashboard/dashboard.component.htmlindex e34bf4adf..289f744b4 100644--- a/UI/Web/src/app/dashboard/dashboard.component.html+++ b/UI/Web/src/app/dashboard/dashboard.component.html@@ -20,7 +20,7 @@<app-carousel-reel [items]="recentlyUpdatedSeries" title="Recently Updated Series" (sectionClick)="handleSectionClick($event)"><ng-template #carouselItem let-item let-position="idx"><app-card-item [entity]="item" [title]="item.seriesName" [suppressLibraryLink]="libraryId !== 0" [imageUrl]="imageService.getSeriesCoverImage(item.seriesId)"- [supressArchiveWarning]="true" (clicked)="handleRecentlyAddedChapterClick(item)" [count]="item.count"></app-card-item>+ [suppressArchiveWarning]="true" (clicked)="handleRecentlyAddedChapterClick(item)" [count]="item.count"></app-card-item></ng-template></app-carousel-reel>diff --git a/UI/Web/src/app/dashboard/dashboard.component.ts b/UI/Web/src/app/dashboard/dashboard.component.tsindex b772de46d..e3a6752b5 100644--- a/UI/Web/src/app/dashboard/dashboard.component.ts+++ b/UI/Web/src/app/dashboard/dashboard.component.ts@@ -114,9 +114,9 @@ export class DashboardComponent implements OnInit, OnDestroy {}loadOnDeck() {- let api = this.seriesService.getOnDeck();+ let api = this.seriesService.getOnDeck(0, 1, 30);if (this.libraryId > 0) {- api = this.seriesService.getOnDeck(this.libraryId);+ api = this.seriesService.getOnDeck(this.libraryId, 1, 30);}api.pipe(takeUntil(this.onDestroy)).subscribe((updatedSeries) => {this.inProgress = updatedSeries.result;@@ -124,9 +124,9 @@ export class DashboardComponent implements OnInit, OnDestroy {}loadRecentlyAddedSeries() {- let api = this.seriesService.getRecentlyAdded();+ let api = this.seriesService.getRecentlyAdded(0, 1, 30);if (this.libraryId > 0) {- api = this.seriesService.getRecentlyAdded(this.libraryId);+ api = this.seriesService.getRecentlyAdded(this.libraryId, 1, 30);}api.pipe(takeUntil(this.onDestroy)).subscribe((updatedSeries) => {this.recentlyAddedSeries = updatedSeries.result;diff --git a/UI/Web/src/app/dev-only/theme-test/theme-test.component.html b/UI/Web/src/app/dev-only/theme-test/theme-test.component.htmlindex 6f44a7886..e69de29bb 100644--- a/UI/Web/src/app/dev-only/theme-test/theme-test.component.html+++ b/UI/Web/src/app/dev-only/theme-test/theme-test.component.html@@ -1,188 +0,0 @@-<h1>Themes</h1>-<button class="btn btn-primary" (click)="themeService?.setTheme('dark')">Dark</button>-<button class="btn btn-primary" (click)="themeService?.setTheme('light')">Light</button>-<button class="btn btn-primary" (click)="themeService?.setTheme('E-Ink')">E-ink</button>-<button class="btn btn-primary" (click)="themeService?.setTheme('custom')">Custom</button>----<h2>Buttons</h2>-<button class="btn btn-primary">Primary</button>-<button class="btn btn-secondary">secondary</button>-<button class="btn btn-secondary alt">secondary alt</button>-<button class="btn btn-outline-primary">outline primary</button>-<button class="btn btn-outline-secondary">outline secondary</button>-<button class="btn btn-link">btn link</button>-<button class="btn btn-icon">- <i class="fa fa-angle-left"></i> Icon-</button>--<h2>Toastr</h2>--<button class="btn btn-primary" (click)="toastr.success('Test')">Success</button>-<button class="btn btn-danger" (click)="toastr.error('Test')">Error</button>-<button class="btn btn-secondary" (click)="toastr.warning('Test')">Warning</button>-<button class="btn btn-link" (click)="toastr.info('Test')">Info</button>--<h2>Inputs</h2>-<p>Inputs should always have class="form-control" on them</p>-<label>Normal</label>-<input type="text" class="form-control">-<label>Readonly</label>-<input type="text" readonly class="form-control">-<label>Placeholder</label>-<input type="text" placeholder="Hello, I'm a placeholder" class="form-control">-<label>Disabled</label>-<input type="text" placeholder="Hello, I'm a placeholder" [disabled]="true" class="form-control">--<h2>Checkbox</h2>-<div class="mb-3">- <label for="stat-collection" class="form-label" aria-describedby="collection-info">Allow Anonymous Usage Collection</label>- <div class="form-check">- <input id="stat-collection" type="checkbox" aria-label="Stat Collection" class="form-check-input">- <label for="stat-collection" class="form-check-label">Normal Checkbox</label>- </div>-</div>--<div class="mb-3">- <label for="stat-collection" class="form-label" aria-describedby="collection-info">Allow Anonymous Usage Collection</label>- <div class="form-check">- <input id="stat-collection" type="checkbox" aria-label="Stat Collection" class="form-check-input" [disabled]="true">- <label for="stat-collection" class="form-check-label">Disabled Checkbox</label>- </div>-</div>--<h2>Radio</h2>-<p>Labels should have form-check-label on them and inputs form-check-input</p>-<div class="mb-3">- <div class="form-check">- <input class="form-check-input" type="radio" id="site-dark-mode" [value]="true" aria-labelledby="site-dark-mode-label">- <label class="form-check-label" for="site-dark-mode">True</label>- </div>- <div class="form-check">- <input class="form-check-input" type="radio" id="site-not-dark-mode2" [value]="false" aria-labelledby="site-dark-mode-label">- <label class="form-check-label" for="site-not-dark-mode2">False</label>- </div>- <div class="form-check">- <input class="form-check-input" type="radio" id="site-not-dark-mode3" [disabled]="true" [value]="false" aria-labelledby="site-dark-mode-label">- <label class="form-check-label" for="site-not-dark-mode3">Disabled</label>- </div>- <div class="form-check">- <input class="form-check-input" type="radio" id="site-not-dark-mode4" readonly [value]="false" aria-labelledby="site-dark-mode-label">- <label class="form-check-label" for="site-not-dark-mode4">Readonly</label>- </div>-</div>---<h2>Nav tabs</h2>-<h3>Tabs</h3>-<ul ngbNav #nav="ngbNav" [(activeId)]="active" class="nav-tabs nav-pills">- <li *ngFor="let tab of tabs" [ngbNavItem]="tab">- <a ngbNavLink routerLink=".">{{ tab.title | sentenceCase }}</a>- <ng-template ngbNavContent>- <ng-container>- Tab 1- </ng-container>- <ng-container>- Tab 2- </ng-container>- </ng-template>- </li>-</ul>-<div [ngbNavOutlet]="nav" class="mt-3"></div>--<h3>Tabs</h3>-<nav role="navigation">- <ul ngbNav #nav="ngbNav" [(activeId)]="active" class="nav nav-pills justify-content-center mt-3" role="tab">- <li *ngFor="let tab of tabs" [ngbNavItem]="tab" class="nav-item">- <a ngbNavLink routerLink="." [fragment]="tab.fragment">{{ tab.title | titlecase }}</a>- <ng-template ngbNavContent>- <ng-container>- Tab 1- </ng-container>- <ng-container>- Tab 2- </ng-container>- </ng-template>- </li>- </ul>-</nav>-<div [ngbNavOutlet]="nav" class="mt-3"></div>--<h2>Tag Badge</h2>-<div class="g-2">- <app-tag-badge [selectionMode]="TagBadgeCursor.Selectable">Selectable</app-tag-badge>- <app-tag-badge [selectionMode]="TagBadgeCursor.Clickable">Clickable</app-tag-badge>- <app-tag-badge [selectionMode]="TagBadgeCursor.NotAllowed">Non Allowed</app-tag-badge>-</div>--<h2>Person Badge with Expander</h2>-<div class="g-2">- <app-person-badge></app-person-badge>- <app-badge-expander [items]="people" [itemsTillExpander]="1">- <ng-template #badgeExpanderItem let-item let-position="idx">- <app-person-badge a11y-click="13,32" class="col-auto" [person]="item"></app-person-badge>- </ng-template>- </app-badge-expander>-</div>--<h2>Switch</h2>-<form>- <div class="mb-3">- <label id="auto-close-label" class="form-label"></label>- <div class="mb-3">- <div class="form-check form-switch">- <input type="checkbox" id="auto-close" class="form-check-input" aria-labelledby="auto-close-label">- <label class="form-check-label" for="auto-close">Auto Close Menu</label>- </div>- </div>- </div>-</form>--<h2>Dropdown/List Group</h2>-<div class="dropdown" >- <ul class="list-group" role="listbox" id="dropdown">- <li class="list-group-item">Item 1</li>- <li class="list-group-item">Item 2</li>- </ul>-</div>--<h2>Accordion</h2>-<ngb-accordion [closeOthers]="true" activeIds="reading-panel" #acc="ngbAccordion">- <ngb-panel id="reading-panel" title="Reading">- <ng-template ngbPanelHeader>- <h2 class="accordion-header">- <button class="accordion-button" ngbPanelToggle type="button" [attr.aria-expanded]="acc.isExpanded('reading-panel')" aria-controls="collapseOne">- Reading- </button>- </h2>- </ng-template>- <ng-template ngbPanelContent>- <p>This is the body of the accordion...........This is the body of the accordion asdfasdf asThis is the body of the accordion asdfasdf asThis is the body of the accordion asdfasdf asThis is the body of the accordion asdfasdf asThis is the body of the accordion asdfasdf as</p>- </ng-template>- </ngb-panel>-- <ngb-panel id="reading-panel2">- <ng-template ngbPanelHeader>- <h2 class="accordion-header">- <button class="accordion-button" ngbPanelToggle type="button" [attr.aria-expanded]="acc.isExpanded('reading-panel')" aria-controls="collapseOne">- Header 2- </button>- </h2>- </ng-template>- <ng-template ngbPanelContent>- <p>This is the body of the accordion asdfasdf as- dfas- f asdfasdfasdf asdfasdfaaff asdf- as fd- asfasf asdfasdfafd- </p>- </ng-template>- </ngb-panel>-</ngb-accordion>---<h2>Cards</h2>-<app-card-item [entity]="seriesNotRead"></app-card-item>-<app-card-item [entity]="seriesNotRead" [count]="10"></app-card-item>-<app-card-item [entity]="seriesWithProgress"></app-card-item>diff --git a/UI/Web/src/app/dev-only/theme-test/theme-test.component.ts b/UI/Web/src/app/dev-only/theme-test/theme-test.component.tsindex be3ab498b..e69de29bb 100644--- a/UI/Web/src/app/dev-only/theme-test/theme-test.component.ts+++ b/UI/Web/src/app/dev-only/theme-test/theme-test.component.ts@@ -1,84 +0,0 @@-import { Component, OnInit } from '@angular/core';-import { ToastrService } from 'ngx-toastr';-import { TagBadgeCursor } from '../../shared/tag-badge/tag-badge.component';-import { ThemeService } from '../../_services/theme.service';-import { MangaFormat } from '../../_models/manga-format';-import { Person, PersonRole } from '../../_models/person';-import { Series } from '../../_models/series';-import { NavService } from '../../_services/nav.service';--@Component({- selector: 'app-theme-test',- templateUrl: './theme-test.component.html',- styleUrls: ['./theme-test.component.scss']-})-export class ThemeTestComponent implements OnInit {-- tabs: Array<{title: string, fragment: string}> = [- {title: 'General', fragment: ''},- {title: 'Users', fragment: 'users'},- {title: 'Libraries', fragment: 'libraries'},- {title: 'System', fragment: 'system'},- {title: 'Changelog', fragment: 'changelog'},- ];- active = this.tabs[0];-- people: Array<Person> = [- {id: 1, name: 'Joe', role: PersonRole.Artist},- {id: 2, name: 'Joe 2', role: PersonRole.Artist},- ];-- seriesNotRead: Series = {- id: 1,- name: 'Test Series',- pages: 0,- pagesRead: 10,- format: MangaFormat.ARCHIVE,- libraryId: 1,- coverImageLocked: false,- created: '',- latestReadDate: '',- localizedName: '',- originalName: '',- sortName: '',- userRating: 0,- userReview: '',- volumes: [],- localizedNameLocked: false,- nameLocked: false,- sortNameLocked: false,- lastChapterAdded: '',- }-- seriesWithProgress: Series = {- id: 1,- name: 'Test Series',- pages: 5,- pagesRead: 10,- format: MangaFormat.ARCHIVE,- libraryId: 1,- coverImageLocked: false,- created: '',- latestReadDate: '',- localizedName: '',- originalName: '',- sortName: '',- userRating: 0,- userReview: '',- volumes: [],- localizedNameLocked: false,- nameLocked: false,- sortNameLocked: false,- lastChapterAdded: '',- }-- get TagBadgeCursor(): typeof TagBadgeCursor {- return TagBadgeCursor;- }-- constructor(public toastr: ToastrService, public navService: NavService, public themeService: ThemeService) { }-- ngOnInit(): void {- }--}diff --git a/UI/Web/src/app/library-detail/library-detail.component.html b/UI/Web/src/app/library-detail/library-detail.component.htmlindex db9c4d27e..b278228fd 100644--- a/UI/Web/src/app/library-detail/library-detail.component.html+++ b/UI/Web/src/app/library-detail/library-detail.component.html@@ -3,7 +3,7 @@<app-card-actionables [actions]="actions" (actionHandler)="performAction($event)"></app-card-actionables>{{libraryName}}</h2>- <h6 subtitle style="margin-left:40px;" *ngIf="active.fragment === ''">{{pagination?.totalItems}} Series</h6>+ <h6 subtitle class="subtitle-with-actionables" *ngIf="active.fragment === ''">{{pagination?.totalItems}} Series</h6><div main><ul ngbNav #nav="ngbNav" [(activeId)]="active" class="nav nav-pills" style="flex-wrap: nowrap;"><li *ngFor="let tab of tabs" [ngbNavItem]="tab">@@ -23,12 +23,15 @@[items]="series"[pagination]="pagination"[filterSettings]="filterSettings"+ [trackByIdentity]="trackByIdentity"[filterOpen]="filterOpen"+ [jumpBarKeys]="jumpKeys"(applyFilter)="updateFilter($event)"- (pageChange)="onPageChange($event)"><ng-template #cardItem let-item let-position="idx">- <app-series-card [data]="item" [libraryId]="libraryId" [suppressLibraryLink]="true" (reload)="loadPage()" (selection)="bulkSelectionService.handleCardSelection('series', position, series.length, $event)" [selected]="bulkSelectionService.isCardSelected('series', position)" [allowSelection]="true"></app-series-card>+ <app-series-card [data]="item" [libraryId]="libraryId" [suppressLibraryLink]="true" (reload)="loadPage()"+ (selection)="bulkSelectionService.handleCardSelection('series', position, series.length, $event)"+ [selected]="bulkSelectionService.isCardSelected('series', position)" [allowSelection]="true"></app-series-card></ng-template></app-card-detail-layout></ng-container>diff --git a/UI/Web/src/app/library-detail/library-detail.component.ts b/UI/Web/src/app/library-detail/library-detail.component.tsindex 83bb5bf5f..7185a7998 100644--- a/UI/Web/src/app/library-detail/library-detail.component.ts+++ b/UI/Web/src/app/library-detail/library-detail.component.ts@@ -18,6 +18,8 @@ import { SeriesService } from '../_services/series.service';import { NavService } from '../_services/nav.service';import { FilterUtilitiesService } from '../shared/_services/filter-utilities.service';import { FilterSettings } from '../metadata-filter/filter-settings';+import { JumpKey } from '../_models/jumpbar/jump-key';+import { SeriesRemovedEvent } from '../_models/events/series-removed-event';@Component({selector: 'app-library-detail',@@ -39,6 +41,8 @@ export class LibraryDetailComponent implements OnInit, OnDestroy {filterActive: boolean = false;filterActiveCheck!: SeriesFilter;+ jumpKeys: Array<JumpKey> = [];+tabs: Array<{title: string, fragment: string, icon: string}> = [{title: 'Library', fragment: '', icon: 'fa-landmark'},{title: 'Recommended', fragment: 'recomended', icon: 'fa-award'},@@ -100,6 +104,10 @@ export class LibraryDetailComponent implements OnInit, OnDestroy {this.libraryName = names[this.libraryId];this.titleService.setTitle('Kavita - ' + this.libraryName);});++ this.libraryService.getJumpBar(this.libraryId).subscribe(barDetails => {+ this.jumpKeys = barDetails;+ });this.actions = this.actionFactoryService.getLibraryActions(this.handleAction.bind(this));this.pagination = this.filterUtilityService.pagination(this.route.snapshot);@@ -114,10 +122,15 @@ export class LibraryDetailComponent implements OnInit, OnDestroy {ngOnInit(): void {this.hubService.messages$.pipe(debounceTime(6000), takeUntil(this.onDestroy)).subscribe((event) => {- if (event.event !== EVENTS.SeriesAdded) return;- const seriesAdded = event.payload as SeriesAddedEvent;- if (seriesAdded.libraryId !== this.libraryId) return;- this.loadPage();+ if (event.event === EVENTS.SeriesAdded) {+ const seriesAdded = event.payload as SeriesAddedEvent;+ if (seriesAdded.libraryId !== this.libraryId) return;+ this.loadPage();+ } else if (event.event === EVENTS.SeriesRemoved) {+ const seriesRemoved = event.payload as SeriesRemovedEvent;+ if (seriesRemoved.libraryId !== this.libraryId) return;+ this.loadPage();+ }});}@@ -179,22 +192,17 @@ export class LibraryDetailComponent implements OnInit, OnDestroy {this.loadingSeries = true;this.filterActive = !this.utilityService.deepEqual(this.filter, this.filterActiveCheck);- this.seriesService.getSeriesForLibrary(0, this.pagination?.currentPage, this.pagination?.itemsPerPage, this.filter).pipe(take(1)).subscribe(series => {- this.series = series.result;+ this.seriesService.getSeriesForLibrary(0, undefined, undefined, this.filter).pipe(take(1)).subscribe(series => {+ this.series = series.result;this.pagination = series.pagination;this.loadingSeries = false;window.scrollTo(0, 0);});}- onPageChange(pagination: Pagination) {- this.filterUtilityService.updateUrlFromFilter(this.pagination, undefined);- this.loadPage();- }-seriesClicked(series: Series) {this.router.navigate(['library', this.libraryId, 'series', series.id]);}- trackByIdentity = (index: number, item: Series) => `${item.name}_${item.originalName}_${item.localizedName}_${item.pagesRead}`;+ trackByIdentity = (index: number, item: Series) => `${item.name}_${item.localizedName}_${item.pagesRead}`;}diff --git a/UI/Web/src/app/library-detail/library-recommended/library-recommended.component.html b/UI/Web/src/app/library-detail/library-recommended/library-recommended.component.htmlindex 52249c75e..20e7606a2 100644--- a/UI/Web/src/app/library-detail/library-recommended/library-recommended.component.html+++ b/UI/Web/src/app/library-detail/library-recommended/library-recommended.component.html@@ -20,6 +20,14 @@</app-carousel-reel></ng-container>+<ng-container *ngIf="quickCatchups$ | async as quickCatchups">+ <app-carousel-reel [items]="quickCatchups" title="Quick Catchups">+ <ng-template #carouselItem let-item let-position="idx">+ <app-series-card [data]="item" [libraryId]="item.libraryId" [suppressLibraryLink]="libraryId !== 0" (reload)="reloadInProgress($event)" (dataChanged)="reloadInProgress($event)"></app-series-card>+ </ng-template>+ </app-carousel-reel>+</ng-container>+<ng-container *ngIf="highlyRated$ | async as highlyRated"><app-carousel-reel [items]="highlyRated" title="Highly Rated"><ng-template #carouselItem let-item let-position="idx">diff --git a/UI/Web/src/app/library-detail/library-recommended/library-recommended.component.ts b/UI/Web/src/app/library-detail/library-recommended/library-recommended.component.tsindex d06493b37..ed6c39fd3 100644--- a/UI/Web/src/app/library-detail/library-recommended/library-recommended.component.ts+++ b/UI/Web/src/app/library-detail/library-recommended/library-recommended.component.ts@@ -16,6 +16,7 @@ export class LibraryRecommendedComponent implements OnInit, OnDestroy {@Input() libraryId: number = 0;quickReads$!: Observable<Series[]>;+ quickCatchups$!: Observable<Series[]>;highlyRated$!: Observable<Series[]>;onDeck$!: Observable<Series[]>;rediscover$!: Observable<Series[]>;@@ -36,6 +37,9 @@ export class LibraryRecommendedComponent implements OnInit, OnDestroy {this.quickReads$ = this.recommendationService.getQuickReads(this.libraryId).pipe(takeUntil(this.onDestroy), map(p => p.result), shareReplay());+ this.quickCatchups$ = this.recommendationService.getQuickCatchupReads(this.libraryId)+ .pipe(takeUntil(this.onDestroy), map(p => p.result), shareReplay());+this.highlyRated$ = this.recommendationService.getHighlyRated(this.libraryId).pipe(takeUntil(this.onDestroy), map(p => p.result), shareReplay());@@ -50,7 +54,7 @@ export class LibraryRecommendedComponent implements OnInit, OnDestroy {this.moreIn$ = this.recommendationService.getMoreIn(this.libraryId, genre.id).pipe(takeUntil(this.onDestroy), map(p => p.result), shareReplay());});- this.all$ = merge(this.quickReads$, this.highlyRated$, this.rediscover$, this.onDeck$, this.genre$).pipe(takeUntil(this.onDestroy));+ this.all$ = merge(this.quickReads$, this.quickCatchups$, this.highlyRated$, this.rediscover$, this.onDeck$, this.genre$).pipe(takeUntil(this.onDestroy));this.all$.subscribe(() => this.noData = false);}diff --git a/UI/Web/src/app/manga-reader/fullscreen-icon.pipe.ts b/UI/Web/src/app/manga-reader/fullscreen-icon.pipe.tsnew file mode 100644index 000000000..518bc9ad5--- /dev/null+++ b/UI/Web/src/app/manga-reader/fullscreen-icon.pipe.ts@@ -0,0 +1,15 @@+import { Pipe, PipeTransform } from '@angular/core';++/**+ * Returns the icon for the given state of fullscreen mode+ */+@Pipe({+ name: 'fullscreenIcon'+})+export class FullscreenIconPipe implements PipeTransform {++ transform(isFullscreen: boolean): string {+ return isFullscreen ? 'fa-compress-alt' : 'fa-expand-alt';+ }++}diff --git a/UI/Web/src/app/manga-reader/infinite-scroller/infinite-scroller.component.ts b/UI/Web/src/app/manga-reader/infinite-scroller/infinite-scroller.component.tsindex 69afaa279..450400874 100644--- a/UI/Web/src/app/manga-reader/infinite-scroller/infinite-scroller.component.ts+++ b/UI/Web/src/app/manga-reader/infinite-scroller/infinite-scroller.component.ts@@ -448,13 +448,13 @@ export class InfiniteScrollerComponent implements OnInit, OnChanges, OnDestroy {this.attachIntersectionObserverElem(event.target);if (imagePage === this.pageNum) {- Promise.all(Array.from(document.querySelectorAll('img'))+ Promise.all(Array.from(this.document.querySelectorAll('img')).filter((img: any) => !img.complete).map((img: any) => new Promise(resolve => { img.onload = img.onerror = resolve; }))).then(() => {this.debugLog('[Initialization] All images have loaded from initial prefetch, initFinished = true');this.debugLog('[Image Load] ! Loaded current page !', this.pageNum);- this.currentPageElem = document.querySelector('img#page-' + this.pageNum);+ this.currentPageElem = this.document.querySelector('img#page-' + this.pageNum);// There needs to be a bit of time before we scrollif (this.currentPageElem && !this.isElementVisible(this.currentPageElem)) {this.scrollToCurrentPage();diff --git a/UI/Web/src/app/manga-reader/manga-reader.component.html b/UI/Web/src/app/manga-reader/manga-reader.component.htmlindex 655d2f9a7..a592d684c 100644--- a/UI/Web/src/app/manga-reader/manga-reader.component.html+++ b/UI/Web/src/app/manga-reader/manga-reader.component.html@@ -18,10 +18,12 @@<i class="fa-regular fa-rectangle-list" aria-hidden="true"></i><span class="visually-hidden">Keyboard Shortcuts Modal</span></button>- <!-- {{this.pageNum}} -->- <!-- {{readerService.imageUrlToPageNum(canvasImage.src)}}<ng-container *ngIf="ShouldRenderDoublePage && (this.pageNum + 1 <= maxPages - 1 && this.pageNum > 0)"> - {{PageNumber + 1}}</ng-container> -->- <button *ngIf="!bookmarkMode" class="btn btn-icon btn-small" role="checkbox" [attr.aria-checked]="isCurrentPageBookmarked" title="{{isCurrentPageBookmarked ? 'Unbookmark Page' : 'Bookmark Page'}}" (click)="bookmarkPage()"><i class="{{isCurrentPageBookmarked ? 'fa' : 'far'}} fa-bookmark" aria-hidden="true"></i><span class="visually-hidden">{{isCurrentPageBookmarked ? 'Unbookmark Page' : 'Bookmark Page'}}</span></button>+ <button *ngIf="!bookmarkMode" class="btn btn-icon btn-small" role="checkbox" [attr.aria-checked]="CurrentPageBookmarked"+ title="{{CurrentPageBookmarked ? 'Unbookmark Page' : 'Bookmark Page'}}" (click)="bookmarkPage()">+ <i class="{{CurrentPageBookmarked ? 'fa' : 'far'}} fa-bookmark" aria-hidden="true"></i>+ <span class="visually-hidden">{{CurrentPageBookmarked ? 'Unbookmark Page' : 'Bookmark Page'}}</span>+ </button></div></div></div>@@ -41,13 +43,17 @@<div class="pagination-area"><!-- Pagination controls and screen hints-->- <div class="{{readerMode === ReaderMode.LeftRight ? 'left' : 'top'}} {{clickOverlayClass('left')}}" (click)="handlePageChange($event, 'left')" [ngStyle]="{'height': (readerMode === ReaderMode.LeftRight ? ImageHeight: 25 + '%')}">+ <div class="{{readerMode === ReaderMode.LeftRight ? 'left' : 'top'}} {{clickOverlayClass('left')}}" (click)="handlePageChange($event, 'left')"+ [ngStyle]="{'height': (readerMode === ReaderMode.LeftRight ? ImageHeight: '25%')}"><div *ngIf="showClickOverlay"><i class="fa fa-angle-{{readingDirection === ReadingDirection.RightToLeft ? 'double-' : ''}}{{readerMode === ReaderMode.LeftRight ? 'left' : 'up'}}"title="Previous Page" aria-hidden="true"></i></div></div>- <div class="{{readerMode === ReaderMode.LeftRight ? 'right' : 'bottom'}} {{clickOverlayClass('right')}}" (click)="handlePageChange($event, 'right')" [ngStyle]="{'height': (readerMode === ReaderMode.LeftRight ? ImageHeight: 25 + '%'), 'left': (readerMode === ReaderMode.LeftRight && (this.generalSettingsForm.get('fittingOption')?.value === FITTING_OPTION.ORIGINAL) ? ImageWidth: 'inherit')}">+ <div class="{{readerMode === ReaderMode.LeftRight ? 'right' : 'bottom'}} {{clickOverlayClass('right')}}" (click)="handlePageChange($event, 'right')"+ [ngStyle]="{'height': (readerMode === ReaderMode.LeftRight ? ImageHeight: '25%'),+ 'left': 'inherit',+ 'right': rightPaginationOffset + 'px'}"><div *ngIf="showClickOverlay"><i class="fa fa-angle-{{readingDirection === ReadingDirection.LeftToRight ? 'double-' : ''}}{{readerMode === ReaderMode.LeftRight ? 'right' : 'down'}}"title="Next Page" aria-hidden="true"></i>@@ -56,15 +62,14 @@</div><div class="image-container {{getFittingOptionClass()}}" [ngClass]="{'d-none': renderWithCanvas, 'center-double': ShouldRenderDoublePage,- 'fit-to-width-double-offset' : this.generalSettingsForm.get('fittingOption')?.value === FITTING_OPTION.WIDTH && ShouldRenderDoublePage,- 'fit-to-height-double-offset': this.generalSettingsForm.get('fittingOption')?.value === FITTING_OPTION.HEIGHT && ShouldRenderDoublePage,- 'original-double-offset' : this.generalSettingsForm.get('fittingOption')?.value === FITTING_OPTION.ORIGINAL && ShouldRenderDoublePage,- 'reverse': ShouldRenderReverseDouble}">+ 'fit-to-width-double-offset' : FittingOption === FITTING_OPTION.WIDTH && ShouldRenderDoublePage,+ 'fit-to-height-double-offset': FittingOption === FITTING_OPTION.HEIGHT && ShouldRenderDoublePage,+ 'original-double-offset' : FittingOption === FITTING_OPTION.ORIGINAL && ShouldRenderDoublePage}"><img #image [src]="canvasImage.src" id="image-1"- class="{{getFittingOptionClass()}} {{readerMode === ReaderMode.LeftRight || readerMode === ReaderMode.UpDown ? '' : 'd-none'}} {{showClickOverlay ? 'blur' : ''}}">+ class="{{getFittingOptionClass()}} {{readerMode === ReaderMode.LeftRight || readerMode === ReaderMode.UpDown ? '' : 'd-none'}} {{showClickOverlay ? 'blur' : ''}}">- <ng-container *ngIf="ShouldRenderDoublePage && (this.pageNum + 1 <= maxPages - 1 && this.pageNum > 0)">- <img [src]="getPageUrl(PageNumber + 1)" id="image-2" class="image-2 {{getFittingOptionClass()}} {{readerMode === ReaderMode.LeftRight || readerMode === ReaderMode.UpDown ? '' : 'd-none'}} {{showClickOverlay ? 'blur' : ''}} {{ShouldRenderReverseDouble ? 'reverse' : ''}}">+ <ng-container *ngIf="(this.canvasImage2.src !== '') && (readerService.imageUrlToPageNum(canvasImage2.src) <= maxPages - 1 && !isCoverImage())">+ <img [src]="canvasImage2.src" id="image-2" class="image-2 {{getFittingOptionClass()}} {{readerMode === ReaderMode.LeftRight || readerMode === ReaderMode.UpDown ? '' : 'd-none'}} {{showClickOverlay ? 'blur' : ''}}"> <!-- {{ShouldRenderReverseDouble ? 'reverse' : ''}} --></ng-container></div>@@ -115,13 +120,13 @@</div><div class="col"><button class="btn btn-icon" title="Reading Mode" (click)="toggleReaderMode();resetMenuCloseTimer();">- <i class="fa {{readerModeIcon}}" aria-hidden="true"></i>+ <i class="fa {{ReaderModeIcon}}" aria-hidden="true"></i><span class="visually-hidden">Reading Mode</span></button></div><div class="col"><button class="btn btn-icon" title="{{this.isFullscreen ? 'Collapse' : 'Fullscreen'}}" (click)="toggleFullscreen();resetMenuCloseTimer();">- <i class="fa {{this.isFullscreen ? 'fa-compress-alt' : 'fa-expand-alt'}}" aria-hidden="true"></i>+ <i class="fa {{this.isFullscreen | fullscreenIcon}}" aria-hidden="true"></i><span class="visually-hidden">{{this.isFullscreen ? 'Collapse' : 'Fullscreen'}}</span></button></div>@@ -138,7 +143,7 @@<div class="col-md-6 col-sm-12"><label for="page-splitting" class="form-label">Image Splitting</label> <div class="split fa fa-image">- <div class="{{splitIconClass}}"></div>+ <div class="{{SplitIconClass}}"></div></div><select class="form-control" id="page-splitting" formControlName="pageSplitOption"><option *ngFor="let opt of pageSplitOptions" [value]="opt.value">{{opt.text}}</option>@@ -156,8 +161,43 @@</div><div class="row mb-2">- <div class="col-md-6 col-sm-12" *ngIf="false">- <label for="layout-mode" class="form-label">Layout Mode</label>+ <div class="col-md-6 col-sm-12">+ <label for="layout-mode" class="form-label">Layout Mode</label> + <ng-container [ngSwitch]="layoutMode">+ <ng-container *ngSwitchCase="LayoutMode.Single">+ <div class="split-double">+ <span class="fa-stack fa-1x">+ <i class="fa-regular fa-square-full fa-stack-2x"></i>+ <i class="fa fa-image fa-stack-1x"></i>+ </span>+ </div>+ </ng-container>+ <ng-container *ngSwitchCase="LayoutMode.Double">+ <div class="split-double">+ <span class="fa-stack fa-1x">+ <i class="fa-regular fa-square-full fa-stack-2x"></i>+ <i class="fab fa-1 fa-stack-1x"></i>+ </span>+ <span class="fa-stack fa right">+ <i class="fa-regular fa-square-full fa-stack-2x"></i>+ <i class="fab fa-2 fa-stack-1x"></i>+ </span>+ </div>+ </ng-container>+ <ng-container *ngSwitchCase="LayoutMode.DoubleReversed">+ <div class="split-double">+ <span class="fa-stack fa-1x">+ <i class="fa-regular fa-square-full fa-stack-2x"></i>+ <i class="fab fa-2 fa-stack-1x"></i>+ </span>+ <span class="fa-stack fa right">+ <i class="fa-regular fa-square-full fa-stack-2x"></i>+ <i class="fab fa-1 fa-stack-1x"></i>+ </span>+ </div>+ </ng-container>+ <!-- <div class="{{LayoutModeIconClass}}"></div> -->+ </ng-container><select class="form-control" id="page-fitting" formControlName="layoutMode"><option [value]="opt.value" *ngFor="let opt of layoutModes">{{opt.text}}</option></select>diff --git a/UI/Web/src/app/manga-reader/manga-reader.component.scss b/UI/Web/src/app/manga-reader/manga-reader.component.scssindex 681425de2..93ef33a76 100644--- a/UI/Web/src/app/manga-reader/manga-reader.component.scss+++ b/UI/Web/src/app/manga-reader/manga-reader.component.scss@@ -20,6 +20,7 @@ img {.reading-area {position: relative;overflow: auto;+ text-align: center;//height: calc(var(--vh)*100); // this needs to be applied on the DOM because it breaks infinite scroller}@@ -41,7 +42,7 @@ img {&.full-height {height: 100vh;- display: grid;+ display: inline-block;}&.original {@@ -56,9 +57,14 @@ img {}&.reverse {- flex-direction: row-reverse;overflow: unset;- justify-content: flex-end;+ display: flex;+ align-content: center;+ justify-content: center;++ img {+ margin: unset;+ }}#image-2 {@@ -111,6 +117,9 @@ img {margin: 0 auto;max-height: calc(var(--vh)*100);vertical-align: top;+ &.wide {+ height: 100vh;+ }}.original {@@ -149,12 +158,12 @@ img {}.fit-to-height-double-offset {- position: absolute;+ // position: absolute;height: 100vh;object-fit: scale-down;top: 50%;left: 50%;- transform: translate(-50%, 0%);+ // transform: translate(-50%, 0%);max-width: 100%;}@@ -167,6 +176,8 @@ img {top: 0;overflow: hidden;border: 2px solid #ccc;+ vertical-align: sub;+ display: inline-block;&::before {margin-left: 30%;@@ -192,8 +203,21 @@ img {.none {background-color: rgba(255, 255, 255, 0.5);}++ // For layout only+}-++ .split-double {+ height: 20px;+ display: inline-block;+ font-size: .7em;++ .right {+ left: -7px;+ }+ }+::ng-deep {.custom-slider .ngx-slider .ngx-slider-bar {background: #e9ffe2;@@ -249,7 +273,7 @@ img {}$pagination-bg: rgba(0, 0, 0, 0);- //$pagination-bg: rgba(0, 0, 255, 0.4);+ //$pagination-bg: rgba(0, 0, 255, 0.4); // DEBUG CODE.pagination-area {cursor: pointer;diff --git a/UI/Web/src/app/manga-reader/manga-reader.component.ts b/UI/Web/src/app/manga-reader/manga-reader.component.tsindex b128b2331..297b94f26 100644--- a/UI/Web/src/app/manga-reader/manga-reader.component.ts+++ b/UI/Web/src/app/manga-reader/manga-reader.component.ts@@ -1,7 +1,7 @@import { AfterViewInit, Component, ElementRef, EventEmitter, HostListener, Inject, OnDestroy, OnInit, Renderer2, SimpleChanges, ViewChild } from '@angular/core';import { DOCUMENT, Location } from '@angular/common';import { ActivatedRoute, Router } from '@angular/router';-import { take, takeUntil } from 'rxjs/operators';+import { debounceTime, take, takeUntil } from 'rxjs/operators';import { User } from '../_models/user';import { AccountService } from '../_services/account.service';import { ReaderService } from '../_services/reader.service';@@ -10,7 +10,7 @@ import { NavService } from '../_services/nav.service';import { ReadingDirection } from '../_models/preferences/reading-direction';import { ScalingOption } from '../_models/preferences/scaling-option';import { PageSplitOption } from '../_models/preferences/page-split-option';-import { BehaviorSubject, forkJoin, ReplaySubject, Subject } from 'rxjs';+import { BehaviorSubject, forkJoin, fromEvent, ReplaySubject, Subject } from 'rxjs';import { ToastrService } from 'ngx-toastr';import { Breakpoint, KEY_CODES, UtilityService } from '../shared/_services/utility.service';import { CircularArray } from '../shared/data-structures/circular-array';@@ -24,10 +24,9 @@ import { layoutModes, pageSplitOptions, scalingOptions } from '../_models/preferimport { ReaderMode } from '../_models/preferences/reader-mode';import { MangaFormat } from '../_models/manga-format';import { LibraryType } from '../_models/library';-import { ShorcutsModalComponent } from '../reader-shared/_modals/shorcuts-modal/shorcuts-modal.component';+import { ShortcutsModalComponent } from '../reader-shared/_modals/shortcuts-modal/shortcuts-modal.component';import { NgbModal } from '@ng-bootstrap/ng-bootstrap';import { LayoutMode } from './_models/layout-mode';-import { SeriesService } from '../_services/series.service';const PREFETCH_PAGES = 8;@@ -39,6 +38,7 @@ const OVERLAY_AUTO_CLOSE_TIME = 3000;const CLICK_OVERLAY_TIMEOUT = 3000;+@Component({selector: 'app-manga-reader',templateUrl: './manga-reader.component.html',@@ -67,6 +67,14 @@ const CLICK_OVERLAY_TIMEOUT = 3000;]})export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {+++ @ViewChild('reader') reader!: ElementRef;+ @ViewChild('readingArea') readingArea!: ElementRef;+ @ViewChild('content') canvas: ElementRef | undefined;+ @ViewChild('image') image!: ElementRef;++libraryId!: number;seriesId!: number;volumeId!: number;@@ -115,21 +123,50 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {isLoading = true;- @ViewChild('reader') reader!: ElementRef;- @ViewChild('readingArea') readingArea!: ElementRef;- @ViewChild('content') canvas: ElementRef | undefined;- @ViewChild('image') image!: ElementRef;+ /**+ * A temp variable to allow us to update isLoose.+ */+ pageAmount = 0;+ /**+ * For double page layout, if only one page will be rendered.+ */+ isLoose = false;++private ctx!: CanvasRenderingContext2D;/**- * Used to render a page on the canvas or in the image tag. This Image element is prefetched by the cachedImages buffer+ * Used to render a page on the canvas or in the image tag. This Image element is prefetched by the cachedImages buffer.+ * @remarks Used for rendering to screen.*/canvasImage = new Image();/**- * Used soley for LayoutMode.Double rendering. Will always hold the next image in buffer.+ * Used solely for LayoutMode.Double rendering.+ * @remarks Used for rendering to screen.*/canvasImage2 = new Image();/**- * Dictates if we use render with canvas or with image. This is only for Splitting.+ * Used solely for LayoutMode.Double rendering. Will always hold the previous image to canvasImage+ * @see canvasImage+ */+ canvasImagePrev = new Image();+ /**+ * Used solely for LayoutMode.Double rendering. Will always hold the next image to canvasImage+ * @see canvasImage+ */+ canvasImageNext = new Image();+ /**+ * Responsible to hold current page + 2. Used to know if we should render+ * @remarks Used solely for LayoutMode.DoubleReverse rendering.+ */+ canvasImageAheadBy2 = new Image();+ /**+ * Responsible to hold current page -2 2. Used to know if we should render+ * @remarks Used solely for LayoutMode.DoubleReverse rendering.+ */+ canvasImageBehindBy2 = new Image();+ /**+ * Dictates if we use render with canvas or with image.+ * @remarks This is only for Splitting.*/renderWithCanvas: boolean = false;@@ -145,16 +182,16 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {continuousChaptersStack: Stack<number> = new Stack();/**- * An event emiter when a page change occurs. Used soley by the webtoon reader.+ * An event emitter when a page change occurs. Used solely by the webtoon reader.*/goToPageEvent!: BehaviorSubject<number>;/**- * An event emiter when a bookmark on a page change occurs. Used soley by the webtoon reader.+ * An event emitter when a bookmark on a page change occurs. Used solely by the webtoon reader.*/showBookmarkEffectEvent: ReplaySubject<number> = new ReplaySubject<number>();/**- * An event emiter when fullscreen mode is toggled. Used soley by the webtoon reader.+ * An event emitter when fullscreen mode is toggled. Used solely by the webtoon reader.*/fullscreenEvent: ReplaySubject<boolean> = new ReplaySubject<boolean>();/**@@ -208,11 +245,11 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {*/showClickOverlay: boolean = false;/**- * Next Chapter Id. This is not garunteed to be a valid ChapterId. Prefetched on page load (non-blocking).+ * Next Chapter Id. This is not guaranteed to be a valid ChapterId. Prefetched on page load (non-blocking).*/nextChapterId: number = CHAPTER_ID_NOT_FETCHED;/**- * Previous Chapter Id. This is not garunteed to be a valid ChapterId. Prefetched on page load (non-blocking).+ * Previous Chapter Id. This is not guaranteed to be a valid ChapterId. Prefetched on page load (non-blocking).*/prevChapterId: number = CHAPTER_ID_NOT_FETCHED;/**@@ -260,6 +297,11 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {*/backgroundColor: string = '#FFFFFF';+ /**+ * This is here as absolute layout requires us to calculate a negative right property for the right pagination when there is overflow. This is calculated on scroll.+ */+ rightPaginationOffset = 0;+getPageUrl = (pageNum: number) => {if (this.bookmarkMode) return this.readerService.getBookmarkPageUrl(this.seriesId, this.user.apiKey, pageNum);return this.readerService.getPageUrl(this.chapterId, pageNum);@@ -271,15 +313,50 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {return Math.max(Math.min(this.pageNum, this.maxPages - 1), 0);}+ /**+ * Determines if we should render a double page.+ * The general gist is if we are on double layout mode, the current page (first page) is not a cover image or a wide image+ * and the next page is not a wide image (as only non-wides should be shown next to each other).+ * @remarks This will always fail if the window's width is greater than the height+ */get ShouldRenderDoublePage() {- return this.layoutMode !== LayoutMode.Single && !this.isCoverImage();+ // window.innerWidth > window.innerHeight // Don't render double if orientation is portrait, mostly mobile+ return (+ this.layoutMode === LayoutMode.Double &&+ !this.isCoverImage() &&+ !this.isWideImage(this.canvasImage) &&+ !this.isWideImage(this.canvasImageNext)+ );}get ShouldRenderReverseDouble() {- return (this.layoutMode === LayoutMode.DoubleReversed) && !this.isCoverImage();+ // NOTE: I'm not going to care about window.innerWidth > window.innerHeight since a higher level handler will manage+ // window.innerWidth > window.innerHeight // Don't render double reversed if orientation is portrait, mostly mobile+ return (+ this.layoutMode === LayoutMode.DoubleReversed &&+ !this.isCoverImage() &&+ !this.isCoverImage(this.pageNum - 1) &&+ !this.isWideImage(this.canvasImage) &&+ !this.isWideImage(this.canvasImageNext) &&+ !this.isLoose+ );+ }++ @HostListener('window:resize', ['$event'])+ @HostListener('window:orientationchange', ['$event'])+ onResize() {+ if (window.innerWidth > window.innerHeight) {+ this.generalSettingsForm.get('layoutMode')?.enable();+ return;+ };+ if (this.layoutMode === LayoutMode.Single || this.readerMode === ReaderMode.Webtoon) return;++ this.generalSettingsForm.get('layoutMode')?.setValue(LayoutMode.Single);+ this.generalSettingsForm.get('layoutMode')?.disable();+ this.toastr.info('Layout mode switched to Single due to insufficient space to render double layout');}- get isCurrentPageBookmarked() {+ get CurrentPageBookmarked() {return this.bookmarks.hasOwnProperty(this.pageNum);}@@ -296,14 +373,21 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {}get ImageHeight() {- // If we are a cover image and implied fit to screen, then we need to take screen height rather than image height- if (this.isCoverImage() || this.generalSettingsForm.get('fittingOption')?.value === FITTING_OPTION.WIDTH) {+ // If we are a wide image and implied fit to screen, then we need to take screen height rather than image height+ if (this.isWideImage() || this.FittingOption === FITTING_OPTION.WIDTH) {return this.WindowHeight;}return this.image?.nativeElement.height + 'px';}- get splitIconClass() {+ get RightPaginationOffset() {+ if (this.readerMode === ReaderMode.LeftRight && this.FittingOption === FITTING_OPTION.HEIGHT) {+ return (this.readingArea?.nativeElement?.scrollLeft || 0) * -1;+ }+ return 0;+ }++ get SplitIconClass() {if (this.isSplitLeftToRight()) {return 'left-side';} else if (this.isNoSplit()) {@@ -312,7 +396,18 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {return 'right-side';}- get readerModeIcon() {+ get LayoutModeIconClass() {+ switch (this.layoutMode) {+ case LayoutMode.Single:+ return 'none';+ case LayoutMode.Double:+ return 'double';+ case LayoutMode.DoubleReversed:+ return 'double-reversed';+ }+ }++ get ReaderModeIcon() {switch(this.readerMode) {case ReaderMode.LeftRight:return 'fa-exchange-alt';@@ -348,13 +443,16 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {return FITTING_OPTION;}+ get FittingOption() {+ return this.generalSettingsForm.get('fittingOption')?.value;+ }+constructor(private route: ActivatedRoute, private router: Router, private accountService: AccountService,public readerService: ReaderService, private location: Location,private formBuilder: FormBuilder, private navService: NavService,private toastr: ToastrService, private memberService: MemberService,- public utilityService: UtilityService, private renderer: Renderer2,- @Inject(DOCUMENT) private document: Document, private modalService: NgbModal,- private seriesService: SeriesService) {+ public utilityService: UtilityService, private renderer: Renderer2,+ @Inject(DOCUMENT) private document: Document, private modalService: NgbModal) {this.navService.hideNavBar();this.navService.hideSideNav();}@@ -363,14 +461,11 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {const libraryId = this.route.snapshot.paramMap.get('libraryId');const seriesId = this.route.snapshot.paramMap.get('seriesId');const chapterId = this.route.snapshot.paramMap.get('chapterId');-if (libraryId === null || seriesId === null || chapterId === null) {this.router.navigateByUrl('/libraries');return;}--this.libraryId = parseInt(libraryId, 10);this.seriesId = parseInt(seriesId, 10);this.chapterId = parseInt(chapterId, 10);@@ -383,78 +478,88 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {this.readingListId = parseInt(readingListId, 10);}-this.continuousChaptersStack.push(this.chapterId);this.accountService.currentUser$.pipe(take(1)).subscribe(user => {- if (user) {- this.user = user;- this.readingDirection = this.user.preferences.readingDirection;- this.scalingOption = this.user.preferences.scalingOption;- this.pageSplitOption = this.user.preferences.pageSplitOption;- this.autoCloseMenu = this.user.preferences.autoCloseMenu;- this.readerMode = this.user.preferences.readerMode;- this.layoutMode = this.user.preferences.layoutMode || LayoutMode.Single;- this.backgroundColor = this.user.preferences.backgroundColor || '#000000';- this.readerService.setOverrideStyles(this.backgroundColor);--- this.generalSettingsForm = this.formBuilder.group({- autoCloseMenu: this.autoCloseMenu,- pageSplitOption: this.pageSplitOption,- fittingOption: this.translateScalingOption(this.scalingOption),- layoutMode: this.layoutMode- });+ if (!user) {+ this.router.navigateByUrl('/login');+ return;+ }- this.updateForm();+ this.user = user;+ this.readingDirection = this.user.preferences.readingDirection;+ this.scalingOption = this.user.preferences.scalingOption;+ this.pageSplitOption = this.user.preferences.pageSplitOption;+ this.autoCloseMenu = this.user.preferences.autoCloseMenu;+ this.readerMode = this.user.preferences.readerMode;+ this.layoutMode = this.user.preferences.layoutMode || LayoutMode.Single;+ this.backgroundColor = this.user.preferences.backgroundColor || '#000000';+ this.readerService.setOverrideStyles(this.backgroundColor);++ this.generalSettingsForm = this.formBuilder.group({+ autoCloseMenu: this.autoCloseMenu,+ pageSplitOption: this.pageSplitOption,+ fittingOption: this.translateScalingOption(this.scalingOption),+ layoutMode: this.layoutMode+ });- this.generalSettingsForm.get('layoutMode')?.valueChanges.pipe(takeUntil(this.onDestroy)).subscribe(val => {- this.layoutMode = parseInt(val, 10);+ this.updateForm();- if (this.layoutMode === LayoutMode.Single) {- this.generalSettingsForm.get('pageSplitOption')?.enable();+ this.generalSettingsForm.get('layoutMode')?.valueChanges.pipe(takeUntil(this.onDestroy)).subscribe(val => {- } else {- this.generalSettingsForm.get('pageSplitOption')?.setValue(PageSplitOption.FitSplit);- this.generalSettingsForm.get('pageSplitOption')?.disable();+ const changeOccurred = parseInt(val, 10) !== this.layoutMode;+ this.layoutMode = parseInt(val, 10);- this.canvasImage2 = this.cachedImages.peek();- }- });+ if (this.layoutMode === LayoutMode.Single) {+ this.generalSettingsForm.get('pageSplitOption')?.enable();+ this.generalSettingsForm.get('fittingOption')?.enable();+ } else {+ this.generalSettingsForm.get('pageSplitOption')?.setValue(PageSplitOption.NoSplit);+ this.generalSettingsForm.get('pageSplitOption')?.disable();+ this.generalSettingsForm.get('fittingOption')?.setValue(this.translateScalingOption(ScalingOption.FitToHeight));+ this.generalSettingsForm.get('fittingOption')?.disable();+ }+ // Re-render the current page when we switch layouts+ if (changeOccurred) {+ this.loadPage();+ }+ });- this.generalSettingsForm.valueChanges.pipe(takeUntil(this.onDestroy)).subscribe((changes: SimpleChanges) => {- this.autoCloseMenu = this.generalSettingsForm.get('autoCloseMenu')?.value;- const needsSplitting = this.isCoverImage();- // If we need to split on a menu change, then we need to re-render.- if (needsSplitting) {- this.loadPage();- }- });+ this.generalSettingsForm.valueChanges.pipe(takeUntil(this.onDestroy)).subscribe((changes: SimpleChanges) => {+ this.autoCloseMenu = this.generalSettingsForm.get('autoCloseMenu')?.value;+ const needsSplitting = this.isWideImage();+ // If we need to split on a menu change, then we need to re-render.+ if (needsSplitting) {+ this.loadPage();+ }+ });- this.memberService.hasReadingProgress(this.libraryId).pipe(take(1)).subscribe(progress => {- if (!progress) {- this.toggleMenu();- this.toastr.info('Tap the image at any time to open the menu. You can configure different settings or go to page by clicking progress bar. Tap sides of image move to next/prev page.');- }- });- } else {- // If no user, we can't render- this.router.navigateByUrl('/login');- }+ this.memberService.hasReadingProgress(this.libraryId).pipe(take(1)).subscribe(progress => {+ if (!progress) {+ this.toggleMenu();+ this.toastr.info('Tap the image at any time to open the menu. You can configure different settings or go to page by clicking progress bar. Tap sides of image move to next/prev page.');+ }+ });});-this.init();}ngAfterViewInit() {- if (!this.canvas) {- return;+ fromEvent(this.readingArea.nativeElement, 'scroll').pipe(debounceTime(20), takeUntil(this.onDestroy)).subscribe(evt => {+ if (this.readerMode === ReaderMode.Webtoon) return;+ if (this.readerMode === ReaderMode.LeftRight && this.FittingOption === FITTING_OPTION.HEIGHT) {+ this.rightPaginationOffset = (this.readingArea.nativeElement.scrollLeft) * -1;+ return;+ }+ this.rightPaginationOffset = 0;+ });++ if (this.canvas) {+ this.ctx = this.canvas.nativeElement.getContext('2d', { alpha: false });+ this.canvasImage.onload = () => this.renderPage();}- this.ctx = this.canvas.nativeElement.getContext('2d', { alpha: false });- this.canvasImage.onload = () => this.renderPage();- this.getWindowDimensions();}ngOnDestroy() {@@ -473,8 +578,10 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {switch (this.readerMode) {case ReaderMode.LeftRight:if (event.key === KEY_CODES.RIGHT_ARROW) {+ //if (!this.checkIfPaginationAllowed()) return;this.readingDirection === ReadingDirection.LeftToRight ? this.nextPage() : this.prevPage();} else if (event.key === KEY_CODES.LEFT_ARROW) {+ //if (!this.checkIfPaginationAllowed()) return;this.readingDirection === ReadingDirection.LeftToRight ? this.prevPage() : this.nextPage();}break;@@ -509,6 +616,21 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {}}+ // if there is scroll room and on original, then don't paginate+ checkIfPaginationAllowed() {+ // This is not used atm due to the complexity it adds with keyboard.+ if (this.readingArea === undefined || this.readingArea.nativeElement === undefined) return true;++ const scrollLeft = this.readingArea?.nativeElement?.scrollLeft || 0;+ const totalScrollWidth = this.readingArea?.nativeElement?.scrollWidth;+ // need to also check if there is scroll needed++ if (this.FittingOption === FITTING_OPTION.ORIGINAL && scrollLeft < totalScrollWidth) {+ return false;+ }+ return true;+ }+clickOverlayClass(side: 'right' | 'left') {if (!this.showClickOverlay) {return '';@@ -550,19 +672,18 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {this.inSetup = false;this.prevChapterDisabled = true;this.nextChapterDisabled = true;-+const images = [];for (let i = 0; i < PREFETCH_PAGES + 2; i++) {images.push(new Image());}-+this.cachedImages = new CircularArray<HTMLImageElement>(images, 0);this.render();});return;-}forkJoin({@@ -572,10 +693,10 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {}).pipe(take(1)).subscribe(results => {- if (this.readingListMode && results.chapterInfo.seriesFormat === MangaFormat.EPUB) {+ if (this.readingListMode && (results.chapterInfo.seriesFormat === MangaFormat.EPUB || results.chapterInfo.seriesFormat === MangaFormat.PDF)) {// Redirect to the book reader.const params = this.readerService.getQueryParamsObject(this.incognitoMode, this.readingListMode, this.readingListId);- this.router.navigate(['library', results.chapterInfo.libraryId, 'series', results.chapterInfo.seriesId, 'book', this.chapterId], {queryParams: params});+ this.router.navigate(this.readerService.getNavigationArray(results.chapterInfo.libraryId, results.chapterInfo.seriesId, this.chapterId, results.chapterInfo.seriesFormat), {queryParams: params});return;}@@ -714,24 +835,24 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {}val = formControl?.value;- if (this.isCoverImage() && this.layoutMode == LayoutMode.Single && val !== FITTING_OPTION.WIDTH && this.shouldRenderAsFitSplit()) {+ if (+ this.isWideImage() &&+ this.layoutMode === LayoutMode.Single &&+ val !== FITTING_OPTION.WIDTH &&+ this.shouldRenderAsFitSplit()+ ) {// Rewriting to fit to width for this cover imagereturn FITTING_OPTION.WIDTH;}+ if (this.isWideImage() && this.layoutMode !== LayoutMode.Single) {+ return val + ' wide double';+ }+if (this.isCoverImage() && this.layoutMode !== LayoutMode.Single) {return val + ' cover double';}- // Code from feature/manga-reader. Validate which fix is better- // if (this.layoutMode !== LayoutMode.Single) {- // val = val + (this.isCoverImage() ? 'cover' : '') + 'double';- // } else if (this.isCoverImage() && this.shouldRenderAsFitSplit()) {- // // JOE: If we are Fit to Screen, we should use fitting as width just for cover images- // // Rewriting to fit to width for this cover image- // val = FITTING_OPTION.WIDTH;- // }-return val;}@@ -810,11 +931,11 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {*/isNoSplit() {const splitValue = parseInt(this.generalSettingsForm?.get('pageSplitOption')?.value, 10);- return splitValue === PageSplitOption.NoSplit || splitValue === PageSplitOption.FitSplit;+ return splitValue === PageSplitOption.NoSplit || splitValue === PageSplitOption.FitSplit;}updateSplitPage() {- const needsSplitting = this.isCoverImage();+ const needsSplitting = this.isWideImage();if (!needsSplitting || this.isNoSplit()) {this.currentImageSplitPart = SPLIT_PAGE_PART.NO_SPLIT;return;@@ -874,9 +995,22 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {const notInSplit = this.currentImageSplitPart !== (this.isSplitLeftToRight() ? SPLIT_PAGE_PART.LEFT_PART : SPLIT_PAGE_PART.RIGHT_PART);- let pageAmount = (this.layoutMode !== LayoutMode.Single && !this.isCoverImage()) ? 2 : 1;- if (this.pageNum < 1) {- pageAmount = 1;+ let pageAmount = 1;+ if (this.layoutMode === LayoutMode.Double) {+ pageAmount = (+ !this.isCoverImage() &&+ !this.isWideImage() &&+ !this.isWideImage(this.canvasImageNext) &&+ !this.isSecondLastImage() &&+ !this.isLastImage()+ ? 2 : 1);+ } else if (this.layoutMode === LayoutMode.DoubleReversed) {+ pageAmount = (+ !this.isWideImage(this.canvasImageNext) &&+ !this.isWideImage(this.canvasImageAheadBy2) && // Remember we are doing this logic before we've hit the next page, so we need this+ !this.isSecondLastImage() &&+ !this.isLastImage()+ ? 2 : 1);}if ((this.pageNum + pageAmount >= this.maxPages && notInSplit) || this.isLoading) {@@ -891,9 +1025,10 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {this.pagingDirection = PAGING_DIRECTION.FORWARD;if (this.isNoSplit() || notInSplit) {this.setPageNum(this.pageNum + pageAmount);+ this.pageAmount = pageAmount;if (this.readerMode !== ReaderMode.Webtoon) {- this.canvasImage = this.cachedImages.next();+ this.canvasImage.src = this.getPageUrl(this.pageNum);}}@@ -910,12 +1045,22 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {const notInSplit = this.currentImageSplitPart !== (this.isSplitLeftToRight() ? SPLIT_PAGE_PART.RIGHT_PART : SPLIT_PAGE_PART.LEFT_PART);- // If the prev page before we change current page is a cover image, we actually are skipping a page- //console.log('Page ', this.PageNumber, ' is cover image: ', this.isCoverImage(this.cachedImages.prev()))- //console.log('Page ', this.pageNum, ' is cover image: ', this.isCoverImage())- const pageAmount = (this.layoutMode !== LayoutMode.Single && !this.isCoverImage(this.cachedImages.prev())) ? 2: 1;- // BUG: isCoverImage works on canvasImage, where we need to know if the previous image is a cover image or not.- //console.log('pageAmt: ', pageAmount);+ let pageAmount = 1;+ if (this.layoutMode === LayoutMode.Double) {+ pageAmount = (+ !this.isCoverImage() &&+ !this.isWideImage(this.canvasImagePrev)+ ? 2 : 1);+ }+ if (this.layoutMode === LayoutMode.DoubleReversed) {+ pageAmount = (+ !this.isCoverImage() &&+ !this.isCoverImage(this.pageNum - 1) &&+ !this.isWideImage(this.canvasImage) && // JOE: At this point, these aren't yet set to the new values+ !this.isWideImage(this.canvasImageNext)+ ? 2 : 1);+ }+if ((this.pageNum - 1 < 0 && notInSplit) || this.isLoading) {if (this.isLoading) { return; }@@ -927,7 +1072,9 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {this.pagingDirection = PAGING_DIRECTION.BACKWARDS;if (this.isNoSplit() || notInSplit) {this.setPageNum(this.pageNum - pageAmount);- this.canvasImage = this.cachedImages.prev();+ if (this.readerMode !== ReaderMode.Webtoon) {+ this.canvasImage.src = this.getPageUrl(this.pageNum);+ }}if (this.readerMode !== ReaderMode.Webtoon) {@@ -1027,16 +1174,22 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {}renderPage() {- if (!this.ctx || !this.canvas) { return; }+ const pageSplit = this.generalSettingsForm.get('pageSplitOption')?.value;+ if (!this.ctx || !this.canvas || pageSplit !== PageSplitOption.FitSplit || pageSplit !== PageSplitOption.NoSplit) {+ if (this.getFit() !== FITTING_OPTION.HEIGHT) {+ this.readingArea.nativeElement.scroll(0,0);+ }+ this.isLoading = false;+ return;+ }this.canvasImage.onload = null;this.setCanvasSize();- const needsSplitting = this.isCoverImage();+ const needsSplitting = this.isWideImage();this.updateSplitPage();-if (needsSplitting && this.currentImageSplitPart === SPLIT_PAGE_PART.LEFT_PART) {this.canvas.nativeElement.width = this.canvasImage.width / 2;this.ctx.drawImage(this.canvasImage, 0, 0, this.canvasImage.width, this.canvasImage.height, 0, 0, this.canvasImage.width, this.canvasImage.height);@@ -1051,10 +1204,9 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {// Reset scroll on non HEIGHT Fitsif (this.getFit() !== FITTING_OPTION.HEIGHT) {- this.document.body.scroll(0, 0)+ this.readingArea.nativeElement.scroll(0,0);}-this.isLoading = false;}@@ -1066,8 +1218,8 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {|| document.documentElement.clientHeight|| document.body.clientHeight;- const needsSplitting = this.isCoverImage();- let newScale = this.generalSettingsForm.get('fittingOption')?.value;+ const needsSplitting = this.isWideImage();+ let newScale = this.FittingOption;const widthRatio = windowWidth / (this.canvasImage.width / (needsSplitting ? 2 : 1));const heightRatio = windowHeight / (this.canvasImage.height);@@ -1083,12 +1235,44 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {this.generalSettingsForm.get('fittingOption')?.setValue(newScale, {emitEvent: false});}- isCoverImage(elem?: HTMLImageElement) {- if (elem) return elem.width > elem.height;+ /**+ * If pagenumber is 0 aka first page, which on double page rendering should always render as a single.+ *+ * @param pageNumber Defaults to current page number+ * @returns+ */+ isCoverImage(pageNumber = this.pageNum) {+ return pageNumber === 0;+ }++ /**+ * If the image's width is greater than it's height+ * @param elem Optional Image+ */+ isWideImage(elem?: HTMLImageElement) {+ if (elem) {+ elem.onload = () => {+ return elem.width > elem.height;+ }+ if (elem.src === '') return false;+ }const element = elem || this.canvasImage;return element.width > element.height;}+ /**+ * If the current page is second to last image+ */+ isSecondLastImage() {+ return this.maxPages - 1 - this.pageNum === 1;+ }++ /**+ * If the current image is last image+ */+ isLastImage() {+ return this.maxPages - 1 === this.pageNum;+ }shouldRenderAsFitSplit() {// Some pages aren't cover images but might need fit split renderings@@ -1096,7 +1280,10 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {return true;}-+ /**+ * Maintains a circular array of images (that are requested from backend) around the user's current page. This allows for quick loading (seemless to user)+ * and also maintains page info (wide image, etc) due to onload event.+ */prefetch() {let index = 1;@@ -1109,38 +1296,41 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {return;}if (offsetIndex < this.maxPages - 1) {- // if (this.bookmarkMode) item.src = this.readerService.getBookmarkPageUrl(this.seriesId, offsetIndex);- // else item.src = this.readerService.getPageUrl(this.chapterId, offsetIndex);item.src = this.getPageUrl(offsetIndex);index += 1;}}, this.cachedImages.size() - 3);-- //console.log('cachedImages: ', this.cachedImages.arr.map(img => this.readerService.imageUrlToPageNum(img.src) + ': ' + img.complete));}-loadPage() {this.isLoading = true;+ this.canvasImage2.src = '';+ this.canvasImageAheadBy2.src = '';- this.canvasImage = this.cachedImages.current();+ this.isLoose = (this.pageAmount === 1 ? true : false);+ this.canvasImage.src = this.getPageUrl(this.pageNum);- if (this.readerService.imageUrlToPageNum(this.canvasImage.src) !== this.pageNum || this.canvasImage.src === '' || !this.canvasImage.complete) {- if (this.layoutMode === LayoutMode.Single) {- //this.canvasImage.src = this.readerService.getPageUrl(this.chapterId, this.pageNum);- this.canvasImage.src = this.getPageUrl(this.pageNum);- } else {- // this.canvasImage.src = this.readerService.getPageUrl(this.chapterId, this.pageNum);- // this.canvasImage2.src = this.readerService.getPageUrl(this.chapterId, this.pageNum + 1); // TODO: I need to handle last page correctly- this.canvasImage.src = this.getPageUrl(this.pageNum);- this.canvasImage2.src = this.getPageUrl(this.pageNum + 1); // TODO: I need to handle last page correctly- }- this.canvasImage.onload = () => this.renderPage();+ if (this.layoutMode !== LayoutMode.Single) {+ this.canvasImageNext.src = this.getPageUrl(this.pageNum + 1); // This needs to be capped at maxPages !this.isLastImage()+ this.canvasImagePrev.src = this.getPageUrl(this.pageNum - 1);- } else {- this.renderPage();+ if (this.pageNum + 2 < this.maxPages - 1) {+ this.canvasImageAheadBy2.src = this.getPageUrl(this.pageNum + 2);+ }+ if (this.pageNum - 2 >= 0) {+ this.canvasImageBehindBy2.src = this.getPageUrl(this.pageNum - 2 || 0);+ }++ if (this.ShouldRenderDoublePage || this.ShouldRenderReverseDouble) {+ if (this.layoutMode === LayoutMode.Double) {+ this.canvasImage2.src = this.canvasImageNext.src;+ } else {+ this.canvasImage2.src = this.canvasImagePrev.src;+ }+ }}+ this.renderPage();this.prefetch();this.isLoading = false;}@@ -1185,7 +1375,7 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {}setPageNum(pageNum: number) {- this.pageNum = Math.max(pageNum, 0);+ this.pageNum = Math.max(Math.min(pageNum, this.maxPages - 1), 0);if (this.pageNum >= this.maxPages - 10) {// Tell server to cache the next chapter@@ -1295,16 +1485,15 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {if ( this.readerMode === ReaderMode.Webtoon) {this.generalSettingsForm.get('pageSplitOption')?.disable()this.generalSettingsForm.get('fittingOption')?.disable()- this.generalSettingsForm.get('pageSplitOption')?.disable();this.generalSettingsForm.get('layoutMode')?.disable();} else {this.generalSettingsForm.get('fittingOption')?.enable()this.generalSettingsForm.get('pageSplitOption')?.enable();this.generalSettingsForm.get('layoutMode')?.enable();- this.generalSettingsForm.get('pageSplitOption')?.enable()if (this.layoutMode !== LayoutMode.Single) {this.generalSettingsForm.get('pageSplitOption')?.disable();+ this.generalSettingsForm.get('fittingOption')?.disable();}}}@@ -1319,7 +1508,7 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {bookmarkPage() {const pageNum = this.pageNum;- if (this.isCurrentPageBookmarked) {+ if (this.CurrentPageBookmarked) {let apis = [this.readerService.unbookmark(this.seriesId, this.volumeId, this.chapterId, pageNum)];if (this.layoutMode === LayoutMode.Double) apis.push(this.readerService.unbookmark(this.seriesId, this.volumeId, this.chapterId, pageNum + 1));forkJoin(apis).pipe(take(1)).subscribe(() => {@@ -1373,18 +1562,8 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {}}- getWindowDimensions() {- const windowWidth = window.innerWidth- || document.documentElement.clientWidth- || document.body.clientWidth;- const windowHeight = window.innerHeight- || document.documentElement.clientHeight- || document.body.clientHeight;- return [windowWidth, windowHeight];- }-openShortcutModal() {- let ref = this.modalService.open(ShorcutsModalComponent, { scrollable: true, size: 'md' });+ let ref = this.modalService.open(ShortcutsModalComponent, { scrollable: true, size: 'md' });ref.componentInstance.shortcuts = [{key: '⇽', description: 'Move to previous page'},{key: '⇾', description: 'Move to next page'},diff --git a/UI/Web/src/app/manga-reader/manga-reader.module.ts b/UI/Web/src/app/manga-reader/manga-reader.module.tsindex 0d15ebe03..214962509 100644--- a/UI/Web/src/app/manga-reader/manga-reader.module.ts+++ b/UI/Web/src/app/manga-reader/manga-reader.module.ts@@ -2,24 +2,25 @@ import { NgModule } from '@angular/core';import { CommonModule } from '@angular/common';import { MangaReaderComponent } from './manga-reader.component';import { ReactiveFormsModule } from '@angular/forms';-import { NgbButtonsModule, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';+import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';import { MangaReaderRoutingModule } from './manga-reader.router.module';import { SharedModule } from '../shared/shared.module';import { NgxSliderModule } from '@angular-slider/ngx-slider';import { InfiniteScrollerComponent } from './infinite-scroller/infinite-scroller.component';import { ReaderSharedModule } from '../reader-shared/reader-shared.module';+import { FullscreenIconPipe } from './fullscreen-icon.pipe';@NgModule({declarations: [MangaReaderComponent,- InfiniteScrollerComponent+ InfiniteScrollerComponent,+ FullscreenIconPipe],imports: [CommonModule,MangaReaderRoutingModule,ReactiveFormsModule,- NgbButtonsModule,NgbDropdownModule,NgxSliderModule,SharedModule,diff --git a/UI/Web/src/app/metadata-filter/metadata-filter.component.html b/UI/Web/src/app/metadata-filter/metadata-filter.component.htmlindex 340524a60..dfa4b3a00 100644--- a/UI/Web/src/app/metadata-filter/metadata-filter.component.html+++ b/UI/Web/src/app/metadata-filter/metadata-filter.component.html@@ -340,6 +340,7 @@<option [value]="SortField.Created">Created</option><option [value]="SortField.LastModified">Last Modified</option><option [value]="SortField.LastChapterAdded">Item Added</option>+ <option [value]="SortField.TimeToRead">Time to Read</option></select></div></form>diff --git a/UI/Web/src/app/nav/events-widget/events-widget.component.html b/UI/Web/src/app/nav/events-widget/events-widget.component.htmlindex 447b9a3e9..891891840 100644--- a/UI/Web/src/app/nav/events-widget/events-widget.component.html+++ b/UI/Web/src/app/nav/events-widget/events-widget.component.html@@ -1,9 +1,12 @@<ng-container *ngIf="isAdmin">- <button type="button" class="btn btn-icon {{activeEvents > 0 ? 'colored' : ''}}"- [ngbPopover]="popContent" title="Activity" placement="bottom" [popoverClass]="'nav-events'" [autoClose]="'outside'">- <i aria-hidden="true" class="fa fa-wave-square nav"></i>- </button>+ <ng-container *ngIf="errors$ | async as errors">+ <button type="button" class="btn btn-icon" [ngClass]="{'colored': activeEvents > 0, 'colored-error': errors.length > 0}"+ [ngbPopover]="popContent" title="Activity" placement="bottom" [popoverClass]="'nav-events'" [autoClose]="'outside'">+ <i aria-hidden="true" class="fa fa-wave-square nav"></i>+ </button>+ </ng-container>+<ng-template #popContent><ul class="list-group list-group-flush dark-menu">diff --git a/UI/Web/src/app/nav/events-widget/events-widget.component.scss b/UI/Web/src/app/nav/events-widget/events-widget.component.scssindex 7f9534400..07cb2a975 100644--- a/UI/Web/src/app/nav/events-widget/events-widget.component.scss+++ b/UI/Web/src/app/nav/events-widget/events-widget.component.scss@@ -66,6 +66,11 @@border-radius: 60px;}+.colored-error {+ background-color: var(--error-color) !important;+ border-radius: 60px;+}+.update-available {cursor: pointer;diff --git a/UI/Web/src/app/nav/grouped-typeahead/grouped-typeahead.component.html b/UI/Web/src/app/nav/grouped-typeahead/grouped-typeahead.component.htmlindex 5944a5ced..01224ddf0 100644--- a/UI/Web/src/app/nav/grouped-typeahead/grouped-typeahead.component.html+++ b/UI/Web/src/app/nav/grouped-typeahead/grouped-typeahead.component.html@@ -1,9 +1,9 @@<form [formGroup]="typeaheadForm" class="grouped-typeahead"><div class="typeahead-input" [ngClass]="{'focused': hasFocus == true}" (click)="onInputFocus($event)"><div class="search">- <input #input [id]="id" type="text" autocomplete="off" formControlName="typeahead" [placeholder]="placeholder"+ <input #input [id]="id" type="search" autocomplete="off" formControlName="typeahead" [placeholder]="placeholder"aria-haspopup="listbox" aria-owns="dropdown" aria-expanded="hasFocus && (grouppedData.persons.length || grouppedData.collections.length || grouppedData.series.length || grouppedData.persons.length || grouppedData.tags.length || grouppedData.genres.length)"- aria-autocomplete="list" (focusout)="close($event)" (focus)="open($event)"+ aria-autocomplete="list" (focusout)="close($event)" (focus)="open($event)" role="search"><div class="spinner-border spinner-border-sm" role="status" *ngIf="isLoading"><span class="visually-hidden">Loading...</span>diff --git a/UI/Web/src/app/nav/grouped-typeahead/grouped-typeahead.component.scss b/UI/Web/src/app/nav/grouped-typeahead/grouped-typeahead.component.scssindex 684f24954..878ae4a38 100644--- a/UI/Web/src/app/nav/grouped-typeahead/grouped-typeahead.component.scss+++ b/UI/Web/src/app/nav/grouped-typeahead/grouped-typeahead.component.scss@@ -99,7 +99,7 @@ form {.dropdown {width: 100vw;- height: calc(100vh - 57px); //header offset+ height: calc(100vh - 56px); //header offsetbackground: var(--dropdown-overlay-color);position: fixed;justify-content: center;diff --git a/UI/Web/src/app/nav/nav-header/nav-header.component.ts b/UI/Web/src/app/nav/nav-header/nav-header.component.tsindex 6d8f35b7e..4e8bf481c 100644--- a/UI/Web/src/app/nav/nav-header/nav-header.component.ts+++ b/UI/Web/src/app/nav/nav-header/nav-header.component.ts@@ -1,8 +1,8 @@import { DOCUMENT } from '@angular/common';-import { Component, HostListener, Inject, OnDestroy, OnInit, ViewChild } from '@angular/core';-import { Router } from '@angular/router';-import { Subject } from 'rxjs';-import { takeUntil } from 'rxjs/operators';+import { Component, ContentChildren, ElementRef, HostListener, Inject, OnDestroy, OnInit, ViewChild } from '@angular/core';+import { NavigationStart, Router } from '@angular/router';+import { fromEvent, Subject } from 'rxjs';+import { debounceTime, filter, takeUntil } from 'rxjs/operators';import { Chapter } from 'src/app/_models/chapter';import { MangaFile } from 'src/app/_models/manga-file';import { ScrollService } from 'src/app/_services/scroll.service';@@ -51,12 +51,34 @@ export class NavHeaderComponent implements OnInit, OnDestroy {constructor(public accountService: AccountService, private router: Router, public navService: NavService,private libraryService: LibraryService, public imageService: ImageService, @Inject(DOCUMENT) private document: Document,- private scrollService: ScrollService, private seriesService: SeriesService) { }+ private scrollService: ScrollService, private seriesService: SeriesService,) { }- ngOnInit(): void {}+ ngOnInit(): void {+ // setTimeout(() => this.setupScrollChecker(), 1000);+ // // TODO: on router change, reset the scroll check++ // this.router.events+ // .pipe(filter(event => event instanceof NavigationStart))+ // .subscribe((event) => {+ // setTimeout(() => this.setupScrollChecker(), 1000);+ // });+ }++ // setupScrollChecker() {+ // const viewportScroller = this.document.querySelector('.viewport-container');+ // console.log('viewport container', viewportScroller);++ // if (viewportScroller) {+ // fromEvent(viewportScroller, 'scroll').pipe(debounceTime(20)).subscribe(() => this.checkBackToTopNeeded());+ // } else {+ // fromEvent(this.document.body, 'scroll').pipe(debounceTime(20)).subscribe(() => this.checkBackToTopNeeded());+ // }+ // }@HostListener('body:scroll', [])checkBackToTopNeeded() {+ // TODO: This somehow needs to hook into the scrolling for virtual scroll+const offset = this.scrollService.scrollPosition;if (offset > 100) {this.backToTopNeeded = true;diff --git a/UI/Web/src/app/pdf-reader/package-lock.json b/UI/Web/src/app/pdf-reader/package-lock.jsonnew file mode 100644index 000000000..48e341a09--- /dev/null+++ b/UI/Web/src/app/pdf-reader/package-lock.json@@ -0,0 +1,3 @@+{+ "lockfileVersion": 1+}diff --git a/UI/Web/src/app/pdf-reader/pdf-reader.module.ts b/UI/Web/src/app/pdf-reader/pdf-reader.module.tsnew file mode 100644index 000000000..7b49ac00c--- /dev/null+++ b/UI/Web/src/app/pdf-reader/pdf-reader.module.ts@@ -0,0 +1,21 @@+import { NgModule } from '@angular/core';+import { CommonModule } from '@angular/common';+import { PdfReaderComponent } from './pdf-reader/pdf-reader.component';+import { PdfReaderRoutingModule } from './pdf-reader.router.module';+import { NgxExtendedPdfViewerModule } from 'ngx-extended-pdf-viewer';+import { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';++++@NgModule({+ declarations: [+ PdfReaderComponent+ ],+ imports: [+ CommonModule,+ PdfReaderRoutingModule,+ NgxExtendedPdfViewerModule,+ NgbTooltipModule+ ]+})+export class PdfReaderModule { }diff --git a/UI/Web/src/app/pdf-reader/pdf-reader.router.module.ts b/UI/Web/src/app/pdf-reader/pdf-reader.router.module.tsnew file mode 100644index 000000000..0b4f871d4--- /dev/null+++ b/UI/Web/src/app/pdf-reader/pdf-reader.router.module.ts@@ -0,0 +1,17 @@+import { NgModule } from '@angular/core';+import { Routes, RouterModule } from '@angular/router';+import { PdfReaderComponent } from './pdf-reader/pdf-reader.component';++const routes: Routes = [+ {+ path: ':chapterId',+ component: PdfReaderComponent,+ }+];+++@NgModule({+ imports: [RouterModule.forChild(routes), ],+ exports: [RouterModule]+})+export class PdfReaderRoutingModule { }diff --git a/UI/Web/src/app/pdf-reader/pdf-reader/pdf-reader.component.html b/UI/Web/src/app/pdf-reader/pdf-reader/pdf-reader.component.htmlnew file mode 100644index 000000000..12467fa61--- /dev/null+++ b/UI/Web/src/app/pdf-reader/pdf-reader/pdf-reader.component.html@@ -0,0 +1,79 @@+<div class="{{theme}}">+ <ngx-extended-pdf-viewer+ #pdfViewer+ [src]="readerService.downloadPdf(this.chapterId)"+ height="100vh"+ [(page)]="currentPage"+ [textLayer]="true"+ [useBrowserLocale]="false"+ [showHandToolButton]="true"+ [showOpenFileButton]="false"+ [showPrintButton]="false"+ [showBookmarkButton]="false"+ [showRotateButton]="false"+ [showDownloadButton]="false"+ [showPropertiesButton]="false"+ [(zoom)]="zoomSetting"+ [showSecondaryToolbarButton]="true"++ [showBorders]="true"+ [theme]="theme"+ [formTheme]="theme"+ [backgroundColor]="backgroundColor"+ [customToolbar]="multiToolbar"++ (pageChange)="saveProgress()"+ >++ </ngx-extended-pdf-viewer>++ <ng-template #multiToolbar>+ <div style="min-height: 36px" id="toolbarViewer" [ngStyle]="{'background-color': backgroundColor, 'color': fontColor}"> <!--action-bar row g-0 justify-content-between-->+ <div id="toolbarViewerLeft">+ <pdf-toggle-sidebar></pdf-toggle-sidebar>+ <pdf-find-button></pdf-find-button>+ <pdf-paging-area></pdf-paging-area>+ </div>++ <div id="toolbarViewerRight">+ <pdf-hand-tool></pdf-hand-tool>+ <pdf-select-tool></pdf-select-tool>+ <pdf-presentation-mode></pdf-presentation-mode>+++ <!-- This is not yet supported by the underlying library+ <button (click)="toggleBookPageMode()" class="btn btn-icon toolbarButton">+ <i class="toolbar-icon fa-solid {{this.bookMode !== 'book' ? 'fa-book' : 'fa-book-open'}}" [ngStyle]="{color: fontColor}" aria-hidden="true"></i>+ <span class="visually-hidden">{{this.bookMode !== 'book' ? 'Book Mode' : 'Normal Mode'}}</span>+ </button> -->++ <button class="btn btn-icon toolbarButton" [ngbTooltip]="bookTitle">+ <i class="toolbar-icon fa-solid fa-info" [ngStyle]="{color: fontColor}" aria-hidden="true"></i>+ <span class="visually-hidden">+ {{bookTitle}}+ </span>+ </button>++ <button *ngIf="incognitoMode" (click)="turnOffIncognito()" class="btn btn-icon toolbarButton">+ <i class="toolbar-icon fa fa-glasses" [ngStyle]="{color: fontColor}" aria-hidden="true"></i><span class="visually-hidden">Incognito Mode</span>+ </button>++ <!-- This is pretty experimental, so it might not work perfectly -->+ <button (click)="toggleTheme()" class="btn btn-icon toolbarButton">+ <i class="toolbar-icon fa-solid {{this.theme === 'light' ? 'fa-sun' : 'fa-moon'}}" [ngStyle]="{color: fontColor}" aria-hidden="true"></i>+ <span class="visually-hidden">{{this.theme === 'light' ? 'Light Theme' : 'Dark Theme'}}</span>+ </button>++ <button class="btn btn-icon col-2 col-xs-1 toolbarButton" (click)="closeReader()">+ <i class="toolbar-icon fa fa-times-circle" aria-hidden="true" [ngStyle]="{color: fontColor}"></i>+ <span class="visually-hidden">Close Reader</span>+ </button>++ <div class="verticalToolbarSeparator hiddenSmallView"></div>+ <pdf-toggle-secondary-toolbar></pdf-toggle-secondary-toolbar>+ </div>+ <pdf-zoom-toolbar ></pdf-zoom-toolbar>+ </div>++ </ng-template>+</div>diff --git a/UI/Web/src/app/pdf-reader/pdf-reader/pdf-reader.component.scss b/UI/Web/src/app/pdf-reader/pdf-reader/pdf-reader.component.scssnew file mode 100644index 000000000..a49ec4553--- /dev/null+++ b/UI/Web/src/app/pdf-reader/pdf-reader/pdf-reader.component.scss@@ -0,0 +1,12 @@+.toolbar-icon {+ font-size: 19px;+}++.book-title {+ margin: 8px 0 4px !important;+}++// Override since it's not coming from library+::ng-deep #presentationMode {+ margin: 3px 0 4px !important;+}diff --git a/UI/Web/src/app/pdf-reader/pdf-reader/pdf-reader.component.ts b/UI/Web/src/app/pdf-reader/pdf-reader/pdf-reader.component.tsnew file mode 100644index 000000000..e2eee4dae--- /dev/null+++ b/UI/Web/src/app/pdf-reader/pdf-reader/pdf-reader.component.ts@@ -0,0 +1,191 @@+import { Location } from '@angular/common';+import { Component, OnDestroy, OnInit } from '@angular/core';+import { ActivatedRoute, Router } from '@angular/router';+import { PageViewModeType } from 'ngx-extended-pdf-viewer';+import { ToastrService } from 'ngx-toastr';+import { Subject, take } from 'rxjs';+import { BookService } from 'src/app/book-reader/book.service';+import { Chapter } from 'src/app/_models/chapter';+import { User } from 'src/app/_models/user';+import { AccountService } from 'src/app/_services/account.service';+import { MemberService } from 'src/app/_services/member.service';+import { NavService } from 'src/app/_services/nav.service';+import { CHAPTER_ID_DOESNT_EXIST, ReaderService } from 'src/app/_services/reader.service';+import { SeriesService } from 'src/app/_services/series.service';+import { ThemeService } from 'src/app/_services/theme.service';++@Component({+ selector: 'app-pdf-reader',+ templateUrl: './pdf-reader.component.html',+ styleUrls: ['./pdf-reader.component.scss']+})+export class PdfReaderComponent implements OnInit, OnDestroy {++ libraryId!: number;+ seriesId!: number;+ volumeId!: number;+ chapterId!: number;+ chapter!: Chapter;+ user!: User;++ /**+ * Reading List id. Defaults to -1.+ */+ readingListId: number = CHAPTER_ID_DOESNT_EXIST;++ /**+ * If this is true, no progress will be saved.+ */+ incognitoMode: boolean = false;++ /**+ * If this is true, chapters will be fetched in the order of a reading list, rather than natural series order.+ */+ readingListMode: boolean = false;++ /**+ * Current Page number+ */+ currentPage: number = 1;+ /**+ * Total pages+ */+ maxPages: number = 1;+ bookTitle: string = '';++ zoomSetting: string | number = 'auto';++ theme: 'dark' | 'light' = 'light';+ themeMap: {[key:string]: {background: string, font: string}} = {+ 'dark': {'background': '#292929', 'font': '#d9d9d9'},+ 'light': {'background': '#f9f9f9', 'font': '#5a5a5a'}+ }+ backgroundColor: string = this.themeMap[this.theme].background;+ fontColor: string = this.themeMap[this.theme].font;++ isLoading: boolean = false;++ /**+ * This can't be updated dynamically:+ * https://github.com/stephanrauh/ngx-extended-pdf-viewer/issues/1415+ */+ bookMode: PageViewModeType = 'multiple';++ private readonly onDestroy = new Subject<void>();++ constructor(private route: ActivatedRoute, private router: Router, private accountService: AccountService,+ private seriesService: SeriesService, public readerService: ReaderService,+ private navService: NavService, private toastr: ToastrService,+ private bookService: BookService, private themeService: ThemeService, private location: Location) {+ this.navService.hideNavBar();+ this.themeService.clearThemes();+ this.navService.hideSideNav();+ }++ ngOnDestroy(): void {+ this.themeService.currentTheme$.pipe(take(1)).subscribe(theme => {+ this.themeService.setTheme(theme.name);+ });++ this.navService.showNavBar();+ this.navService.showSideNav();+ this.readerService.exitFullscreen();++ this.onDestroy.next();+ this.onDestroy.complete();+ }++ ngOnInit(): void {+ const libraryId = this.route.snapshot.paramMap.get('libraryId');+ const seriesId = this.route.snapshot.paramMap.get('seriesId');+ const chapterId = this.route.snapshot.paramMap.get('chapterId');++ if (libraryId === null || seriesId === null || chapterId === null) {+ this.router.navigateByUrl('/libraries');+ return;+ }++ this.libraryId = parseInt(libraryId, 10);+ this.seriesId = parseInt(seriesId, 10);+ this.chapterId = parseInt(chapterId, 10);+ this.incognitoMode = this.route.snapshot.queryParamMap.get('incognitoMode') === 'true';+++ const readingListId = this.route.snapshot.queryParamMap.get('readingListId');+ if (readingListId != null) {+ this.readingListMode = true;+ this.readingListId = parseInt(readingListId, 10);+ }++ this.accountService.currentUser$.pipe(take(1)).subscribe(user => {+ if (user) {+ this.user = user;+ this.init();+ }+ });+ }++ init() {+ this.bookService.getBookInfo(this.chapterId).subscribe(info => {+ this.volumeId = info.volumeId;+ this.bookTitle = info.bookTitle;+ });++ this.readerService.getProgress(this.chapterId).subscribe(progress => {+ this.currentPage = progress.pageNum || 1;+ });++ this.seriesService.getChapter(this.chapterId).subscribe(chapter => {+ this.maxPages = chapter.pages;++ if (this.currentPage >= this.maxPages) {+ this.currentPage = this.maxPages - 1;+ this.saveProgress();+ }+ });++ }++ /**+ * Turns off Incognito mode. This can only happen once if the user clicks the icon. This will modify URL state+ */+ turnOffIncognito() {+ this.incognitoMode = false;+ const newRoute = this.readerService.getNextChapterUrl(this.router.url, this.chapterId, this.incognitoMode, this.readingListMode, this.readingListId);+ window.history.replaceState({}, '', newRoute);+ this.toastr.info('Incognito mode is off. Progress will now start being tracked.');+ this.saveProgress();+ }++ toggleTheme() {+ if (this.theme === 'dark') {+ this.theme = 'light';+ } else {+ this.theme = 'dark';+ }+ this.backgroundColor = this.themeMap[this.theme].background;+ this.fontColor = this.themeMap[this.theme].font;+ }++ toggleBookPageMode() {+ if (this.bookMode === 'book') {+ this.bookMode = 'multiple';+ } else {+ this.bookMode = 'book';+ }+ }++ saveProgress() {+ if (this.incognitoMode) return;+ this.readerService.saveProgress(this.seriesId, this.volumeId, this.chapterId, this.currentPage).subscribe(() => {});+ }++ closeReader() {+ if (this.readingListMode) {+ this.router.navigateByUrl('lists/' + this.readingListId);+ } else {+ this.location.back();+ }+ }++}diff --git a/UI/Web/src/app/pipe/age-rating.pipe.ts b/UI/Web/src/app/pipe/age-rating.pipe.tsnew file mode 100644index 000000000..44cdb9056--- /dev/null+++ b/UI/Web/src/app/pipe/age-rating.pipe.ts@@ -0,0 +1,22 @@+import { Pipe, PipeTransform } from '@angular/core';+import { Observable, of } from 'rxjs';+import { AgeRating } from '../_models/metadata/age-rating';+import { AgeRatingDto } from '../_models/metadata/age-rating-dto';+import { MetadataService } from '../_services/metadata.service';++@Pipe({+ name: 'ageRating'+})+export class AgeRatingPipe implements PipeTransform {++ constructor(private metadataService: MetadataService) {}++ transform(value: AgeRating | AgeRatingDto): Observable<string> {+ if (value.hasOwnProperty('title')) {+ return of((value as AgeRatingDto).title);+ }++ return this.metadataService.getAgeRating((value as AgeRating));+ }++}diff --git a/UI/Web/src/app/pipe/compact-number.pipe.ts b/UI/Web/src/app/pipe/compact-number.pipe.tsnew file mode 100644index 000000000..f8c017e17--- /dev/null+++ b/UI/Web/src/app/pipe/compact-number.pipe.ts@@ -0,0 +1,18 @@+import { Pipe, PipeTransform } from '@angular/core';+++const formatter = new Intl.NumberFormat('en-GB', {+ //@ts-ignore+ notation: 'compact' // https://github.com/microsoft/TypeScript/issues/36533+});++@Pipe({+ name: 'compactNumber'+})+export class CompactNumberPipe implements PipeTransform {++ transform(value: number): string {+ return formatter.format(value);+ }++}diff --git a/UI/Web/src/app/pipe/default-value.pipe.ts b/UI/Web/src/app/pipe/default-value.pipe.tsnew file mode 100644index 000000000..57acf9d2e--- /dev/null+++ b/UI/Web/src/app/pipe/default-value.pipe.ts@@ -0,0 +1,13 @@+import { Pipe, PipeTransform } from '@angular/core';++@Pipe({+ name: 'defaultValue'+})+export class DefaultValuePipe implements PipeTransform {++ transform(value: any, replacementString = '—'): string {+ if (value === null || value === undefined || value === '' || value === Infinity || value === NaN || value === {}) return replacementString;+ return value;+ }++}diff --git a/UI/Web/src/app/pipe/language-name.pipe.ts b/UI/Web/src/app/pipe/language-name.pipe.tsnew file mode 100644index 000000000..6f25dc1a6--- /dev/null+++ b/UI/Web/src/app/pipe/language-name.pipe.ts@@ -0,0 +1,21 @@+import { Pipe, PipeTransform } from '@angular/core';+import { map, Observable } from 'rxjs';+import { MetadataService } from '../_services/metadata.service';++@Pipe({+ name: 'languageName'+})+export class LanguageNamePipe implements PipeTransform {++ constructor(private metadataService: MetadataService) {+ }++ transform(isoCode: string): Observable<string> {+ return this.metadataService.getAllValidLanguages().pipe(map(lang => {+ const l = lang.filter(l => l.isoCode === isoCode);+ if (l.length > 0) return l[0].title;+ return '';+ }));+ }++}diff --git a/UI/Web/src/app/pipe/manga-format-icon.pipe.ts b/UI/Web/src/app/pipe/manga-format-icon.pipe.tsnew file mode 100644index 000000000..a7d71d72c--- /dev/null+++ b/UI/Web/src/app/pipe/manga-format-icon.pipe.ts@@ -0,0 +1,27 @@+import { Pipe, PipeTransform } from '@angular/core';+import { MangaFormat } from '../_models/manga-format';++/**+ * Returns the icon class representing the format+ */+@Pipe({+ name: 'mangaFormatIcon'+})+export class MangaFormatIconPipe implements PipeTransform {++ transform(format: MangaFormat): string {+ switch (format) {+ case MangaFormat.EPUB:+ return 'fa-book';+ case MangaFormat.ARCHIVE:+ return 'fa-file-archive';+ case MangaFormat.IMAGE:+ return 'fa-image';+ case MangaFormat.PDF:+ return 'fa-file-pdf';+ case MangaFormat.UNKNOWN:+ return 'fa-question';+ }+ }++}diff --git a/UI/Web/src/app/pipe/manga-format.pipe.ts b/UI/Web/src/app/pipe/manga-format.pipe.tsnew file mode 100644index 000000000..8c9764998--- /dev/null+++ b/UI/Web/src/app/pipe/manga-format.pipe.ts@@ -0,0 +1,27 @@+import { Pipe, PipeTransform } from '@angular/core';+import { MangaFormat } from '../_models/manga-format';++/**+ * Returns the string name for the format+ */+@Pipe({+ name: 'mangaFormat'+})+export class MangaFormatPipe implements PipeTransform {++ transform(format: MangaFormat): string {+ switch (format) {+ case MangaFormat.EPUB:+ return 'EPUB';+ case MangaFormat.ARCHIVE:+ return 'Archive';+ case MangaFormat.IMAGE:+ return 'Image';+ case MangaFormat.PDF:+ return 'PDF';+ case MangaFormat.UNKNOWN:+ return 'Unknown';+ }+ }++}diff --git a/UI/Web/src/app/pipe/pipe.module.ts b/UI/Web/src/app/pipe/pipe.module.tsindex 7e2a29659..2f70cd776 100644--- a/UI/Web/src/app/pipe/pipe.module.ts+++ b/UI/Web/src/app/pipe/pipe.module.ts@@ -6,6 +6,12 @@ import { SentenceCasePipe } from './sentence-case.pipe';import { PersonRolePipe } from './person-role.pipe';import { SafeHtmlPipe } from './safe-html.pipe';import { RelationshipPipe } from './relationship.pipe';+import { DefaultValuePipe } from './default-value.pipe';+import { CompactNumberPipe } from './compact-number.pipe';+import { LanguageNamePipe } from './language-name.pipe';+import { AgeRatingPipe } from './age-rating.pipe';+import { MangaFormatPipe } from './manga-format.pipe';+import { MangaFormatIconPipe } from './manga-format-icon.pipe';@@ -16,7 +22,13 @@ import { RelationshipPipe } from './relationship.pipe';PublicationStatusPipe,SentenceCasePipe,SafeHtmlPipe,- RelationshipPipe+ RelationshipPipe,+ DefaultValuePipe,+ CompactNumberPipe,+ LanguageNamePipe,+ AgeRatingPipe,+ MangaFormatPipe,+ MangaFormatIconPipe],imports: [CommonModule,@@ -27,7 +39,13 @@ import { RelationshipPipe } from './relationship.pipe';PublicationStatusPipe,SentenceCasePipe,SafeHtmlPipe,- RelationshipPipe+ RelationshipPipe,+ DefaultValuePipe,+ CompactNumberPipe,+ LanguageNamePipe,+ AgeRatingPipe,+ MangaFormatPipe,+ MangaFormatIconPipe]})export class PipeModule { }diff --git a/UI/Web/src/app/reader-shared/_modals/shorcuts-modal/shorcuts-modal.component.html b/UI/Web/src/app/reader-shared/_modals/shortcuts-modal/shortcuts-modal.component.htmlsimilarity index 100%rename from UI/Web/src/app/reader-shared/_modals/shorcuts-modal/shorcuts-modal.component.htmlrename to UI/Web/src/app/reader-shared/_modals/shortcuts-modal/shortcuts-modal.component.htmldiff --git a/UI/Web/src/app/reader-shared/_modals/shortcuts-modal/shortcuts-modal.component.scss b/UI/Web/src/app/reader-shared/_modals/shortcuts-modal/shortcuts-modal.component.scssnew file mode 100644index 000000000..e69de29bbdiff --git a/UI/Web/src/app/reader-shared/_modals/shorcuts-modal/shorcuts-modal.component.ts b/UI/Web/src/app/reader-shared/_modals/shortcuts-modal/shortcuts-modal.component.tssimilarity index 73%rename from UI/Web/src/app/reader-shared/_modals/shorcuts-modal/shorcuts-modal.component.tsrename to UI/Web/src/app/reader-shared/_modals/shortcuts-modal/shortcuts-modal.component.tsindex 2b33bcc4b..75ac60b0d 100644--- a/UI/Web/src/app/reader-shared/_modals/shorcuts-modal/shorcuts-modal.component.ts+++ b/UI/Web/src/app/reader-shared/_modals/shortcuts-modal/shortcuts-modal.component.ts@@ -13,11 +13,11 @@ export interface KeyboardShortcut {}@Component({- selector: 'app-shorcuts-modal',- templateUrl: './shorcuts-modal.component.html',- styleUrls: ['./shorcuts-modal.component.scss']+ selector: 'app-shortcuts-modal',+ templateUrl: './shortcuts-modal.component.html',+ styleUrls: ['./shortcuts-modal.component.scss']})-export class ShorcutsModalComponent implements OnInit {+export class ShortcutsModalComponent implements OnInit {@Input() shortcuts: Array<KeyboardShortcut> = [];diff --git a/UI/Web/src/app/reader-shared/reader-shared.module.ts b/UI/Web/src/app/reader-shared/reader-shared.module.tsindex 49790215d..4aba6ca0e 100644--- a/UI/Web/src/app/reader-shared/reader-shared.module.ts+++ b/UI/Web/src/app/reader-shared/reader-shared.module.ts@@ -1,20 +1,20 @@import { NgModule } from '@angular/core';import { CommonModule } from '@angular/common';-import { ShorcutsModalComponent } from './_modals/shorcuts-modal/shorcuts-modal.component';+import { ShortcutsModalComponent } from './_modals/shortcuts-modal/shortcuts-modal.component';import { NgbModalModule } from '@ng-bootstrap/ng-bootstrap';@NgModule({declarations: [- ShorcutsModalComponent+ ShortcutsModalComponent],imports: [CommonModule,NgbModalModule],exports: [- ShorcutsModalComponent+ ShortcutsModalComponent]})export class ReaderSharedModule { }diff --git a/UI/Web/src/app/reading-list/dragable-ordered-list/dragable-ordered-list.component.html b/UI/Web/src/app/reading-list/draggable-ordered-list/draggable-ordered-list.component.htmlsimilarity index 100%rename from UI/Web/src/app/reading-list/dragable-ordered-list/dragable-ordered-list.component.htmlrename to UI/Web/src/app/reading-list/draggable-ordered-list/draggable-ordered-list.component.htmldiff --git a/UI/Web/src/app/reading-list/dragable-ordered-list/dragable-ordered-list.component.scss b/UI/Web/src/app/reading-list/draggable-ordered-list/draggable-ordered-list.component.scsssimilarity index 100%rename from UI/Web/src/app/reading-list/dragable-ordered-list/dragable-ordered-list.component.scssrename to UI/Web/src/app/reading-list/draggable-ordered-list/draggable-ordered-list.component.scssdiff --git a/UI/Web/src/app/reading-list/dragable-ordered-list/dragable-ordered-list.component.ts b/UI/Web/src/app/reading-list/draggable-ordered-list/draggable-ordered-list.component.tssimilarity index 88%rename from UI/Web/src/app/reading-list/dragable-ordered-list/dragable-ordered-list.component.tsrename to UI/Web/src/app/reading-list/draggable-ordered-list/draggable-ordered-list.component.tsindex fddf4ac43..3bba86356 100644--- a/UI/Web/src/app/reading-list/dragable-ordered-list/dragable-ordered-list.component.ts+++ b/UI/Web/src/app/reading-list/draggable-ordered-list/draggable-ordered-list.component.ts@@ -13,11 +13,11 @@ export interface ItemRemoveEvent {}@Component({- selector: 'app-dragable-ordered-list',- templateUrl: './dragable-ordered-list.component.html',- styleUrls: ['./dragable-ordered-list.component.scss']+ selector: 'app-draggable-ordered-list',+ templateUrl: './draggable-ordered-list.component.html',+ styleUrls: ['./draggable-ordered-list.component.scss']})-export class DragableOrderedListComponent implements OnInit {+export class DraggableOrderedListComponent implements OnInit {@Input() accessibilityMode: boolean = false;@Input() items: Array<any> = [];diff --git a/UI/Web/src/app/reading-list/reading-list-detail/reading-list-detail.component.html b/UI/Web/src/app/reading-list/reading-list-detail/reading-list-detail.component.htmlindex c961560c9..817ca6d08 100644--- a/UI/Web/src/app/reading-list/reading-list-detail/reading-list-detail.component.html+++ b/UI/Web/src/app/reading-list/reading-list-detail/reading-list-detail.component.html@@ -3,14 +3,15 @@<span *ngIf="actions.length > 0"><app-card-actionables (actionHandler)="performAction($event)" [actions]="actions" [labelBy]="readingList.title"></app-card-actionables></span>- {{readingList?.title}} <span *ngIf="readingList?.promoted">(<i class="fa fa-angle-double-up" aria-hidden="true"></i>)</span>+ {{readingList?.title}}+ <span *ngIf="readingList?.promoted" class="ms-1">(<i class="fa fa-angle-double-up" aria-hidden="true"></i>)</span></h2>- <h6 subtitle style="margin-left: 40px">{{items.length}} Items</h6>+ <h6 subtitle class="subtitle-with-actionables">{{items.length}} Items</h6></app-side-nav-companion-bar><div class="container-fluid mt-2" *ngIf="readingList"><div class="row mb-3">- <div class="col-md-2 col-xs-4 col-sm-6 d-none d-sm-block">+ <div class="col-md-2 col-xs-4 col-sm-6 d-none d-sm-block" *ngIf="readingList.coverImage !== '' || readingList.coverImage !== undefined"><app-image maxWidth="300px" [imageUrl]="readingListImage"></app-image></div><div class="col-md-10 col-xs-8 col-sm-6 mt-2">@@ -45,25 +46,29 @@</div></div>-- <div *ngIf="items.length === 0">+ <div class="mx-auto" *ngIf="items.length === 0" style="width: 200px;">Nothing added- </div>+ </div>- <app-dragable-ordered-list [items]="items" (orderUpdated)="orderUpdated($event)" (itemRemove)="itemRemoved($event)" [accessibilityMode]="accessibilityMode">+ <!-- TODO: This needs virtualization -->+ <app-draggable-ordered-list [items]="items" (orderUpdated)="orderUpdated($event)" (itemRemove)="itemRemoved($event)" [accessibilityMode]="accessibilityMode"><ng-template #draggableItem let-item let-position="idx">- <div class="d-flex" style="width: 100%;">+ <div class="d-flex" style="width: 100%;"><app-image width="74px" class="img-top me-3" [imageUrl]="imageService.getChapterCoverImage(item.chapterId)"></app-image><div class="flex-grow-1">- <h5 class="mt-0 mb-1" id="item.id--{{position}}">{{formatTitle(item)}} + <h5 class="mt-0 mb-1" id="item.id--{{position}}">+ {{formatTitle(item)}} + <!-- TODO: Create a read/unread badge --><span class="badge bg-primary rounded-pill">- <span *ngIf="item.pagesRead > 0 && item.pagesRead < item.pagesTotal">{{item.pagesRead}} / {{item.pagesTotal}}</span>- <span *ngIf="item.pagesRead === 0">UNREAD</span>- <span *ngIf="item.pagesRead === item.pagesTotal">READ</span>+ <span *ngIf="item.pagesRead > 0 && item.pagesRead < item.pagesTotal">{{item.pagesRead}} / {{item.pagesTotal}}</span>+ <span *ngIf="item.pagesRead === 0">UNREAD</span>+ <span *ngIf="item.pagesRead === item.pagesTotal">READ</span></span></h5>- <i class="fa {{utilityService.mangaFormatIcon(item.seriesFormat)}}" aria-hidden="true" *ngIf="item.seriesFormat != MangaFormat.UNKNOWN" title="{{utilityService.mangaFormat(item.seriesFormat)}}"></i>- <span class="visually-hidden">{{utilityService.mangaFormat(item.seriesFormat)}}</span> + <ng-container *ngIf="item.seriesFormat | mangaFormat as formatString">+ <i class="fa {{item.seriesFormat | mangaFormatIcon}}" aria-hidden="true" *ngIf="item.seriesFormat != MangaFormat.UNKNOWN" title="{{formatString}}"></i>+ <span class="visually-hidden">{{formatString}}</span> + </ng-container><a href="/library/{{item.libraryId}}/series/{{item.seriesId}}">{{item.seriesName}}</a><span *ngIf="item.promoted">@@ -73,6 +78,6 @@<a href="javascript:void(0);" (click)="readChapter(item)">Read</a></div></div>- </ng-template>- </app-dragable-ordered-list>-</div>\ No newline at end of file+ </ng-template>+ </app-draggable-ordered-list>+</div>diff --git a/UI/Web/src/app/reading-list/reading-list-detail/reading-list-detail.component.scss b/UI/Web/src/app/reading-list/reading-list-detail/reading-list-detail.component.scssindex f191b076d..86983a653 100644--- a/UI/Web/src/app/reading-list/reading-list-detail/reading-list-detail.component.scss+++ b/UI/Web/src/app/reading-list/reading-list-detail/reading-list-detail.component.scss@@ -1,4 +1,10 @@.container-sm {padding-left: 0px;padding-right: 0px;-}\ No newline at end of file+}++.virtual-scroller, virtual-scroller {+ width: 100%;+ height: calc(100vh - 85px);+ max-height: calc(var(--vh)*100 - 170px);+ }\ No newline at end of filediff --git a/UI/Web/src/app/reading-list/reading-list-detail/reading-list-detail.component.ts b/UI/Web/src/app/reading-list/reading-list-detail/reading-list-detail.component.tsindex 28652a4a9..6f43257f1 100644--- a/UI/Web/src/app/reading-list/reading-list-detail/reading-list-detail.component.ts+++ b/UI/Web/src/app/reading-list/reading-list-detail/reading-list-detail.component.ts@@ -12,7 +12,7 @@ import { Action, ActionFactoryService, ActionItem } from 'src/app/_services/actiimport { ActionService } from 'src/app/_services/action.service';import { ImageService } from 'src/app/_services/image.service';import { ReadingListService } from 'src/app/_services/reading-list.service';-import { IndexUpdateEvent, ItemRemoveEvent } from '../dragable-ordered-list/dragable-ordered-list.component';+import { IndexUpdateEvent, ItemRemoveEvent } from '../draggable-ordered-list/draggable-ordered-list.component';import { LibraryService } from '../../_services/library.service';import { forkJoin } from 'rxjs';import { ReaderService } from 'src/app/_services/reader.service';@@ -60,7 +60,7 @@ export class ReadingListDetailComponent implements OnInit {this.listId = parseInt(listId, 10);- this.readingListImage = this.imageService.randomize(this.imageService.getReadingListCoverImage(this.listId));+ //this.readingListImage = this.imageService.randomize(this.imageService.getReadingListCoverImage(this.listId));this.libraryService.getLibraries().subscribe(libs => {@@ -118,7 +118,7 @@ export class ReadingListDetailComponent implements OnInit {reader = 'book;'}const params = this.readerService.getQueryParamsObject(false, true, this.readingList.id);- this.router.navigate(['library', item.libraryId, 'series', item.seriesId, 'book', item.chapterId], {queryParams: params});+ this.router.navigate(this.readerService.getNavigationArray(item.libraryId, item.seriesId, item.chapterId, item.seriesFormat), {queryParams: params});}handleReadingListActionCallback(action: Action, readingList: ReadingList) {@@ -146,6 +146,7 @@ export class ReadingListDetailComponent implements OnInit {}formatTitle(item: ReadingListItem) {+ // TODO: Use new app-entity-title component insteadif (item.chapterNumber === '0') {return 'Volume ' + item.volumeNumber;}@@ -194,10 +195,6 @@ export class ReadingListDetailComponent implements OnInit {break;}- if (currentlyReadingChapter.seriesFormat === MangaFormat.EPUB) {- this.router.navigate(['library', currentlyReadingChapter.libraryId, 'series', currentlyReadingChapter.seriesId, 'book', currentlyReadingChapter.chapterId], {queryParams: {readingListId: this.readingList.id}});- } else {- this.router.navigate(['library', currentlyReadingChapter.libraryId, 'series', currentlyReadingChapter.seriesId, 'manga', currentlyReadingChapter.chapterId], {queryParams: {readingListId: this.readingList.id}});- }+ this.router.navigate(this.readerService.getNavigationArray(currentlyReadingChapter.libraryId, currentlyReadingChapter.seriesId, currentlyReadingChapter.chapterId, currentlyReadingChapter.seriesFormat), {queryParams: {readingListId: this.readingList.id}});}}diff --git a/UI/Web/src/app/reading-list/reading-list.module.ts b/UI/Web/src/app/reading-list/reading-list.module.tsindex 4abf1379f..562ba7e68 100644--- a/UI/Web/src/app/reading-list/reading-list.module.ts+++ b/UI/Web/src/app/reading-list/reading-list.module.ts@@ -1,6 +1,6 @@import { NgModule } from '@angular/core';import { CommonModule } from '@angular/common';-import { DragableOrderedListComponent } from './dragable-ordered-list/dragable-ordered-list.component';+import { DraggableOrderedListComponent } from './draggable-ordered-list/draggable-ordered-list.component';import { ReadingListDetailComponent } from './reading-list-detail/reading-list-detail.component';import { ReadingListRoutingModule } from './reading-list-routing.module';import {DragDropModule} from '@angular/cdk/drag-drop';@@ -17,7 +17,7 @@ import { SharedSideNavCardsModule } from '../shared-side-nav-cards/shared-side-n@NgModule({declarations: [- DragableOrderedListComponent,+ DraggableOrderedListComponent,ReadingListDetailComponent,AddToListModalComponent,ReadingListsComponent,diff --git a/UI/Web/src/app/reading-list/reading-lists/reading-lists.component.html b/UI/Web/src/app/reading-list/reading-lists/reading-lists.component.htmlindex 0cfe9e3d0..ee899a1ea 100644--- a/UI/Web/src/app/reading-list/reading-lists/reading-lists.component.html+++ b/UI/Web/src/app/reading-list/reading-lists/reading-lists.component.html@@ -11,7 +11,6 @@[actions]="actions"[pagination]="pagination"[filteringDisabled]="true"- (pageChange)="onPageChange($event)"><ng-template #cardItem let-item let-position="idx"><app-card-item [title]="item.title" [entity]="item" [actions]="getActions(item)" [suppressLibraryLink]="true" [imageUrl]="imageService.getReadingListCoverImage(item.id)" (clicked)="handleClick(item)"></app-card-item>diff --git a/UI/Web/src/app/reading-list/reading-lists/reading-lists.component.ts b/UI/Web/src/app/reading-list/reading-lists/reading-lists.component.tsindex 7771b7a9c..b52707942 100644--- a/UI/Web/src/app/reading-list/reading-lists/reading-lists.component.ts+++ b/UI/Web/src/app/reading-list/reading-lists/reading-lists.component.ts@@ -77,7 +77,7 @@ export class ReadingListsComponent implements OnInit {}this.loadingLists = true;- this.readingListService.getReadingLists(true, this.pagination?.currentPage, this.pagination?.itemsPerPage).pipe(take(1)).subscribe((readingLists: PaginatedResult<ReadingList[]>) => {+ this.readingListService.getReadingLists(true).pipe(take(1)).subscribe((readingLists: PaginatedResult<ReadingList[]>) => {this.lists = readingLists.result;this.pagination = readingLists.pagination;this.loadingLists = false;diff --git a/UI/Web/src/app/series-detail/series-detail.component.html b/UI/Web/src/app/series-detail/series-detail.component.htmlindex 22574502f..28ab165bd 100644--- a/UI/Web/src/app/series-detail/series-detail.component.html+++ b/UI/Web/src/app/series-detail/series-detail.component.html@@ -1,18 +1,63 @@-<app-side-nav-companion-bar *ngIf="series !== undefined">- <ng-container title>- <h2 style="margin-bottom: 0px">- <app-card-actionables [disabled]="actionInProgress" (actionHandler)="performAction($event)" [actions]="seriesActions" [labelBy]="series.name" iconClass="fa-ellipsis-v"></app-card-actionables>- <span>{{series?.name}}</span>- </h2>- </ng-container>- <ng-container subtitle *ngIf="series?.localizedName !== series?.name">- <h6 style="margin-left:40px;" title="Localized Name">{{series?.localizedName}}</h6>- </ng-container>-</app-side-nav-companion-bar>-<div class="container-fluid pt-2" *ngIf="series !== undefined">- <div class="row mb-3">+<div #companionBar>+ <app-side-nav-companion-bar *ngIf="series !== undefined" [hasExtras]="true" [extraDrawer]="extrasDrawer">+ <ng-container title>+ <h2 style="margin-bottom: 0px">+ <app-card-actionables [disabled]="actionInProgress" (actionHandler)="performAction($event)" [actions]="seriesActions" [labelBy]="series.name" iconClass="fa-ellipsis-v"></app-card-actionables>+ <span>{{series?.name}}</span>+ </h2>+ </ng-container>+ <ng-container subtitle *ngIf="series?.localizedName !== series?.name">+ <h6 class="subtitle-with-actionables" title="Localized Name">{{series?.localizedName}}</h6>+ </ng-container>++ <ng-template #extrasDrawer let-offcanvas>+ <div class="offcanvas-header">+ <h4 class="offcanvas-title" id="offcanvas-basic-title">Page Settings</h4>+ <button type="button" class="btn-close" aria-label="Close" (click)="offcanvas.dismiss()"></button>+ </div>+ <div class="offcanvas-body">+ <form [formGroup]="pageExtrasGroup">+ <!-- <div class="row g-0">+ <div class="col-md-12 col-sm-12 pe-2 mb-3">+ <label for="settings-book-reading-direction" class="form-label">Sort Order</label>+ <button class="btn btn-sm btn-secondary-outline" (click)="updateSortOrder()" style="height: 25px; padding-bottom: 0px;">+ <i class="fa fa-arrow-up" title="Ascending" *ngIf="isAscendingSort; else descSort"></i>+ <ng-template #descSort>+ <i class="fa fa-arrow-down" title="Descending"></i>+ </ng-template>+ </button>++ <select class="form-select" aria-describedby="settings-reading-direction-help" formControlName="sortingOption">+ <option *ngFor="let opt of sortingOptions" [value]="opt.value">{{opt.text | titlecase}}</option>+ </select>+ </div>+ </div> -->+ <div class="row g-0">+ <div class="col-md-12 col-sm-12 pe-2 mb-3">+ <label id="list-layout-mode-label" class="form-label">Layout Mode</label>+ <br/>+ <div class="btn-group d-flex justify-content-center" role="group" aria-label="Layout Mode">+ <input type="radio" formControlName="renderMode" [value]="PageLayoutMode.Cards" class="btn-check" id="layout-mode-default" autocomplete="off">+ <label class="btn btn-outline-primary" for="layout-mode-default">Card</label>++ <input type="radio" formControlName="renderMode" [value]="PageLayoutMode.List" class="btn-check" id="layout-mode-col1" autocomplete="off">+ <label class="btn btn-outline-primary" for="layout-mode-col1">List</label>++ </div>+ </div>+ </div>+ </form>+ </div>+ </ng-template>+++ </app-side-nav-companion-bar>+</div>++<div [ngStyle]="{'height': ScrollingBlockHeight}" class="main-container container-fluid pt-2" *ngIf="series !== undefined" #scrollingBlock>+ <div class="row mb-3 info-container"><div class="col-md-2 col-xs-4 col-sm-6 d-none d-sm-block">- <app-image maxWidth="300px" [imageUrl]="seriesImage"></app-image>+ <app-image maxWidth="300px" maxHeight="400px" [imageUrl]="seriesImage"></app-image><!-- NOTE: We can put continue point here as Vol X Ch Y or just Ch Y or Book Z ?--></div><div class="col-md-10 col-xs-8 col-sm-6 mt-2">@@ -37,7 +82,7 @@<app-card-actionables [disabled]="actionInProgress" (actionHandler)="performAction($event)" [actions]="seriesActions" [labelBy]="series.name" iconClass="fa-ellipsis-h" btnClass="btn-secondary"></app-card-actionables></div></div>-+<div class="col-auto ms-2" *ngIf="isAdmin || hasDownloadingRole"><button class="btn btn-secondary" (click)="downloadSeries()" title="Download Series" [disabled]="downloadInProgress"><ng-container *ngIf="downloadInProgress; else notDownloading">@@ -51,7 +96,7 @@</div><div class="col-auto ms-2"><ngb-rating class="rating-star" [(rate)]="series!.userRating" (rateChange)="updateRating($event)" (click)="promptToReview()"></ngb-rating>- <button *ngIf="series?.userRating || series.userRating" class="btn btn-sm btn-icon" (click)="openReviewModal(true)" placement="top" ngbTooltip="Edit Review" attr.aria-label="Edit Review"><i class="fa fa-pen" aria-hidden="true"></i></button>+ <button *ngIf="series?.userRating || series.userRating" class="btn btn-sm btn-icon" (click)="openReviewModal(true)" placement="bottom" ngbTooltip="Edit Review" attr.aria-label="Edit Review"><i class="fa fa-pen" aria-hidden="true"></i></button></div></div><div class="row g-0">@@ -59,84 +104,181 @@<app-read-more class="user-review {{userReview ? 'mt-1' : ''}}" [text]="series?.userReview || ''" [maxLength]="250"></app-read-more></div><div *ngIf="seriesMetadata" class="mt-2">- <app-series-metadata-detail [seriesMetadata]="seriesMetadata" [readingLists]="readingLists" [series]="series"></app-series-metadata-detail>+ <app-series-metadata-detail [seriesMetadata]="seriesMetadata" [readingLists]="readingLists" [series]="series" [hasReadingProgress]="hasReadingProgress"></app-series-metadata-detail></div>--</div></div>- <ng-container>+ <ng-container *ngIf="series"><app-bulk-operations [actionCallback]="bulkActionCallback"></app-bulk-operations><ul ngbNav #nav="ngbNav" [(activeId)]="activeTabId" class="nav nav-tabs mb-2" [destroyOnHide]="false" (navChange)="onNavChange($event)"><li [ngbNavItem]="TabID.Storyline" *ngIf="libraryType !== LibraryType.Book && (volumes.length > 0 || chapters.length > 0)"><a ngbNavLink>Storyline</a><ng-template ngbNavContent>- <div class="card-container row g-0">- <ng-container *ngFor="let volume of volumes; let idx = index; trackBy: trackByVolumeIdentity">- <app-card-item class="col-auto mt-2 mb-2" *ngIf="volume.number != 0" [entity]="volume" [title]="volume.name" (click)="openVolume(volume)"- [imageUrl]="imageService.getVolumeCoverImage(volume.id) + '&offset=' + coverImageOffset"- [read]="volume.pagesRead" [total]="volume.pages" [actions]="volumeActions" (selection)="bulkSelectionService.handleCardSelection('volume', idx, volumes.length, $event)" [selected]="bulkSelectionService.isCardSelected('volume', idx)" [allowSelection]="true"></app-card-item>- </ng-container>- <ng-container *ngFor="let chapter of storyChapters; let idx = index; trackBy: trackByChapterIdentity">- <app-card-item class="col-auto mt-2 mb-2" *ngIf="!chapter.isSpecial" [entity]="chapter" [title]="chapter.title" (click)="openChapter(chapter)"- [imageUrl]="imageService.getChapterCoverImage(chapter.id) + '&offset=' + coverImageOffset"- [read]="chapter.pagesRead" [total]="chapter.pages" [actions]="chapterActions" (selection)="bulkSelectionService.handleCardSelection('chapter', idx, storyChapters.length, $event)" [selected]="bulkSelectionService.isCardSelected('chapter', idx)" [allowSelection]="true"></app-card-item>+ <virtual-scroller #scroll [items]="storylineItems" [bufferAmount]="1" [parentScroll]="scrollingBlock">+ <ng-container *ngIf="renderMode === PageLayoutMode.Cards; else storylineListLayout">+ <div class="card-container row g-0" #container>+ <ng-container *ngFor="let item of scroll.viewPortItems; let idx = index; trackBy: trackByStoryLineIdentity">+ <ng-container *ngIf="!item.isChapter; else chapterCardItem">+ <app-card-item class="col-auto mt-2 mb-2" *ngIf="item.volume.number != 0" [entity]="item.volume" [title]="item.volume.name" (click)="openVolume(item.volume)"+ [imageUrl]="imageService.getVolumeCoverImage(item.volume.id)"+ [read]="item.volume.pagesRead" [total]="item.volume.pages" [actions]="volumeActions"+ (selection)="bulkSelectionService.handleCardSelection('volume', scroll.viewPortInfo.startIndexWithBuffer + idx, volumes.length, $event)"+ [selected]="bulkSelectionService.isCardSelected('volume', scroll.viewPortInfo.startIndexWithBuffer + idx)" [allowSelection]="true"></app-card-item>+ </ng-container>+ <ng-template #chapterCardItem>+ <app-card-item class="col-auto mt-2 mb-2" *ngIf="!item.chapter.isSpecial" [entity]="item.chapter" [title]="item.chapter.title" (click)="openChapter(item.chapter)"+ [imageUrl]="imageService.getChapterCoverImage(item.chapter.id)"+ [read]="item.chapter.pagesRead" [total]="item.chapter.pages" [actions]="chapterActions"+ (selection)="bulkSelectionService.handleCardSelection('chapter', scroll.viewPortInfo.startIndexWithBuffer + idx, storyChapters.length, $event)"+ [selected]="bulkSelectionService.isCardSelected('chapter', scroll.viewPortInfo.startIndexWithBuffer + idx)" [allowSelection]="true"></app-card-item>+ </ng-template>+ </ng-container>+ </div></ng-container>- </div>+ <ng-template #storylineListLayout>+ <ng-container *ngFor="let item of scroll.viewPortItems; let idx = index; trackBy: trackByStoryLineIdentity">+ <ng-container *ngIf="!item.isChapter; else chapterListItem">+ <app-list-item [imageUrl]="imageService.getVolumeCoverImage(item.volume.id)"+ [seriesName]="series.name" [entity]="item.volume" *ngIf="item.volume.number != 0"+ [actions]="volumeActions" [libraryType]="libraryType" imageWidth="130px" imageHeight=""+ [pagesRead]="item.volume.pagesRead" [totalPages]="item.volume.pages" (read)="openVolume(item.volume)"+ [blur]="user?.preferences?.blurUnreadSummaries || false">+ <ng-container title>+ <app-entity-title [libraryType]="libraryType" [entity]="item.volume" [seriesName]="series.name" [prioritizeTitleName]="false"></app-entity-title>+ </ng-container>+ </app-list-item>+ </ng-container>+ <ng-template #chapterListItem>+ <app-list-item [imageUrl]="imageService.getChapterCoverImage(item.chapter.id)"+ [seriesName]="series.name" [entity]="item.chapter" *ngIf="!item.chapter.isSpecial"+ [actions]="chapterActions" [libraryType]="libraryType" imageWidth="130px" imageHeight=""+ [pagesRead]="item.chapter.pagesRead" [totalPages]="item.chapter.pages" (read)="openChapter(item.chapter)"+ [blur]="user?.preferences?.blurUnreadSummaries || false">+ <ng-container title>+ <app-entity-title [libraryType]="libraryType" [entity]="item.chapter" [seriesName]="series.name" [prioritizeTitleName]="false"></app-entity-title>+ </ng-container>+ </app-list-item>+ </ng-template>+ </ng-container>+ </ng-template>+ </virtual-scroller></ng-template></li>+<li [ngbNavItem]="TabID.Volumes" *ngIf="volumes.length > 0"><a ngbNavLink>{{libraryType === LibraryType.Book ? 'Books': 'Volumes'}}</a><ng-template ngbNavContent>- <div class="card-container row g-0">- <ng-container *ngFor="let item of volumes; let idx = index; trackBy: trackByVolumeIdentity">- <app-card-item class="col-auto mt-2 mb-2" [entity]="item" [title]="item.name" (click)="openVolume(item)"- [imageUrl]="imageService.getVolumeCoverImage(item.id) + '&offset=' + coverImageOffset"- [read]="item.pagesRead" [total]="item.pages" [actions]="volumeActions"- (selection)="bulkSelectionService.handleCardSelection('volume', idx, volumes.length, $event)"- [selected]="bulkSelectionService.isCardSelected('volume', idx)" [allowSelection]="true">- </app-card-item>+ <virtual-scroller #scroll [items]="volumes" [parentScroll]="scrollingBlock">+ <ng-container *ngIf="renderMode === PageLayoutMode.Cards; else volumeListLayout">+ <div class="card-container row g-0" #container>+ <ng-container *ngFor="let item of scroll.viewPortItems; let idx = index; trackBy: trackByVolumeIdentity">+ <app-card-item class="col-auto mt-2 mb-2" [entity]="item" [title]="item.name" (click)="openVolume(item)"+ [imageUrl]="imageService.getVolumeCoverImage(item.id)"+ [read]="item.pagesRead" [total]="item.pages" [actions]="volumeActions"+ (selection)="bulkSelectionService.handleCardSelection('volume', scroll.viewPortInfo.startIndexWithBuffer + idx, volumes.length, $event)"+ [selected]="bulkSelectionService.isCardSelected('volume', scroll.viewPortInfo.startIndexWithBuffer + idx)" [allowSelection]="true">+ </app-card-item>+ </ng-container>+ </div></ng-container>- </div>+ <ng-template #volumeListLayout>+ <ng-container *ngFor="let volume of scroll.viewPortItems; let idx = index; trackBy: trackByVolumeIdentity">+ <app-list-item [imageUrl]="imageService.getVolumeCoverImage(volume.id)"+ [seriesName]="series.name" [entity]="volume" *ngIf="volume.number != 0"+ [actions]="volumeActions" [libraryType]="libraryType" imageWidth="130px" imageHeight=""+ [pagesRead]="volume.pagesRead" [totalPages]="volume.pages" (read)="openVolume(volume)"+ [blur]="user?.preferences?.blurUnreadSummaries || false">+ <ng-container title>+ <app-entity-title [libraryType]="libraryType" [entity]="volume" [seriesName]="series.name"></app-entity-title>+ </ng-container>+ </app-list-item>+ </ng-container>++ </ng-template>+ </virtual-scroller></ng-template>- </li>+ </li>+<li [ngbNavItem]="TabID.Chapters" *ngIf="chapters.length > 0"><a ngbNavLink>{{utilityService.formatChapterName(libraryType) + 's'}}</a><ng-template ngbNavContent>- <div class="card-container row g-0">- <ng-container *ngFor="let item of chapters; let idx = index; trackBy: trackByChapterIdentity">- <app-card-item class="col-auto mt-2 mb-2" *ngIf="!item.isSpecial" [entity]="item" [title]="item.title" (click)="openChapter(item)"- [imageUrl]="imageService.getChapterCoverImage(item.id) + '&offset=' + coverImageOffset"- [read]="item.pagesRead" [total]="item.pages" [actions]="chapterActions"- (selection)="bulkSelectionService.handleCardSelection('chapter', idx, chapters.length, $event)"- [selected]="bulkSelectionService.isCardSelected('chapter', idx)" [allowSelection]="true"></app-card-item>+ <virtual-scroller #scroll [items]="chapters" [parentScroll]="scrollingBlock">+ <ng-container *ngIf="renderMode === PageLayoutMode.Cards; else chapterListLayout">+ <div class="card-container row g-0" #container>+ <div *ngFor="let item of scroll.viewPortItems; let idx = index; trackBy: trackByChapterIdentity">+ <app-card-item class="col-auto mt-2 mb-2" *ngIf="!item.isSpecial" [entity]="item" [title]="item.title" (click)="openChapter(item)"+ [imageUrl]="imageService.getChapterCoverImage(item.id)"+ [read]="item.pagesRead" [total]="item.pages" [actions]="chapterActions"+ (selection)="bulkSelectionService.handleCardSelection('chapter', scroll.viewPortInfo.startIndexWithBuffer + idx, chapters.length, $event)"+ [selected]="bulkSelectionService.isCardSelected('chapter', scroll.viewPortInfo.startIndexWithBuffer + idx)" [allowSelection]="true">+ <ng-container title>+ <app-entity-title [libraryType]="libraryType" [entity]="item" [seriesName]="series.name" [includeVolume]="true"></app-entity-title>+ </ng-container>+ </app-card-item>+ </div>+ </div></ng-container>- </div>+ <ng-template #chapterListLayout>+ <div *ngFor="let chapter of scroll.viewPortItems; let idx = index; trackBy: trackByChapterIdentity">+ <app-list-item [imageUrl]="imageService.getChapterCoverImage(chapter.id)"+ [seriesName]="series.name" [entity]="chapter" *ngIf="!chapter.isSpecial"+ [actions]="chapterActions" [libraryType]="libraryType" imageWidth="130px" imageHeight=""+ [pagesRead]="chapter.pagesRead" [totalPages]="chapter.pages" (read)="openChapter(chapter)"+ [includeVolume]="true" [blur]="user?.preferences?.blurUnreadSummaries || false">+ <ng-container title>+ <app-entity-title [libraryType]="libraryType" [entity]="chapter" [seriesName]="series.name" [includeVolume]="true" [prioritizeTitleName]="false"></app-entity-title>+ </ng-container>+ </app-list-item>+ </div>+ </ng-template>+ </virtual-scroller></ng-template></li>+<li [ngbNavItem]="TabID.Specials" *ngIf="hasSpecials"><a ngbNavLink>Specials</a><ng-template ngbNavContent>- <div class="card-container row g-0">- <ng-container *ngFor="let item of specials; let idx = index; trackBy: trackByChapterIdentity">- <app-card-item class="col-auto mt-2 mb-2" [entity]="item" [title]="item.title || item.range" (click)="openChapter(item)"- [imageUrl]="imageService.getChapterCoverImage(item.id)"- [read]="item.pagesRead" [total]="item.pages" [actions]="chapterActions"- (selection)="bulkSelectionService.handleCardSelection('special', idx, chapters.length, $event)"- [selected]="bulkSelectionService.isCardSelected('special', idx)" [allowSelection]="true"></app-card-item>+ <virtual-scroller #scroll [items]="specials" [parentScroll]="scrollingBlock">+ <ng-container *ngIf="renderMode === PageLayoutMode.Cards; else specialListLayout">+ <div class="card-container row g-0" #container>+ <ng-container *ngFor="let item of scroll.viewPortItems; let idx = index; trackBy: trackByChapterIdentity">+ <app-card-item class="col-auto mt-2 mb-2" [entity]="item" [title]="item.title || item.range" (click)="openChapter(item)"+ [imageUrl]="imageService.getChapterCoverImage(item.id)"+ [read]="item.pagesRead" [total]="item.pages" [actions]="chapterActions"+ (selection)="bulkSelectionService.handleCardSelection('special', scroll.viewPortInfo.startIndexWithBuffer + idx, chapters.length, $event)"+ [selected]="bulkSelectionService.isCardSelected('special', scroll.viewPortInfo.startIndexWithBuffer + idx)" [allowSelection]="true">+ </app-card-item>+ </ng-container>+ </div></ng-container>- </div>+ <ng-template #specialListLayout>+ <ng-container *ngFor="let chapter of scroll.viewPortItems; let idx = index; trackBy: trackByChapterIdentity">+ <app-list-item [imageUrl]="imageService.getChapterCoverImage(chapter.id)"+ [seriesName]="series.name" [entity]="chapter"+ [actions]="chapterActions" [libraryType]="libraryType" imageWidth="130px" imageHeight=""+ [pagesRead]="chapter.pagesRead" [totalPages]="chapter.pages" (read)="openChapter(chapter)"+ [blur]="user?.preferences?.blurUnreadSummaries || false">+ <ng-container title>+ {{chapter.title || chapter.range}}+ </ng-container>+ </app-list-item>+ </ng-container>+ </ng-template>+ </virtual-scroller></ng-template></li>+<li [ngbNavItem]="TabID.Related" *ngIf="hasRelations"><a ngbNavLink>Related</a><ng-template ngbNavContent>- <div class="card-container row g-0">- <ng-container *ngFor="let item of relations; let idx = index; trackBy: trackByRelatedSeriesIdentiy">- <app-series-card class="col-auto mt-2 mb-2" [data]="item.series" [libraryId]="item.series.libraryId" [relation]="item.relation"></app-series-card>- </ng-container>- </div>+ <virtual-scroller #scroll [items]="relations" [parentScroll]="scrollingBlock">+ <div class="card-container row g-0" #container>+ <ng-container *ngFor="let item of scroll.viewPortItems let idx = index; trackBy: trackByRelatedSeriesIdentiy">+ <app-series-card class="col-auto mt-2 mb-2" [data]="item.series" [libraryId]="item.series.libraryId" [relation]="item.relation"></app-series-card>+ </ng-container>+ </div>+ </virtual-scroller></ng-template></li></ul>diff --git a/UI/Web/src/app/series-detail/series-detail.component.scss b/UI/Web/src/app/series-detail/series-detail.component.scssindex 627e77e7b..36e3660f7 100644--- a/UI/Web/src/app/series-detail/series-detail.component.scss+++ b/UI/Web/src/app/series-detail/series-detail.component.scss@@ -13,3 +13,17 @@grid-gap: 0.5rem;justify-content: space-around;}++.virtual-scroller, virtual-scroller {+ width: 100%;+ height: calc(100vh - 85px);+ max-height: calc(var(--vh)*100 - 170px);+}++// This is responsible for ensuring we scroll down and only tabs and companion bar is visible+.main-container {+ // Height set dynamically by get ScrollingBlockHeight()+ overflow-y: auto;+ position: relative;+ overscroll-behavior-y: none;+}diff --git a/UI/Web/src/app/series-detail/series-detail.component.ts b/UI/Web/src/app/series-detail/series-detail.component.tsindex 2e1a1db29..76427bd0c 100644--- a/UI/Web/src/app/series-detail/series-detail.component.ts+++ b/UI/Web/src/app/series-detail/series-detail.component.ts@@ -1,12 +1,11 @@-import { Component, HostListener, OnDestroy, OnInit } from '@angular/core';+import { Component, ElementRef, HostListener, OnDestroy, OnInit, ViewChild, AfterViewInit, Inject, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';import { Title } from '@angular/platform-browser';import { ActivatedRoute, Router } from '@angular/router';-import { NgbModal, NgbNavChangeEvent } from '@ng-bootstrap/ng-bootstrap';+import { NgbModal, NgbNavChangeEvent, NgbOffcanvas } from '@ng-bootstrap/ng-bootstrap';import { ToastrService } from 'ngx-toastr';import { forkJoin, Subject } from 'rxjs';import { finalize, take, takeUntil, takeWhile } from 'rxjs/operators';import { BulkSelectionService } from '../cards/bulk-selection.service';-import { CardDetailsModalComponent } from '../cards/_modals/card-details-modal/card-details-modal.component';import { EditSeriesModalComponent } from '../cards/_modals/edit-series-modal/edit-series-modal.component';import { ConfirmConfig } from '../shared/confirm-dialog/_models/confirm-config';import { ConfirmService } from '../shared/confirm.service';@@ -35,6 +34,11 @@ import { SeriesService } from '../_services/series.service';import { NavService } from '../_services/nav.service';import { RelatedSeries } from '../_models/series-detail/related-series';import { RelationKind } from '../_models/series-detail/relation-kind';+import { CardDetailDrawerComponent } from '../cards/card-detail-drawer/card-detail-drawer.component';+import { FormControl, FormGroup } from '@angular/forms';+import { PageLayoutMode } from '../_models/page-layout-mode';+import { DOCUMENT } from '@angular/common';+import { User } from '../_models/user';interface RelatedSeris {series: Series;@@ -49,12 +53,22 @@ enum TabID {Chapters = 4}+interface StoryLineItem {+ chapter?: Chapter;+ volume?: Volume;+ isChapter: boolean;+}+@Component({selector: 'app-series-detail',templateUrl: './series-detail.component.html',- styleUrls: ['./series-detail.component.scss']+ styleUrls: ['./series-detail.component.scss'],+ changeDetection: ChangeDetectionStrategy.OnPush})-export class SeriesDetailComponent implements OnInit, OnDestroy {+export class SeriesDetailComponent implements OnInit, OnDestroy, AfterViewInit {++ @ViewChild('scrollingBlock') scrollingBlock: ElementRef<HTMLDivElement> | undefined;+ @ViewChild('companionBar') companionBar: ElementRef<HTMLDivElement> | undefined;/*** Series Id. Set at load before UI renders@@ -64,6 +78,7 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {volumes: Volume[] = [];chapters: Chapter[] = [];storyChapters: Chapter[] = [];+ storylineItems: StoryLineItem[] = [];libraryId = 0;isAdmin = false;hasDownloadingRole = false;@@ -95,16 +110,13 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {seriesImage: string = '';downloadInProgress: boolean = false;- /**- * Tricks the cover images for volume/chapter cards to update after we update one of them- */- coverImageOffset: number = 0;-/*** If an action is currently being done, don't let the user kick off another action*/actionInProgress: boolean = false;+ itemSize: number = 10; // when 10 done, 16 loads+/*** Track by function for Volume to tell when to refresh card data*/@@ -114,6 +126,12 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {*/trackByChapterIdentity = (index: number, item: Chapter) => `${item.title}_${item.number}_${item.pagesRead}`;trackByRelatedSeriesIdentiy = (index: number, item: RelatedSeris) => `${item.series.name}_${item.series.libraryId}_${item.series.pagesRead}_${item.relation}`;+ trackByStoryLineIdentity = (index: number, item: StoryLineItem) => {+ if (item.isChapter) {+ return this.trackByChapterIdentity(index, item!.chapter!)+ }+ return this.trackByVolumeIdentity(index, item!.volume!);+ };/*** Are there any related series@@ -124,6 +142,21 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {*/relations: Array<RelatedSeris> = [];+ sortingOptions: Array<{value: string, text: string}> = [+ {value: 'Storyline', text: 'Storyline'},+ {value: 'Release', text: 'Release'},+ {value: 'Added', text: 'Added'},+ ];+ renderMode: PageLayoutMode = PageLayoutMode.Cards;++ pageExtrasGroup = new FormGroup({+ 'sortingOption': new FormControl(this.sortingOptions[0].value, []),+ 'renderMode': new FormControl(this.renderMode, []),+ });++ isAscendingSort: boolean = false; // TODO: Get this from User preferences+ user: User | undefined;+bulkActionCallback = (action: Action, data: any) => {if (this.series === undefined) {return;@@ -147,6 +180,7 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {case Action.AddToReadingList:this.actionService.addMultipleToReadingList(seriesId, selectedVolumeIds, chapters, () => {this.actionInProgress = false;+ this.changeDetectionRef.markForCheck();this.bulkSelectionService.deselectAll();});break;@@ -154,6 +188,7 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {this.actionService.markMultipleAsRead(seriesId, selectedVolumeIds, chapters, () => {this.setContinuePoint();this.actionInProgress = false;+ this.changeDetectionRef.markForCheck();this.bulkSelectionService.deselectAll();});@@ -162,6 +197,7 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {this.actionService.markMultipleAsUnread(seriesId, selectedVolumeIds, chapters, () => {this.setContinuePoint();this.actionInProgress = false;+ this.changeDetectionRef.markForCheck();this.bulkSelectionService.deselectAll();});break;@@ -171,22 +207,37 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {private onDestroy: Subject<void> = new Subject();- get LibraryType(): typeof LibraryType {+ get LibraryType() {return LibraryType;}- get MangaFormat(): typeof MangaFormat {+ get MangaFormat() {return MangaFormat;}- get TagBadgeCursor(): typeof TagBadgeCursor {+ get TagBadgeCursor() {return TagBadgeCursor;}- get TabID(): typeof TabID {+ get TabID() {return TabID;}+ get PageLayoutMode() {+ return PageLayoutMode;+ }++ get ScrollingBlockHeight() {+ if (this.scrollingBlock === undefined) return 'calc(var(--vh)*100)';+ const navbar = this.document.querySelector('.navbar') as HTMLElement;+ if (navbar === null) return 'calc(var(--vh)*100)';++ const companionHeight = this.companionBar!.nativeElement.offsetHeight;+ const navbarHeight = navbar.offsetHeight;+ const totalHeight = companionHeight + navbarHeight + 21; //21px to account for padding+ return 'calc(var(--vh)*100 - ' + totalHeight + 'px)';+ }+constructor(private route: ActivatedRoute, private seriesService: SeriesService,private router: Router, public bulkSelectionService: BulkSelectionService,private modalService: NgbModal, public readerService: ReaderService,@@ -196,17 +247,24 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {private confirmService: ConfirmService, private titleService: Title,private downloadService: DownloadService, private actionService: ActionService,public imageSerivce: ImageService, private messageHub: MessageHubService,- private readingListService: ReadingListService, public navService: NavService+ private readingListService: ReadingListService, public navService: NavService,+ private offcanvasService: NgbOffcanvas, @Inject(DOCUMENT) private document: Document,+ private changeDetectionRef: ChangeDetectorRef) {this.router.routeReuseStrategy.shouldReuseRoute = () => false;this.accountService.currentUser$.pipe(take(1)).subscribe(user => {if (user) {+ this.user = user;this.isAdmin = this.accountService.hasAdminRole(user);this.hasDownloadingRole = this.accountService.hasDownloadRole(user);+ this.renderMode = user.preferences.globalPageLayoutMode;+ this.pageExtrasGroup.get('renderMode')?.setValue(this.renderMode);+ this.changeDetectionRef.markForCheck();}});}+ngOnInit(): void {const routeId = this.route.snapshot.paramMap.get('seriesId');const libraryId = this.route.snapshot.paramMap.get('libraryId');@@ -226,7 +284,6 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {const seriesCoverUpdatedEvent = event.payload as ScanSeriesEvent;if (seriesCoverUpdatedEvent.seriesId === this.seriesId) {this.loadSeries(this.seriesId);- this.seriesImage = this.imageService.randomize(this.imageService.getSeriesCoverImage(this.seriesId)); // NOTE: Is this needed as cover update will update the image for us}}});@@ -234,7 +291,13 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {this.seriesId = parseInt(routeId, 10);this.libraryId = parseInt(libraryId, 10);this.seriesImage = this.imageService.getSeriesCoverImage(this.seriesId);+ this.changeDetectionRef.markForCheck();this.loadSeries(this.seriesId);++ this.pageExtrasGroup.get('renderMode')?.valueChanges.pipe(takeUntil(this.onDestroy)).subscribe((val: PageLayoutMode) => {+ this.renderMode = val;+ this.changeDetectionRef.markForCheck();+ });}ngOnDestroy() {@@ -242,6 +305,18 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {this.onDestroy.complete();}+ ngAfterViewInit(): void {+ // this.initScroll();+ }++ // initScroll() {+ // // TODO: Remove this code?+ // if (this.scrollingBlock === undefined || this.scrollingBlock.nativeElement === undefined) {+ // setTimeout(() => {this.initScroll()}, 10);+ // return;+ // }+ // }+@HostListener('document:keydown.shift', ['$event'])handleKeypress(event: KeyboardEvent) {if (event.key === KEY_CODES.SHIFT) {@@ -258,10 +333,12 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {onNavChange(event: NgbNavChangeEvent) {this.bulkSelectionService.deselectAll();+ this.changeDetectionRef.markForCheck();}handleSeriesActionCallback(action: Action, series: Series) {this.actionInProgress = true;+ this.changeDetectionRef.markForCheck();switch(action) {case(Action.MarkAsRead):this.actionService.markSeriesAsRead(series, (series: Series) => {@@ -290,6 +367,13 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {case(Action.AddToCollection):this.actionService.addMultipleSeriesToCollectionTag([series], () => this.actionInProgress = false);break;+ case (Action.AnalyzeFiles):+ this.actionService.analyzeFilesForSeries(series, () => this.actionInProgress = false);+ break;+ case (Action.Download):+ if (this.downloadInProgress) return;+ this.downloadSeries();+ break;default:break;}@@ -345,6 +429,7 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {async deleteSeries(series: Series) {this.actionService.deleteSeries(series, (result: boolean) => {this.actionInProgress = false;+ this.changeDetectionRef.markForCheck();if (result) {this.router.navigate(['library', this.libraryId]);}@@ -352,32 +437,31 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {}loadSeries(seriesId: number) {- this.coverImageOffset = 0;-this.seriesService.getMetadata(seriesId).subscribe(metadata => this.seriesMetadata = metadata);this.readingListService.getReadingListsForSeries(seriesId).subscribe(lists => {this.readingLists = lists;+ this.changeDetectionRef.markForCheck();});this.setContinuePoint();- forkJoin([- this.libraryService.getLibraryType(this.libraryId),- this.seriesService.getSeries(seriesId)- ]).subscribe(results => {- this.libraryType = results[0];- this.series = results[1];+ forkJoin({+ libType: this.libraryService.getLibraryType(this.libraryId),+ series: this.seriesService.getSeries(seriesId)+ }).subscribe(results => {+ this.libraryType = results.libType;+ this.series = results.series;this.createHTML();this.titleService.setTitle('Kavita - ' + this.series.name + ' Details');this.seriesActions = this.actionFactoryService.getSeriesActions(this.handleSeriesActionCallback.bind(this))- .filter(action => action.action !== Action.Edit)- .filter(action => this.actionFactoryService.filterBookmarksForFormat(action, this.series));+ .filter(action => action.action !== Action.Edit);+ this.seriesActions.push({action: Action.Download, callback: this.seriesActions[0].callback, requiresAdmin: false, title: 'Download'});+this.volumeActions = this.actionFactoryService.getVolumeActions(this.handleVolumeActionCallback.bind(this));this.chapterActions = this.actionFactoryService.getChapterActions(this.handleChapterActionCallback.bind(this));- // TODO: Move this to a forkJoin?this.seriesService.getRelatedForSeries(this.seriesId).subscribe((relations: RelatedSeries) => {this.relations = [...relations.prequels.map(item => this.createRelatedSeries(item, RelationKind.Prequel)),@@ -395,6 +479,7 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {];if (this.relations.length > 0) {this.hasRelations = true;+ this.changeDetectionRef.markForCheck();}});@@ -405,9 +490,20 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {this.chapters = detail.chapters;this.volumes = detail.volumes;this.storyChapters = detail.storylineChapters;+ this.storylineItems = [];+ const v = this.volumes.map(v => {+ return {volume: v, chapter: undefined, isChapter: false} as StoryLineItem;+ });+ this.storylineItems.push(...v);+ const c = this.storyChapters.map(c => {+ return {volume: undefined, chapter: c, isChapter: true} as StoryLineItem;+ });+ this.storylineItems.push(...c);+this.updateSelectedTab();this.isLoading = false;+ this.changeDetectionRef.markForCheck();});}, err => {this.router.navigateByUrl('/libraries');@@ -444,11 +540,18 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {createHTML() {this.userReview = (this.series.userReview === null ? '' : this.series.userReview).replace(/\n/g, '<br>');+ this.changeDetectionRef.markForCheck();}setContinuePoint() {- this.readerService.hasSeriesProgress(this.seriesId).subscribe(hasProgress => this.hasReadingProgress = hasProgress);- this.readerService.getCurrentChapter(this.seriesId).subscribe(chapter => this.currentlyReadingChapter = chapter);+ this.readerService.hasSeriesProgress(this.seriesId).subscribe(hasProgress => {+ this.hasReadingProgress = hasProgress;+ this.changeDetectionRef.markForCheck();+ });+ this.readerService.getCurrentChapter(this.seriesId).subscribe(chapter => {+ this.currentlyReadingChapter = chapter;+ this.changeDetectionRef.markForCheck();+ });}markVolumeAsRead(vol: Volume) {@@ -459,6 +562,7 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {this.actionService.markVolumeAsRead(this.seriesId, vol, () => {this.setContinuePoint();this.actionInProgress = false;+ this.changeDetectionRef.markForCheck();});}@@ -470,6 +574,7 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {this.actionService.markVolumeAsUnread(this.seriesId, vol, () => {this.setContinuePoint();this.actionInProgress = false;+ this.changeDetectionRef.markForCheck();});}@@ -481,6 +586,7 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {this.actionService.markChapterAsRead(this.seriesId, chapter, () => {this.setContinuePoint();this.actionInProgress = false;+ this.changeDetectionRef.markForCheck();});}@@ -492,6 +598,7 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {this.actionService.markChapterAsUnread(this.seriesId, chapter, () => {this.setContinuePoint();this.actionInProgress = false;+ this.changeDetectionRef.markForCheck();});}@@ -521,12 +628,7 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {this.toastr.error('There are no pages. Kavita was not able to read this archive.');return;}-- if (chapter.files.length > 0 && chapter.files[0].format === MangaFormat.EPUB) {- this.router.navigate(['library', this.libraryId, 'series', this.series?.id, 'book', chapter.id], {queryParams: {incognitoMode}});- } else {- this.router.navigate(['library', this.libraryId, 'series', this.series?.id, 'manga', chapter.id], {queryParams: {incognitoMode}});- }+ this.router.navigate(this.readerService.getNavigationArray(this.libraryId, this.seriesId, chapter.id, chapter.files[0].format), {queryParams: {incognitoMode}});}openVolume(volume: Volume) {@@ -534,9 +636,6 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {this.toastr.error('There are no chapters to this volume. Cannot read.');return;}- // NOTE: When selecting a volume, we might want to ask the user which chapter they want or an "Automatic" option. For Volumes- // made up of lots of chapter files, it makes it more versitile. The modal can have pages read / pages with colored background- // to help the user make a good choice.// If user has progress on the volume, load them where they left offif (volume.pagesRead < volume.pages && volume.pagesRead > 0) {@@ -555,20 +654,15 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {}isNullOrEmpty(val: string) {- return val === null || val === undefined || val === '';+ return val === null || val === undefined || val === ''; // TODO: Validate if this code is used}openViewInfo(data: Volume | Chapter) {- const modalRef = this.modalService.open(CardDetailsModalComponent, { size: 'lg' });- modalRef.componentInstance.data = data;- modalRef.componentInstance.parentName = this.series?.name;- modalRef.componentInstance.seriesId = this.series?.id;- modalRef.componentInstance.libraryId = this.series?.libraryId;- modalRef.closed.subscribe((result: {coverImageUpdate: boolean}) => {- if (result.coverImageUpdate) {- this.coverImageOffset += 1;- }- });+ const drawerRef = this.offcanvasService.open(CardDetailDrawerComponent, {position: 'bottom'});+ drawerRef.componentInstance.data = data;+ drawerRef.componentInstance.parentName = this.series?.name;+ drawerRef.componentInstance.seriesId = this.series?.id;+ drawerRef.componentInstance.libraryId = this.series?.libraryId;}openEditSeriesModal() {@@ -579,18 +673,16 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {if (closeResult.success) {this.seriesService.getSeries(this.seriesId).subscribe(s => {this.series = s;+ this.changeDetectionRef.markForCheck();});this.loadSeries(this.seriesId);- if (closeResult.coverImageUpdate) {- // Random triggers a load change without any problems with API- this.seriesImage = this.imageService.randomize(this.imageService.getSeriesCoverImage(this.seriesId));- }}});}async promptToReview() {+ // TODO: After a review has been set, we might just want to show an edit icon next to star rating which opens the review, instead of prompting each time.const shouldPrompt = this.isNullOrEmpty(this.series.userReview);const config = new ConfirmConfig();config.header = 'Confirm';@@ -630,25 +722,27 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {const wantToDownload = await this.downloadService.confirmSize(size, 'series');if (!wantToDownload) { return; }this.downloadInProgress = true;+ this.changeDetectionRef.markForCheck();this.downloadService.downloadSeries(this.series).pipe(takeWhile(val => {return val.state != 'DONE';}),finalize(() => {this.downloadInProgress = false;+ this.changeDetectionRef.markForCheck();})).subscribe(() => {/* No Operation */});;});}- formatChapterTitle(chapter: Chapter) {- return this.utilityService.formatChapterName(this.libraryType, true, true) + chapter.range;- }-- formatVolumeTitle(volume: Volume) {- if (this.libraryType === LibraryType.Book) {- return volume.name;- }+ updateSortOrder() {+ this.isAscendingSort = !this.isAscendingSort;+ // if (this.filter.sortOptions === null) {+ // this.filter.sortOptions = {+ // isAscending: this.isAscendingSort,+ // sortField: SortField.SortName+ // }+ // }- return 'Volume ' + volume.name;+ // this.filter.sortOptions.isAscending = this.isAscendingSort;}}diff --git a/UI/Web/src/app/series-detail/series-detail.module.ts b/UI/Web/src/app/series-detail/series-detail.module.tsindex 8d881c346..975942e2d 100644--- a/UI/Web/src/app/series-detail/series-detail.module.ts+++ b/UI/Web/src/app/series-detail/series-detail.module.ts@@ -1,7 +1,7 @@import { NgModule } from '@angular/core';import { CommonModule } from '@angular/common';import { SeriesDetailRoutingModule } from './series-detail-routing.module';-import { NgbCollapseModule, NgbNavModule, NgbRatingModule } from '@ng-bootstrap/ng-bootstrap';+import { NgbCollapseModule, NgbNavModule, NgbRatingModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';import { SeriesDetailComponent } from './series-detail.component';import { SeriesMetadataDetailComponent } from './series-metadata-detail/series-metadata-detail.component';import { ReviewSeriesModalComponent } from './review-series-modal/review-series-modal.component';@@ -17,7 +17,7 @@ import { SharedSideNavCardsModule } from '../shared-side-nav-cards/shared-side-ndeclarations: [SeriesDetailComponent,ReviewSeriesModalComponent,- SeriesMetadataDetailComponent+ SeriesMetadataDetailComponent,],imports: [CommonModule,@@ -26,6 +26,7 @@ import { SharedSideNavCardsModule } from '../shared-side-nav-cards/shared-side-nNgbCollapseModule, // Series MetadataNgbNavModule,NgbRatingModule,+ NgbTooltipModule, // Series Detail, Extras DrawerTypeaheadModule,PipeModule,diff --git a/UI/Web/src/app/series-detail/series-metadata-detail/series-metadata-detail.component.html b/UI/Web/src/app/series-detail/series-metadata-detail/series-metadata-detail.component.htmlindex 07bf0c48e..74fcef6f4 100644--- a/UI/Web/src/app/series-detail/series-metadata-detail/series-metadata-detail.component.html+++ b/UI/Web/src/app/series-detail/series-metadata-detail/series-metadata-detail.component.html@@ -2,25 +2,7 @@<app-read-more [text]="seriesSummary" [maxLength]="250"></app-read-more></div>-<!-- This first row will have random information about the series-->-<div class="row g-0 mb-2">- <app-tag-badge title="Age Rating" *ngIf="seriesMetadata.ageRating" a11y-click="13,32" class="clickable col-auto" (click)="goTo(FilterQueryParam.AgeRating, seriesMetadata.ageRating)" [selectionMode]="TagBadgeCursor.Clickable">{{metadataService.getAgeRating(this.seriesMetadata.ageRating) | async}}</app-tag-badge>- <ng-container *ngIf="series">- <app-tag-badge *ngIf="seriesMetadata.releaseYear > 0" title="Release date" class="col-auto">{{seriesMetadata.releaseYear}}</app-tag-badge>- <app-tag-badge *ngIf="seriesMetadata.language !== null && seriesMetadata.language !== ''" title="Language" a11y-click="13,32" class="col-auto" (click)="goTo(FilterQueryParam.Languages, seriesMetadata.language)" [selectionMode]="TagBadgeCursor.Clickable">{{seriesMetadata.language}}</app-tag-badge>-- <app-tag-badge title="Publication Status ({{seriesMetadata.maxCount}} / {{seriesMetadata.totalCount}})" [fillStyle]="seriesMetadata.maxCount != 0 && seriesMetadata.totalCount != 0 && seriesMetadata.maxCount >= seriesMetadata.totalCount ? 'filled' : 'outline'" a11y-click="13,32" class="col-auto"- (click)="goTo(FilterQueryParam.PublicationStatus, seriesMetadata.publicationStatus)"- [selectionMode]="TagBadgeCursor.Clickable">{{seriesMetadata.publicationStatus | publicationStatus}}</app-tag-badge>- <app-tag-badge a11y-click="13,32" class="col-auto" (click)="goTo(FilterQueryParam.Format, series.format)" [selectionMode]="TagBadgeCursor.Clickable">- <app-series-format [format]="series.format">{{utilityService.mangaFormat(series.format)}}</app-series-format>- </app-tag-badge>- <app-tag-badge title="Last Read" class="col-auto" *ngIf="series.latestReadDate && series.latestReadDate !== '' && (series.latestReadDate | date: 'shortDate') !== '1/1/01'" [selectionMode]="TagBadgeCursor.Selectable">- Last Read: {{series.latestReadDate | date:'shortDate'}}- </app-tag-badge>- </ng-container>-</div><div class="row g-0" *ngIf="seriesMetadata.genres && seriesMetadata.genres.length > 0"><div class="col-md-4">@@ -92,11 +74,6 @@</div></div>-<div class="row g-0">- <hr class="col mt-3" *ngIf="hasExtendedProperites" >- <a [class.hidden]="hasExtendedProperites" *ngIf="hasExtendedProperites" class="col col-md-auto align-self-end read-more-link" (click)="toggleView()"> <i aria-hidden="true" class="fa fa-caret-{{isCollapsed ? 'down' : 'up'}}" aria-controls="extended-series-metadata"></i> See {{isCollapsed ? 'More' : 'Less'}}</a>-</div>-<div #collapse="ngbCollapse" [(ngbCollapse)]="isCollapsed" id="extended-series-metadata"><div class="row g-0 mt-1" *ngIf="seriesMetadata.coverArtists && seriesMetadata.coverArtists.length > 0"><div class="col-md-4">@@ -213,4 +190,16 @@</app-badge-expander></div></div>-</div>\ No newline at end of file+</div>++<div class="row g-0">+ <hr class="col mt-3" *ngIf="hasExtendedProperites" >+ <a [class.hidden]="hasExtendedProperites" *ngIf="hasExtendedProperites"+ class="col col-md-auto align-self-end read-more-link" (click)="toggleView()">+ <i aria-hidden="true" class="fa fa-caret-{{isCollapsed ? 'down' : 'up'}} me-1" aria-controls="extended-series-metadata"></i>+ See {{isCollapsed ? 'More' : 'Less'}}+ </a>+</div>++<!-- This first row will have random information about the series-->+<app-series-info-cards [series]="series" [seriesMetadata]="seriesMetadata" (goTo)="handleGoTo($event)" [hasReadingProgress]="hasReadingProgress"></app-series-info-cards>\ No newline at end of filediff --git a/UI/Web/src/app/series-detail/series-metadata-detail/series-metadata-detail.component.ts b/UI/Web/src/app/series-detail/series-metadata-detail/series-metadata-detail.component.tsindex 1993be51a..1c5333b06 100644--- a/UI/Web/src/app/series-detail/series-metadata-detail/series-metadata-detail.component.ts+++ b/UI/Web/src/app/series-detail/series-metadata-detail/series-metadata-detail.component.ts@@ -1,5 +1,7 @@import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';import { Router } from '@angular/router';+import { HourEstimateRange } from 'src/app/_models/hour-estimate-range';+import { ReaderService } from 'src/app/_services/reader.service';import { TagBadgeCursor } from '../../shared/tag-badge/tag-badge.component';import { FilterQueryParam } from '../../shared/_services/filter-utilities.service';import { UtilityService } from '../../shared/_services/utility.service';@@ -9,6 +11,7 @@ import { Series } from '../../_models/series';import { SeriesMetadata } from '../../_models/series-metadata';import { MetadataService } from '../../_services/metadata.service';+@Component({selector: 'app-series-metadata-detail',templateUrl: './series-metadata-detail.component.html',@@ -17,6 +20,7 @@ import { MetadataService } from '../../_services/metadata.service';export class SeriesMetadataDetailComponent implements OnInit, OnChanges {@Input() seriesMetadata!: SeriesMetadata;+ @Input() hasReadingProgress: boolean = false;/*** Reading lists with a connection to the Series*/@@ -26,6 +30,9 @@ export class SeriesMetadataDetailComponent implements OnInit, OnChanges {isCollapsed: boolean = true;hasExtendedProperites: boolean = false;+ // readingTime: HourEstimateRange = {maxHours: 1, minHours: 1, avgHours: 1};+ // readingTimeLeft: HourEstimateRange = {maxHours: 1, minHours: 1, avgHours: 1};+/*** Html representation of Series Summary*/@@ -43,7 +50,9 @@ export class SeriesMetadataDetailComponent implements OnInit, OnChanges {return FilterQueryParam;}- constructor(public utilityService: UtilityService, public metadataService: MetadataService, private router: Router) { }+ constructor(public utilityService: UtilityService, public metadataService: MetadataService, private router: Router, public readerService: ReaderService) {++ }ngOnChanges(changes: SimpleChanges): void {this.hasExtendedProperites = this.seriesMetadata.colorists.length > 0 ||@@ -59,7 +68,6 @@ export class SeriesMetadataDetailComponent implements OnInit, OnChanges {if (this.seriesMetadata !== null) {this.seriesSummary = (this.seriesMetadata.summary === null ? '' : this.seriesMetadata.summary).replace(/\n/g, '<br>');}-}ngOnInit(): void {@@ -69,6 +77,10 @@ export class SeriesMetadataDetailComponent implements OnInit, OnChanges {this.isCollapsed = !this.isCollapsed;}+ handleGoTo(event: {queryParamName: FilterQueryParam, filter: any}) {+ this.goTo(event.queryParamName, event.filter);+ }+goTo(queryParamName: FilterQueryParam, filter: any) {let params: any = {};params[queryParamName] = filter;diff --git a/UI/Web/src/app/shared/_services/download.service.ts b/UI/Web/src/app/shared/_services/download.service.tsindex b2ed45285..7bb10b697 100644--- a/UI/Web/src/app/shared/_services/download.service.ts+++ b/UI/Web/src/app/shared/_services/download.service.ts@@ -12,7 +12,7 @@ import { download, Download } from '../_models/download';import { PageBookmark } from 'src/app/_models/page-bookmark';import { catchError, throttleTime } from 'rxjs/operators';-const DEBOUNCE_TIME = 100;+export const DEBOUNCE_TIME = 100;@Injectable({providedIn: 'root'@@ -60,7 +60,7 @@ export class DownloadService {downloadChapter(chapter: Chapter) {return this.httpClient.get(this.baseUrl + 'download/chapter?chapterId=' + chapter.id,{observe: 'events', responseType: 'blob', reportProgress: true}- ).pipe(throttleTime(DEBOUNCE_TIME, asyncScheduler, { leading: true, trailing: true }), download((blob, filename) => { //NOTE: DO I need debounceTime since I have throttleTime()?+ ).pipe(throttleTime(DEBOUNCE_TIME, asyncScheduler, { leading: true, trailing: true }), download((blob, filename) => {this.save(blob, filename)}));}diff --git a/UI/Web/src/app/shared/_services/filter-utilities.service.ts b/UI/Web/src/app/shared/_services/filter-utilities.service.tsindex 5460c7fe0..865a8ddd2 100644--- a/UI/Web/src/app/shared/_services/filter-utilities.service.ts+++ b/UI/Web/src/app/shared/_services/filter-utilities.service.ts@@ -71,10 +71,11 @@ export class FilterUtilitiesService {/*** Will fetch current page from route if present* @param ActivatedRouteSnapshot to fetch page from. Must be from component else may get stale data+ * @param itemsPerPage If you want pagination, pass non-zero number* @returns A default pagination object*/- pagination(snapshot: ActivatedRouteSnapshot): Pagination {- return {currentPage: parseInt(snapshot.queryParamMap.get('page') || '1', 10), itemsPerPage: 30, totalItems: 0, totalPages: 1};+ pagination(snapshot: ActivatedRouteSnapshot, itemsPerPage: number = 0): Pagination {+ return {currentPage: parseInt(snapshot.queryParamMap.get('page') || '1', 10), itemsPerPage, totalItems: 0, totalPages: 1};}diff --git a/UI/Web/src/app/shared/_services/utility.service.ts b/UI/Web/src/app/shared/_services/utility.service.tsindex 8da7814b5..51062e00d 100644--- a/UI/Web/src/app/shared/_services/utility.service.ts+++ b/UI/Web/src/app/shared/_services/utility.service.ts@@ -1,12 +1,10 @@import { HttpParams } from '@angular/common/http';import { Injectable } from '@angular/core';-import { ActivatedRouteSnapshot } from '@angular/router';import { Chapter } from 'src/app/_models/chapter';import { LibraryType } from 'src/app/_models/library';import { MangaFormat } from 'src/app/_models/manga-format';import { PaginatedResult } from 'src/app/_models/pagination';import { Series } from 'src/app/_models/series';-import { SeriesFilter, SortField } from 'src/app/_models/series-filter';import { Volume } from 'src/app/_models/volume';export enum KEY_CODES {@@ -98,47 +96,6 @@ export class UtilityService {return input.toUpperCase().replace(reg, '').includes(filter.toUpperCase().replace(reg, ''));}-- mangaFormat(format: MangaFormat): string {- switch (format) {- case MangaFormat.EPUB:- return 'EPUB';- case MangaFormat.ARCHIVE:- return 'Archive';- case MangaFormat.IMAGE:- return 'Image';- case MangaFormat.PDF:- return 'PDF';- case MangaFormat.UNKNOWN:- return 'Unknown';- }- }-- mangaFormatIcon(format: MangaFormat): string {- switch (format) {- case MangaFormat.EPUB:- return 'fa-book';- case MangaFormat.ARCHIVE:- return 'fa-file-archive';- case MangaFormat.IMAGE:- return 'fa-image';- case MangaFormat.PDF:- return 'fa-file-pdf';- case MangaFormat.UNKNOWN:- return 'fa-question';- }- }-- getLibraryTypeIcon(format: LibraryType) {- switch (format) {- case LibraryType.Book:- return 'fa-book';- case LibraryType.Comic:- case LibraryType.Manga:- return 'fa-book-open';- }- }-isVolume(d: any) {return d != null && d.hasOwnProperty('chapters');}@@ -229,4 +186,15 @@ export class UtilityService {return paginatedVariable;}++ getWindowDimensions() {+ const windowWidth = window.innerWidth+ || document.documentElement.clientWidth+ || document.body.clientWidth;+ const windowHeight = window.innerHeight+ || document.documentElement.clientHeight+ || document.body.clientHeight;+ return [windowWidth, windowHeight];+ }+}diff --git a/UI/Web/src/app/shared/circular-loader/circular-loader.component.html b/UI/Web/src/app/shared/circular-loader/circular-loader.component.htmlindex 893034383..daa7b84b6 100644--- a/UI/Web/src/app/shared/circular-loader/circular-loader.component.html+++ b/UI/Web/src/app/shared/circular-loader/circular-loader.component.html@@ -1,18 +1,3 @@-<!-- <div class="circular">- <div class="inner"></div>- <div class="number">- <span class="visually-hidden">{{currentValue}}%</span>- <i class="fa fa-angle-double-down" style="font-size: 36px;" aria-hidden="true"></i>- </div>- <div class="circle">- <div class="bar left" #left>- <div class="progress"></div>- </div>- <div class="bar right" #right>- <div class="progress"></div>- </div>- </div>- </div> --><ng-container *ngIf="currentValue > 0"><div class="number">@@ -28,11 +13,11 @@[backgroundPadding]="0"outerStrokeLinecap="butt"[outerStrokeColor]="'#4ac694'"- [innerStrokeColor]="'transparent'"+ [innerStrokeColor]="innerStrokeColor"titleFontSize= "24"unitsFontSize= "24"[showSubtitle] = "false"- [animation]="true"+ [animation]="animation"[animationDuration]="300"[startFromZero]="false"[responsive]="true"diff --git a/UI/Web/src/app/shared/circular-loader/circular-loader.component.ts b/UI/Web/src/app/shared/circular-loader/circular-loader.component.tsindex e0a2a4728..bc9ba9952 100644--- a/UI/Web/src/app/shared/circular-loader/circular-loader.component.ts+++ b/UI/Web/src/app/shared/circular-loader/circular-loader.component.ts@@ -1,4 +1,4 @@-import { Component, ElementRef, Input, OnChanges, OnInit, Renderer2, ViewChild } from '@angular/core';+import { Component, Input, OnInit } from '@angular/core';@Component({selector: 'app-circular-loader',@@ -9,8 +9,10 @@ export class CircularLoaderComponent implements OnInit {@Input() currentValue: number = 0;@Input() maxValue: number = 0;+ @Input() animation: boolean = true;+ @Input() innerStrokeColor: string = 'transparent';- constructor(private renderer: Renderer2) { }+ constructor() { }ngOnInit(): void {}diff --git a/UI/Web/src/app/shared/icon-and-title/icon-and-title.component.html b/UI/Web/src/app/shared/icon-and-title/icon-and-title.component.htmlnew file mode 100644index 000000000..c3308b8a0--- /dev/null+++ b/UI/Web/src/app/shared/icon-and-title/icon-and-title.component.html@@ -0,0 +1,11 @@+<div class="d-flex justify-content-center align-self-center align-items-center icon-and-title" [ngClass]="{'clickable': clickable}" [attr.role]="clickable ? 'button' : ''"+ (click)="handleClick($event)">+ <div class="label" *ngIf="label && label.length > 0">+ {{label}}+ </div>+ <i class="{{fontClasses}} mx-auto icon" aria-hidden="true" [title]="title"></i>++ <div class="text">+ <ng-content></ng-content>+ </div>+</div>\ No newline at end of filediff --git a/UI/Web/src/app/shared/icon-and-title/icon-and-title.component.scss b/UI/Web/src/app/shared/icon-and-title/icon-and-title.component.scssnew file mode 100644index 000000000..3c5193f1d--- /dev/null+++ b/UI/Web/src/app/shared/icon-and-title/icon-and-title.component.scss@@ -0,0 +1,21 @@+.icon-and-title {+ flex-direction: column;+ min-width: 60px;+}++.icon {+ width: 20px;+ height: 20px;+ text-align: center;+}++.text {+ padding-top: 5px;+ text-align: center;+}++.label {+ padding-bottom: 5px;+ text-align: center;+ font-weight: bold;+}\ No newline at end of filediff --git a/UI/Web/src/app/shared/icon-and-title/icon-and-title.component.ts b/UI/Web/src/app/shared/icon-and-title/icon-and-title.component.tsnew file mode 100644index 000000000..0d63e08d8--- /dev/null+++ b/UI/Web/src/app/shared/icon-and-title/icon-and-title.component.ts@@ -0,0 +1,33 @@+import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';++@Component({+ selector: 'app-icon-and-title',+ templateUrl: './icon-and-title.component.html',+ styleUrls: ['./icon-and-title.component.scss']+})+export class IconAndTitleComponent implements OnInit {+ /**+ * If the component is clickable and should emit click events+ */+ @Input() clickable: boolean = true;+ @Input() title: string = '';+ @Input() label: string = '';+ /**+ * Font classes used to display font+ */+ @Input() fontClasses: string = '';++ @Output() click: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();++++ constructor() { }++ ngOnInit(): void {+ }++ handleClick(event: MouseEvent) {+ if (this.clickable) this.click.emit(event);+ }++}diff --git a/UI/Web/src/app/shared/image/image.component.scss b/UI/Web/src/app/shared/image/image.component.scssindex 806188ca0..649a9c1de 100644--- a/UI/Web/src/app/shared/image/image.component.scss+++ b/UI/Web/src/app/shared/image/image.component.scss@@ -1,3 +1,4 @@img {width: 100%;-}\ No newline at end of file+}+diff --git a/UI/Web/src/app/shared/image/image.component.ts b/UI/Web/src/app/shared/image/image.component.tsindex d19d661da..ceafe4229 100644--- a/UI/Web/src/app/shared/image/image.component.ts+++ b/UI/Web/src/app/shared/image/image.component.ts@@ -1,4 +1,4 @@-import { Component, ElementRef, Input, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, ViewChild } from '@angular/core';+import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Input, OnChanges, OnDestroy, Renderer2, ViewChild } from '@angular/core';import { Subject } from 'rxjs';import { takeUntil } from 'rxjs/operators';import { CoverUpdateEvent } from 'src/app/_models/events/cover-update-event';@@ -11,7 +11,8 @@ import { EVENTS, MessageHubService } from 'src/app/_services/message-hub.service@Component({selector: 'app-image',templateUrl: './image.component.html',- styleUrls: ['./image.component.scss']+ styleUrls: ['./image.component.scss'],+ changeDetection: ChangeDetectionStrategy.OnPush})export class ImageComponent implements OnChanges, OnDestroy {@@ -39,34 +40,40 @@ export class ImageComponent implements OnChanges, OnDestroy {* Border Radius of the image. If not defined, will not be applied*/@Input() borderRadius: string = '';+ /**+ * If the image component should respond to cover updates+ */+ @Input() processEvents: boolean = true;@ViewChild('img', {static: true}) imgElem!: ElementRef<HTMLImageElement>;private readonly onDestroy = new Subject<void>();- constructor(public imageService: ImageService, private renderer: Renderer2, private hubService: MessageHubService) {+ constructor(public imageService: ImageService, private renderer: Renderer2, private hubService: MessageHubService, private changeDetectionRef: ChangeDetectorRef) {this.hubService.messages$.pipe(takeUntil(this.onDestroy)).subscribe(res => {- if (res.event === EVENTS.CoverUpdate) {- const updateEvent = res.payload as CoverUpdateEvent;- if (this.imageUrl === undefined || this.imageUrl === null || this.imageUrl === '') return;- const enityType = this.imageService.getEntityTypeFromUrl(this.imageUrl);- if (enityType === updateEvent.entityType) {- const tokens = this.imageUrl.split('?')[1].split('&');+ if (!this.processEvents) return;+ if (res.event === EVENTS.CoverUpdate) {+ const updateEvent = res.payload as CoverUpdateEvent;+ if (this.imageUrl === undefined || this.imageUrl === null || this.imageUrl === '') return;+ const enityType = this.imageService.getEntityTypeFromUrl(this.imageUrl);+ if (enityType === updateEvent.entityType) {+ const tokens = this.imageUrl.split('?')[1].split('&');- //...seriesId=123&random=- let id = tokens[0].replace(enityType + 'Id=', '');- if (id.includes('&')) {- id = id.split('&')[0];- }- if (id === (updateEvent.id + '')) {- this.imageUrl = this.imageService.randomize(this.imageUrl);- }+ //...seriesId=123&random=+ let id = tokens[0].replace(enityType + 'Id=', '');+ if (id.includes('&')) {+ id = id.split('&')[0];+ }+ if (id === (updateEvent.id + '')) {+ this.imageUrl = this.imageService.randomize(this.imageUrl);+ this.changeDetectionRef.markForCheck();}}- });+ }+ });}- ngOnChanges(changes: SimpleChanges): void {+ ngOnChanges(): void {if (this.width != '') {this.renderer.setStyle(this.imgElem.nativeElement, 'width', this.width);}diff --git a/UI/Web/src/app/shared/read-more/read-more.component.html b/UI/Web/src/app/shared/read-more/read-more.component.htmlindex 32198fec3..19963a527 100644--- a/UI/Web/src/app/shared/read-more/read-more.component.html+++ b/UI/Web/src/app/shared/read-more/read-more.component.html@@ -1,5 +1,5 @@<div>- <span [innerHTML]="currentText | safeHtml"></span>+ <span [innerHTML]="currentText | safeHtml" [ngClass]="{'blur-text': blur && isCollapsed}"></span><a [class.hidden]="hideToggle" *ngIf="text && text.length > maxLength" class="read-more-link" (click)="toggleView()"> <i aria-hidden="true" class="fa fa-caret-{{isCollapsed ? 'down' : 'up'}}"></i> Read {{isCollapsed ? 'More' : 'Less'}}</a>diff --git a/UI/Web/src/app/shared/read-more/read-more.component.scss b/UI/Web/src/app/shared/read-more/read-more.component.scssindex af394d0f7..034fefb5e 100644--- a/UI/Web/src/app/shared/read-more/read-more.component.scss+++ b/UI/Web/src/app/shared/read-more/read-more.component.scss@@ -1,6 +1,4 @@-// .read-more-link {-// font-weight: bold;-// text-decoration: none;-// cursor: pointer;-// color: var(--body-text-color) !important;-// }\ No newline at end of file+.blur-text {+ color: transparent;+ text-shadow: 0 0 5px var(--body-text-color);+}\ No newline at end of filediff --git a/UI/Web/src/app/shared/read-more/read-more.component.ts b/UI/Web/src/app/shared/read-more/read-more.component.tsindex 7bd437ecc..189950e9c 100644--- a/UI/Web/src/app/shared/read-more/read-more.component.ts+++ b/UI/Web/src/app/shared/read-more/read-more.component.ts@@ -9,6 +9,10 @@ export class ReadMoreComponent implements OnChanges {@Input() text!: string;@Input() maxLength: number = 250;+ /**+ * If the field is collapsed and blur true, text will not be readable+ */+ @Input() blur: boolean = false;currentText!: string;hideToggle: boolean = true;diff --git a/UI/Web/src/app/shared/series-format/series-format.component.html b/UI/Web/src/app/shared/series-format/series-format.component.htmlindex bafb1421c..d3e4a65f4 100644--- a/UI/Web/src/app/shared/series-format/series-format.component.html+++ b/UI/Web/src/app/shared/series-format/series-format.component.html@@ -1,4 +1,4 @@<ng-container *ngIf="format != MangaFormat.UNKNOWN">- <i class="fa {{utilityService.mangaFormatIcon(format)}}" aria-hidden="true" title="{{utilityService.mangaFormat(format)}}"></i> + <i class="fa {{format | mangaFormatIcon}}" aria-hidden="true" title="{{format | mangaFormat}}"></i> <ng-content></ng-content></ng-container>\ No newline at end of filediff --git a/UI/Web/src/app/shared/shared.module.ts b/UI/Web/src/app/shared/shared.module.tsindex 70d4283b6..53be1c743 100644--- a/UI/Web/src/app/shared/shared.module.ts+++ b/UI/Web/src/app/shared/shared.module.ts@@ -17,6 +17,7 @@ import { PersonBadgeComponent } from './person-badge/person-badge.component';import { BadgeExpanderComponent } from './badge-expander/badge-expander.component';import { ImageComponent } from './image/image.component';import { PipeModule } from '../pipe/pipe.module';+import { IconAndTitleComponent } from './icon-and-title/icon-and-title.component';@NgModule({declarations: [@@ -32,6 +33,7 @@ import { PipeModule } from '../pipe/pipe.module';PersonBadgeComponent,BadgeExpanderComponent,ImageComponent,+ IconAndTitleComponent,],imports: [CommonModule,@@ -55,6 +57,8 @@ import { PipeModule } from '../pipe/pipe.module';PersonBadgeComponent, // Used Series DetailBadgeExpanderComponent, // Used Series Detail/Metadata++ IconAndTitleComponent // Used in Series Detail/Metadata],})diff --git a/UI/Web/src/app/sidenav/side-nav-companion-bar/side-nav-companion-bar.component.html b/UI/Web/src/app/sidenav/side-nav-companion-bar/side-nav-companion-bar.component.htmlindex f1d36226f..5cce329a3 100644--- a/UI/Web/src/app/sidenav/side-nav-companion-bar/side-nav-companion-bar.component.html+++ b/UI/Web/src/app/sidenav/side-nav-companion-bar/side-nav-companion-bar.component.html@@ -7,7 +7,10 @@<ng-content select="[main]"></ng-content></div><div>- <!-- This can get out of sync with offcanvas component. We might need a service to handle communication and service resets to collapsed on route changes -->+ <button *ngIf="hasExtras" class="btn btn-secondary btn-small" (click)="openExtrasDrawer()" [attr.aria-expanded]="isExtrasOpen" placement="left" ngbTooltip="Page Settings">+ <i class="fa-solid fa-sliders" aria-hidden="true"></i>+ <span class="visually-hidden">Page Settings</span>+ </button><button *ngIf="hasFilter" class="btn btn-{{filterActive ? 'primary' : 'secondary'}} btn-small" (click)="toggleService.toggle()" [attr.aria-expanded]="filterOpen" placement="left" ngbTooltip="{{filterOpen ? 'Open' : 'Close'}} Filtering and Sorting" attr.aria-label="{{filterOpen ? 'Open' : 'Close'}} Filtering and Sorting"><i class="fa fa-filter" aria-hidden="true"></i><span class="visually-hidden">Sort / Filter</span>diff --git a/UI/Web/src/app/sidenav/side-nav-companion-bar/side-nav-companion-bar.component.ts b/UI/Web/src/app/sidenav/side-nav-companion-bar/side-nav-companion-bar.component.tsindex 9d7fa8825..f7def5c97 100644--- a/UI/Web/src/app/sidenav/side-nav-companion-bar/side-nav-companion-bar.component.ts+++ b/UI/Web/src/app/sidenav/side-nav-companion-bar/side-nav-companion-bar.component.ts@@ -1,4 +1,5 @@-import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';+import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, TemplateRef } from '@angular/core';+import { NgbOffcanvas } from '@ng-bootstrap/ng-bootstrap';import { Subject, takeUntil } from 'rxjs';import { Breakpoint, UtilityService } from 'src/app/shared/_services/utility.service';import { NavService } from 'src/app/_services/nav.service';@@ -18,6 +19,10 @@ export class SideNavCompanionBarComponent implements OnInit, OnDestroy {* If the page should show a filter*/@Input() hasFilter: boolean = false;+ /**+ * If the page should show an extra section button+ */+ @Input() hasExtras: boolean = false;/*** Is the input open by default@@ -29,18 +34,18 @@ export class SideNavCompanionBarComponent implements OnInit, OnDestroy {*/@Input() filterActive: boolean = false;- /**- * Should be passed through from Filter component.- */- //@Input() filterDisabled: EventEmitter<boolean> = new EventEmitter();+ @Input() extraDrawer!: TemplateRef<any>;+@Output() filterOpen: EventEmitter<boolean> = new EventEmitter();isFilterOpen = false;+ isExtrasOpen = false;private onDestroy: Subject<void> = new Subject();- constructor(private navService: NavService, private utilityService: UtilityService, public toggleService: ToggleService) {+ constructor(private navService: NavService, private utilityService: UtilityService, public toggleService: ToggleService,+ private offcanvasService: NgbOffcanvas) {}ngOnInit(): void {@@ -65,4 +70,13 @@ export class SideNavCompanionBarComponent implements OnInit, OnDestroy {this.filterOpen.emit(this.isFilterOpen);}+ openExtrasDrawer() {+ if (this.extraDrawer === undefined) return;++ this.isExtrasOpen = true;+ const drawerRef = this.offcanvasService.open(this.extraDrawer, {position: 'end', scroll: true});+ drawerRef.closed.subscribe(() => this.isExtrasOpen = false);+ drawerRef.dismissed.subscribe(() => this.isExtrasOpen = false);+ }+}diff --git a/UI/Web/src/app/sidenav/side-nav/side-nav.component.html b/UI/Web/src/app/sidenav/side-nav/side-nav.component.htmlindex e0f66775c..9cd90ebd8 100644--- a/UI/Web/src/app/sidenav/side-nav/side-nav.component.html+++ b/UI/Web/src/app/sidenav/side-nav/side-nav.component.html@@ -12,15 +12,15 @@<app-side-nav-item icon="fa-list-ol" title="Reading Lists" link="/lists/"></app-side-nav-item><app-side-nav-item icon="fa-bookmark" title="Bookmarks" link="/bookmarks/"></app-side-nav-item><app-side-nav-item icon="fa-regular fa-rectangle-list" title="All Series" link="/all-series/"></app-side-nav-item>- <div class="mb-2 mt-3 ms-2 me-2" *ngIf="libraries.length > 10">+ <div class="mb-2 mt-3 ms-2 me-2" *ngIf="libraries.length > 10 && !(navService?.sideNavCollapsed$ | async)"><label for="filter" class="form-label visually-hidden">Filter</label>- <div class="input-group">+ <div class="form-group"><input id="filter" autocomplete="off" class="form-control" [(ngModel)]="filterQuery" type="text" aria-describedby="reset-input">- <button class="btn btn-outline-secondary" type="button" id="reset-input" (click)="filterQuery = '';">Clear</button>+ <button type="button" aria-label="Clear" class="btn-close" id="reset-input" (click)="filterQuery = '';"></button></div></div><app-side-nav-item *ngFor="let library of libraries | filter: filterLibrary" [link]="'/library/' + library.id + '/'"- [icon]="utilityService.getLibraryTypeIcon(library.type)" [title]="library.name" [comparisonMethod]="'startsWith'">+ [icon]="getLibraryTypeIcon(library.type)" [title]="library.name" [comparisonMethod]="'startsWith'"><ng-container actions><app-card-actionables [actions]="actions" [labelBy]="library.name" iconClass="fa-ellipsis-v" (actionHandler)="performAction($event, library)"></app-card-actionables></ng-container>diff --git a/UI/Web/src/app/sidenav/side-nav/side-nav.component.scss b/UI/Web/src/app/sidenav/side-nav/side-nav.component.scssindex 0d3cedc34..c54731b03 100644--- a/UI/Web/src/app/sidenav/side-nav/side-nav.component.scss+++ b/UI/Web/src/app/sidenav/side-nav/side-nav.component.scss@@ -71,3 +71,10 @@}}}++.btn-close {+ margin-top: -28px;+ font-size: 0.8rem;+ position: absolute;+ right: 16px;+}\ No newline at end of filediff --git a/UI/Web/src/app/sidenav/side-nav/side-nav.component.ts b/UI/Web/src/app/sidenav/side-nav/side-nav.component.tsindex 7a5a33fe0..1d6a0f130 100644--- a/UI/Web/src/app/sidenav/side-nav/side-nav.component.ts+++ b/UI/Web/src/app/sidenav/side-nav/side-nav.component.ts@@ -1,10 +1,10 @@import { Component, OnDestroy, OnInit } from '@angular/core';import { NavigationEnd, Router } from '@angular/router';-import { Observable, Subject } from 'rxjs';-import { filter, map, take, takeUntil, takeWhile } from 'rxjs/operators';+import { Subject } from 'rxjs';+import { filter, map, take, takeUntil } from 'rxjs/operators';import { EVENTS, MessageHubService } from 'src/app/_services/message-hub.service';import { Breakpoint, UtilityService } from '../../shared/_services/utility.service';-import { Library } from '../../_models/library';+import { Library, LibraryType } from '../../_models/library';import { User } from '../../_models/user';import { AccountService } from '../../_services/account.service';import { Action, ActionFactoryService, ActionItem } from '../../_services/action-factory.service';@@ -84,6 +84,9 @@ export class SideNavComponent implements OnInit, OnDestroy {case(Action.RefreshMetadata):this.actionService.refreshMetadata(library);break;+ case (Action.AnalyzeFiles):+ this.actionService.analyzeFiles(library);+ break;default:break;}@@ -96,4 +99,14 @@ export class SideNavComponent implements OnInit, OnDestroy {}}+ getLibraryTypeIcon(format: LibraryType) {+ switch (format) {+ case LibraryType.Book:+ return 'fa-book';+ case LibraryType.Comic:+ case LibraryType.Manga:+ return 'fa-book-open';+ }+ }+}\ No newline at end of filediff --git a/UI/Web/src/app/user-settings/user-preferences/user-preferences.component.html b/UI/Web/src/app/user-settings/user-preferences/user-preferences.component.htmlindex 40ba2c9ad..de9fd2066 100644--- a/UI/Web/src/app/user-settings/user-preferences/user-preferences.component.html+++ b/UI/Web/src/app/user-settings/user-preferences/user-preferences.component.html@@ -16,218 +16,256 @@<form [formGroup]="settingsForm" *ngIf="user !== undefined"><ngb-accordion [closeOthers]="true" [activeIds]="AccordionPanelID.ImageReader" #acc="ngbAccordion">- <ngb-panel [id]="AccordionPanelID.ImageReader" title="Image Reader">- <ng-template ngbPanelHeader>- <h2 class="accordion-header">- <button class="accordion-button" ngbPanelToggle type="button" [attr.aria-expanded]="acc.isExpanded(AccordionPanelID.ImageReader)" aria-controls="collapseOne">- Image Reader- </button>- </h2>- </ng-template>- <ng-template ngbPanelContent>- <div class="row g-0">- <div class="col-md-6 col-sm-12 pe-2 mb-2">- <label for="settings-reading-direction" class="form-label">Reading Direction</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="readingDirectionTooltip" role="button" tabindex="0"></i>- <ng-template #readingDirectionTooltip>Direction to click to move to next page. Right to Left means you click on left side of screen to move to next page.</ng-template>- <span class="visually-hidden" id="settings-reading-direction-help">Direction to click to move to next page. Right to Left means you click on left side of screen to move to next page.</span>- <select class="form-select" aria-describedby="manga-header" formControlName="readingDirection" id="settings-reading-direction">- <option *ngFor="let opt of readingDirections" [value]="opt.value">{{opt.text | titlecase}}</option>- </select>- </div>-- <div class="col-md-6 col-sm-12 pe-2 mb-2">- <label for="settings-scaling-option" class="form-label">Scaling Options</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="taskBackupTooltip" role="button" tabindex="0"></i>- <ng-template #taskBackupTooltip>How to scale the image to your screen.</ng-template>- <span class="visually-hidden" id="settings-scaling-option-help">How to scale the image to your screen.</span>- <select class="form-select" aria-describedby="manga-header" formControlName="scalingOption" id="settings-scaling-option">- <option *ngFor="let opt of scalingOptions" [value]="opt.value">{{opt.text | titlecase}}</option>- </select>- </div>+ <ngb-panel [id]="AccordionPanelID.GlobalSettings" title="Global Settings">+ <ng-template ngbPanelHeader>+ <h2 class="accordion-header">+ <button class="accordion-button" ngbPanelToggle type="button" [attr.aria-expanded]="acc.isExpanded(AccordionPanelID.GlobalSettings)" aria-controls="collapseOne">+ Global Settings+ </button>+ </h2>+ </ng-template>+ <ng-template ngbPanelContent>+ <div class="row g-0">+ <div class="col-md-6 col-sm-12 pe-2 mb-2">+ <label for="settings-global-layoutmode" class="form-label">Page Layout Mode</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="layoutModeTooltip" role="button" tabindex="0"></i>+ <ng-template #layoutModeTooltip>Show items as cards or list view on Series Detail page</ng-template>+ <span class="visually-hidden" id="settings-global-layoutmode-help">Show items as cards or list view on Series Detail page</span>+ <select class="form-select" aria-describedby="manga-header" formControlName="globalPageLayoutMode" id="settings-global-layoutmode">+ <option *ngFor="let opt of pageLayoutModes" [value]="opt.value">{{opt.text | titlecase}}</option>+ </select></div>- <div class="row g-0">- <div class="col-md-6 col-sm-12 pe-2 mb-2">- <label for="settings-pagesplit-option" class="form-label">Page Splitting</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="pageSplitOptionTooltip" role="button" tabindex="0"></i>- <ng-template #pageSplitOptionTooltip>How to split a full width image (ie both left and right images are combined)</ng-template>- <span class="visually-hidden" id="settings-pagesplit-option-help">How to split a full width image (ie both left and right images are combined)</span>- <select class="form-select" aria-describedby="manga-header" formControlName="pageSplitOption" id="settings-pagesplit-option">- <option *ngFor="let opt of pageSplitOptions" [value]="opt.value">{{opt.text | titlecase}}</option>- </select>- </div>- <div class="col-md-6 col-sm-12 pe-2 mb-2">- <label for="settings-readingmode-option" class="form-label">Reading Mode</label>- <select class="form-select" aria-describedby="manga-header" formControlName="readerMode" id="settings-readingmode-option">- <option *ngFor="let opt of readingModes" [value]="opt.value">{{opt.text | titlecase}}</option>- </select>+ <div class="col-md-6 col-sm-12 pe-2 mb-2">+ <div class="form-check form-switch">+ <input type="checkbox" id="auto-close" role="switch" formControlName="blurUnreadSummaries" class="form-check-input" aria-describedby="blurUnreadSummaries" [value]="true" aria-labelledby="auto-close-label">+ <label class="form-check-label" for="auto-close">Blur Unread Summaries</label><i class="fa fa-info-circle ms-1" aria-hidden="true" placement="right" [ngbTooltip]="blurUnreadSummariesTooltip" role="button" tabindex="0"></i></div>++ <ng-template #blurUnreadSummariesTooltip>Blurs summary text on volumes or chapters that have no read progress (to avoid spoilers)</ng-template>+ <span class="visually-hidden" id="settings-global-blurUnreadSummaries-help">Blurs summary text on volumes or chapters that have no read progress (to avoid spoilers)</span></div>+ </div>- <div class="row g-0">- <div class="col-md-6 col-sm-12 pe-2 mb-2" *ngIf="false">- <label for="settings-layoutmode-option" class="form-label">Layout Mode</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="layoutModeTooltip" role="button" tabindex="0"></i>- <ng-template #layoutModeTooltip>Render a single image to the screen to two side-by-side images</ng-template>- <span class="visually-hidden" id="settings-layoutmode-option-help"><ng-container [ngTemplateOutlet]="layoutModeTooltip"></ng-container></span>- <select class="form-select" aria-describedby="manga-header" formControlName="layoutMode" id="settings-layoutmode-option">- <option *ngFor="let opt of layoutModes" [value]="opt.value">{{opt.text | titlecase}}</option>- </select>- </div>- <div class="col-md-6 col-sm-12 pe-2 mb-2">- <label for="settings-backgroundcolor-option" class="form-label">Background Color</label>- <input [value]="user.preferences.backgroundColor"- class="form-control"- (colorPickerChange)="settingsForm.markAsTouched()"- [style.background]="user.preferences.backgroundColor"- [cpAlphaChannel]="'disabled'"- [(colorPicker)]="user.preferences.backgroundColor"/>- </div>+ <div class="col-auto d-flex d-md-block justify-content-sm-center text-md-end mb-3">+ <button type="button" class="flex-fill btn btn-secondary me-2" (click)="resetForm()" aria-describedby="reading-panel">Reset</button>+ <button type="submit" class="flex-fill btn btn-primary" (click)="save()" aria-describedby="reading-panel" [disabled]="!settingsForm.touched && !settingsForm.dirty">Save</button>+ </div>+ </ng-template>+ </ngb-panel>++ <ngb-panel [id]="AccordionPanelID.ImageReader" title="Image Reader">+ <ng-template ngbPanelHeader>+ <h2 class="accordion-header">+ <button class="accordion-button" ngbPanelToggle type="button" [attr.aria-expanded]="acc.isExpanded(AccordionPanelID.ImageReader)" aria-controls="collapseOne">+ Image Reader+ </button>+ </h2>+ </ng-template>+ <ng-template ngbPanelContent>+ <div class="row g-0">+ <div class="col-md-6 col-sm-12 pe-2 mb-2">+ <label for="settings-reading-direction" class="form-label">Reading Direction</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="readingDirectionTooltip" role="button" tabindex="0"></i>+ <ng-template #readingDirectionTooltip>Direction to click to move to next page. Right to Left means you click on left side of screen to move to next page.</ng-template>+ <span class="visually-hidden" id="settings-reading-direction-help">Direction to click to move to next page. Right to Left means you click on left side of screen to move to next page.</span>+ <select class="form-select" aria-describedby="manga-header" formControlName="readingDirection" id="settings-reading-direction">+ <option *ngFor="let opt of readingDirections" [value]="opt.value">{{opt.text | titlecase}}</option>+ </select></div>+ <div class="col-md-6 col-sm-12 pe-2 mb-2">+ <label for="settings-scaling-option" class="form-label">Scaling Options</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="taskBackupTooltip" role="button" tabindex="0"></i>+ <ng-template #taskBackupTooltip>How to scale the image to your screen.</ng-template>+ <span class="visually-hidden" id="settings-scaling-option-help">How to scale the image to your screen.</span>+ <select class="form-select" aria-describedby="manga-header" formControlName="scalingOption" id="settings-scaling-option">+ <option *ngFor="let opt of scalingOptions" [value]="opt.value">{{opt.text | titlecase}}</option>+ </select>+ </div>+ </div>- <div class="row g-0">- <div class="col-md-6 col-sm-12 pe-2 mb-2">- <div class="mb-3 mt-1">- <div class="form-check form-switch">- <input type="checkbox" id="auto-close" role="switch" formControlName="autoCloseMenu" class="form-check-input" [value]="true" aria-labelledby="auto-close-label">- <label class="form-check-label" for="auto-close">Auto Close Menu</label>- </div>- </div>- </div>- <div class="col-md-6 col-sm-12 pe-2 mb-2">- <div class="mb-3 mt-1">- <div class="form-check form-switch">- <input type="checkbox" id="show-screen-hints" role="switch" formControlName="showScreenHints" class="form-check-input" [value]="true" aria-labelledby="auto-close-label">- <label class="form-check-label" for="show-screen-hints">Show Screen Hints</label>- </div>- </div>- </div>+ <div class="row g-0">+ <div class="col-md-6 col-sm-12 pe-2 mb-2">+ <label for="settings-pagesplit-option" class="form-label">Page Splitting</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="pageSplitOptionTooltip" role="button" tabindex="0"></i>+ <ng-template #pageSplitOptionTooltip>How to split a full width image (ie both left and right images are combined)</ng-template>+ <span class="visually-hidden" id="settings-pagesplit-option-help">How to split a full width image (ie both left and right images are combined)</span>+ <select class="form-select" aria-describedby="manga-header" formControlName="pageSplitOption" id="settings-pagesplit-option">+ <option *ngFor="let opt of pageSplitOptions" [value]="opt.value">{{opt.text | titlecase}}</option>+ </select>+ </div>+ <div class="col-md-6 col-sm-12 pe-2 mb-2">+ <label for="settings-readingmode-option" class="form-label">Reading Mode</label>+ <select class="form-select" aria-describedby="manga-header" formControlName="readerMode" id="settings-readingmode-option">+ <option *ngFor="let opt of readingModes" [value]="opt.value">{{opt.text | titlecase}}</option>+ </select></div>+ </div>- <div class="col-auto d-flex d-md-block justify-content-sm-center text-md-end mb-3">- <button type="button" class="flex-fill btn btn-secondary me-2" (click)="resetForm()" aria-describedby="reading-panel">Reset</button>- <button type="submit" class="flex-fill btn btn-primary" (click)="save()" aria-describedby="reading-panel" [disabled]="!settingsForm.touched && !settingsForm.dirty">Save</button>+ <div class="row g-0">+ <div class="col-md-6 col-sm-12 pe-2 mb-2" *ngIf="true">+ <label for="settings-layoutmode-option" class="form-label">Layout Mode</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="layoutModeTooltip" role="button" tabindex="0"></i>+ <ng-template #layoutModeTooltip>Render a single image to the screen to two side-by-side images</ng-template>+ <span class="visually-hidden" id="settings-layoutmode-option-help"><ng-container [ngTemplateOutlet]="layoutModeTooltip"></ng-container></span>+ <select class="form-select" aria-describedby="manga-header" formControlName="layoutMode" id="settings-layoutmode-option">+ <option *ngFor="let opt of layoutModes" [value]="opt.value">{{opt.text | titlecase}}</option>+ </select></div>- </ng-template>- </ngb-panel>+ <div class="col-md-6 col-sm-12 pe-2 mb-2">+ <label for="settings-backgroundcolor-option" class="form-label">Background Color</label>+ <input [value]="user.preferences.backgroundColor"+ class="form-control"+ (colorPickerChange)="settingsForm.markAsTouched()"+ [style.background]="user.preferences.backgroundColor"+ [cpAlphaChannel]="'disabled'"+ [(colorPicker)]="user.preferences.backgroundColor"/>+ </div>+ </div>+- <ngb-panel id="AccordionPanelID.BookReader" title="Book Reader">- <ng-template ngbPanelHeader>- <h2 class="accordion-header">- <button class="accordion-button" ngbPanelToggle type="button" [attr.aria-expanded]="acc.isExpanded(AccordionPanelID.BookReader)" aria-controls="collapseOne">- Book Reader- </button>- </h2>- </ng-template>- <ng-template ngbPanelContent><div class="row g-0">- <div class="col-md-4 col-sm-12 pe-2 mb-3">- <label id="taptopaginate-label" class="form-label"></label>- <div class="mb-3">+ <div class="col-md-6 col-sm-12 pe-2 mb-2">+ <div class="mb-3 mt-1"><div class="form-check form-switch">- <input type="checkbox" role="switch" id="taptopaginate" formControlName="bookReaderTapToPaginate" class="form-check-input" [value]="true" aria-labelledby="taptopaginate-label">- <label id="taptopaginate" class="form-check-label">Tap to Paginate</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="tapToPaginateOptionTooltip" role="button" tabindex="0"></i>- <ng-template #tapToPaginateOptionTooltip>Should the sides of the book reader screen allow tapping on it to move to prev/next page</ng-template>- <span class="visually-hidden" id="settings-taptopaginate-option-help">Should the sides of the book reader screen allow tapping on it to move to prev/next page</span>+ <input type="checkbox" id="auto-close" role="switch" formControlName="autoCloseMenu" class="form-check-input" [value]="true" aria-labelledby="auto-close-label">+ <label class="form-check-label" for="auto-close">Auto Close Menu</label></div></div></div>- <div class="col-md-4 col-sm-12 pe-2 mb-3">- <label id="immersivemode-label" class="form-label"></label>- <div class="mb-3">+ <div class="col-md-6 col-sm-12 pe-2 mb-2">+ <div class="mb-3 mt-1"><div class="form-check form-switch">- <input type="checkbox" role="switch" id="immersivemode" formControlName="bookReaderImmersiveMode" class="form-check-input" [value]="true" aria-labelledby="immersivemode-label">- <label id="immersivemode" class="form-check-label">Immersive Mode</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="immersivemodeOptionTooltip" role="button" tabindex="0"></i>- <ng-template #immersivemodeOptionTooltip>This will hide the menu behind a click on the reader document and turn tap to paginate on</ng-template>- <span class="visually-hidden" id="settings-immersivemode-option-help">This will hide the menu behind a click on the reader document and turn tap to paginate on</span>+ <input type="checkbox" id="show-screen-hints" role="switch" formControlName="showScreenHints" class="form-check-input" [value]="true" aria-labelledby="auto-close-label">+ <label class="form-check-label" for="show-screen-hints">Show Screen Hints</label></div></div></div></div>- <div class="row g-0">- <div class="col-md-6 col-sm-12 pe-2 mb-3">- <label for="settings-book-reading-direction" class="form-label">Reading Direction</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="bookReadingDirectionTooltip" role="button" tabindex="0"></i>- <ng-template #bookReadingDirectionTooltip>Direction to click to move to next page. Right to Left means you click on left side of screen to move to next page.</ng-template>- <span class="visually-hidden" id="settings-reading-direction-help">Direction to click to move to next page. Right to Left means you click on left side of screen to move to next page.</span>- <select class="form-select" aria-describedby="settings-reading-direction-help" formControlName="bookReaderReadingDirection">- <option *ngFor="let opt of readingDirections" [value]="opt.value">{{opt.text | titlecase}}</option>- </select>- </div>-+ <div class="col-auto d-flex d-md-block justify-content-sm-center text-md-end mb-3">+ <button type="button" class="flex-fill btn btn-secondary me-2" (click)="resetForm()" aria-describedby="reading-panel">Reset</button>+ <button type="submit" class="flex-fill btn btn-primary" (click)="save()" aria-describedby="reading-panel" [disabled]="!settingsForm.touched && !settingsForm.dirty">Save</button>+ </div>+ </ng-template>+ </ngb-panel>- <div class="col-md-6 col-sm-12 pe-2 mb-3">- <label for="settings-fontfamily-option" class="form-label">Font Family</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="fontFamilyOptionTooltip" role="button" tabindex="0"></i>- <ng-template #fontFamilyOptionTooltip>Font familty to load up. Default will load the book's default font</ng-template>- <span class="visually-hidden" id="settings-fontfamily-option-help">Font familty to load up. Default will load the book's default font</span>- <select class="form-select" aria-describedby="settings-fontfamily-option-help" formControlName="bookReaderFontFamily">- <option *ngFor="let opt of fontFamilies" [value]="opt">{{opt | titlecase}}</option>- </select>+ <ngb-panel [id]="AccordionPanelID.BookReader" title="Book Reader">+ <ng-template ngbPanelHeader>+ <h2 class="accordion-header">+ <button class="accordion-button" ngbPanelToggle type="button" [attr.aria-expanded]="acc.isExpanded(AccordionPanelID.BookReader)" aria-controls="collapseOne">+ Book Reader+ </button>+ </h2>+ </ng-template>+ <ng-template ngbPanelContent>+ <div class="row g-0">+ <div class="col-md-4 col-sm-12 pe-2 mb-3">+ <label id="taptopaginate-label" class="form-label"></label>+ <div class="mb-3">+ <div class="form-check form-switch">+ <input type="checkbox" role="switch" id="taptopaginate" formControlName="bookReaderTapToPaginate" class="form-check-input" [value]="true" aria-labelledby="taptopaginate-label">+ <label id="taptopaginate" class="form-check-label">Tap to Paginate</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="tapToPaginateOptionTooltip" role="button" tabindex="0"></i>+ <ng-template #tapToPaginateOptionTooltip>Should the sides of the book reader screen allow tapping on it to move to prev/next page</ng-template>+ <span class="visually-hidden" id="settings-taptopaginate-option-help">Should the sides of the book reader screen allow tapping on it to move to prev/next page</span>+ </div></div></div>-- <div class="row g-0">- <div class="col-md-6 col-sm-12 pe-2 mb-3">- <label for="settings-book-layout-mode" class="form-label">Layout Mode</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="bookLayoutModeTooltip" role="button" tabindex="0"></i>- <ng-template #bookLayoutModeTooltip>How content should be laid out. Default is as the book packs it. 1 or 2 Column fits to the height of the device and fits 1 or 2 columns of text per page</ng-template>- <span class="visually-hidden" id="settings-book-layout-mode-help"><ng-container [ngTemplateOutlet]="bookLayoutModeTooltip"></ng-container></span>- <select class="form-select" aria-describedby="settings-book-layout-mode-help" formControlName="bookReaderLayoutMode" id="settings-book-layout-mode">- <option *ngFor="let opt of bookLayoutModes" [value]="opt.value">{{opt.text | titlecase}}</option>- </select>+ <div class="col-md-4 col-sm-12 pe-2 mb-3">+ <label id="immersivemode-label" class="form-label"></label>+ <div class="mb-3">+ <div class="form-check form-switch">+ <input type="checkbox" role="switch" id="immersivemode" formControlName="bookReaderImmersiveMode" class="form-check-input" [value]="true" aria-labelledby="immersivemode-label">+ <label id="immersivemode" class="form-check-label">Immersive Mode</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="immersivemodeOptionTooltip" role="button" tabindex="0"></i>+ <ng-template #immersivemodeOptionTooltip>This will hide the menu behind a click on the reader document and turn tap to paginate on</ng-template>+ <span class="visually-hidden" id="settings-immersivemode-option-help">This will hide the menu behind a click on the reader document and turn tap to paginate on</span>+ </div></div>+ </div>+ </div>+ <div class="row g-0">+ <div class="col-md-6 col-sm-12 pe-2 mb-3">+ <label for="settings-book-reading-direction" class="form-label">Reading Direction</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="bookReadingDirectionTooltip" role="button" tabindex="0"></i>+ <ng-template #bookReadingDirectionTooltip>Direction to click to move to next page. Right to Left means you click on left side of screen to move to next page.</ng-template>+ <span class="visually-hidden" id="settings-reading-direction-help">Direction to click to move to next page. Right to Left means you click on left side of screen to move to next page.</span>+ <select class="form-select" aria-describedby="settings-reading-direction-help" formControlName="bookReaderReadingDirection">+ <option *ngFor="let opt of readingDirections" [value]="opt.value">{{opt.text | titlecase}}</option>+ </select>+ </div>- <div class="col-md-6 col-sm-12 pe-2 mb-3">- <label for="settings-color-theme-option" class="form-label">Color Theme</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="bookColorThemeTooltip" role="button" tabindex="0"></i>- <ng-template #bookColorThemeTooltip>What color theme to apply to the book reader content and menuing</ng-template>- <span class="visually-hidden" id="settings-color-theme-option-help"><ng-container [ngTemplateOutlet]="bookColorThemeTooltip"></ng-container></span>- <select class="form-select" aria-describedby="settings-color-theme-option-help" formControlName="bookReaderThemeName" id="settings-color-theme-option">- <option *ngFor="let opt of bookColorThemes" [value]="opt.name">{{opt.name | titlecase}}</option>- </select>- </div>++ <div class="col-md-6 col-sm-12 pe-2 mb-3">+ <label for="settings-fontfamily-option" class="form-label">Font Family</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="fontFamilyOptionTooltip" role="button" tabindex="0"></i>+ <ng-template #fontFamilyOptionTooltip>Font family to load up. Default will load the book's default font</ng-template>+ <span class="visually-hidden" id="settings-fontfamily-option-help">Font family to load up. Default will load the book's default font</span>+ <select class="form-select" aria-describedby="settings-fontfamily-option-help" formControlName="bookReaderFontFamily">+ <option *ngFor="let opt of fontFamilies" [value]="opt">{{opt | titlecase}}</option>+ </select></div>+ </div>- <div class="row g-0">- <div class="col-md-4 col-sm-12 pe-2 mb-3">- <label for="fontsize" class="form-label range-label">Font Size</label>- <input type="range" class="form-range" id="fontsize"- min="50" max="300" step="10" formControlName="bookReaderFontSize">- <span class="range-text">{{settingsForm.get('bookReaderFontSize')?.value + '%'}}</span>- </div>-+ <div class="row g-0">+ <div class="col-md-6 col-sm-12 pe-2 mb-3">+ <label for="settings-book-layout-mode" class="form-label">Layout Mode</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="bookLayoutModeTooltip" role="button" tabindex="0"></i>+ <ng-template #bookLayoutModeTooltip>How content should be laid out. Default is as the book packs it. 1 or 2 Column fits to the height of the device and fits 1 or 2 columns of text per page</ng-template>+ <span class="visually-hidden" id="settings-book-layout-mode-help"><ng-container [ngTemplateOutlet]="bookLayoutModeTooltip"></ng-container></span>+ <select class="form-select" aria-describedby="settings-book-layout-mode-help" formControlName="bookReaderLayoutMode" id="settings-book-layout-mode">+ <option *ngFor="let opt of bookLayoutModes" [value]="opt.value">{{opt.text | titlecase}}</option>+ </select>+ </div>- <div class="col-md-4 col-sm-12 pe-2 mb-3">- <div class="range-label">- <label class="form-label" for="linespacing">Line Height</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="bookLineHeightOptionTooltip" role="button" tabindex="0"></i>- <ng-template #bookLineHeightOptionTooltip>How much spacing between the lines of the book</ng-template>- <span class="visually-hidden" id="settings-booklineheight-option-help">How much spacing between the lines of the book</span>- </div>- <input type="range" class="form-range" id="linespacing" min="100" max="200" step="10"- formControlName="bookReaderLineSpacing" aria-describedby="settings-booklineheight-option-help">- <span class="range-text">{{settingsForm.get('bookReaderLineSpacing')?.value + '%'}}</span>- </div>- <div class="col-md-4 col-sm-12 pe-2 mb-3">- <div class="range-label">- <label class="form-label">Margin</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="bookReaderMarginOptionTooltip" role="button" tabindex="0"></i>- <ng-template #bookReaderMarginOptionTooltip>How much spacing on each side of the screen. This will override to 0 on mobile devices regardless of this setting.</ng-template>- <span class="visually-hidden" id="settings-bookmargin-option-help">How much spacing on each side of the screen. This will override to 0 on mobile devices regardless of this setting.</span>- </div>+ <div class="col-md-6 col-sm-12 pe-2 mb-3">+ <label for="settings-color-theme-option" class="form-label">Color Theme</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="bookColorThemeTooltip" role="button" tabindex="0"></i>+ <ng-template #bookColorThemeTooltip>What color theme to apply to the book reader content and menuing</ng-template>+ <span class="visually-hidden" id="settings-color-theme-option-help"><ng-container [ngTemplateOutlet]="bookColorThemeTooltip"></ng-container></span>+ <select class="form-select" aria-describedby="settings-color-theme-option-help" formControlName="bookReaderThemeName" id="settings-color-theme-option">+ <option *ngFor="let opt of bookColorThemes" [value]="opt.name">{{opt.name | titlecase}}</option>+ </select>+ </div>+ </div>- <input type="range" class="form-range" id="margin" min="0" max="30" step="5" formControlName="bookReaderMargin" aria-describedby="bookmargin">- <span class="range-text">{{settingsForm.get('bookReaderMargin')?.value + '%'}}</span>+ <div class="row g-0">+ <div class="col-md-4 col-sm-12 pe-2 mb-3">+ <label for="fontsize" class="form-label range-label">Font Size</label>+ <input type="range" class="form-range" id="fontsize"+ min="50" max="300" step="10" formControlName="bookReaderFontSize">+ <span class="range-text">{{settingsForm.get('bookReaderFontSize')?.value + '%'}}</span>+ </div>+++ <div class="col-md-4 col-sm-12 pe-2 mb-3">+ <div class="range-label">+ <label class="form-label" for="linespacing">Line Height</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="bookLineHeightOptionTooltip" role="button" tabindex="0"></i>+ <ng-template #bookLineHeightOptionTooltip>How much spacing between the lines of the book</ng-template>+ <span class="visually-hidden" id="settings-booklineheight-option-help">How much spacing between the lines of the book</span></div>+ <input type="range" class="form-range" id="linespacing" min="100" max="200" step="10"+ formControlName="bookReaderLineSpacing" aria-describedby="settings-booklineheight-option-help">+ <span class="range-text">{{settingsForm.get('bookReaderLineSpacing')?.value + '%'}}</span></div>- <div class="col-auto d-flex d-md-block justify-content-sm-center text-md-end mb-3">- <button type="button" class="flex-fill btn btn-secondary me-2" (click)="resetForm()" aria-describedby="reading-panel">Reset</button>- <button type="submit" class="flex-fill btn btn-primary" (click)="save()" aria-describedby="reading-panel" [disabled]="!settingsForm.touched && !settingsForm.dirty">Save</button>+ <div class="col-md-4 col-sm-12 pe-2 mb-3">+ <div class="range-label">+ <label class="form-label">Margin</label> <i class="fa fa-info-circle" aria-hidden="true" placement="right" [ngbTooltip]="bookReaderMarginOptionTooltip" role="button" tabindex="0"></i>+ <ng-template #bookReaderMarginOptionTooltip>How much spacing on each side of the screen. This will override to 0 on mobile devices regardless of this setting.</ng-template>+ <span class="visually-hidden" id="settings-bookmargin-option-help">How much spacing on each side of the screen. This will override to 0 on mobile devices regardless of this setting.</span>+ </div>++ <input type="range" class="form-range" id="margin" min="0" max="30" step="5" formControlName="bookReaderMargin" aria-describedby="bookmargin">+ <span class="range-text">{{settingsForm.get('bookReaderMargin')?.value + '%'}}</span></div>- </ng-template>- </ngb-panel>+ </div>++ <div class="col-auto d-flex d-md-block justify-content-sm-center text-md-end mb-3">+ <button type="button" class="flex-fill btn btn-secondary me-2" (click)="resetForm()" aria-describedby="reading-panel">Reset</button>+ <button type="submit" class="flex-fill btn btn-primary" (click)="save()" aria-describedby="reading-panel" [disabled]="!settingsForm.touched && !settingsForm.dirty">Save</button>+ </div>+ </ng-template>+ </ngb-panel></ngb-accordion></form></ng-container><ng-container *ngIf="tab.fragment === 'password'">- <ng-container *ngIf="(isAdmin || hasChangePasswordRole); else noPermission">++ <ng-container *ngIf="(hasChangePasswordAbility | async); else noPermission"><p>Change your Password</p><div class="alert alert-danger" role="alert" *ngIf="resetPasswordErrors.length > 0"><div *ngFor="let error of resetPasswordErrors">{{error}}</div>diff --git a/UI/Web/src/app/user-settings/user-preferences/user-preferences.component.ts b/UI/Web/src/app/user-settings/user-preferences/user-preferences.component.tsindex 2180d783d..cbac77b60 100644--- a/UI/Web/src/app/user-settings/user-preferences/user-preferences.component.ts+++ b/UI/Web/src/app/user-settings/user-preferences/user-preferences.component.ts@@ -1,21 +1,22 @@import { Component, OnDestroy, OnInit } from '@angular/core';import { FormControl, FormGroup, Validators } from '@angular/forms';import { ToastrService } from 'ngx-toastr';-import { take, takeUntil } from 'rxjs/operators';+import { map, shareReplay, take, takeUntil } from 'rxjs/operators';import { Title } from '@angular/platform-browser';import { BookService } from 'src/app/book-reader/book.service';-import { readingDirections, scalingOptions, pageSplitOptions, readingModes, Preferences, bookLayoutModes, layoutModes } from 'src/app/_models/preferences/preferences';+import { readingDirections, scalingOptions, pageSplitOptions, readingModes, Preferences, bookLayoutModes, layoutModes, pageLayoutModes } from 'src/app/_models/preferences/preferences';import { User } from 'src/app/_models/user';import { AccountService } from 'src/app/_services/account.service';import { ActivatedRoute, Router } from '@angular/router';import { SettingsService } from 'src/app/admin/settings.service';import { bookColorThemes } from 'src/app/book-reader/reader-settings/reader-settings.component';import { BookPageLayoutMode } from 'src/app/_models/book-page-layout-mode';-import { forkJoin, Subject } from 'rxjs';+import { forkJoin, Observable, of, Subject } from 'rxjs';enum AccordionPanelID {ImageReader = 'image-reader',- BookReader = 'book-reader'+ BookReader = 'book-reader',+ GlobalSettings = 'global-settings'}@Component({@@ -32,17 +33,17 @@ export class UserPreferencesComponent implements OnInit, OnDestroy {layoutModes = layoutModes;bookLayoutModes = bookLayoutModes;bookColorThemes = bookColorThemes;+ pageLayoutModes = pageLayoutModes;settingsForm: FormGroup = new FormGroup({});passwordChangeForm: FormGroup = new FormGroup({});user: User | undefined = undefined;- isAdmin: boolean = false;- hasChangePasswordRole: boolean = false;+ hasChangePasswordAbility: Observable<boolean> = of(false);passwordsMatch = false;resetPasswordErrors: string[] = [];- obserableHandles: Array<any> = [];+ observableHandles: Array<any> = [];fontFamilies: Array<string> = [];tabs: Array<{title: string, fragment: string}> = [@@ -83,6 +84,10 @@ export class UserPreferencesComponent implements OnInit, OnDestroy {ngOnInit(): void {this.titleService.setTitle('Kavita - User Preferences');+ this.hasChangePasswordAbility = this.accountService.currentUser$.pipe(takeUntil(this.onDestroy), shareReplay(), map(user => {+ return user !== undefined && (this.accountService.hasAdminRole(user) || this.accountService.hasChangePasswordRole(user));+ }));+forkJoin({user: this.accountService.currentUser$.pipe(take(1)),pref: this.accountService.getPreferences()@@ -94,8 +99,6 @@ export class UserPreferencesComponent implements OnInit, OnDestroy {this.user = results.user;this.user.preferences = results.pref;- this.isAdmin = this.accountService.hasAdminRole(results.user);- this.hasChangePasswordRole = this.accountService.hasChangePasswordRole(results.user);if (this.fontFamilies.indexOf(this.user.preferences.bookReaderFontFamily) < 0) {this.user.preferences.bookReaderFontFamily = 'default';@@ -119,12 +122,14 @@ export class UserPreferencesComponent implements OnInit, OnDestroy {this.settingsForm.addControl('bookReaderImmersiveMode', new FormControl(this.user?.preferences.bookReaderImmersiveMode, []));this.settingsForm.addControl('theme', new FormControl(this.user.preferences.theme, []));+ this.settingsForm.addControl('globalPageLayoutMode', new FormControl(this.user.preferences.globalPageLayoutMode, []));+ this.settingsForm.addControl('blurUnreadSummaries', new FormControl(this.user.preferences.blurUnreadSummaries, []));});this.passwordChangeForm.addControl('password', new FormControl('', [Validators.required]));this.passwordChangeForm.addControl('confirmPassword', new FormControl('', [Validators.required]));- this.obserableHandles.push(this.passwordChangeForm.valueChanges.subscribe(() => {+ this.observableHandles.push(this.passwordChangeForm.valueChanges.subscribe(() => {const values = this.passwordChangeForm.value;this.passwordsMatch = values.password === values.confirmPassword;}));@@ -137,7 +142,7 @@ export class UserPreferencesComponent implements OnInit, OnDestroy {}ngOnDestroy() {- this.obserableHandles.forEach(o => o.unsubscribe());+ this.observableHandles.forEach(o => o.unsubscribe());this.onDestroy.next();this.onDestroy.complete();}@@ -164,6 +169,8 @@ export class UserPreferencesComponent implements OnInit, OnDestroy {this.settingsForm.get('bookReaderThemeName')?.setValue(this.user.preferences.bookReaderThemeName);this.settingsForm.get('theme')?.setValue(this.user.preferences.theme);this.settingsForm.get('bookReaderImmersiveMode')?.setValue(this.user.preferences.bookReaderImmersiveMode);+ this.settingsForm.get('globalPageLayoutMode')?.setValue(this.user.preferences.globalPageLayoutMode);+ this.settingsForm.get('blurUnreadSummaries')?.setValue(this.user.preferences.blurUnreadSummaries);}resetPasswordForm() {@@ -183,7 +190,7 @@ export class UserPreferencesComponent implements OnInit, OnDestroy {readerMode: parseInt(modelSettings.readerMode, 10),layoutMode: parseInt(modelSettings.layoutMode, 10),showScreenHints: modelSettings.showScreenHints,- backgroundColor: modelSettings.backgroundColor, // this.user.preferences.backgroundColor,+ backgroundColor: modelSettings.backgroundColor,bookReaderFontFamily: modelSettings.bookReaderFontFamily,bookReaderLineSpacing: modelSettings.bookReaderLineSpacing,bookReaderFontSize: modelSettings.bookReaderFontSize,@@ -193,10 +200,12 @@ export class UserPreferencesComponent implements OnInit, OnDestroy {bookReaderLayoutMode: parseInt(modelSettings.bookReaderLayoutMode, 10),bookReaderThemeName: modelSettings.bookReaderThemeName,theme: modelSettings.theme,- bookReaderImmersiveMode: modelSettings.bookReaderImmersiveMode+ bookReaderImmersiveMode: modelSettings.bookReaderImmersiveMode,+ globalPageLayoutMode: parseInt(modelSettings.globalPageLayoutMode, 10),+ blurUnreadSummaries: modelSettings.blurUnreadSummaries,};- this.obserableHandles.push(this.accountService.updatePreferences(data).subscribe((updatedPrefs) => {+ this.observableHandles.push(this.accountService.updatePreferences(data).subscribe((updatedPrefs) => {this.toastr.success('Server settings updated');if (this.user) {this.user.preferences = updatedPrefs;@@ -210,7 +219,7 @@ export class UserPreferencesComponent implements OnInit, OnDestroy {const model = this.passwordChangeForm.value;this.resetPasswordErrors = [];- this.obserableHandles.push(this.accountService.resetPassword(this.user?.username, model.confirmPassword).subscribe(() => {+ this.observableHandles.push(this.accountService.resetPassword(this.user?.username, model.confirmPassword).subscribe(() => {this.toastr.success('Password has been updated');this.resetPasswordForm();}, err => {diff --git a/UI/Web/src/styles.scss b/UI/Web/src/styles.scssindex 1af759d4a..94ddbfd45 100644--- a/UI/Web/src/styles.scss+++ b/UI/Web/src/styles.scss@@ -36,6 +36,7 @@@import './theme/components/progress';@import './theme/components/sidenav';@import './theme/components/carousel';+@import './theme/components/offcanvas';@import './theme/utilities/utilities';@@ -64,5 +65,19 @@ label, select, .clickable {// Needed for fullscreenapp-root {- background-color: inherit;+ background-color: transparent;+ scrollbar-width: 14px;+ scrollbar-color: var(--primary-color-scrollbar);+}++::-webkit-scrollbar {+ width: 14px;+}++::-webkit-scrollbar-thumb {+ background-clip: padding-box;+ background-color: var(--primary-color-scrollbar);+ border: 3px solid transparent;+ border-radius: 8px;+ min-height: 50px;}diff --git a/UI/Web/src/theme/components/_card.scss b/UI/Web/src/theme/components/_card.scssindex bbc0266d1..124f942ae 100644--- a/UI/Web/src/theme/components/_card.scss+++ b/UI/Web/src/theme/components/_card.scss@@ -12,4 +12,4 @@background-color: var(--card-overlay-hover-bg-color);}}-}+}\ No newline at end of filediff --git a/UI/Web/src/theme/components/_offcanvas.scss b/UI/Web/src/theme/components/_offcanvas.scssnew file mode 100644index 000000000..ef6a2e527--- /dev/null+++ b/UI/Web/src/theme/components/_offcanvas.scss@@ -0,0 +1,12 @@+.offcanvas {+ color: var(--drawer-text-color);+ background-color: var(--drawer-bg-color);+}++.offcanvas-end, .offcanvas-start, .offcanvas-top {+ top: 56px;+}++.offcanvas-bottom {+ height: 40vh;+}\ No newline at end of filediff --git a/UI/Web/src/theme/themes/dark.scss b/UI/Web/src/theme/themes/dark.scssindex 91219d354..39ceda0fe 100644--- a/UI/Web/src/theme/themes/dark.scss+++ b/UI/Web/src/theme/themes/dark.scss@@ -8,6 +8,7 @@--bs-body-bg: #343a40;--body-text-color: #efefef;--btn-icon-filter: invert(1) grayscale(100%) brightness(200%);+ --primary-color-scrollbar: rgba(74,198,148,0.75);/* Navbar */--navbar-bg-color: black;@@ -233,4 +234,7 @@--bulk-selection-text-color: var(--navbar-text-color);--bulk-selection-highlight-text-color: var(--primary-color);+ /* List Card Item */+ --card-list-item-bg-color: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.15) 1%, rgba(0,0,0,0) 100%);+}diff --git a/UI/Web/src/theme/utilities/_global.scss b/UI/Web/src/theme/utilities/_global.scssindex 1121ad658..55ad54f39 100644--- a/UI/Web/src/theme/utilities/_global.scss+++ b/UI/Web/src/theme/utilities/_global.scss@@ -25,3 +25,7 @@ hr {.text-muted {color: var(--text-muted-color) !important;}++.subtitle-with-actionables {+ margin-left: 32px;+}\ No newline at end of filediff --git a/UI/Web/tsconfig.json b/UI/Web/tsconfig.jsonindex 1f73487e2..7a07d5e77 100644--- a/UI/Web/tsconfig.json+++ b/UI/Web/tsconfig.json@@ -16,7 +16,7 @@"experimentalDecorators": true,"moduleResolution": "node","importHelpers": true,- "target": "es2015",+ "target": "ES6","module": "es2020","lib": ["es2019",@@ -27,6 +27,8 @@"angularCompilerOptions": {"strictInjectionParameters": true,"strictInputAccessModifiers": true,- "strictTemplates": true+ "strictTemplates": true,+ "esModuleInterop": true,+ "allowSyntheticDefaultImports": true}}