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:
@ -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 />
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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() + "\\";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user