Sorry, there's nothing at this address.
-@L["App_NotFound"]
+Current count: @currentCount
- - - -@code { - private int currentCount = 0; - - private void IncrementCount() - { - currentCount++; - } -} diff --git a/src/FastGeography.Client/Pages/GameTable.razor b/src/FastGeography.Client/Pages/GameTable.razor index 9257666..865657e 100644 --- a/src/FastGeography.Client/Pages/GameTable.razor +++ b/src/FastGeography.Client/Pages/GameTable.razor @@ -1,203 +1,267 @@ -@page "/fastgeography" -@using BingMapsRESTToolkit; -@using System.Net.Http.Json; -@using System.Linq; -@using FastGeography.Shared; -@inject HttpClient HttpClient; +@page "/" +@page "/fastgeography" +@implements IDisposable +@using System.Net.Http.Json +@using System.Linq +@using FastGeography.Shared +@inject HttpClient HttpClient +@inject ILogger+ @L["Login_NoAccount"] @L["Login_RegisterLink"] +
+@RoomCode| @L["Col_Letter"] | +@L["Col_City"] | +@L["Col_Village"] | +@L["Col_Country"] | +@L["Col_River"] | +@L["Col_Mountain"] | +@L["Col_Check"] | +
|---|---|---|---|---|---|---|
| @_letter | ++ | + | + | + | + |
+ |
+
| @_letter | +@L["MpGame_WaitingPlayers"] | ++ | ||||
| # | @L["Col_Player"] | @L["Col_Points"] | +@L["Col_City"] | @L["Col_Village"] | @L["Col_Country"] | @L["Col_River"] | @L["Col_Mountain"] | +
|---|---|---|---|---|---|---|---|
| @r.Rank | +
+
+
+ |
+ @r.TotalPoints | + @foreach (var d in r.Details) + { ++ @(string.IsNullOrEmpty(d.Answer) ? "–" : d.Answer) + @d.Points @L["MpGame_Pts"] + | + } +
@L["Mp_Description"]
+ + @if (_returnRoomCode is not null) + { +@L["Mp_CreateRoomDesc"]
+| @L["Col_Category"] | @L["Col_Answer"] | @L["Col_Points"] |
|---|---|---|
| @L[$"Location_{d.Type}"] | +
+ @(string.IsNullOrEmpty(d.Answer) ? "–" : d.Answer)
+ @if (!string.IsNullOrEmpty(d.Answer))
+ {
+ |
+ @d.Points | +
| @L["Col_Letter"] | +@L["Col_City"] | +@L["Col_Village"] | +@L["Col_Country"] | +@L["Col_River"] | +@L["Col_Mountain"] | ++ |
|---|---|---|---|---|---|---|
| @_letter | ++ | + | + | + | + |
+ |
+
+ @L["Reg_HaveAccount"] @L["Reg_SignInLink"] +
+@L["Sb_NoScores"]
+ } + else + { +| @L["Sb_ColRank"] | +@L["Sb_ColExplorer"] | +@L["Sb_ColBadge"] | +@L["Sb_ColPoints"] | +@L["Sb_ColGames"] | +
|---|---|---|---|---|
| + @if (e.Rank == 1) { 🥇 } + else if (e.Rank == 2) { 🥈 } + else if (e.Rank == 3) { 🥉 } + else { @e.Rank } + | +
+
+
+ |
+ @L[$"Badge_{e.Badge}"] | +@e.CareerPoints | +@e.GamesPlayed | +
+ @string.Format(L["Sb_Me_GamesSummary"]!, _stats.GamesPlayed) +
+ +@L["Sb_Me_NoRounds"]
+ } + else + { +| @L["Sb_Me_ColPlayedAt"] | +@L["Sb_Me_ColMode"] | +@L["Col_Letter"] | +@L["Sb_ColPoints"] | +
|---|---|---|---|
| @round.PlayedAt.ToLocalTime().ToString("g") | +@FormatMode(round.Mode) | +@round.Letter | +@round.Points | +
@_story.Story
+ @if (_showPopoverImage && !string.IsNullOrWhiteSpace(_story.ImageAttribution)) + { ++ @string.Format(L["Stories_ViaSource"]!, _story.ImageAttribution) +
+ } +
-
- }
+
-
- }
+
-
- }
+
-
- }
+
-
- }
+