Browse Source

Merge pull request #1881 from abpframework/Add-Web-projects-of-the-modules-to-the-application-parts

Added Web projects of the modules to the application parts
pull/1886/head
Halil İbrahim Kalkan 7 years ago
committed by GitHub
parent
commit
7737aea912
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      modules/account/src/Volo.Abp.Account.Web.IdentityServer/AbpAccountWebIdentityServerModule.cs
  2. 5
      modules/account/src/Volo.Abp.Account.Web/AbpAccountWebModule.cs
  3. 5
      modules/blogging/src/Volo.Blogging.Web/BloggingWebModule.cs
  4. 5
      modules/docs/src/Volo.Docs.Admin.Web/DocsAdminWebModule.cs
  5. 5
      modules/docs/src/Volo.Docs.Web/DocsWebModule.cs
  6. 5
      modules/feature-management/src/Volo.Abp.FeatureManagement.Web/AbpFeatureManagementWebModule.cs
  7. 5
      modules/identity/src/Volo.Abp.Identity.Web/AbpIdentityWebModule.cs
  8. 5
      modules/permission-management/src/Volo.Abp.PermissionManagement.Web/AbpPermissionManagementWebModule.cs
  9. 11
      modules/setting-management/src/Volo.Abp.SettingManagement.Web/AbpSettingManagementWebModule.cs
  10. 5
      modules/tenant-management/src/Volo.Abp.TenantManagement.Web/AbpTenantManagementWebModule.cs
  11. 5
      templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Web/MyProjectNameWebModule.cs

5
modules/account/src/Volo.Abp.Account.Web.IdentityServer/AbpAccountWebIdentityServerModule.cs

@ -19,6 +19,11 @@ namespace Volo.Abp.Account.Web
{
options.ConfigureAuthentication = false;
});
PreConfigure<IMvcBuilder>(mvcBuilder =>
{
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpAccountWebIdentityServerModule).Assembly);
});
}
public override void ConfigureServices(ServiceConfigurationContext context)

5
modules/account/src/Volo.Abp.Account.Web/AbpAccountWebModule.cs

@ -26,6 +26,11 @@ namespace Volo.Abp.Account.Web
{
options.AddAssemblyResource(typeof(AccountResource), typeof(AbpAccountWebModule).Assembly);
});
PreConfigure<IMvcBuilder>(mvcBuilder =>
{
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpAccountWebModule).Assembly);
});
}
public override void ConfigureServices(ServiceConfigurationContext context)

5
modules/blogging/src/Volo.Blogging.Web/BloggingWebModule.cs

@ -26,6 +26,11 @@ namespace Volo.Blogging
{
options.AddAssemblyResource(typeof(BloggingResource), typeof(BloggingWebModule).Assembly);
});
PreConfigure<IMvcBuilder>(mvcBuilder =>
{
mvcBuilder.AddApplicationPartIfNotExists(typeof(BloggingWebModule).Assembly);
});
}
public override void ConfigureServices(ServiceConfigurationContext context)

5
modules/docs/src/Volo.Docs.Admin.Web/DocsAdminWebModule.cs

@ -26,6 +26,11 @@ namespace Volo.Docs.Admin
{
options.AddAssemblyResource(typeof(DocsResource), typeof(DocsAdminWebModule).Assembly);
});
PreConfigure<IMvcBuilder>(mvcBuilder =>
{
mvcBuilder.AddApplicationPartIfNotExists(typeof(DocsAdminWebModule).Assembly);
});
}
public override void ConfigureServices(ServiceConfigurationContext context)

5
modules/docs/src/Volo.Docs.Web/DocsWebModule.cs

@ -28,6 +28,11 @@ namespace Volo.Docs
{
options.AddAssemblyResource(typeof(DocsResource), typeof(DocsWebModule).Assembly);
});
PreConfigure<IMvcBuilder>(mvcBuilder =>
{
mvcBuilder.AddApplicationPartIfNotExists(typeof(DocsWebModule).Assembly);
});
}
public override void ConfigureServices(ServiceConfigurationContext context)

5
modules/feature-management/src/Volo.Abp.FeatureManagement.Web/AbpFeatureManagementWebModule.cs

@ -22,6 +22,11 @@ namespace Volo.Abp.FeatureManagement
{
options.AddAssemblyResource(typeof(AbpFeatureManagementResource), typeof(AbpFeatureManagementWebModule).Assembly);
});
PreConfigure<IMvcBuilder>(mvcBuilder =>
{
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpFeatureManagementWebModule).Assembly);
});
}
public override void ConfigureServices(ServiceConfigurationContext context)

5
modules/identity/src/Volo.Abp.Identity.Web/AbpIdentityWebModule.cs

@ -26,6 +26,11 @@ namespace Volo.Abp.Identity.Web
{
options.AddAssemblyResource(typeof(IdentityResource), typeof(AbpIdentityWebModule).Assembly);
});
PreConfigure<IMvcBuilder>(mvcBuilder =>
{
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpIdentityWebModule).Assembly);
});
}
public override void ConfigureServices(ServiceConfigurationContext context)

5
modules/permission-management/src/Volo.Abp.PermissionManagement.Web/AbpPermissionManagementWebModule.cs

@ -23,6 +23,11 @@ namespace Volo.Abp.PermissionManagement.Web
{
options.AddAssemblyResource(typeof(AbpPermissionManagementResource));
});
PreConfigure<IMvcBuilder>(mvcBuilder =>
{
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpPermissionManagementWebModule).Assembly);
});
}
public override void ConfigureServices(ServiceConfigurationContext context)

11
modules/setting-management/src/Volo.Abp.SettingManagement.Web/AbpSettingManagementWebModule.cs

@ -1,4 +1,5 @@
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared;
using Volo.Abp.Modularity;
using Volo.Abp.SettingManagement.Web.Navigation;
using Volo.Abp.UI.Navigation;
@ -12,6 +13,14 @@ namespace Volo.Abp.SettingManagement.Web
)]
public class AbpSettingManagementWebModule : AbpModule
{
public override void PreConfigureServices(ServiceConfigurationContext context)
{
PreConfigure<IMvcBuilder>(mvcBuilder =>
{
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpSettingManagementWebModule).Assembly);
});
}
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<NavigationOptions>(options =>

5
modules/tenant-management/src/Volo.Abp.TenantManagement.Web/AbpTenantManagementWebModule.cs

@ -28,6 +28,11 @@ namespace Volo.Abp.TenantManagement.Web
{
options.AddAssemblyResource(typeof(AbpTenantManagementResource), typeof(AbpTenantManagementWebModule).Assembly);
});
PreConfigure<IMvcBuilder>(mvcBuilder =>
{
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpTenantManagementWebModule).Assembly);
});
}
public override void ConfigureServices(ServiceConfigurationContext context)

5
templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Web/MyProjectNameWebModule.cs

@ -23,6 +23,11 @@ namespace MyCompanyName.MyProjectName.Web
{
options.AddAssemblyResource(typeof(MyProjectNameResource), typeof(MyProjectNameWebModule).Assembly);
});
PreConfigure<IMvcBuilder>(mvcBuilder =>
{
mvcBuilder.AddApplicationPartIfNotExists(typeof(MyProjectNameWebModule).Assembly);
});
}
public override void ConfigureServices(ServiceConfigurationContext context)

Loading…
Cancel
Save