Replace custom socket implementation with SignalR.
Replace MSAL and custom cookie auth with Microsoft.Identity.EntityFramework Also some UI redesign to accommodate different login experience.
This commit is contained in:
26
Shogi.UI/Pages/HomePage.razor
Normal file
26
Shogi.UI/Pages/HomePage.razor
Normal file
@@ -0,0 +1,26 @@
|
||||
@page "/"
|
||||
|
||||
@using Shogi.Contracts.Types
|
||||
@using System.Net.WebSockets
|
||||
@using System.Text
|
||||
|
||||
<main class="shogi PrimaryTheme">
|
||||
<p>How to play goes here</p>
|
||||
<p>Maybe a cool animation of a game being played.</p>
|
||||
</main>
|
||||
|
||||
@code {
|
||||
|
||||
private string activeSessionName = string.Empty;
|
||||
|
||||
private Task OnLoginChanged()
|
||||
{
|
||||
StateHasChanged();
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
private void OnChangeSession(SessionMetadata s)
|
||||
{
|
||||
activeSessionName = s.SessionId.ToString();
|
||||
StateHasChanged();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user