Skip to content

Commit e85ce28

Browse files
Merge branch 'main' into 92-scrolling-with-lower-vertical-resolution
2 parents 160525d + b3f926f commit e85ce28

11 files changed

Lines changed: 37 additions & 13 deletions

src/CodeBreaker.Blazor.Client/CodeBreaker.Blazor.Client.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
<BlazorWebAssemblyLoadAllGlobalizationData>true</BlazorWebAssemblyLoadAllGlobalizationData>
88
<Configurations>Debug;Release;</Configurations>
9+
<UserSecretsId>de8c977a-d6ea-49f0-8090-ba49c09dad1f</UserSecretsId>
910
</PropertyGroup>
1011

1112
<ItemGroup>

src/CodeBreaker.Blazor.Client/Pages/GamePage.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
{
5959
<div class="header flex">
6060
<div>
61-
<h2 class="flex-1">@_game?.GameType</h2>
61+
<h2 class="flex-1">@Loc["GamePage_Title"] @FormatGameTypeString(_game?.GameType)</h2>
6262
<StopWatch Running="@(_gameStatus == GameMode.MoveSet || _gameStatus == GameMode.Started)" />
6363
</div>
6464
<div>

src/CodeBreaker.Blazor.Client/Pages/GamePage.razor.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ private async ValueTask OnLocationChanging(LocationChangingContext context)
217217
StateHasChanged();
218218
}
219219

220+
private string? FormatGameTypeString(string? gameTypeString) =>
221+
gameTypeString?.Replace("Game", null);
222+
220223
public void Dispose()
221224
{
222225
_timer?.Dispose();

src/CodeBreaker.Blazor.Client/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
options.ProviderOptions.DefaultAccessTokenScopes.Add("openid");
2121
options.ProviderOptions.DefaultAccessTokenScopes.Add("profile");
2222
options.ProviderOptions.DefaultAccessTokenScopes.Add("offline_access");
23-
options.ProviderOptions.DefaultAccessTokenScopes.Add("https://codebreaker3000.onmicrosoft.com/gateway/games.play");
23+
//options.ProviderOptions.DefaultAccessTokenScopes.Add("https://codebreaker3000.onmicrosoft.com/gateway/games.play");
2424
//options.ProviderOptions.DefaultAccessTokenScopes.Add("https://codebreaker3000.onmicrosoft.com/gateway/live.observe");
2525
//options.ProviderOptions.DefaultAccessTokenScopes.Add("https://codebreaker3000.onmicrosoft.com/gateway/ranking.query");
2626
//options.ProviderOptions.DefaultAccessTokenScopes.Add("https://codebreaker3000.onmicrosoft.com/gateway/bot.trigger");
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"DetailedErrors": true,
3-
"AzureAdB2C:RedirectUri": "http://localhost:5208/authentication/login-callback",
3+
"AzureAdB2C": {
4+
"Authority": "https://codebreakertest.b2clogin.com/codebreakertest.onmicrosoft.com/B2C_1_SUSI",
5+
"ClientId": "6f3b0b17-f116-4b56-a63f-74a16b02730a",
6+
"ValidateAuthority": false,
7+
"RedirectUri": "http://localhost:5208/authentication/login-callback"
8+
},
49
"GameServiceBaseAddress": "http://localhost:5011/games",
510
"UserServicePublicBaseAddress": "http://localhost:5011/users/public"
611
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
{
2+
"AzureAdB2C": {
3+
"Authority": "https://codebreaker3000.b2clogin.com/codebreaker3000.onmicrosoft.com/B2C_1_SUSI",
4+
"ClientId": "558b37b7-0a71-4463-9d3c-d74220b7e5ee",
5+
"ValidateAuthority": false,
6+
"RedirectUri": "https://blazor.codebreaker.app/authentication/login-callback"
7+
},
8+
"GameServiceBaseAddress": "https://codebreaker.cninnovation.com/games",
9+
"UserServicePublicBaseAddress": "https://codebreaker.cninnovation.com/users/public"
210
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"DetailedErrors": true,
3+
"AzureAdB2C": {
4+
"Authority": "https://codebreakertest.b2clogin.com/codebreakertest.onmicrosoft.com/B2C_1_SUSI",
5+
"ClientId": "6f3b0b17-f116-4b56-a63f-74a16b02730a",
6+
"ValidateAuthority": false,
7+
"RedirectUri": "https://testblazor.codebreaker.app/authentication/login-callback"
8+
},
9+
"GameServiceBaseAddress": "https://testgateway.codebreaker.app/games",
10+
"UserServicePublicBaseAddress": "https://testgateway.codebreaker.app/users/public"
11+
}
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,2 @@
11
{
2-
"AzureAdB2C": {
3-
"Authority": "https://codebreaker3000.b2clogin.com/codebreaker3000.onmicrosoft.com/B2C_1_SUSI",
4-
"ClientId": "558b37b7-0a71-4463-9d3c-d74220b7e5ee",
5-
"ValidateAuthority": false,
6-
"RedirectUri": "https://blazor.codebreaker.app/authentication/login-callback"
7-
},
8-
"GameServiceBaseAddress": "https://codebreaker.cninnovation.com/games",
9-
"UserServicePublicBaseAddress": "https://codebreaker.cninnovation.com/users/public"
102
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
{
2+
"GameServiceBaseAddress": "https://codebreaker.cninnovation.com/games",
3+
"UserServicePublicBaseAddress": "https://codebreaker.cninnovation.com/users/public"
24
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"GameServiceBaseAddress": "https://testgateway.codebreaker.app/games",
3+
"UserServicePublicBaseAddress": "https://testgateway.codebreaker.app/users/public"
4+
}

0 commit comments

Comments
 (0)