New Feature Stats (#1179)

* When searching, search against normalized names.

* Added new stat fields
This commit is contained in:
Joseph Milazzo 2022-03-27 08:16:43 -05:00 committed by GitHub
parent fbb8934eef
commit 0622d8a874
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 80 additions and 16 deletions

View file

@ -1,4 +1,6 @@
namespace API.DTOs.Stats
using API.Entities.Enums;
namespace API.DTOs.Stats
{
public class ServerInfoDto
{
@ -10,5 +12,39 @@
public int NumOfCores { get; set; }
public int NumberOfLibraries { get; set; }
public bool HasBookmarks { get; set; }
/// <summary>
/// The site theme the install is using
/// </summary>
public string ActiveSiteTheme { get; set; }
/// <summary>
/// The reading mode the main user has as a preference
/// </summary>
public ReaderMode MangaReaderMode { get; set; }
/// <summary>
/// Number of users on the install
/// </summary>
public int NumberOfUsers { get; set; }
/// <summary>
/// Number of collections on the install
/// </summary>
public int NumberOfCollections { get; set; }
/// <summary>
/// Number of reading lists on the install (Sum of all users)
/// </summary>
public int NumberOfReadingLists { get; set; }
/// <summary>
/// Is OPDS enabled
/// </summary>
public bool OPDSEnabled { get; set; }
/// <summary>
/// Total number of files in the instance
/// </summary>
public int TotalFiles { get; set; }
}
}