这是基于vue-vben-admin 模板适用于abp vNext的前端管理项目
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.
 
 
 
 
 
 

73 lines
2.4 KiB

using LINGYUN.Abp.Elsa.Designer.Bundling;
using LINGYUN.Abp.Elsa.Designer.Navigation;
using LINGYUN.Abp.Elsa.Localization;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.AspNetCore.Mvc.Localization;
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared;
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Bundling;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;
using Volo.Abp.UI.Navigation;
using Volo.Abp.VirtualFileSystem;
namespace LINGYUN.Abp.Elsa.Designer;
[DependsOn(typeof(AbpElsaModule))]
[DependsOn(typeof(AbpAspNetCoreMvcUiThemeSharedModule))]
public class AbpElsaDesignerModule : AbpModule
{
public override void PreConfigureServices(ServiceConfigurationContext context)
{
context.Services.PreConfigure<AbpMvcDataAnnotationsLocalizationOptions>(options =>
{
options.AddAssemblyResource(typeof(ElsaResource), typeof(AbpElsaDesignerModule).Assembly);
});
PreConfigure<IMvcBuilder>(mvcBuilder =>
{
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpElsaDesignerModule).Assembly);
});
}
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpVirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<AbpElsaDesignerModule>("LINGYUN.Abp.Elsa.Designer");
});
Configure<AbpLocalizationOptions>(options =>
{
options.Resources
.Get<ElsaResource>()
.AddVirtualJson("/Localization/Resources/ElsaDesigner");
});
Configure<AbpNavigationOptions>(options =>
{
options.MenuContributors.Add(new AbpElsaDesignerContributor());
});
Configure<AbpBundlingOptions>(options =>
{
options
.StyleBundles
.Add(AbpElsaBundles.Styles.Global, bundle =>
{
bundle
.AddBaseBundles(StandardBundles.Styles.Global)
.AddContributors(typeof(AbpElsaStyleBundleContributor));
});
options
.ScriptBundles
.Add(AbpElsaBundles.Scripts.Global, bundle =>
{
bundle
.AddBaseBundles(StandardBundles.Scripts.Global)
.AddContributors(typeof(AbpElsaScriptBundleContributor));
});
});
}
}