mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-22 15:00:34 -04:00
* Fixed a bug where when clicking on a series rating for first time, the rating wasn't populating in the modal. * Fixed a bug on Scroll mode with immersive mode, the bottom bar could clip with the book body. * Cleanup some uses of var * Refactored text as json into a type so I don't have to copy/paste everywhere * Theme styles now override the defaults and theme owners no longer need to maintain all the variables themselves. Themes can now override the color of the header on mobile devices via --theme-color and Kavita will now update both theme color as well as color scheme. * Fixed a bug where last active on user stats wasn't for the particular user. * Added a more accurate word count calculation and the ability to see the word counts year over year. * Added a new table for long term statistics, like number of files over the years. No views are present for this data, I will add them later.
30 lines
970 B
C#
30 lines
970 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace API.DTOs.Statistics;
|
|
|
|
public class ServerStatisticsDto
|
|
{
|
|
public long ChapterCount { get; set; }
|
|
public long VolumeCount { get; set; }
|
|
public long SeriesCount { get; set; }
|
|
public long TotalFiles { get; set; }
|
|
public long TotalSize { get; set; }
|
|
public long TotalGenres { get; set; }
|
|
public long TotalTags { get; set; }
|
|
public long TotalPeople { get; set; }
|
|
public IEnumerable<ICount<SeriesDto>> MostReadSeries { get; set; }
|
|
/// <summary>
|
|
/// Total users who have started/reading/read per series
|
|
/// </summary>
|
|
public IEnumerable<ICount<SeriesDto>> MostPopularSeries { get; set; }
|
|
public IEnumerable<ICount<UserDto>> MostActiveUsers { get; set; }
|
|
public IEnumerable<ICount<LibraryDto>> MostActiveLibraries { get; set; }
|
|
/// <summary>
|
|
/// Last 5 Series read
|
|
/// </summary>
|
|
public IEnumerable<SeriesDto> RecentlyRead { get; set; }
|
|
|
|
|
|
}
|