Performance improvements, refactoring of multi-tenant support, split Alias and Tenant entities for cleaner separation of concerns, create an additional site during installation for demonstratng multitenancy
This commit is contained in:
		| @ -12,7 +12,7 @@ | ||||
|     { | ||||
|         if (p.IsNavigation && UserService.IsAuthorized(PageState.User, p.ViewPermissions)) | ||||
|         { | ||||
|             string url = PageState.Alias + p.Path; | ||||
|             string url = NavigateUrl(p.Path); | ||||
|             <li class="list-group-item"> | ||||
|                 <NavLink class="nav-link" href="@url" Match="NavLinkMatch.All"> | ||||
|                     <span class="oi @p.Icon" aria-hidden="true"></span> @p.Name | ||||
|  | ||||
| @ -39,7 +39,7 @@ | ||||
|         { | ||||
|             var interop = new Interop(jsRuntime); | ||||
|             await interop.SetCookie("user", user.UserId.ToString(), 7); | ||||
|             UriHelper.NavigateTo(PageState.Alias, true); | ||||
|             UriHelper.NavigateTo(NavigateUrl(""), true); | ||||
|         } | ||||
|         else | ||||
|         { | ||||
|  | ||||
| @ -3,7 +3,6 @@ | ||||
| @using Oqtane.Services | ||||
| @using Oqtane.Modules | ||||
| @using Oqtane.Shared | ||||
| @using Oqtane.Client.Modules.Controls | ||||
| @inherits ModuleBase | ||||
| @inject IUriHelper UriHelper | ||||
| @inject IPageService PageService | ||||
| @ -132,11 +131,10 @@ | ||||
|     string viewpermissions = "All Users"; | ||||
|     string editpermissions = "Administrators"; | ||||
|  | ||||
|     protected override async Task OnInitAsync() | ||||
|     protected override void OnInit() | ||||
|     { | ||||
|         var Themes = await ThemeService.GetThemesAsync(); | ||||
|         themes = ThemeService.GetThemeTypes(Themes); | ||||
|         panelayouts = ThemeService.GetPaneLayoutTypes(Themes); | ||||
|         themes = ThemeService.GetThemeTypes(PageState.Themes); | ||||
|         panelayouts = ThemeService.GetPaneLayoutTypes(PageState.Themes); | ||||
|     } | ||||
|  | ||||
|     private async Task SavePage() | ||||
|  | ||||
| @ -3,7 +3,6 @@ | ||||
| @using Oqtane.Services | ||||
| @using Oqtane.Modules | ||||
| @using Oqtane.Shared | ||||
| @using Oqtane.Client.Modules.Controls | ||||
| @inherits ModuleBase | ||||
| @inject IUriHelper UriHelper | ||||
| @inject IPageService PageService | ||||
| @ -133,11 +132,10 @@ | ||||
|     string viewpermissions; | ||||
|     string editpermissions; | ||||
|  | ||||
|     protected override async Task OnInitAsync() | ||||
|     protected override void OnInit() | ||||
|     { | ||||
|         List<Theme> Themes = await ThemeService.GetThemesAsync(); | ||||
|         themes = ThemeService.GetThemeTypes(Themes); | ||||
|         panelayouts = ThemeService.GetPaneLayoutTypes(Themes); | ||||
|         themes = ThemeService.GetThemeTypes(PageState.Themes); | ||||
|         panelayouts = ThemeService.GetPaneLayoutTypes(PageState.Themes); | ||||
|  | ||||
|         PageId = Int32.Parse(PageState.QueryString["id"]); | ||||
|         Page p = PageState.Pages.Where(item => item.PageId == PageId).FirstOrDefault(); | ||||
| @ -159,6 +157,6 @@ | ||||
|     private async Task DeletePage() | ||||
|     { | ||||
|         await PageService.DeletePageAsync(Int32.Parse(PageState.QueryString["id"])); | ||||
|         UriHelper.NavigateTo(PageState.Alias); | ||||
|         UriHelper.NavigateTo(NavigateUrl("", true)); | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -133,11 +133,10 @@ | ||||
|     string viewpermissions; | ||||
|     string editpermissions; | ||||
|  | ||||
|     protected override async Task OnInitAsync() | ||||
|     protected override void OnInit() | ||||
|     { | ||||
|         List<Theme> Themes = await ThemeService.GetThemesAsync(); | ||||
|         themes = ThemeService.GetThemeTypes(Themes); | ||||
|         panelayouts = ThemeService.GetPaneLayoutTypes(Themes); | ||||
|         themes = ThemeService.GetThemeTypes(PageState.Themes); | ||||
|         panelayouts = ThemeService.GetPaneLayoutTypes(PageState.Themes); | ||||
|  | ||||
|         PageId = Int32.Parse(PageState.QueryString["id"]); | ||||
|         Page p = PageState.Pages.Where(item => item.PageId == PageId).FirstOrDefault(); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker