filter deleted pages and modules in the router, provide support for cascading aspect of style sheets, replace ResourceDeclaration concept with ResourceLevel

This commit is contained in:
Shaun Walker
2022-03-31 21:05:58 -04:00
parent 06e25e04f8
commit 0fcf1c2732
18 changed files with 77 additions and 110 deletions

View File

@ -1,3 +1,4 @@
using System;
using Oqtane.Shared;
namespace Oqtane.Models
@ -33,12 +34,12 @@ namespace Oqtane.Models
public string Bundle { get; set; }
/// <summary>
/// Determines if the Resource is global or local, meaning that the entire solution uses it or just some modules.
/// For Stylesheets this defines the relative position for cascading purposes
/// </summary>
public ResourceDeclaration Declaration { get; set; }
public ResourceLevel Level { get; set; }
/// <summary>
/// If the Resource should be included in the `head` of the HTML document or the `body`
/// For Scripts this defines if the resource should be included in the Head or Body
/// </summary>
public ResourceLocation Location { get; set; }
@ -46,5 +47,9 @@ namespace Oqtane.Models
/// For Scripts this allows type="module" registrations - not applicable to Stylesheets
/// </summary>
public bool ES6Module { get; set; }
[Obsolete("ResourceDeclaration is deprecated", false)]
public ResourceDeclaration Declaration { get; set; }
}
}