Browse Source

Merge pull request #6514 from abpframework/liangshiwei/blazor-subapplication

Blazor: Support sub-application deployment
pull/6518/head
Halil İbrahim Kalkan 6 years ago
committed by GitHub
parent
commit
104d72cb45
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      framework/src/Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme/Themes/Basic/Branding.razor
  2. 4
      modules/identity/src/Volo.Abp.Identity.Blazor/AbpIdentityWebMainMenuContributor.cs
  3. 2
      modules/setting-management/src/Volo.Abp.SettingManagement.Blazor/Menus/SettingManagementMenuContributor.cs
  4. 2
      modules/tenant-management/src/Volo.Abp.TenantManagement.Blazor/Navigation/TenantManagementBlazorMenuContributor.cs
  5. 2
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Menus/MyProjectNameMenuContributor.cs

2
framework/src/Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme/Themes/Basic/Branding.razor

@ -1,3 +1,3 @@
@using Volo.Abp.Ui.Branding @using Volo.Abp.Ui.Branding
@inject IBrandingProvider BrandingProvider @inject IBrandingProvider BrandingProvider
<a class="navbar-brand" href="/">@BrandingProvider.AppName</a> <a class="navbar-brand" href="">@BrandingProvider.AppName</a>

4
modules/identity/src/Volo.Abp.Identity.Blazor/AbpIdentityWebMainMenuContributor.cs

@ -27,12 +27,12 @@ namespace Volo.Abp.Identity.Blazor
if (hasRolePermission) if (hasRolePermission)
{ {
identityMenuItem.AddItem(new ApplicationMenuItem(IdentityMenuNames.Roles, l["Roles"], url: "/identity/roles")); identityMenuItem.AddItem(new ApplicationMenuItem(IdentityMenuNames.Roles, l["Roles"], url: "identity/roles"));
} }
if (hasUserPermission) if (hasUserPermission)
{ {
identityMenuItem.AddItem(new ApplicationMenuItem(IdentityMenuNames.Users, l["Users"], url: "/identity/users")); identityMenuItem.AddItem(new ApplicationMenuItem(IdentityMenuNames.Users, l["Users"], url: "identity/users"));
} }
} }
} }

2
modules/setting-management/src/Volo.Abp.SettingManagement.Blazor/Menus/SettingManagementMenuContributor.cs

@ -37,7 +37,7 @@ namespace Volo.Abp.SettingManagement.Blazor.Menus
new ApplicationMenuItem( new ApplicationMenuItem(
SettingManagementMenus.GroupName, SettingManagementMenus.GroupName,
l["Settings"], l["Settings"],
"/setting-management", "setting-management",
icon: "fa fa-cog" icon: "fa fa-cog"
) )
); );

2
modules/tenant-management/src/Volo.Abp.TenantManagement.Blazor/Navigation/TenantManagementBlazorMenuContributor.cs

@ -22,7 +22,7 @@ namespace Volo.Abp.TenantManagement.Blazor.Navigation
if (await context.IsGrantedAsync(TenantManagementPermissions.Tenants.Default)) if (await context.IsGrantedAsync(TenantManagementPermissions.Tenants.Default))
{ {
tenantManagementMenuItem.AddItem(new ApplicationMenuItem(TenantManagementMenuNames.Tenants, l["Tenants"], url: "/tenant-management/tenants")); tenantManagementMenuItem.AddItem(new ApplicationMenuItem(TenantManagementMenuNames.Tenants, l["Tenants"], url: "tenant-management/tenants"));
} }
} }
} }

2
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Menus/MyProjectNameMenuContributor.cs

@ -39,7 +39,7 @@ namespace MyCompanyName.MyProjectName.Blazor.Menus
new ApplicationMenuItem( new ApplicationMenuItem(
MyProjectNameMenus.Home, MyProjectNameMenus.Home,
l["Menu:Home"], l["Menu:Home"],
"/", "",
icon: "fas fa-home" icon: "fas fa-home"
) )
); );

Loading…
Cancel
Save