Upgrade to .net 8

This commit is contained in:
2024-01-29 13:00:20 -06:00
parent 08c11b3c0e
commit 2880acb585
12 changed files with 58 additions and 63 deletions

View File

@@ -35,7 +35,7 @@ namespace Shogi.UI.Pages.Home.Api
public async Task GuestLogout()
{
var response = await this.guestHttpClient.PutAsync(new Uri("User/GuestLogout", UriKind.Relative), null);
var response = await this.guestHttpClient.PutAsync(RelativeUri("User/TestGuestLogout"), null);
response.EnsureSuccessStatusCode();
}
@@ -74,7 +74,7 @@ namespace Shogi.UI.Pages.Home.Api
var content = await response.Content.ReadAsStringAsync();
if (!string.IsNullOrEmpty(content))
{
return await response.Content.ReadFromJsonAsync<CreateTokenResponse>(serializerOptions);
return JsonSerializer.Deserialize<CreateTokenResponse>(content, serializerOptions);
}
}
return null;

View File

@@ -7,17 +7,8 @@
@if (guestAccountDescriptionIsVisible)
{
<h1>What&apos;s the difference?</h1>
@*<div class="account-description mb-4 bg-light p-2">
<h4>Feature</h4>
<h4>Guest Accounts</h4>
<h4>Email Accounts</h4>
<div>Resume in-progress games from any browser on any device.</div>
<span class="oi oi-circle-x" title="circle-x" aria-hidden="true"></span>
<span class="oi oi-circle-check" title="circle-check" aria-hidden="true"></span>
</div>*@
<p>
Guest accounts are session based, meaning that the account lives exclusively within the device and browser you create the account on.
Guest accounts are session based, meaning that the account lives exclusively within the device and browser you play on as a guest.
This is the only difference between guest and email accounts.
</p>
<div class="alert alert-warning">