From 6c109f3a45fe7575c436b6e6e15ea16d6ae6eced Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Sat, 1 Mar 2025 10:04:36 +0100 Subject: [PATCH] Ancora fix minori x display update in reset pagina TAB3 --- MP-TAB3/MP-TAB3.csproj | 2 +- MP-TAB3/Pages/ForceReset.razor | 57 ++++++++++++++++++++++++-------- MP-TAB3/Resources/ChangeLog.html | 2 +- MP-TAB3/Resources/VersNum.txt | 2 +- MP-TAB3/Resources/manifest.xml | 2 +- 5 files changed, 48 insertions(+), 17 deletions(-) diff --git a/MP-TAB3/MP-TAB3.csproj b/MP-TAB3/MP-TAB3.csproj index cfa0a166..d17b2802 100644 --- a/MP-TAB3/MP-TAB3.csproj +++ b/MP-TAB3/MP-TAB3.csproj @@ -3,7 +3,7 @@ net6.0 enable - 6.16.2502.2815 + 6.16.2503.109 enable MP_TAB3 diff --git a/MP-TAB3/Pages/ForceReset.razor b/MP-TAB3/Pages/ForceReset.razor index b2688f6d..75993290 100644 --- a/MP-TAB3/Pages/ForceReset.razor +++ b/MP-TAB3/Pages/ForceReset.razor @@ -1,20 +1,20 @@ @page "/force-reset" -
-
- -
-
- +
+
+ +
+
+ +
+
+ + +
+
-@*
    -
  • Reset and reload data
  • -
  • Redis Cache reset
  • -
  • Browser Local Data reset
  • -
  • Browser Session Data reset
  • -
*@ @code { @@ -23,19 +23,50 @@ [Inject] protected MessageService MsgServ { get; set; } = null!; + private int currVal = 0; + private int nextVal = 0; + private int expTimeMsec = 10; + private int bDelay = 350; + private string title = "..."; /// /// Esecuzione task di reset... /// /// protected override async Task OnInitializedAsync() { + title = "Reset and Reload Data"; + currVal = 0; + nextVal = 10; + await InvokeAsync(StateHasChanged); // svuoto cache MsgServ.LastIdxMacchina = ""; + await Task.Delay(bDelay); + title = "Clearing Local Browser Data"; + currVal = 10; + nextVal = 30; + await InvokeAsync(StateHasChanged); await MsgServ.ClearLocalStor(); + await Task.Delay(bDelay); + title = "Clearing Session Browser Data"; + currVal = 30; + nextVal = 50; + await InvokeAsync(StateHasChanged); await MsgServ.ClearSessionStor(); + await Task.Delay(bDelay); + title = "Final Cache cleanup..."; + currVal = 50; + nextVal = 80; + MsgServ.RigaOper = null; + MsgServ.LastIdxMacchina = ""; + await InvokeAsync(StateHasChanged); + await Task.Delay(2 * bDelay); // attendo - await Task.Delay(1000); + title = "Reload!"; + currVal = 80; + nextVal = 100; + await InvokeAsync(StateHasChanged); // rimando alla home... + await Task.Delay(bDelay); navManager.NavigateTo("", true); } } diff --git a/MP-TAB3/Resources/ChangeLog.html b/MP-TAB3/Resources/ChangeLog.html index 4fc06f35..72886eac 100644 --- a/MP-TAB3/Resources/ChangeLog.html +++ b/MP-TAB3/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2502.2815

+

Versione: 6.16.2503.109


Note di rilascio:
  • diff --git a/MP-TAB3/Resources/VersNum.txt b/MP-TAB3/Resources/VersNum.txt index b26d2fc7..3e173973 100644 --- a/MP-TAB3/Resources/VersNum.txt +++ b/MP-TAB3/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2502.2815 +6.16.2503.109 diff --git a/MP-TAB3/Resources/manifest.xml b/MP-TAB3/Resources/manifest.xml index f13cf498..55ca810d 100644 --- a/MP-TAB3/Resources/manifest.xml +++ b/MP-TAB3/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2502.2815 + 6.16.2503.109 https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/MP-TAB3.zip https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/ChangeLog.html false