mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-22 15:00:34 -04:00
* Implemented save covers as webp. Reworked screen to provide more information up front about webp and what browsers can support it. * cleaned up pages to use compact numbering and made compact numbering expand into one decimal place (20.5K) * Fixed an issue with adding new device * If a book has an invalid language set, drop the language altogether rather than reading in a corrupted entry. * Ensure genres and tags render alphabetically. Improved support for partial volumes in Comic parser. * Ensure all people, tags, collections, and genres are in alphabetical order. * Moved some code to Extensions to clean up code. * More unit tests * Cleaned up release year filter css * Tweaked some code in all series to make bulk deletes cleaner on the UI. * Trying out want to read and unread count on series detail page * Added Want to Read button for series page to make it easy to see when something is in want to read list and toggle it. Added tooltips instead of title to buttons, but they don't style correctly. Added a continue point under cover image. * Code smells
73 lines
2.8 KiB
C#
73 lines
2.8 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using API.Services;
|
|
|
|
namespace API.DTOs.Settings;
|
|
|
|
public class ServerSettingDto
|
|
{
|
|
public string CacheDirectory { get; set; }
|
|
public string TaskScan { get; set; }
|
|
/// <summary>
|
|
/// Logging level for server. Managed in appsettings.json.
|
|
/// </summary>
|
|
public string LoggingLevel { get; set; }
|
|
public string TaskBackup { get; set; }
|
|
/// <summary>
|
|
/// Port the server listens on. Managed in appsettings.json.
|
|
/// </summary>
|
|
public int Port { get; set; }
|
|
/// <summary>
|
|
/// Allows anonymous information to be collected and sent to KavitaStats
|
|
/// </summary>
|
|
public bool AllowStatCollection { get; set; }
|
|
/// <summary>
|
|
/// Enables OPDS connections to be made to the server.
|
|
/// </summary>
|
|
public bool EnableOpds { get; set; }
|
|
/// <summary>
|
|
/// Base Url for the kavita. Requires restart to take effect.
|
|
/// </summary>
|
|
public string BaseUrl { get; set; }
|
|
/// <summary>
|
|
/// Where Bookmarks are stored.
|
|
/// </summary>
|
|
/// <remarks>If null or empty string, will default back to default install setting aka <see cref="DirectoryService.BookmarkDirectory"/></remarks>
|
|
public string BookmarksDirectory { get; set; }
|
|
/// <summary>
|
|
/// Email service to use for the invite user flow, forgot password, etc.
|
|
/// </summary>
|
|
/// <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; }
|
|
/// <summary>
|
|
/// Represents a unique Id to this Kavita installation. Only used in Stats to identify unique installs.
|
|
/// </summary>
|
|
public string InstallId { get; set; }
|
|
/// <summary>
|
|
/// If the server should save bookmarks as WebP encoding
|
|
/// </summary>
|
|
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;
|
|
/// <summary>
|
|
/// If Kavita should watch the library folders and process changes
|
|
/// </summary>
|
|
public bool EnableFolderWatching { get; set; } = true;
|
|
/// <summary>
|
|
/// Total number of days worth of logs to keep at a given time.
|
|
/// </summary>
|
|
/// <remarks>Value should be between 1 and 30</remarks>
|
|
public int TotalLogs { get; set; }
|
|
/// <summary>
|
|
/// If the server should save covers as WebP encoding
|
|
/// </summary>
|
|
public bool ConvertCoverToWebP { get; set; }
|
|
}
|