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:
		| @ -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