|
|
@ -1,10 +1,12 @@ |
|
|
using Microsoft.AspNetCore.Mvc.RazorPages; |
|
|
using Microsoft.AspNetCore.Mvc.RazorPages; |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.Localization; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared; |
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared; |
|
|
using Volo.Abp.AutoMapper; |
|
|
using Volo.Abp.AutoMapper; |
|
|
using Volo.Abp.Http.ProxyScripting.Generators.JQuery; |
|
|
using Volo.Abp.Http.ProxyScripting.Generators.JQuery; |
|
|
using Volo.Abp.Modularity; |
|
|
using Volo.Abp.Modularity; |
|
|
|
|
|
using Volo.Abp.SettingManagement.Localization; |
|
|
using Volo.Abp.SettingManagement.Web.Navigation; |
|
|
using Volo.Abp.SettingManagement.Web.Navigation; |
|
|
using Volo.Abp.SettingManagement.Web.Pages.SettingManagement; |
|
|
using Volo.Abp.SettingManagement.Web.Pages.SettingManagement; |
|
|
using Volo.Abp.SettingManagement.Web.Settings; |
|
|
using Volo.Abp.SettingManagement.Web.Settings; |
|
|
@ -23,6 +25,11 @@ public class AbpSettingManagementWebModule : AbpModule |
|
|
{ |
|
|
{ |
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
{ |
|
|
{ |
|
|
|
|
|
context.Services.PreConfigure<AbpMvcDataAnnotationsLocalizationOptions>(options => |
|
|
|
|
|
{ |
|
|
|
|
|
options.AddAssemblyResource(typeof(AbpSettingManagementResource), typeof(AbpSettingManagementWebModule).Assembly); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
PreConfigure<IMvcBuilder>(mvcBuilder => |
|
|
PreConfigure<IMvcBuilder>(mvcBuilder => |
|
|
{ |
|
|
{ |
|
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpSettingManagementWebModule).Assembly); |
|
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpSettingManagementWebModule).Assembly); |
|
|
@ -31,6 +38,7 @@ public class AbpSettingManagementWebModule : AbpModule |
|
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
Configure<AbpNavigationOptions>(options => |
|
|
Configure<AbpNavigationOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.MenuContributors.Add(new SettingManagementMainMenuContributor()); |
|
|
options.MenuContributors.Add(new SettingManagementMainMenuContributor()); |
|
|
|