Updated some UI.
Updated app loading UI. Updated UI for various authentication states. Updated authentication buttons in the client.
This commit is contained in:
parent
ac13a6352b
commit
549d9d7e99
@ -25,7 +25,16 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<p>Loading modules...</p>
|
<div class="d-flex flex-column align-items-center justify-content-center" style="width: 100vw; height: 100vh;">
|
||||||
|
<div class="my-1">
|
||||||
|
<div class="spinner-border text-success" role="status">
|
||||||
|
<span class="sr-only">Loading...</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="my-1">
|
||||||
|
Downloading shop modules...
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
}
|
}
|
||||||
</Found>
|
</Found>
|
||||||
<NotFound>
|
<NotFound>
|
||||||
|
@ -5,21 +5,25 @@
|
|||||||
|
|
||||||
<RemoteAuthenticatorView Action="@Action">
|
<RemoteAuthenticatorView Action="@Action">
|
||||||
<LoggingIn>
|
<LoggingIn>
|
||||||
<div class="d-flex justify-content-center flex-column" style="width: 100%;">
|
<div class="d-flex flex-column align-items-center justify-content-center" style="width: 100%;">
|
||||||
<div class="spinner-border text-primary mx-auto my-2" role="status">
|
<div class="my-1">
|
||||||
<span class="sr-only">Loading...</span>
|
<div class="spinner-grow text-primary" role="status">
|
||||||
|
<span class="sr-only">Loading...</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mx-auto my-2">
|
<div class="my-1 text-muted">
|
||||||
Hang on just a sec. We're sending you to go login!
|
Hang on just a sec. We're sending you to go login!
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</LoggingIn>
|
</LoggingIn>
|
||||||
<Registering>
|
<Registering>
|
||||||
<div class="d-flex justify-content-center flex-column" style="width: 100%;">
|
<div class="d-flex flex-column align-items-center justify-content-center" style="width: 100%;">
|
||||||
<div class="spinner-border text-primary mx-auto my-2" role="status">
|
<div class="my-1">
|
||||||
<span class="sr-only">Loading...</span>
|
<div class="spinner-grow text-primary" role="status">
|
||||||
|
<span class="sr-only">Loading...</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mx-auto my-2">
|
<div class="my-1 text-muted">
|
||||||
Hang on just a sec. We're sending you to go sign up!
|
Hang on just a sec. We're sending you to go sign up!
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -29,19 +29,29 @@
|
|||||||
</NavLink>
|
</NavLink>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<AuthorizeView Context="auth">
|
<ul class="navbar-nav ml-auto">
|
||||||
<Authorized>
|
<AuthorizeView Context="auth">
|
||||||
<a href="authentication/profile">Hello, @auth.User.Identity.Name!</a>
|
<Authorized>
|
||||||
<button class="nav-link btn btn-link" @onclick="BeginSignOut">Log out</button>
|
<li class="nav-item">
|
||||||
</Authorized>
|
<a class="nav-link" href="authentication/profile">Hello, @auth.User.Identity.Name!</a>
|
||||||
<NotAuthorized>
|
</li>
|
||||||
@if (Configuration["IdentityServer:Registration"].Equals("enabled"))
|
<li class="nav-item">
|
||||||
{
|
<button class="nav-link btn btn-outline-primary" @onclick="BeginSignOut">Log out</button>
|
||||||
<a class="mx-1" href="authentication/register">Register</a>
|
</li>
|
||||||
}
|
</Authorized>
|
||||||
<a class="mx-1" href="authentication/login">Log in</a>
|
<NotAuthorized>
|
||||||
</NotAuthorized>
|
@if (Configuration["IdentityServer:Registration"].Equals("enabled"))
|
||||||
</AuthorizeView>
|
{
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="authentication/register">Register</a>
|
||||||
|
</li>
|
||||||
|
}
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="authentication/login">Log in</a>
|
||||||
|
</li>
|
||||||
|
</NotAuthorized>
|
||||||
|
</AuthorizeView>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
@ -12,7 +12,18 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="app">Loading...</div>
|
<div id="app">
|
||||||
|
<div class="d-flex flex-column align-items-center justify-content-center" style="width: 100vw; height: 100vh;">
|
||||||
|
<div class="my-1">
|
||||||
|
<div class="spinner-border text-primary" role="status">
|
||||||
|
<span class="sr-only">Loading...</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="my-1 text-muted">
|
||||||
|
Loading app...
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="blazor-error-ui">
|
<div id="blazor-error-ui">
|
||||||
An unhandled error has occurred.
|
An unhandled error has occurred.
|
||||||
|
Loading…
Reference in New Issue
Block a user