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.
40 lines
1.5 KiB
40 lines
1.5 KiB
using Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme;
|
|
using Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme.Routing;
|
|
using Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme.Toolbars;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp.AspNetCore.Components.Web;
|
|
using Volo.Abp.AspNetCore.Components.WebAssembly;
|
|
using Volo.Abp.Http.Client.IdentityModel.WebAssembly;
|
|
using Volo.Abp.Modularity;
|
|
|
|
namespace Lsw.Abp.AspnetCore.Components.WebAssembly.AntDesignTheme;
|
|
|
|
[DependsOn(
|
|
typeof(AbpAspNetCoreComponentsWebAntDesignThemeModule),
|
|
typeof(AbpAspNetCoreComponentsWebAssemblyModule),
|
|
typeof(AbpHttpClientIdentityModelWebAssemblyModule)
|
|
)]
|
|
public class AbpAspNetCoreComponentsWebAssemblyAntDesignThemeModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<AbpRouterOptions>(options =>
|
|
{
|
|
options.AdditionalAssemblies.Add(typeof(AbpAspNetCoreComponentsWebAssemblyAntDesignThemeModule).Assembly);
|
|
});
|
|
|
|
Configure<AbpToolbarOptions>(options =>
|
|
{
|
|
options.Contributors.Add(new AntDesignThemeToolbarContributor());
|
|
});
|
|
|
|
if (context.Services.ExecutePreConfiguredActions<AbpAspNetCoreComponentsWebOptions>().IsBlazorWebApp)
|
|
{
|
|
Configure<AuthenticationOptions>(options =>
|
|
{
|
|
options.LoginUrl = "Account/Login";
|
|
options.LogoutUrl = "Account/Logout";
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|