Fixed a deployment bug where we weren't listening on port properly. New way will force firewall exception dialog on Windows and work across board. Implemented user preferences and ability to update them.
This commit is contained in:
parent
3548a3811c
commit
bd5a1338c4
24 changed files with 987 additions and 5 deletions
|
|
@ -15,6 +15,7 @@ namespace API.Entities
|
|||
public ICollection<AppUserRole> UserRoles { get; set; }
|
||||
public ICollection<AppUserProgress> Progresses { get; set; }
|
||||
public ICollection<AppUserRating> Ratings { get; set; }
|
||||
public AppUserPreferences UserPreferences { get; set; }
|
||||
|
||||
[ConcurrencyCheck]
|
||||
public uint RowVersion { get; set; }
|
||||
|
|
|
|||
21
API/Entities/AppUserPreferences.cs
Normal file
21
API/Entities/AppUserPreferences.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using API.Entities.Enums;
|
||||
|
||||
namespace API.Entities
|
||||
{
|
||||
public class AppUserPreferences
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public ReadingDirection ReadingDirection { get; set; } = ReadingDirection.LeftToRight;
|
||||
public ScalingOption ScalingOption { get; set; } = ScalingOption.FitToHeight;
|
||||
public PageSplitOption PageSplitOption { get; set; } = PageSplitOption.SplitRightToLeft;
|
||||
/// <summary>
|
||||
/// Whether UI hides read Volumes on Details page
|
||||
/// </summary>
|
||||
public bool HideReadOnDetails { get; set; } = false;
|
||||
|
||||
|
||||
|
||||
public AppUser AppUser { get; set; }
|
||||
public int AppUserId { get; set; }
|
||||
}
|
||||
}
|
||||
9
API/Entities/Enums/PageSplitOption.cs
Normal file
9
API/Entities/Enums/PageSplitOption.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace API.Entities.Enums
|
||||
{
|
||||
public enum PageSplitOption
|
||||
{
|
||||
SplitLeftToRight = 0,
|
||||
SplitRightToLeft = 1,
|
||||
NoSplit = 2
|
||||
}
|
||||
}
|
||||
8
API/Entities/Enums/ReadingDirection.cs
Normal file
8
API/Entities/Enums/ReadingDirection.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
namespace API.Entities.Enums
|
||||
{
|
||||
public enum ReadingDirection
|
||||
{
|
||||
LeftToRight = 0,
|
||||
RightToLeft = 1
|
||||
}
|
||||
}
|
||||
9
API/Entities/Enums/ScalingOption.cs
Normal file
9
API/Entities/Enums/ScalingOption.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace API.Entities.Enums
|
||||
{
|
||||
public enum ScalingOption
|
||||
{
|
||||
FitToHeight = 0,
|
||||
FitToWidth = 1,
|
||||
Original = 2
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue