Central management of resources ( ie. stylesheets and scripts )

This commit is contained in:
Shaun Walker
2020-05-16 12:00:15 -04:00
parent 1b2600c6c4
commit 54d4447d23
12 changed files with 127 additions and 16 deletions

View File

@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace Oqtane.Models
@ -33,6 +34,8 @@ namespace Oqtane.Models
[NotMapped]
public string Panes { get; set; }
[NotMapped]
public List<Resource> Resources { get; set; }
[NotMapped]
public string Permissions { get; set; }
[NotMapped]
public int Level { get; set; }

View File

@ -0,0 +1,12 @@
using Oqtane.Shared;
namespace Oqtane.Models
{
public class Resource
{
public ResourceType ResourceType { get; set; }
public string Url { get; set; }
public string Integrity { get; set; }
public string CrossOrigin { get; set; }
}
}

View File

@ -1,4 +1,6 @@
namespace Oqtane.Models
using System.Collections.Generic;
namespace Oqtane.Models
{
public class Theme
{