Clean up "Authorizing" message on page load

This commit is contained in:
Neil Brommer 2021-12-08 22:24:42 -08:00
parent c1387fc8ea
commit 8a5e54d17c
3 changed files with 17 additions and 1 deletions

View file

@ -18,7 +18,7 @@ This is a rewrite of my [New Tab Page project](https://github.com/NeilBrommer/Ne
- [x] Bookmarks
- [ ] Manage bookmark containers
- [x] Create
- [x] Delete
- [ ] Delete
- [ ] Edit
- [ ] Manage bookmark groups
- [x] Create
@ -30,6 +30,8 @@ This is a rewrite of my [New Tab Page project](https://github.com/NeilBrommer/Ne
- [ ] Edit
- [x] Use [Refit](https://github.com/reactiveui/refit) for strongly typed API calls
- [ ] Support choosing between storing data on the server or in IndexedDB
- [ ] Look into speeding up authorization on page load
- https://github.com/dotnet/aspnetcore/issues/31926
## Dependancies

View file

@ -4,6 +4,12 @@
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="@true">
<Found Context="routeData">
<AuthorizeRouteView RouteData="@routeData">
<Authorizing>
<div class="text-center authorizingContainer">
<div class="loading loading-lg"></div>
Authorizing...
</div>
</Authorizing>
<NotAuthorized>
@if (!context.User.Identity?.IsAuthenticated ?? false)
{

View file

@ -47,6 +47,14 @@
align-items: center;
}
.authorizingContainer {
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#sidebar {
display: flex;