Added support for File descriptions, Folder capacity and image sizes. Added image resizing capability using ImageSharp - implemented in user profile. Added parameter to disable image preview in FileManager component. Overhauled Pager component and added Columns parameter for Grid mode. Populated PageState.User.IsAuthenticated in SiteRouter. Added support for zero price commercial extentions.

This commit is contained in:
Shaun Walker
2021-09-15 08:02:55 -04:00
parent ba7524b754
commit 898b908c1b
26 changed files with 525 additions and 241 deletions

View File

@ -50,6 +50,11 @@ namespace Oqtane.Models
/// </summary>
public int ImageWidth { get; set; }
/// <summary>
/// Description of a file
/// </summary>
public string Description { get; set; }
#region IAuditable Properties
/// <inheritdoc />

View File

@ -45,7 +45,17 @@ namespace Oqtane.Models
public int Order { get; set; }
/// <summary>
/// TODO: unclear what this is for
/// List of image sizes which can be generated dynamically from uploaded images (ie. 200x200,x200,200x)
/// </summary>
public string ImageSizes { get; set; }
/// <summary>
/// Maximum folder capacity (in bytes)
/// </summary>
public int Capacity { get; set; }
/// <summary>
/// Folder is a dependency of the framework and cannot be modified or removed
/// </summary>
public bool IsSystem { get; set; }

View File

@ -67,24 +67,28 @@ namespace Oqtane.Models
/// </summary>
public int Vulnerabilities { get; set; }
/// <summary>
/// The price of the package ( if commercial )
/// </summary>
public decimal Price { get; set; }
#region Commercial Properties
/// <summary>
/// The Url for purchasing the package ( if commercial )
/// The price of the package
/// </summary>
public decimal? Price { get; set; }
/// <summary>
/// The Url for purchasing the package
/// </summary>
public string PaymentUrl { get; set; }
/// <summary>
/// The trial period in days ( if commercial )
/// The trial period in days
/// </summary>
public int TrialPeriod { get; set; }
/// <summary>
/// The expiry date of the package ( if commercial )
/// The expiry date of the package
/// </summary>
public DateTime? ExpiryDate { get; set; }
#endregion
}
}

View File

@ -88,5 +88,14 @@ namespace Oqtane.Models
/// </summary>
[NotMapped]
public bool IsAuthenticated { get; set; }
/// <summary>
/// The path name of the user's personal folder
/// </summary>
[NotMapped]
public string FolderPath
{
get => "Users\\" + UserId.ToString() + "\\";
}
}
}