mirror of https://github.com/abpframework/abp.git
6 changed files with 56 additions and 6 deletions
@ -1,9 +1,9 @@ |
|||||
@using Volo.Abp.Identity.Blazor |
@using Volo.Abp.AspNetCore.Components.WebAssembly.Theming.Routing |
||||
@using Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme |
@using Microsoft.Extensions.Options |
||||
@using Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme.Themes.Basic |
@inject IOptions<AbpRouterOptions> RouterOptions |
||||
<CascadingAuthenticationState> |
<CascadingAuthenticationState> |
||||
<Router AppAssembly="@typeof(Program).Assembly" |
<Router AppAssembly="RouterOptions.Value.AppAssembly" |
||||
AdditionalAssemblies="new []{ typeof(AbpIdentityBlazorModule).Assembly, typeof(AbpAspNetCoreComponentsWebAssemblyBasicThemeModule).Assembly }"> |
AdditionalAssemblies="RouterOptions.Value.AdditionalAssemblies"> |
||||
<Found Context="routeData"> |
<Found Context="routeData"> |
||||
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"> |
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"> |
||||
<NotAuthorized> |
<NotAuthorized> |
||||
@ -0,0 +1,16 @@ |
|||||
|
using System.Reflection; |
||||
|
|
||||
|
namespace Volo.Abp.AspNetCore.Components.WebAssembly.Theming.Routing |
||||
|
{ |
||||
|
public class AbpRouterOptions |
||||
|
{ |
||||
|
public Assembly AppAssembly { get; set; } |
||||
|
|
||||
|
public RouterAssemblyList AdditionalAssemblies { get; } |
||||
|
|
||||
|
public AbpRouterOptions() |
||||
|
{ |
||||
|
AdditionalAssemblies = new RouterAssemblyList(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,10 @@ |
|||||
|
using System.Collections.Generic; |
||||
|
using System.Reflection; |
||||
|
|
||||
|
namespace Volo.Abp.AspNetCore.Components.WebAssembly.Theming.Routing |
||||
|
{ |
||||
|
public class RouterAssemblyList : List<Assembly> |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue