diff --git a/LearningChineseFixed/Client/Program.cs b/LearningChineseFixed/Client/Program.cs index 4d4a31f..299efc7 100644 --- a/LearningChineseFixed/Client/Program.cs +++ b/LearningChineseFixed/Client/Program.cs @@ -20,6 +20,8 @@ namespace LearningChineseFixed { config.SnackbarConfiguration.ShowTransitionDuration = 100; config.SnackbarConfiguration.HideTransitionDuration = 100; + config.SnackbarConfiguration.VisibleStateDuration = 3000; + config.SnackbarConfiguration.PositionClass = Defaults.Classes.Position.BottomCenter; }); builder.Services.AddBlazoredLocalStorage(); diff --git a/LearningChineseFixed/Pages/Index.razor b/LearningChineseFixed/Pages/Index.razor index 151a32e..b810a7f 100644 --- a/LearningChineseFixed/Pages/Index.razor +++ b/LearningChineseFixed/Pages/Index.razor @@ -35,7 +35,7 @@ @code{ - int numOfChunks = 100; //Exclusive index 0 + int numOfChunks = 197; //Exclusive index 0 int selectedChunk = 0; protected override void OnInitialized() diff --git a/LearningChineseFixed/Pages/Learn.razor b/LearningChineseFixed/Pages/Learn.razor index 672b87e..5f7c162 100644 --- a/LearningChineseFixed/Pages/Learn.razor +++ b/LearningChineseFixed/Pages/Learn.razor @@ -27,7 +27,9 @@ - Skip + Avoid + Meaning + Pinyin @@ -146,8 +148,8 @@
  • Correct answer: @correctCChar.pinyin.ToTitleCase()
  • Meaning: @correctCChar.definition
  • - - , Severity.Error); + + , Severity.Error); } GenerateQuestion(); @@ -190,4 +192,14 @@ Console.WriteLine("Remaining CChars: " + DontSkipTheseCChar); GenerateQuestion(); } + + public void ShowMeaning() + { + Snackbar.Add($"Definition: {GetCorrectCChar().definition}", Severity.Info); + } + + public void ShowPinyin() + { + Snackbar.Add($"Pinyin: {GetCorrectCChar().pinyin.ToTitleCase()}", Severity.Info); + } } diff --git a/LearningChineseFixed/Properties/launchSettings.json b/LearningChineseFixed/Properties/launchSettings.json index 4d80d7e..1c29303 100644 --- a/LearningChineseFixed/Properties/launchSettings.json +++ b/LearningChineseFixed/Properties/launchSettings.json @@ -8,7 +8,7 @@ }, "dotnetRunMessages": true, "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", - "applicationUrl": "http://localhost:5198;http:/0.0.0.0:420/" + "applicationUrl": "http://localhost:5198;http://0.0.0.0:420/" }, "IIS Express": { "commandName": "IISExpress", @@ -23,7 +23,7 @@ "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { - "applicationUrl": "http://localhost:24989", + "applicationUrl": "http://localhost:7860", "sslPort": 0 } } diff --git a/LearningChineseSimplified/LearningChineseSimplified.csproj b/LearningChineseSimplified/LearningChineseSimplified.csproj deleted file mode 100644 index 56204d0..0000000 --- a/LearningChineseSimplified/LearningChineseSimplified.csproj +++ /dev/null @@ -1,21 +0,0 @@ - - - net6.0 - enable - enable - service-worker-assets.js - - - - - - - - - - - - - - - diff --git a/LearningChineseSimplified/Properties/launchSettings.json b/LearningChineseSimplified/Properties/launchSettings.json deleted file mode 100644 index 2e947c4..0000000 --- a/LearningChineseSimplified/Properties/launchSettings.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}" - }, - "Mudblazor.Template": { - "commandName": "Project", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "dotnetRunMessages": "true", - "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", - "applicationUrl": "https://localhost:5001;http://0.0.0.0:420" - } - }, - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:65283", - "sslPort": 44398 - } - } -} \ No newline at end of file