mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.8 KiB
56 lines
1.8 KiB
using Localization.Resources.AbpUi;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp.AspNetCore.Components.Web.Theming;
|
|
using Volo.Abp.AspNetCore.Components.Web.Theming.Routing;
|
|
using Volo.Abp.AutoMapper;
|
|
using Volo.Abp.Localization;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.SettingManagement.Blazor.Menus;
|
|
using Volo.Abp.SettingManagement.Blazor.Settings;
|
|
using Volo.Abp.SettingManagement.Localization;
|
|
using Volo.Abp.UI.Navigation;
|
|
|
|
namespace Volo.Abp.SettingManagement.Blazor;
|
|
|
|
[DependsOn(
|
|
typeof(AbpAutoMapperModule),
|
|
typeof(AbpAspNetCoreComponentsWebThemingModule),
|
|
typeof(AbpSettingManagementApplicationContractsModule)
|
|
)]
|
|
public class AbpSettingManagementBlazorModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
context.Services.AddAutoMapperObjectMapper<AbpSettingManagementBlazorModule>();
|
|
|
|
Configure<AbpAutoMapperOptions>(options =>
|
|
{
|
|
options.AddProfile<SettingManagementBlazorAutoMapperProfile>(validate: true);
|
|
});
|
|
|
|
Configure<AbpNavigationOptions>(options =>
|
|
{
|
|
options.MenuContributors.Add(new SettingManagementMenuContributor());
|
|
});
|
|
|
|
Configure<AbpRouterOptions>(options =>
|
|
{
|
|
options.AdditionalAssemblies.Add(typeof(AbpSettingManagementBlazorModule).Assembly);
|
|
});
|
|
|
|
Configure<SettingManagementComponentOptions>(options =>
|
|
{
|
|
options.Contributors.Add(new EmailingPageContributor());
|
|
options.Contributors.Add(new TimeZonePageContributor());
|
|
});
|
|
|
|
Configure<AbpLocalizationOptions>(options =>
|
|
{
|
|
options.Resources
|
|
.Get<AbpSettingManagementResource>()
|
|
.AddBaseTypes(
|
|
typeof(AbpUiResource)
|
|
);
|
|
});
|
|
}
|
|
}
|
|
|