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.
61 lines
2.1 KiB
61 lines
2.1 KiB
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Bundling;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Toolbars;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Bundling;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Toolbars;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theming;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.VirtualFileSystem;
|
|
|
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic
|
|
{
|
|
[DependsOn(
|
|
typeof(AbpAspNetCoreMvcUiThemeSharedModule)
|
|
)]
|
|
public class AbpAspNetCoreMvcUiBasicThemeModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<ThemingOptions>(options =>
|
|
{
|
|
options.Themes.Add<BasicTheme>();
|
|
|
|
if (options.DefaultThemeName == null)
|
|
{
|
|
options.DefaultThemeName = BasicTheme.Name;
|
|
}
|
|
});
|
|
|
|
Configure<VirtualFileSystemOptions>(options =>
|
|
{
|
|
options.FileSets.AddEmbedded<AbpAspNetCoreMvcUiBasicThemeModule>("Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic");
|
|
});
|
|
|
|
Configure<ToolbarOptions>(options =>
|
|
{
|
|
options.Contributors.Add(new BasicThemeMainTopToolbarContributor());
|
|
});
|
|
|
|
Configure<BundlingOptions>(options =>
|
|
{
|
|
options
|
|
.StyleBundles
|
|
.Add(BasicThemeBundles.Styles.Global, bundle =>
|
|
{
|
|
bundle
|
|
.AddBaseBundles(StandardBundles.Styles.Global)
|
|
.AddContributors(new BasicThemeGlobalStyleContributor());
|
|
});
|
|
|
|
options
|
|
.ScriptBundles
|
|
.Add(BasicThemeBundles.Scripts.Global, bundle =>
|
|
{
|
|
bundle.AddBaseBundles(StandardBundles.Scripts.Global);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|