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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with
60 additions and
1 deletions
-
modules/account/src/Volo.Abp.Account.Web.IdentityServer/AbpAccountWebIdentityServerModule.cs
-
modules/account/src/Volo.Abp.Account.Web/AbpAccountWebModule.cs
-
modules/blogging/src/Volo.Blogging.Web/BloggingWebModule.cs
-
modules/docs/src/Volo.Docs.Admin.Web/DocsAdminWebModule.cs
-
modules/docs/src/Volo.Docs.Web/DocsWebModule.cs
-
modules/feature-management/src/Volo.Abp.FeatureManagement.Web/AbpFeatureManagementWebModule.cs
-
modules/identity/src/Volo.Abp.Identity.Web/AbpIdentityWebModule.cs
-
modules/permission-management/src/Volo.Abp.PermissionManagement.Web/AbpPermissionManagementWebModule.cs
-
modules/setting-management/src/Volo.Abp.SettingManagement.Web/AbpSettingManagementWebModule.cs
-
modules/tenant-management/src/Volo.Abp.TenantManagement.Web/AbpTenantManagementWebModule.cs
-
templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Web/MyProjectNameWebModule.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) |
|
|
|
|
|
|
|
@ -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) |
|
|
|
|
|
|
|
@ -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) |
|
|
|
|
|
|
|
@ -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) |
|
|
|
|
|
|
|
@ -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) |
|
|
|
|
|
|
|
@ -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) |
|
|
|
|
|
|
|
@ -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) |
|
|
|
|
|
|
|
@ -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) |
|
|
|
|
|
|
|
@ -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 => |
|
|
|
|
|
|
|
@ -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) |
|
|
|
|
|
|
|
@ -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) |
|
|
|
|