mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-24 00:52:23 -04:00
* Fixed a bug which didn't take sort direction when not changing sort field * Added foundation for Bookmark refactor * Code broken, need to take a break. Issue is Getting bookmark image needs authentication but UI doesn't send. * Implemented the ability to send bookmarked files to the web. Implemented ability to clear bookmarks on disk on a re-occuring basis. * Updated the bookmark design to have it's own card that is self contained. View bookmarks modal has been updated to better lay out the cards. * Refactored download bookmark codes to select files from bookmark directory directly rather than open underlying files. * Wrote the basic logic to kick start the bookmark migration. Added Installed Version into the DB to allow us to know more accurately when to run migrations * Implemented the ability to change the bookmarks directory * Updated all references to BookmarkDirectory to use setting from the DB. Updated Server Settings page to use 2 col for some rows. * Refactored some code to DirectoryService (hasWriteAccess) and fixed up some unit tests from a previous PR. * Treat folders that start with ._ as blacklisted. * Implemented Reset User preferences. Some extra code to prep for the migration. * Implemented a migration for existing bookmarks to using new filesystem based bookmarks
42 lines
1.5 KiB
C#
42 lines
1.5 KiB
C#
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>
|
|
/// Enables Authentication on the server. Defaults to true.
|
|
/// </summary>
|
|
public bool EnableAuthentication { 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; }
|
|
}
|
|
}
|