Added Favicon support, Progressive Web App support, page title and url support, and private/public user registration options

This commit is contained in:
Shaun Walker
2020-03-30 20:42:43 -04:00
parent 928111dbac
commit 35f87d25be
23 changed files with 422 additions and 47 deletions

View File

@ -9,8 +9,10 @@ namespace Oqtane.Models
public int SiteId { get; set; }
public int? ParentId { get; set; }
public string Name { get; set; }
public string Title { get; set; }
public string Path { get; set; }
public int Order { get; set; }
public string Url { get; set; }
public string ThemeType { get; set; }
public string LayoutType { get; set; }
public string Icon { get; set; }

View File

@ -9,9 +9,14 @@ namespace Oqtane.Models
public int TenantId { get; set; }
public string Name { get; set; }
public int? LogoFileId { get; set; }
public int? FaviconFileId { get; set; }
public string DefaultThemeType { get; set; }
public string DefaultLayoutType { get; set; }
public string DefaultContainerType { get; set; }
public bool PwaIsEnabled { get; set; }
public int? PwaAppIconFileId { get; set; }
public int? PwaSplashIconFileId { get; set; }
public bool AllowRegistration { get; set; }
public string CreatedBy { get; set; }
public DateTime CreatedOn { get; set; }

View File

@ -56,6 +56,13 @@ namespace Oqtane.Shared
return url;
}
public static string ContentUrl(string alias, int fileid)
{
string url = (alias == "") ? "/~" : alias;
url += Constants.ContentUrl + fileid.ToString();
return url;
}
public static string GetTypeName(string fullyqualifiedtypename)
{
if (fullyqualifiedtypename.Contains(","))