using Oqtane.Shared; namespace Oqtane.Models { /// /// Resource Objects describe a JavaScript or CSS file which is needed by the Module to work. /// public class Resource { /// /// A so the Interop can properly create `script` or `link` tags /// public ResourceType ResourceType { get; set; } /// /// Path to the resources. /// public string Url { get; set; } /// /// Integrity checks to increase the security of resources accessed. Especially common in CDN resources. /// public string Integrity { get; set; } /// /// Cross-Origin rules for this Resources. Usually `anonymous` /// public string CrossOrigin { get; set; } /// /// Bundle ID in case this Resource belongs to a set of Resources, which may have already been loaded using LoadJS /// public string Bundle { get; set; } /// /// Determines if the Resource is global, meaning that the entire solution uses it or just some modules. /// TODO: VERIFY that this explanation is correct. /// public ResourceDeclaration Declaration { get; set; } /// /// If the Resource should be included in the `head` of the HTML document or the `body` /// public ResourceLocation Location { get; set; } } }