Optimized page reloading
This commit is contained in:
@ -89,8 +89,7 @@
|
|||||||
if (user.IsAuthenticated)
|
if (user.IsAuthenticated)
|
||||||
{
|
{
|
||||||
authstateprovider.NotifyAuthenticationChanged();
|
authstateprovider.NotifyAuthenticationChanged();
|
||||||
PageState.Reload = Constants.ReloadSite;
|
NavigationManager.NavigateTo(NavigateUrl(ReturnUrl, Reload.Site));
|
||||||
NavigationManager.NavigateTo(NavigateUrl(ReturnUrl));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -45,7 +45,6 @@ else
|
|||||||
private async Task InstallFile()
|
private async Task InstallFile()
|
||||||
{
|
{
|
||||||
await ModuleDefinitionService.InstallModulesAsync();
|
await ModuleDefinitionService.InstallModulesAsync();
|
||||||
PageState.Reload = Constants.ReloadApplication;
|
NavigationManager.NavigateTo(NavigateUrl(Reload.Application));
|
||||||
NavigationManager.NavigateTo(NavigateUrl());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -121,8 +121,7 @@
|
|||||||
moduleType.GetMethod("UpdateSettings").Invoke(settings, null); // method must be public in settings component
|
moduleType.GetMethod("UpdateSettings").Invoke(settings, null); // method must be public in settings component
|
||||||
}
|
}
|
||||||
|
|
||||||
PageState.Reload = Constants.ReloadPage;
|
NavigationManager.NavigateTo(NavigateUrl(Reload.Page));
|
||||||
NavigationManager.NavigateTo(NavigateUrl());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -278,8 +278,7 @@
|
|||||||
await PageService.AddPageAsync(page);
|
await PageService.AddPageAsync(page);
|
||||||
await PageService.UpdatePageOrderAsync(page.SiteId, page.ParentId);
|
await PageService.UpdatePageOrderAsync(page.SiteId, page.ParentId);
|
||||||
|
|
||||||
PageState.Reload = Constants.ReloadSite;
|
NavigationManager.NavigateTo(NavigateUrl(page.Path, Reload.Site));
|
||||||
NavigationManager.NavigateTo(NavigateUrl(page.Path));
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -179,15 +179,7 @@
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
await PageService.DeletePageAsync(Int32.Parse(PageState.QueryString["id"]));
|
await PageService.DeletePageAsync(Int32.Parse(PageState.QueryString["id"]));
|
||||||
PageState.Reload = Constants.ReloadSite;
|
NavigationManager.NavigateTo(NavigateUrl("", Reload.Site));
|
||||||
if (PageState.Page.Name == "Page Management")
|
|
||||||
{
|
|
||||||
NavigationManager.NavigateTo(NavigateUrl());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
NavigationManager.NavigateTo(NavigateUrl(""));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -354,8 +354,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PageState.Reload = Constants.ReloadSite;
|
NavigationManager.NavigateTo(NavigateUrl(page.Path, Reload.Site));
|
||||||
NavigationManager.NavigateTo(NavigateUrl(page.Path));
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
50
Oqtane.Client/Modules/Admin/Themes/Add.razor
Normal file
50
Oqtane.Client/Modules/Admin/Themes/Add.razor
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
@using Microsoft.AspNetCore.Components.Routing
|
||||||
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
|
@using Oqtane.Modules.Controls
|
||||||
|
@using Oqtane.Modules
|
||||||
|
@using Oqtane.Services
|
||||||
|
@using Oqtane.Shared
|
||||||
|
@namespace Oqtane.Modules.Admin.Themes
|
||||||
|
@inherits ModuleBase
|
||||||
|
@inject NavigationManager NavigationManager
|
||||||
|
@inject IFileService FileService
|
||||||
|
@inject IThemeService ThemeService
|
||||||
|
|
||||||
|
<table class="table table-borderless">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<label for="Name" class="control-label">Theme: </label>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<FileUpload Filter=".nupkg"></FileUpload>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
@if (uploaded)
|
||||||
|
{
|
||||||
|
<button type="button" class="btn btn-success" @onclick="InstallFile">Install</button>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<button type="button" class="btn btn-success" @onclick="UploadFile">Upload</button>
|
||||||
|
}
|
||||||
|
<NavLink class="btn btn-secondary" href="@NavigateUrl()">Cancel</NavLink>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
public override SecurityAccessLevel SecurityAccessLevel { get { return SecurityAccessLevel.Host; } }
|
||||||
|
|
||||||
|
bool uploaded = false;
|
||||||
|
|
||||||
|
private async Task UploadFile()
|
||||||
|
{
|
||||||
|
await FileService.UploadFilesAsync("Themes");
|
||||||
|
uploaded = true;
|
||||||
|
StateHasChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
private async Task InstallFile()
|
||||||
|
{
|
||||||
|
await ThemeService.InstallThemesAsync();
|
||||||
|
NavigationManager.NavigateTo(NavigateUrl(Reload.Application));
|
||||||
|
}
|
||||||
|
}
|
@ -2,9 +2,9 @@
|
|||||||
@using Oqtane.Services
|
@using Oqtane.Services
|
||||||
@using Oqtane.Models
|
@using Oqtane.Models
|
||||||
@using Oqtane.Modules
|
@using Oqtane.Modules
|
||||||
|
@using Oqtane.Modules.Controls
|
||||||
@namespace Oqtane.Modules.Admin.Themes
|
@namespace Oqtane.Modules.Admin.Themes
|
||||||
@inherits ModuleBase
|
@inherits ModuleBase
|
||||||
|
|
||||||
@inject IThemeService ThemeService
|
@inject IThemeService ThemeService
|
||||||
|
|
||||||
@if (Themes == null)
|
@if (Themes == null)
|
||||||
@ -13,6 +13,7 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
<ActionLink Action="Add" Text="Install Theme" />
|
||||||
<table class="table table-borderless">
|
<table class="table table-borderless">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -80,8 +80,7 @@
|
|||||||
htmltext.Content = content;
|
htmltext.Content = content;
|
||||||
await htmltextservice.AddHtmlTextAsync(htmltext);
|
await htmltextservice.AddHtmlTextAsync(htmltext);
|
||||||
}
|
}
|
||||||
PageState.Reload = Constants.ReloadPage;
|
NavigationManager.NavigateTo(NavigateUrl(Reload.Page));
|
||||||
NavigationManager.NavigateTo(NavigateUrl());
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -6,6 +6,7 @@ using Microsoft.AspNetCore.Components;
|
|||||||
using Oqtane.Services;
|
using Oqtane.Services;
|
||||||
using Oqtane.Modules.HtmlText.Models;
|
using Oqtane.Modules.HtmlText.Models;
|
||||||
using Oqtane.Shared;
|
using Oqtane.Shared;
|
||||||
|
using System.Text.Json;
|
||||||
|
|
||||||
namespace Oqtane.Modules.HtmlText.Services
|
namespace Oqtane.Modules.HtmlText.Services
|
||||||
{
|
{
|
||||||
@ -29,7 +30,17 @@ namespace Oqtane.Modules.HtmlText.Services
|
|||||||
|
|
||||||
public async Task<HtmlTextInfo> GetHtmlTextAsync(int ModuleId)
|
public async Task<HtmlTextInfo> GetHtmlTextAsync(int ModuleId)
|
||||||
{
|
{
|
||||||
return await http.GetJsonAsync<HtmlTextInfo>(apiurl + "/" + ModuleId.ToString() + "?entityid=" + ModuleId.ToString());
|
HtmlTextInfo htmltext;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// exception handling is required because GetJsonAsync() returns an error if no content exists for the ModuleId ( https://github.com/aspnet/AspNetCore/issues/14041 )
|
||||||
|
htmltext = await http.GetJsonAsync<HtmlTextInfo>(apiurl + "/" + ModuleId.ToString() + "?entityid=" + ModuleId.ToString());
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
htmltext = null;
|
||||||
|
}
|
||||||
|
return htmltext;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task AddHtmlTextAsync(HtmlTextInfo htmltext)
|
public async Task AddHtmlTextAsync(HtmlTextInfo htmltext)
|
||||||
|
@ -25,14 +25,29 @@ namespace Oqtane.Modules
|
|||||||
return NavigateUrl(PageState.Page.Path);
|
return NavigateUrl(PageState.Page.Path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string NavigateUrl(Reload reload)
|
||||||
|
{
|
||||||
|
return NavigateUrl(PageState.Page.Path, reload);
|
||||||
|
}
|
||||||
|
|
||||||
public string NavigateUrl(string path)
|
public string NavigateUrl(string path)
|
||||||
{
|
{
|
||||||
return NavigateUrl(path, "");
|
return NavigateUrl(path, "", Reload.None);
|
||||||
|
}
|
||||||
|
|
||||||
|
public string NavigateUrl(string path, Reload reload)
|
||||||
|
{
|
||||||
|
return NavigateUrl(path, "", reload);
|
||||||
}
|
}
|
||||||
|
|
||||||
public string NavigateUrl(string path, string parameters)
|
public string NavigateUrl(string path, string parameters)
|
||||||
{
|
{
|
||||||
return Utilities.NavigateUrl(PageState.Alias.Path, path, parameters);
|
return Utilities.NavigateUrl(PageState.Alias.Path, path, parameters, Reload.None);
|
||||||
|
}
|
||||||
|
|
||||||
|
public string NavigateUrl(string path, string parameters, Reload reload)
|
||||||
|
{
|
||||||
|
return Utilities.NavigateUrl(PageState.Alias.Path, path, parameters, reload);
|
||||||
}
|
}
|
||||||
|
|
||||||
public string EditUrl(string action)
|
public string EditUrl(string action)
|
||||||
|
@ -10,5 +10,6 @@ namespace Oqtane.Services
|
|||||||
Dictionary<string, string> GetThemeTypes(List<Theme> themes);
|
Dictionary<string, string> GetThemeTypes(List<Theme> themes);
|
||||||
Dictionary<string, string> GetPaneLayoutTypes(List<Theme> themes);
|
Dictionary<string, string> GetPaneLayoutTypes(List<Theme> themes);
|
||||||
Dictionary<string, string> GetContainerTypes(List<Theme> themes);
|
Dictionary<string, string> GetContainerTypes(List<Theme> themes);
|
||||||
|
Task InstallThemesAsync();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -99,5 +99,10 @@ namespace Oqtane.Services
|
|||||||
}
|
}
|
||||||
return selectableContainers;
|
return selectableContainers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async Task InstallThemesAsync()
|
||||||
|
{
|
||||||
|
await http.GetJsonAsync<List<string>>(apiurl + "/install");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,5 @@ namespace Oqtane.Shared
|
|||||||
public string Control { get; set; }
|
public string Control { get; set; }
|
||||||
public bool EditMode { get; set; }
|
public bool EditMode { get; set; }
|
||||||
public bool DesignMode { get; set; }
|
public bool DesignMode { get; set; }
|
||||||
public int Reload { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
10
Oqtane.Client/Shared/Reload.cs
Normal file
10
Oqtane.Client/Shared/Reload.cs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
namespace Oqtane.Shared
|
||||||
|
{
|
||||||
|
public enum Reload
|
||||||
|
{
|
||||||
|
None,
|
||||||
|
Page,
|
||||||
|
Site,
|
||||||
|
Application
|
||||||
|
}
|
||||||
|
}
|
@ -90,16 +90,34 @@
|
|||||||
string control = "";
|
string control = "";
|
||||||
bool editmode = false;
|
bool editmode = false;
|
||||||
bool designmode = false;
|
bool designmode = false;
|
||||||
int reload = 0;
|
Reload reload = Reload.None;
|
||||||
|
|
||||||
|
// get Url path and querystring ( and remove anchors )
|
||||||
|
string path = new Uri(_absoluteUri).PathAndQuery.Substring(1);
|
||||||
|
if (path.IndexOf("#") != -1)
|
||||||
|
{
|
||||||
|
path = path.Substring(0, path.IndexOf("#"));
|
||||||
|
}
|
||||||
|
|
||||||
|
// parse querystring and remove
|
||||||
|
Dictionary<string, string> querystring = new Dictionary<string, string>();
|
||||||
|
if (path.IndexOf("?") != -1)
|
||||||
|
{
|
||||||
|
querystring = ParseQueryString(path);
|
||||||
|
path = path.Substring(0, path.IndexOf("?"));
|
||||||
|
}
|
||||||
|
if (querystring.ContainsKey("reload"))
|
||||||
|
{
|
||||||
|
reload = (Reload)int.Parse(querystring["reload"]);
|
||||||
|
}
|
||||||
|
|
||||||
if (PageState != null)
|
if (PageState != null)
|
||||||
{
|
{
|
||||||
reload = PageState.Reload;
|
|
||||||
editmode = PageState.EditMode;
|
editmode = PageState.EditMode;
|
||||||
designmode = PageState.DesignMode;
|
designmode = PageState.DesignMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PageState == null || reload == Constants.ReloadApplication)
|
if (PageState == null || reload == Reload.Application)
|
||||||
{
|
{
|
||||||
moduledefinitions = await ModuleDefinitionService.GetModuleDefinitionsAsync();
|
moduledefinitions = await ModuleDefinitionService.GetModuleDefinitionsAsync();
|
||||||
themes = await ThemeService.GetThemesAsync();
|
themes = await ThemeService.GetThemesAsync();
|
||||||
@ -119,9 +137,9 @@
|
|||||||
{
|
{
|
||||||
alias = GetAlias(_absoluteUri, aliases);
|
alias = GetAlias(_absoluteUri, aliases);
|
||||||
SiteState.Alias = alias; // set state for services
|
SiteState.Alias = alias; // set state for services
|
||||||
reload = Constants.ReloadSite;
|
reload = Reload.Site;
|
||||||
}
|
}
|
||||||
if (PageState == null || reload <= Constants.ReloadSite)
|
if (PageState == null || reload <= Reload.Site)
|
||||||
{
|
{
|
||||||
site = await SiteService.GetSiteAsync(alias.SiteId);
|
site = await SiteService.GetSiteAsync(alias.SiteId);
|
||||||
}
|
}
|
||||||
@ -131,7 +149,7 @@
|
|||||||
}
|
}
|
||||||
if (site != null)
|
if (site != null)
|
||||||
{
|
{
|
||||||
if (PageState == null || reload >= Constants.ReloadSite)
|
if (PageState == null || reload >= Reload.Site)
|
||||||
{
|
{
|
||||||
pages = await PageService.GetPagesAsync(site.SiteId);
|
pages = await PageService.GetPagesAsync(site.SiteId);
|
||||||
}
|
}
|
||||||
@ -140,21 +158,6 @@
|
|||||||
pages = PageState.Pages;
|
pages = PageState.Pages;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get Url path and querystring ( and remove anchors )
|
|
||||||
string path = new Uri(_absoluteUri).PathAndQuery.Substring(1);
|
|
||||||
if (path.IndexOf("#") != -1)
|
|
||||||
{
|
|
||||||
path = path.Substring(0, path.IndexOf("#"));
|
|
||||||
}
|
|
||||||
|
|
||||||
// parse querystring and remove
|
|
||||||
Dictionary<string, string> querystring = new Dictionary<string, string>();
|
|
||||||
if (path.IndexOf("?") != -1)
|
|
||||||
{
|
|
||||||
querystring = ParseQueryString(path);
|
|
||||||
path = path.Substring(0, path.IndexOf("?"));
|
|
||||||
}
|
|
||||||
|
|
||||||
// format path and remove alias
|
// format path and remove alias
|
||||||
path = path.Replace("//", "/");
|
path = path.Replace("//", "/");
|
||||||
if (!path.EndsWith("/")) { path += "/"; }
|
if (!path.EndsWith("/")) { path += "/"; }
|
||||||
@ -185,7 +188,7 @@
|
|||||||
// remove trailing slash so it can be used as a key for Pages
|
// remove trailing slash so it can be used as a key for Pages
|
||||||
if (path.EndsWith("/")) path = path.Substring(0, path.Length - 1);
|
if (path.EndsWith("/")) path = path.Substring(0, path.Length - 1);
|
||||||
|
|
||||||
if (PageState == null || reload >= Constants.ReloadPage)
|
if (PageState == null || reload >= Reload.Page)
|
||||||
{
|
{
|
||||||
page = pages.Where(item => item.Path == path).FirstOrDefault();
|
page = pages.Where(item => item.Path == path).FirstOrDefault();
|
||||||
}
|
}
|
||||||
@ -204,13 +207,13 @@
|
|||||||
if (page.Path != path)
|
if (page.Path != path)
|
||||||
{
|
{
|
||||||
page = pages.Where(item => item.Path == path).FirstOrDefault();
|
page = pages.Where(item => item.Path == path).FirstOrDefault();
|
||||||
reload = Constants.ReloadPage;
|
reload = Reload.Page;
|
||||||
editmode = page.EditMode;
|
editmode = page.EditMode;
|
||||||
designmode = false;
|
designmode = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
user = null;
|
user = null;
|
||||||
if (PageState == null || reload >= Constants.ReloadPage)
|
if (PageState == null || reload >= Reload.Page)
|
||||||
{
|
{
|
||||||
var authState = await AuthenticationStateProvider.GetAuthenticationStateAsync();
|
var authState = await AuthenticationStateProvider.GetAuthenticationStateAsync();
|
||||||
if (authState.User.Identity.IsAuthenticated)
|
if (authState.User.Identity.IsAuthenticated)
|
||||||
@ -244,10 +247,10 @@
|
|||||||
|
|
||||||
if (PageState != null && (PageState.ModuleId != pagestate.ModuleId || PageState.Control != pagestate.Control))
|
if (PageState != null && (PageState.ModuleId != pagestate.ModuleId || PageState.Control != pagestate.Control))
|
||||||
{
|
{
|
||||||
reload = Constants.ReloadPage;
|
reload = Reload.Page;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PageState == null || reload >= Constants.ReloadPage)
|
if (PageState == null || reload >= Reload.Page)
|
||||||
{
|
{
|
||||||
modules = await ModuleService.GetModulesAsync(page.PageId);
|
modules = await ModuleService.GetModulesAsync(page.PageId);
|
||||||
modules = ProcessModules(modules, moduledefinitions, pagestate.Control, page.Panes);
|
modules = ProcessModules(modules, moduledefinitions, pagestate.Control, page.Panes);
|
||||||
@ -259,7 +262,6 @@
|
|||||||
pagestate.Modules = modules;
|
pagestate.Modules = modules;
|
||||||
pagestate.EditMode = editmode;
|
pagestate.EditMode = editmode;
|
||||||
pagestate.DesignMode = designmode;
|
pagestate.DesignMode = designmode;
|
||||||
pagestate.Reload = Constants.ReloadReset;
|
|
||||||
|
|
||||||
OnStateChange?.Invoke(pagestate);
|
OnStateChange?.Invoke(pagestate);
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ namespace Oqtane.Shared
|
|||||||
public class Utilities
|
public class Utilities
|
||||||
{
|
{
|
||||||
|
|
||||||
public static string NavigateUrl(string alias, string path, string parameters)
|
public static string NavigateUrl(string alias, string path, string parameters, Reload reload)
|
||||||
{
|
{
|
||||||
string url = "";
|
string url = "";
|
||||||
if (alias != "")
|
if (alias != "")
|
||||||
@ -25,6 +25,10 @@ namespace Oqtane.Shared
|
|||||||
{
|
{
|
||||||
url += "?" + parameters;
|
url += "?" + parameters;
|
||||||
}
|
}
|
||||||
|
if (reload != Reload.None)
|
||||||
|
{
|
||||||
|
url += ((string.IsNullOrEmpty(parameters)) ? "?" : "&") + "reload=" + ((int)reload).ToString();
|
||||||
|
}
|
||||||
if (!url.StartsWith("/"))
|
if (!url.StartsWith("/"))
|
||||||
{
|
{
|
||||||
url = "/" + url;
|
url = "/" + url;
|
||||||
@ -34,7 +38,7 @@ namespace Oqtane.Shared
|
|||||||
|
|
||||||
public static string EditUrl(string alias, string path, int moduleid, string action, string parameters)
|
public static string EditUrl(string alias, string path, int moduleid, string action, string parameters)
|
||||||
{
|
{
|
||||||
string url = NavigateUrl(alias, path, "");
|
string url = NavigateUrl(alias, path, "", Reload.None);
|
||||||
if (url == "/") url = "";
|
if (url == "/") url = "";
|
||||||
if (moduleid != -1)
|
if (moduleid != -1)
|
||||||
{
|
{
|
||||||
|
@ -19,15 +19,31 @@ namespace Oqtane.Themes
|
|||||||
return NavigateUrl(PageState.Page.Path);
|
return NavigateUrl(PageState.Page.Path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string NavigateUrl(Reload reload)
|
||||||
|
{
|
||||||
|
return NavigateUrl(PageState.Page.Path, reload);
|
||||||
|
}
|
||||||
|
|
||||||
public string NavigateUrl(string path)
|
public string NavigateUrl(string path)
|
||||||
{
|
{
|
||||||
return NavigateUrl(path, "");
|
return NavigateUrl(path, "", Reload.None);
|
||||||
|
}
|
||||||
|
|
||||||
|
public string NavigateUrl(string path, Reload reload)
|
||||||
|
{
|
||||||
|
return NavigateUrl(path, "", reload);
|
||||||
}
|
}
|
||||||
|
|
||||||
public string NavigateUrl(string path, string parameters)
|
public string NavigateUrl(string path, string parameters)
|
||||||
{
|
{
|
||||||
return Utilities.NavigateUrl(PageState.Alias.Path, path, parameters);
|
return Utilities.NavigateUrl(PageState.Alias.Path, path, parameters, Reload.None);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string NavigateUrl(string path, string parameters, Reload reload)
|
||||||
|
{
|
||||||
|
return Utilities.NavigateUrl(PageState.Alias.Path, path, parameters, reload);
|
||||||
|
}
|
||||||
|
|
||||||
public string EditUrl(string action, string parameters)
|
public string EditUrl(string action, string parameters)
|
||||||
{
|
{
|
||||||
return EditUrl(ModuleState.ModuleId, action, parameters);
|
return EditUrl(ModuleState.ModuleId, action, parameters);
|
||||||
|
@ -164,8 +164,7 @@
|
|||||||
await PageModuleService.AddPageModuleAsync(pagemodule);
|
await PageModuleService.AddPageModuleAsync(pagemodule);
|
||||||
await PageModuleService.UpdatePageModuleOrderAsync(pagemodule.PageId, pagemodule.Pane);
|
await PageModuleService.UpdatePageModuleOrderAsync(pagemodule.PageId, pagemodule.Pane);
|
||||||
|
|
||||||
PageState.Reload = Constants.ReloadPage;
|
NavigationManager.NavigateTo(NavigateUrl(Reload.Page));
|
||||||
NavigationManager.NavigateTo(NavigateUrl());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -204,8 +203,7 @@
|
|||||||
PageState.EditMode = true;
|
PageState.EditMode = true;
|
||||||
PageState.DesignMode = true;
|
PageState.DesignMode = true;
|
||||||
}
|
}
|
||||||
PageState.Reload = Constants.ReloadPage;
|
NavigationManager.NavigateTo(NavigateUrl(PageState.Page.Path, "edit=" + PageState.EditMode.ToString().ToLower(), Reload.Page));
|
||||||
NavigationManager.NavigateTo(NavigateUrl(PageState.Page.Path, "edit=" + PageState.EditMode.ToString().ToLower()));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -53,8 +53,7 @@
|
|||||||
{
|
{
|
||||||
// client-side Blazor
|
// client-side Blazor
|
||||||
authstateprovider.NotifyAuthenticationChanged();
|
authstateprovider.NotifyAuthenticationChanged();
|
||||||
PageState.Reload = Constants.ReloadSite;
|
NavigationManager.NavigateTo(NavigateUrl(PageState.Page.Path, "logout", Reload.Site));
|
||||||
NavigationManager.NavigateTo(NavigateUrl(PageState.Page.Path, "logout"));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
{
|
{
|
||||||
PageModule pagemodule = await PageModuleService.GetPageModuleAsync(ModuleState.PageModuleId);
|
PageModule pagemodule = await PageModuleService.GetPageModuleAsync(ModuleState.PageModuleId);
|
||||||
|
|
||||||
string url = NavigateUrl();
|
string url = NavigateUrl(Reload.Page);
|
||||||
switch (action)
|
switch (action)
|
||||||
{
|
{
|
||||||
case "<<":
|
case "<<":
|
||||||
@ -104,7 +104,6 @@
|
|||||||
await PageModuleService.UpdatePageModuleOrderAsync(pagemodule.PageId, pane);
|
await PageModuleService.UpdatePageModuleOrderAsync(pagemodule.PageId, pane);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
PageState.Reload = Constants.ReloadPage;
|
|
||||||
NavigationManager.NavigateTo(url);
|
NavigationManager.NavigateTo(url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,14 +15,29 @@ namespace Oqtane.Themes
|
|||||||
return NavigateUrl(PageState.Page.Path);
|
return NavigateUrl(PageState.Page.Path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string NavigateUrl(Reload reload)
|
||||||
|
{
|
||||||
|
return NavigateUrl(PageState.Page.Path, reload);
|
||||||
|
}
|
||||||
|
|
||||||
public string NavigateUrl(string path)
|
public string NavigateUrl(string path)
|
||||||
{
|
{
|
||||||
return NavigateUrl(path, "");
|
return NavigateUrl(path, "", Reload.None);
|
||||||
|
}
|
||||||
|
|
||||||
|
public string NavigateUrl(string path, Reload reload)
|
||||||
|
{
|
||||||
|
return NavigateUrl(path, "", reload);
|
||||||
}
|
}
|
||||||
|
|
||||||
public string NavigateUrl(string path, string parameters)
|
public string NavigateUrl(string path, string parameters)
|
||||||
{
|
{
|
||||||
return Utilities.NavigateUrl(PageState.Alias.Path, path, parameters);
|
return Utilities.NavigateUrl(PageState.Alias.Path, path, parameters, Reload.None);
|
||||||
|
}
|
||||||
|
|
||||||
|
public string NavigateUrl(string path, string parameters, Reload reload)
|
||||||
|
{
|
||||||
|
return Utilities.NavigateUrl(PageState.Alias.Path, path, parameters, reload);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -13,14 +13,29 @@ namespace Oqtane.Themes
|
|||||||
return NavigateUrl(PageState.Page.Path);
|
return NavigateUrl(PageState.Page.Path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string NavigateUrl(Reload reload)
|
||||||
|
{
|
||||||
|
return NavigateUrl(PageState.Page.Path, reload);
|
||||||
|
}
|
||||||
|
|
||||||
public string NavigateUrl(string path)
|
public string NavigateUrl(string path)
|
||||||
{
|
{
|
||||||
return NavigateUrl(path, "");
|
return NavigateUrl(path, "", Reload.None);
|
||||||
|
}
|
||||||
|
|
||||||
|
public string NavigateUrl(string path, Reload reload)
|
||||||
|
{
|
||||||
|
return NavigateUrl(path, "", reload);
|
||||||
}
|
}
|
||||||
|
|
||||||
public string NavigateUrl(string path, string parameters)
|
public string NavigateUrl(string path, string parameters)
|
||||||
{
|
{
|
||||||
return Utilities.NavigateUrl(PageState.Alias.Path, path, parameters);
|
return Utilities.NavigateUrl(PageState.Alias.Path, path, parameters, Reload.None);
|
||||||
|
}
|
||||||
|
|
||||||
|
public string NavigateUrl(string path, string parameters, Reload reload)
|
||||||
|
{
|
||||||
|
return Utilities.NavigateUrl(PageState.Alias.Path, path, parameters, reload);
|
||||||
}
|
}
|
||||||
|
|
||||||
public string EditUrl(int moduleid, string action)
|
public string EditUrl(int moduleid, string action)
|
||||||
|
@ -2,6 +2,13 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Oqtane.Repository;
|
using Oqtane.Repository;
|
||||||
using Oqtane.Models;
|
using Oqtane.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.Extensions.Hosting;
|
||||||
|
using Oqtane.Shared;
|
||||||
|
using System.IO;
|
||||||
|
using Microsoft.AspNetCore.Hosting;
|
||||||
|
using System.Reflection;
|
||||||
|
using System.IO.Compression;
|
||||||
|
|
||||||
namespace Oqtane.Controllers
|
namespace Oqtane.Controllers
|
||||||
{
|
{
|
||||||
@ -9,10 +16,14 @@ namespace Oqtane.Controllers
|
|||||||
public class ThemeController : Controller
|
public class ThemeController : Controller
|
||||||
{
|
{
|
||||||
private readonly IThemeRepository Themes;
|
private readonly IThemeRepository Themes;
|
||||||
|
private readonly IHostApplicationLifetime HostApplicationLifetime;
|
||||||
|
private readonly IWebHostEnvironment environment;
|
||||||
|
|
||||||
public ThemeController(IThemeRepository Themes)
|
public ThemeController(IThemeRepository Themes, IHostApplicationLifetime HostApplicationLifetime, IWebHostEnvironment environment)
|
||||||
{
|
{
|
||||||
this.Themes = Themes;
|
this.Themes = Themes;
|
||||||
|
this.HostApplicationLifetime = HostApplicationLifetime;
|
||||||
|
this.environment = environment;
|
||||||
}
|
}
|
||||||
|
|
||||||
// GET: api/<controller>
|
// GET: api/<controller>
|
||||||
@ -21,5 +32,42 @@ namespace Oqtane.Controllers
|
|||||||
{
|
{
|
||||||
return Themes.GetThemes();
|
return Themes.GetThemes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HttpGet("install")]
|
||||||
|
[Authorize(Roles = Constants.HostRole)]
|
||||||
|
public void InstallThemes()
|
||||||
|
{
|
||||||
|
bool install = false;
|
||||||
|
string themefolder = Path.Combine(environment.WebRootPath, "Themes");
|
||||||
|
string binfolder = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
|
||||||
|
|
||||||
|
// iterate through theme packages
|
||||||
|
foreach (string packagename in Directory.GetFiles(themefolder, "*.nupkg"))
|
||||||
|
{
|
||||||
|
// iterate through files and deploy to appropriate locations
|
||||||
|
using (ZipArchive archive = ZipFile.OpenRead(packagename))
|
||||||
|
{
|
||||||
|
foreach (ZipArchiveEntry entry in archive.Entries)
|
||||||
|
{
|
||||||
|
string filename = Path.GetFileName(entry.FullName);
|
||||||
|
switch (Path.GetExtension(filename))
|
||||||
|
{
|
||||||
|
case ".dll":
|
||||||
|
entry.ExtractToFile(Path.Combine(binfolder, filename));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// remove theme package
|
||||||
|
System.IO.File.Delete(packagename);
|
||||||
|
install = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (install)
|
||||||
|
{
|
||||||
|
// restart application
|
||||||
|
HostApplicationLifetime.StopApplication();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ namespace Oqtane.Repository
|
|||||||
// iterate through Oqtane theme assemblies
|
// iterate through Oqtane theme assemblies
|
||||||
Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies()
|
Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies()
|
||||||
.Where(item => item.FullName.StartsWith("Oqtane.") || item.FullName.Contains(".Theme.")).ToArray();
|
.Where(item => item.FullName.StartsWith("Oqtane.") || item.FullName.Contains(".Theme.")).ToArray();
|
||||||
foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
|
foreach (Assembly assembly in assemblies)
|
||||||
{
|
{
|
||||||
Themes = LoadThemesFromAssembly(Themes, assembly);
|
Themes = LoadThemesFromAssembly(Themes, assembly);
|
||||||
}
|
}
|
||||||
|
@ -116,6 +116,7 @@ CREATE TABLE [dbo].[Role](
|
|||||||
[Name] [nvarchar](256) NOT NULL,
|
[Name] [nvarchar](256) NOT NULL,
|
||||||
[Description] [nvarchar](50) NOT NULL,
|
[Description] [nvarchar](50) NOT NULL,
|
||||||
[IsAutoAssigned] [bit] NOT NULL,
|
[IsAutoAssigned] [bit] NOT NULL,
|
||||||
|
[IsSystem] [bit] NOT NULL,
|
||||||
[CreatedBy] [nvarchar](256) NOT NULL,
|
[CreatedBy] [nvarchar](256) NOT NULL,
|
||||||
[CreatedOn] [datetime] NOT NULL,
|
[CreatedOn] [datetime] NOT NULL,
|
||||||
[ModifiedBy] [nvarchar](256) NOT NULL,
|
[ModifiedBy] [nvarchar](256) NOT NULL,
|
||||||
@ -361,23 +362,23 @@ GO
|
|||||||
|
|
||||||
SET IDENTITY_INSERT [dbo].[Role] ON
|
SET IDENTITY_INSERT [dbo].[Role] ON
|
||||||
GO
|
GO
|
||||||
INSERT [dbo].[Role] ([RoleId], [SiteId], [Name], [Description], [IsAutoAssigned], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn])
|
INSERT [dbo].[Role] ([RoleId], [SiteId], [Name], [Description], [IsAutoAssigned], [IsSystem], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn])
|
||||||
VALUES (-1, null, N'All Users', N'All Users', 0, '', getdate(), '', getdate())
|
VALUES (-1, null, N'All Users', N'All Users', 0, 1, '', getdate(), '', getdate())
|
||||||
GO
|
GO
|
||||||
INSERT [dbo].[Role] ([RoleId], [SiteId], [Name], [Description], [IsAutoAssigned], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn])
|
INSERT [dbo].[Role] ([RoleId], [SiteId], [Name], [Description], [IsAutoAssigned], [IsSystem], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn])
|
||||||
VALUES (0, null, N'Host Users', N'Host Users', 0, '', getdate(), '', getdate())
|
VALUES (0, null, N'Host Users', N'Host Users', 0, 1, '', getdate(), '', getdate())
|
||||||
GO
|
GO
|
||||||
INSERT [dbo].[Role] ([RoleId], [SiteId], [Name], [Description], [IsAutoAssigned], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn])
|
INSERT [dbo].[Role] ([RoleId], [SiteId], [Name], [Description], [IsAutoAssigned], [IsSystem], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn])
|
||||||
VALUES (1, 1, N'Administrators', N'Site Administrators', 0, '', getdate(), '', getdate())
|
VALUES (1, 1, N'Administrators', N'Site Administrators', 0, 1, '', getdate(), '', getdate())
|
||||||
GO
|
GO
|
||||||
INSERT [dbo].[Role] ([RoleId], [SiteId], [Name], [Description], [IsAutoAssigned], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn])
|
INSERT [dbo].[Role] ([RoleId], [SiteId], [Name], [Description], [IsAutoAssigned], [IsSystem], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn])
|
||||||
VALUES (2, 1, N'Registered Users', N'Registered Users', 1, '', getdate(), '', getdate())
|
VALUES (2, 1, N'Registered Users', N'Registered Users', 1, 1, '', getdate(), '', getdate())
|
||||||
GO
|
GO
|
||||||
INSERT [dbo].[Role] ([RoleId], [SiteId], [Name], [Description], [IsAutoAssigned], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn])
|
INSERT [dbo].[Role] ([RoleId], [SiteId], [Name], [Description], [IsAutoAssigned], [IsSystem], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn])
|
||||||
VALUES (3, 2, N'Administrators', N'Site Administrators', 0, '', getdate(), '', getdate())
|
VALUES (3, 2, N'Administrators', N'Site Administrators', 0, 1, '', getdate(), '', getdate())
|
||||||
GO
|
GO
|
||||||
INSERT [dbo].[Role] ([RoleId], [SiteId], [Name], [Description], [IsAutoAssigned], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn])
|
INSERT [dbo].[Role] ([RoleId], [SiteId], [Name], [Description], [IsAutoAssigned], [IsSystem], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn])
|
||||||
VALUES (4, 2, N'Registered Users', N'Registered Users', 1, '', getdate(), '', getdate())
|
VALUES (4, 2, N'Registered Users', N'Registered Users', 1, 1, '', getdate(), '', getdate())
|
||||||
GO
|
GO
|
||||||
SET IDENTITY_INSERT [dbo].[Role] OFF
|
SET IDENTITY_INSERT [dbo].[Role] OFF
|
||||||
GO
|
GO
|
||||||
|
@ -146,11 +146,11 @@ namespace Oqtane.Server
|
|||||||
|
|
||||||
// get list of loaded assemblies
|
// get list of loaded assemblies
|
||||||
Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
|
Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
|
||||||
|
|
||||||
// iterate through Oqtane module assemblies in /bin ( filter is narrow to optimize loading process )
|
|
||||||
string path = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
|
string path = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
|
||||||
DirectoryInfo folder = new DirectoryInfo(path);
|
DirectoryInfo folder = new DirectoryInfo(path);
|
||||||
List<Assembly> moduleassemblies = new List<Assembly>();
|
List<Assembly> moduleassemblies = new List<Assembly>();
|
||||||
|
|
||||||
|
// iterate through Oqtane module assemblies in /bin ( filter is narrow to optimize loading process )
|
||||||
foreach (FileInfo file in folder.EnumerateFiles("*.Module.*.dll"))
|
foreach (FileInfo file in folder.EnumerateFiles("*.Module.*.dll"))
|
||||||
{
|
{
|
||||||
// check if assembly is already loaded
|
// check if assembly is already loaded
|
||||||
@ -163,6 +163,18 @@ namespace Oqtane.Server
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// iterate through Oqtane theme assemblies in /bin ( filter is narrow to optimize loading process )
|
||||||
|
foreach (FileInfo file in folder.EnumerateFiles("*.Theme.*.dll"))
|
||||||
|
{
|
||||||
|
// check if assembly is already loaded
|
||||||
|
Assembly assembly = assemblies.Where(item => item.Location == file.FullName).FirstOrDefault();
|
||||||
|
if (assembly == null)
|
||||||
|
{
|
||||||
|
// load assembly ( as long as dependencies are in /bin they will load as well )
|
||||||
|
assembly = AssemblyLoadContext.Default.LoadFromAssemblyPath(file.FullName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
services.AddMvc().AddModuleAssemblies(moduleassemblies).AddNewtonsoftJson();
|
services.AddMvc().AddModuleAssemblies(moduleassemblies).AddNewtonsoftJson();
|
||||||
|
|
||||||
// register singleton scoped core services
|
// register singleton scoped core services
|
||||||
@ -313,11 +325,11 @@ namespace Oqtane.Server
|
|||||||
|
|
||||||
// get list of loaded assemblies
|
// get list of loaded assemblies
|
||||||
Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
|
Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
|
||||||
|
|
||||||
// iterate through Oqtane module assemblies in /bin ( filter is narrow to optimize loading process )
|
|
||||||
string path = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
|
string path = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
|
||||||
DirectoryInfo folder = new DirectoryInfo(path);
|
DirectoryInfo folder = new DirectoryInfo(path);
|
||||||
List<Assembly> moduleassemblies = new List<Assembly>();
|
List<Assembly> moduleassemblies = new List<Assembly>();
|
||||||
|
|
||||||
|
// iterate through Oqtane module assemblies in /bin ( filter is narrow to optimize loading process )
|
||||||
foreach (FileInfo file in folder.EnumerateFiles("*.Module.*.dll"))
|
foreach (FileInfo file in folder.EnumerateFiles("*.Module.*.dll"))
|
||||||
{
|
{
|
||||||
// check if assembly is already loaded
|
// check if assembly is already loaded
|
||||||
@ -330,6 +342,18 @@ namespace Oqtane.Server
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// iterate through Oqtane theme assemblies in /bin ( filter is narrow to optimize loading process )
|
||||||
|
foreach (FileInfo file in folder.EnumerateFiles("*.Theme.*.dll"))
|
||||||
|
{
|
||||||
|
// check if assembly is already loaded
|
||||||
|
Assembly assembly = assemblies.Where(item => item.Location == file.FullName).FirstOrDefault();
|
||||||
|
if (assembly == null)
|
||||||
|
{
|
||||||
|
// load assembly ( as long as dependencies are in /bin they will load as well )
|
||||||
|
assembly = AssemblyLoadContext.Default.LoadFromAssemblyPath(file.FullName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
services.AddMvc().AddModuleAssemblies(moduleassemblies).AddNewtonsoftJson();
|
services.AddMvc().AddModuleAssemblies(moduleassemblies).AddNewtonsoftJson();
|
||||||
|
|
||||||
// register singleton scoped core services
|
// register singleton scoped core services
|
||||||
@ -399,6 +423,7 @@ namespace Oqtane.Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
app.UseClientSideBlazorFiles<Client.Startup>();
|
app.UseClientSideBlazorFiles<Client.Startup>();
|
||||||
|
app.UseStaticFiles();
|
||||||
|
|
||||||
app.UseRouting();
|
app.UseRouting();
|
||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
|
@ -28,6 +28,20 @@ namespace Oqtane.Models
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
|
public string BaseUrl
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
string name = Name;
|
||||||
|
if (name.Contains("/"))
|
||||||
|
{
|
||||||
|
name = name.Substring(0, name.IndexOf("/"));
|
||||||
|
}
|
||||||
|
return Scheme + "://" + name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped]
|
||||||
public string Path
|
public string Path
|
||||||
{
|
{
|
||||||
@ -58,7 +72,7 @@ namespace Oqtane.Models
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return Url + "/Tenants/" + TenantId.ToString() + "/";
|
return BaseUrl + "/Tenants/" + TenantId.ToString() + "/";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,7 +90,7 @@ namespace Oqtane.Models
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return Url + "/Tenants/" + TenantId.ToString() + "/Sites/" + SiteId.ToString() + "/";
|
return BaseUrl + "/Tenants/" + TenantId.ToString() + "/Sites/" + SiteId.ToString() + "/";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ namespace Oqtane.Models
|
|||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
public bool IsAutoAssigned { get; set; }
|
public bool IsAutoAssigned { get; set; }
|
||||||
|
public bool IsSystem { get; set; }
|
||||||
|
|
||||||
public string CreatedBy { get; set; }
|
public string CreatedBy { get; set; }
|
||||||
public DateTime CreatedOn { get; set; }
|
public DateTime CreatedOn { get; set; }
|
||||||
|
Reference in New Issue
Block a user