Added support for friendly names and thumbnails in theme, layout, and container components. Added fallback support during loading for themes, layout, and containers.
This commit is contained in:
@ -5,7 +5,9 @@ namespace Oqtane.Themes
|
||||
{
|
||||
public interface IThemeControl
|
||||
{
|
||||
string Panes { get; } // identifies all panes in a theme ( delimited by ";" ) - assumed to be a layout if no panes specified
|
||||
string Name { get; } // friendly name for a theme
|
||||
string Thumbnail { get; } // screen shot of a theme - assumed to be in the ThemePath() folder
|
||||
string Panes { get; } // identifies all panes in a theme ( delimited by "," or ";") - assumed to be a layout if no panes specified
|
||||
List<Resource> Resources { get; } // identifies all resources in a theme
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
@ -23,9 +24,16 @@ namespace Oqtane.Models
|
||||
public string Contact { get; set; }
|
||||
public string License { get; set; }
|
||||
public string Dependencies { get; set; }
|
||||
public string ThemeControls { get; set; }
|
||||
public string PaneLayouts { get; set; }
|
||||
public string ContainerControls { get; set; }
|
||||
public string AssemblyName { get; set; }
|
||||
public List<ThemeControl> Themes { get; set; }
|
||||
public List<ThemeControl> Layouts { get; set; }
|
||||
public List<ThemeControl> Containers { get; set; }
|
||||
|
||||
//[Obsolete("This property is obsolete. Use Themes instead.", false)]
|
||||
public string ThemeControls { get; set; }
|
||||
//[Obsolete("This property is obsolete. Use Layouts instead.", false)]
|
||||
public string PaneLayouts { get; set; }
|
||||
//[Obsolete("This property is obsolete. Use Containers instead.", false)]
|
||||
public string ContainerControls { get; set; }
|
||||
}
|
||||
}
|
||||
|
10
Oqtane.Shared/Models/ThemeControl.cs
Normal file
10
Oqtane.Shared/Models/ThemeControl.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class ThemeControl
|
||||
{
|
||||
public string TypeName { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Thumbnail { get; set; }
|
||||
public string Panes { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user