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.
61 lines
2.2 KiB
61 lines
2.2 KiB
using Lsw.Abp.AspnetCore.Components.Server.AntDesignTheme.Bundling;
|
|
using Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme;
|
|
using Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme.Toolbars;
|
|
using Volo.Abp.AspNetCore.Components.Server;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Packages;
|
|
using Volo.Abp.Modularity;
|
|
|
|
namespace Lsw.Abp.AspnetCore.Components.Server.AntDesignTheme;
|
|
|
|
[DependsOn(
|
|
typeof(AbpAspNetCoreComponentsServerModule),
|
|
typeof(AbpAspNetCoreMvcUiPackagesModule),
|
|
typeof(AbpAspNetCoreMvcUiBundlingModule),
|
|
typeof(AbpAspNetCoreComponentsWebAntDesignThemeModule)
|
|
)]
|
|
public class AbpAspNetCoreComponentsServerAntDesignThemeModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<AbpBundlingOptions>(options =>
|
|
{
|
|
options
|
|
.StyleBundles
|
|
.Add(BlazorStandardBundles.Styles.Global, bundle =>
|
|
{
|
|
bundle.AddContributors(typeof(BlazorGlobalStyleContributor));
|
|
});
|
|
|
|
options
|
|
.ScriptBundles
|
|
.Add(BlazorStandardBundles.Scripts.Global, bundle =>
|
|
{
|
|
bundle.AddContributors(typeof(BlazorGlobalScriptContributor));
|
|
});
|
|
|
|
options
|
|
.StyleBundles
|
|
.Add(BlazorAntDesignThemeBundles.Styles.Global, bundle =>
|
|
{
|
|
bundle
|
|
.AddBaseBundles(BlazorStandardBundles.Styles.Global)
|
|
.AddContributors(typeof(BlazorAntDesignThemeStyleContributor));
|
|
});
|
|
|
|
options
|
|
.ScriptBundles
|
|
.Add(BlazorAntDesignThemeBundles.Scripts.Global, bundle =>
|
|
{
|
|
bundle
|
|
.AddBaseBundles(BlazorStandardBundles.Scripts.Global)
|
|
.AddContributors(typeof(BlazorAntDesignThemeScriptContributor));
|
|
});
|
|
});
|
|
|
|
Configure<AbpToolbarOptions>(options =>
|
|
{
|
|
options.Contributors.Add(new AntDesignThemeToolbarContributor());
|
|
});
|
|
}
|
|
}
|
|
|