mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-30 19:54:14 -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
27 lines
695 B
C#
27 lines
695 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace API.Entities
|
|
{
|
|
/// <summary>
|
|
/// Represents a saved page in a Chapter entity for a given user.
|
|
/// </summary>
|
|
public class AppUserBookmark
|
|
{
|
|
public int Id { get; set; }
|
|
public int Page { get; set; }
|
|
public int VolumeId { get; set; }
|
|
public int SeriesId { get; set; }
|
|
public int ChapterId { get; set; }
|
|
/// <summary>
|
|
/// Filename in the Bookmark Directory
|
|
/// </summary>
|
|
public string FileName { get; set; }
|
|
|
|
|
|
// Relationships
|
|
[JsonIgnore]
|
|
public AppUser AppUser { get; set; }
|
|
public int AppUserId { get; set; }
|
|
}
|
|
}
|