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.
46 lines
1.7 KiB
46 lines
1.7 KiB
using Volo.Abp.AspNetCore.Components.Server.BasicTheme.Bundling;
|
|
using Volo.Abp.AspNetCore.Components.Server.Theming;
|
|
using Volo.Abp.AspNetCore.Components.Server.Theming.Bundling;
|
|
using Volo.Abp.AspNetCore.Components.Web.BasicTheme;
|
|
using Volo.Abp.AspNetCore.Components.Web.Theming.Routing;
|
|
using Volo.Abp.AspNetCore.Components.Web.Theming.Toolbars;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
|
|
using Volo.Abp.Modularity;
|
|
|
|
namespace Volo.Abp.AspNetCore.Components.Server.BasicTheme;
|
|
|
|
[DependsOn(
|
|
typeof(AbpAspNetCoreComponentsWebBasicThemeModule),
|
|
typeof(AbpAspNetCoreComponentsServerThemingModule)
|
|
)]
|
|
public class AbpAspNetCoreComponentsServerBasicThemeModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<AbpToolbarOptions>(options =>
|
|
{
|
|
options.Contributors.Add(new BasicThemeToolbarContributor());
|
|
});
|
|
|
|
Configure<AbpBundlingOptions>(options =>
|
|
{
|
|
options
|
|
.StyleBundles
|
|
.Add(BlazorBasicThemeBundles.Styles.Global, bundle =>
|
|
{
|
|
bundle
|
|
.AddBaseBundles(BlazorStandardBundles.Styles.Global)
|
|
.AddContributors(typeof(BlazorBasicThemeStyleContributor));
|
|
});
|
|
|
|
options
|
|
.ScriptBundles
|
|
.Add(BlazorBasicThemeBundles.Scripts.Global, bundle =>
|
|
{
|
|
bundle
|
|
.AddBaseBundles(BlazorStandardBundles.Scripts.Global)
|
|
.AddContributors(typeof(BlazorBasicThemeScriptContributor));
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|