Skip to content

Commit

Permalink
Make app in 'src' build and run (not updated everywhere yet though - …
Browse files Browse the repository at this point in the history
…just chapters 00-05)
  • Loading branch information
SteveSandersonMS committed Sep 24, 2019
1 parent 4d42e5c commit b19f57e
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions src/BlazingPizza.Client/App.razor
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
<CascadingAuthenticationState>
<Router AppAssembly="typeof(Program).Assembly">
<NotFoundContent>Page not found</NotFoundContent>

<NotAuthorizedContent>
<div class="main">
<h2>You're signed out</h2>
<p>To continue, please sign in.</p>
<a class="btn btn-danger" href="user/signin">Sign in</a>
</div>
</NotAuthorizedContent>

<AuthorizingContent>
Please wait...
</AuthorizingContent>
<Router AppAssembly="typeof(Program).Assembly" Context="routeData">
<Found>
<AuthorizeRouteView RouteData="routeData" DefaultLayout="typeof(MainLayout)">
<NotAuthorized>
<div class="main">
<h2>You're signed out</h2>
<p>To continue, please sign in.</p>
<a class="btn btn-danger" href="user/signin">Sign in</a>
</div>
</NotAuthorized>
<Authorizing>
<div class="main">Please wait...</div>
</Authorizing>
</AuthorizeRouteView>
</Found>
<NotFound>
<LayoutView Layout="typeof(MainLayout)">
<div class="main">Page not found</div>
</LayoutView>
</NotFound>
</Router>
</CascadingAuthenticationState>

0 comments on commit b19f57e

Please sign in to comment.