From 47be99a78b6fea14e5266dfe6911f41c20a228b5 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 14 Mar 2025 18:47:27 +0100 Subject: [PATCH] refresh gestione versioni --- .../Components/CmpFooter.razor.cs | 10 ++++-- MP-MON/MP-MON.Client/MP-MON.Client.csproj | 8 +++++ MP-MON/MP-MON.Client/Pages/Counter.razor | 16 --------- MP-MON/MP-MON.Client/Pages/Counter.razor.cs | 23 ------------- .../Resources/ChangeLog-original.html | 25 ++++++++++++++ MP-MON/MP-MON.Client/Resources/ChangeLog.html | 25 ++++++++++++++ MP-MON/MP-MON.Client/Resources/VersNum.txt | 1 + .../MP-MON.Client/Resources/logoSteamware.png | Bin 0 -> 3402 bytes .../Resources/manifest-original.xml | 7 ++++ MP-MON/MP-MON.Client/Resources/manifest.xml | 7 ++++ MP-MON/MP-MON.Client/post-build.ps1 | 32 ++++++++++++++++++ .../MP-MON/Components/Layout/MainLayout.razor | 16 ++++++++- MP-MON/MP-MON/Components/Pages/Index.razor.cs | 7 +++- MP-MON/MP-MON/MP-MON.csproj | 2 +- .../MP-MON/Resources/ChangeLog-original.html | 25 ++++++++++++++ MP-MON/MP-MON/Resources/ChangeLog.html | 25 ++++++++++++++ MP-MON/MP-MON/Resources/VersNum.txt | 1 + MP-MON/MP-MON/Resources/logoSteamware.png | Bin 0 -> 3402 bytes MP-MON/MP-MON/Resources/manifest-original.xml | 7 ++++ MP-MON/MP-MON/Resources/manifest.xml | 7 ++++ MP-MON/MP-MON/post-build.ps1 | 32 ++++++++++++++++++ 21 files changed, 231 insertions(+), 45 deletions(-) delete mode 100644 MP-MON/MP-MON.Client/Pages/Counter.razor delete mode 100644 MP-MON/MP-MON.Client/Pages/Counter.razor.cs create mode 100644 MP-MON/MP-MON.Client/Resources/ChangeLog-original.html create mode 100644 MP-MON/MP-MON.Client/Resources/ChangeLog.html create mode 100644 MP-MON/MP-MON.Client/Resources/VersNum.txt create mode 100644 MP-MON/MP-MON.Client/Resources/logoSteamware.png create mode 100644 MP-MON/MP-MON.Client/Resources/manifest-original.xml create mode 100644 MP-MON/MP-MON.Client/Resources/manifest.xml create mode 100644 MP-MON/MP-MON.Client/post-build.ps1 create mode 100644 MP-MON/MP-MON/Resources/ChangeLog-original.html create mode 100644 MP-MON/MP-MON/Resources/ChangeLog.html create mode 100644 MP-MON/MP-MON/Resources/VersNum.txt create mode 100644 MP-MON/MP-MON/Resources/logoSteamware.png create mode 100644 MP-MON/MP-MON/Resources/manifest-original.xml create mode 100644 MP-MON/MP-MON/Resources/manifest.xml create mode 100644 MP-MON/MP-MON/post-build.ps1 diff --git a/MP-MON/MP-MON.Client/Components/CmpFooter.razor.cs b/MP-MON/MP-MON.Client/Components/CmpFooter.razor.cs index 3fee16cc..265ecce3 100644 --- a/MP-MON/MP-MON.Client/Components/CmpFooter.razor.cs +++ b/MP-MON/MP-MON.Client/Components/CmpFooter.razor.cs @@ -6,6 +6,13 @@ namespace MP.MON.Client.Components { public partial class CmpFooter : ComponentBase, IDisposable { + #region Public Properties + + [Parameter] + public Version version { get; set; } = null!; + + #endregion Public Properties + #region Public Methods public void Dispose() @@ -80,8 +87,6 @@ namespace MP.MON.Client.Components protected override void OnInitialized() { - var currAssembly = typeof(Program).Assembly.GetName(); - version = currAssembly.Version != null ? currAssembly.Version : new Version(); StartTimer(); Console.WriteLine($"OnInitialized completato"); } @@ -91,7 +96,6 @@ namespace MP.MON.Client.Components #region Private Fields private static System.Timers.Timer aTimer = null!; - private Version version = null!; #endregion Private Fields diff --git a/MP-MON/MP-MON.Client/MP-MON.Client.csproj b/MP-MON/MP-MON.Client/MP-MON.Client.csproj index 0d6b0559..9b68b90a 100644 --- a/MP-MON/MP-MON.Client/MP-MON.Client.csproj +++ b/MP-MON/MP-MON.Client/MP-MON.Client.csproj @@ -8,6 +8,7 @@ Default MP.MON.Client $(AssemblyName.Replace(' ', '_')) + 6.16.2503.1418 @@ -28,4 +29,11 @@ + + + + + + + diff --git a/MP-MON/MP-MON.Client/Pages/Counter.razor b/MP-MON/MP-MON.Client/Pages/Counter.razor deleted file mode 100644 index ca75070e..00000000 --- a/MP-MON/MP-MON.Client/Pages/Counter.razor +++ /dev/null @@ -1,16 +0,0 @@ -@page "/counter" -@rendermode InteractiveAuto - -Counter - -

Counter

- -

Current count: @currentCount

- - - -
- - - - diff --git a/MP-MON/MP-MON.Client/Pages/Counter.razor.cs b/MP-MON/MP-MON.Client/Pages/Counter.razor.cs deleted file mode 100644 index ce86b325..00000000 --- a/MP-MON/MP-MON.Client/Pages/Counter.razor.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Microsoft.AspNetCore.Components; -using System; - -namespace MP.MON.Client.Pages -{ - public partial class Counter : ComponentBase - { - #region Private Fields - - private int currentCount = 0; - - #endregion Private Fields - - #region Private Methods - - private void IncrementCount() - { - currentCount++; - } - - #endregion Private Methods - } -} \ No newline at end of file diff --git a/MP-MON/MP-MON.Client/Resources/ChangeLog-original.html b/MP-MON/MP-MON.Client/Resources/ChangeLog-original.html new file mode 100644 index 00000000..a2420fb9 --- /dev/null +++ b/MP-MON/MP-MON.Client/Resources/ChangeLog-original.html @@ -0,0 +1,25 @@ + + Modulo MAPOSPEC +

Versione: {{CURRENT-REL}}

+
Note di rilascio: + +
+
+ +
+
+ © Steamware 2006-2023 +
+
+ \ No newline at end of file diff --git a/MP-MON/MP-MON.Client/Resources/ChangeLog.html b/MP-MON/MP-MON.Client/Resources/ChangeLog.html new file mode 100644 index 00000000..1664133a --- /dev/null +++ b/MP-MON/MP-MON.Client/Resources/ChangeLog.html @@ -0,0 +1,25 @@ + + Modulo MAPOSPEC +

Versione: 6.16.2503.1418

+
Note di rilascio: + +
+
+ +
+
+ © Steamware 2006-2023 +
+
+ diff --git a/MP-MON/MP-MON.Client/Resources/VersNum.txt b/MP-MON/MP-MON.Client/Resources/VersNum.txt new file mode 100644 index 00000000..7d5437b1 --- /dev/null +++ b/MP-MON/MP-MON.Client/Resources/VersNum.txt @@ -0,0 +1 @@ +6.16.2503.1418 diff --git a/MP-MON/MP-MON.Client/Resources/logoSteamware.png b/MP-MON/MP-MON.Client/Resources/logoSteamware.png new file mode 100644 index 0000000000000000000000000000000000000000..0958b50a1ee7f6a934e26cf55e2335d4cea6aa82 GIT binary patch literal 3402 zcmV-Q4Yl%#P)Kpl00004XF*Lt006O% z3;baP00009a7bBm000ia000ia0czHX2><{98FWQhbW?9;ba!ELWdKlNX>N2bPDNB8 zb~7$DE;85dX+r=2497`CK~#8N?VEXYRMi>4lgUh$nd~9N?8#&%lgvKZ7a%JLgb=8< zJ+;y z?+!1~Kq%Ee{3ChaIrqG~eD}UL@B6*)`|g{Wuy0Bd19D`vPgk>EW=B z{upI=m_+%c`RJTNcSmx!oT+rHqRMcI3&>_bIUd#}ol(j`U6)j)3=b3Z<}?0@#w%?H z#_YW32Q(?Y!Ej|*6;;kkq)##e$!CL50nS0aZ)B+OVzHEO83M9f=aaHy{L*~p*BJb= z3YIEgNJ6(98R3HyIED%LNjMf>C*1JAO!fMiKO#~X!rN)hNTWX{LH_1E-X zIXbg97@xsWQBh^AOV-+8RFqe;>b(6{z|ad11Te>h=K`|cc)ygasGgOM{&1aFY5~S= zK)yfDTZW1Jo%2 z6=gF<&*Yd!aZn6GFSSS3qL-2okYmC+B@YnpB7t8GSZM%S8snD}Lks>7AulTh+BaD9 zDD(S)^XmL{vQ`;ZWi$yPuarFNC5+uinH%GiV*%!m)b|3|yd=LIF^;ea6ger~a#Td8 z6iFU7MempFF>sk?yS5Rm+gP-v$9GGl8Zy;3$FXBH&{ z&Y+OHrA7JVP7ziKn{VOeTrocB2G%?|2o?Q-#DJ8fOi^Vt%lIBygSToVq}_}+DgY1z z06YQ+$AId7U@`&AE5Owe>zBqU(}oH9<>^^)K|`P$how5o<%?;;mO_vDm@|3810uX!=sgjb@rQ6#lTPR?EzbO2Q=Ugslnp{IfBf?iASlW##s>=HMm z_nx08jT5gU0+LQ?sxlS@FZCD+_J5MPJl)`hgMRZ-;&(feibi-X1FLr(L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wRo{tF?>y0xHU< zqAmnjS{Oe#p{hCr-Nf37(HQtWpz}_su8C&+Nnvo--_DwCtRtZKoa1p|zmo9{Vw^R4 zN?h(Ft|uS3r&7MhoE7LDQS@*8GE`jKN_0x?Mb>&?;`8Mn1L)iMEOpfTgbtt4Us+b6 zdMhEGjX_PkPfkzoku&TYga21BgCPO(1ozl-i^ z=A2~Rw`dFRCgzGcTPUIYZcK~#u8+`n8#}|@c&R?>*F|+nQOfW|g&f0xVV>b;?kB{h zoeLE={St2aRt&J2oZ~9OTLoUtgi$j%>aB%ERm?jKY)hOrTP`{d#zg+|wV)!5S~0l9 zIgg^ZhvNX(^AN{RX}?Vop=tmRRS#qp)Pt0hoWGOy?bHu*jtfFXJ~oT>LlE)VKHzh0 zq;D0UnmAVth`T7al2WV5Y;mw8qPK@|APxkMD<|&M@ z8LwrnsjSY&Q}qGLRzhhzV=Jf&PqSE@@2f&pT~VQB?Yq%CB@E9wH~&j|;>9CSBvE}{Dwz^d_n(7;c zr?rXe;u^djhg0Nr&vNd?^jWggGpwxLF6LF0S2l$fN6?8vrp9kk&HU@PK gb@ksMRAFKN1+dqwbM3SFTL1t607*qoM6N<$g3&)|djJ3c literal 0 HcmV?d00001 diff --git a/MP-MON/MP-MON.Client/Resources/manifest-original.xml b/MP-MON/MP-MON.Client/Resources/manifest-original.xml new file mode 100644 index 00000000..f95e0763 --- /dev/null +++ b/MP-MON/MP-MON.Client/Resources/manifest-original.xml @@ -0,0 +1,7 @@ + + + 1.0.0.0 + https://nexus.steamware.net/repository/SWS/{{DIRNAME}}/{{BRANCHNAME}}/{{PACKNAME}}.zip + https://nexus.steamware.net/repository/SWS/{{DIRNAME}}/{{BRANCHNAME}}/ChangeLog.html + false + diff --git a/MP-MON/MP-MON.Client/Resources/manifest.xml b/MP-MON/MP-MON.Client/Resources/manifest.xml new file mode 100644 index 00000000..b59b180d --- /dev/null +++ b/MP-MON/MP-MON.Client/Resources/manifest.xml @@ -0,0 +1,7 @@ + + + 6.16.2503.1418 + 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 + diff --git a/MP-MON/MP-MON.Client/post-build.ps1 b/MP-MON/MP-MON.Client/post-build.ps1 new file mode 100644 index 00000000..547caf3c --- /dev/null +++ b/MP-MON/MP-MON.Client/post-build.ps1 @@ -0,0 +1,32 @@ +param([string]$ProjectDir, [string]$ProjectPath); + +$FileMajMin = "..\..\MajMin.vers" +$FileVers = "Resources\VersNum.txt" +$FileManIn = "Resources\manifest-original.xml" +$FileManOut = "Resources\manifest.xml" +$FileCLogIn = "Resources\ChangeLog-original.html" +$FileCLogOut = "Resources\ChangeLog.html" +$MajMin = Get-Content $FileMajMin +$currentDate = get-date -format yyMM; +$currentTime = get-date -format dHH; +$find = "(.|\n)*?"; +$currRelNum = $MajMin + $currentDate +"." + $currentTime +$replace = "" + $MajMin + $currentDate +"." + $currentTime + ""; +$csproj = Get-Content $ProjectPath +$csprojUpdated = $csproj -replace $find, $replace + +Set-Content -Path $ProjectPath -Value $csprojUpdated +Set-Content -Path $FileVers -Value $currRelNum + +# replace x manifest +$manData = Get-Content $FileManIn +$manData = $manData -replace "1.0.0.0", $currRelNum +$manData = $manData -replace "{{DIRNAME}}", "MP-TAB3" +$manData = $manData -replace "{{BRANCHNAME}}", "stable/LAST" +$manData = $manData -replace "{{PACKNAME}}", "MP-TAB3" +Set-Content -Path $FileManOut -Value $manData + +# replace x ChangeLog +$clogData = Get-Content $FileCLogIn +$clogData = $clogData -replace "{{CURRENT-REL}}", $currRelNum +Set-Content -Path $FileCLogOut -Value $clogData diff --git a/MP-MON/MP-MON/Components/Layout/MainLayout.razor b/MP-MON/MP-MON/Components/Layout/MainLayout.razor index 9486d116..fd43cc55 100644 --- a/MP-MON/MP-MON/Components/Layout/MainLayout.razor +++ b/MP-MON/MP-MON/Components/Layout/MainLayout.razor @@ -12,7 +12,7 @@ @Body
- +
@@ -22,3 +22,17 @@ Reload 🗙 +@code{ + + protected override void OnInitialized() + { + // base.OnInitialized(); + var currAssembly = typeof(Program).Assembly.GetName(); + version = currAssembly.Version != null ? currAssembly.Version : new Version(); + } + + /// + /// Versione applicativo ada passare al controllo footer + /// + private Version version = null!; +} \ No newline at end of file diff --git a/MP-MON/MP-MON/Components/Pages/Index.razor.cs b/MP-MON/MP-MON/Components/Pages/Index.razor.cs index 38edbe6b..d48774c4 100644 --- a/MP-MON/MP-MON/Components/Pages/Index.razor.cs +++ b/MP-MON/MP-MON/Components/Pages/Index.razor.cs @@ -232,7 +232,7 @@ namespace MP.MON.Components.Pages Random rnd = new Random(); cssOverlayOff = config.GetValue("ServerConf:cssOverlayOff") ?? ""; maxChar4Scroll = config.GetValue("ServerConf:maxChar4Scroll"); - await Task.Delay(rnd.Next(400, 600)); + await Task.Delay(rnd.Next(50, 150)); StartTimer(); } @@ -248,6 +248,7 @@ namespace MP.MON.Components.Pages private string CodGruppo = ""; private string cssOverlayOff = "bg-dark text-light opacity-100"; + private List? CurrConfig = null; private bool doBlink = false; @@ -265,6 +266,10 @@ namespace MP.MON.Components.Pages #endregion Private Fields + #region Private Properties + + #endregion Private Properties + #region Private Methods /// diff --git a/MP-MON/MP-MON/MP-MON.csproj b/MP-MON/MP-MON/MP-MON.csproj index be746acb..279b7f55 100644 --- a/MP-MON/MP-MON/MP-MON.csproj +++ b/MP-MON/MP-MON/MP-MON.csproj @@ -6,6 +6,7 @@ enable MP.MON $(AssemblyName.Replace(' ', '_')) + 6.16.2503.1409 @@ -13,7 +14,6 @@ - Always diff --git a/MP-MON/MP-MON/Resources/ChangeLog-original.html b/MP-MON/MP-MON/Resources/ChangeLog-original.html new file mode 100644 index 00000000..a2420fb9 --- /dev/null +++ b/MP-MON/MP-MON/Resources/ChangeLog-original.html @@ -0,0 +1,25 @@ + + Modulo MAPOSPEC +

Versione: {{CURRENT-REL}}

+
Note di rilascio: +
    +
  • + Ultime modifiche: +
      {{LAST-CHANGES}}
    +
  • +
  • + v.6.15.* → +
      +
    • Prima release dotnet6
    • +
    +
  • +
+
+
+ +
+ +
+ \ No newline at end of file diff --git a/MP-MON/MP-MON/Resources/ChangeLog.html b/MP-MON/MP-MON/Resources/ChangeLog.html new file mode 100644 index 00000000..407fcaf8 --- /dev/null +++ b/MP-MON/MP-MON/Resources/ChangeLog.html @@ -0,0 +1,25 @@ + + Modulo MAPOSPEC +

Versione: 6.16.2503.1410

+
Note di rilascio: +
    +
  • + Ultime modifiche: +
      {{LAST-CHANGES}}
    +
  • +
  • + v.6.15.* → +
      +
    • Prima release dotnet6
    • +
    +
  • +
+
+
+ +
+ +
+ diff --git a/MP-MON/MP-MON/Resources/VersNum.txt b/MP-MON/MP-MON/Resources/VersNum.txt new file mode 100644 index 00000000..8ede05b5 --- /dev/null +++ b/MP-MON/MP-MON/Resources/VersNum.txt @@ -0,0 +1 @@ +6.16.2503.1410 diff --git a/MP-MON/MP-MON/Resources/logoSteamware.png b/MP-MON/MP-MON/Resources/logoSteamware.png new file mode 100644 index 0000000000000000000000000000000000000000..0958b50a1ee7f6a934e26cf55e2335d4cea6aa82 GIT binary patch literal 3402 zcmV-Q4Yl%#P)Kpl00004XF*Lt006O% z3;baP00009a7bBm000ia000ia0czHX2><{98FWQhbW?9;ba!ELWdKlNX>N2bPDNB8 zb~7$DE;85dX+r=2497`CK~#8N?VEXYRMi>4lgUh$nd~9N?8#&%lgvKZ7a%JLgb=8< zJ+;y z?+!1~Kq%Ee{3ChaIrqG~eD}UL@B6*)`|g{Wuy0Bd19D`vPgk>EW=B z{upI=m_+%c`RJTNcSmx!oT+rHqRMcI3&>_bIUd#}ol(j`U6)j)3=b3Z<}?0@#w%?H z#_YW32Q(?Y!Ej|*6;;kkq)##e$!CL50nS0aZ)B+OVzHEO83M9f=aaHy{L*~p*BJb= z3YIEgNJ6(98R3HyIED%LNjMf>C*1JAO!fMiKO#~X!rN)hNTWX{LH_1E-X zIXbg97@xsWQBh^AOV-+8RFqe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&HU@PK gb@ksMRAFKN1+dqwbM3SFTL1t607*qoM6N<$g3&)|djJ3c literal 0 HcmV?d00001 diff --git a/MP-MON/MP-MON/Resources/manifest-original.xml b/MP-MON/MP-MON/Resources/manifest-original.xml new file mode 100644 index 00000000..f95e0763 --- /dev/null +++ b/MP-MON/MP-MON/Resources/manifest-original.xml @@ -0,0 +1,7 @@ + + + 1.0.0.0 + https://nexus.steamware.net/repository/SWS/{{DIRNAME}}/{{BRANCHNAME}}/{{PACKNAME}}.zip + https://nexus.steamware.net/repository/SWS/{{DIRNAME}}/{{BRANCHNAME}}/ChangeLog.html + false + diff --git a/MP-MON/MP-MON/Resources/manifest.xml b/MP-MON/MP-MON/Resources/manifest.xml new file mode 100644 index 00000000..470888b7 --- /dev/null +++ b/MP-MON/MP-MON/Resources/manifest.xml @@ -0,0 +1,7 @@ + + + 6.16.2503.1410 + 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 + diff --git a/MP-MON/MP-MON/post-build.ps1 b/MP-MON/MP-MON/post-build.ps1 new file mode 100644 index 00000000..547caf3c --- /dev/null +++ b/MP-MON/MP-MON/post-build.ps1 @@ -0,0 +1,32 @@ +param([string]$ProjectDir, [string]$ProjectPath); + +$FileMajMin = "..\..\MajMin.vers" +$FileVers = "Resources\VersNum.txt" +$FileManIn = "Resources\manifest-original.xml" +$FileManOut = "Resources\manifest.xml" +$FileCLogIn = "Resources\ChangeLog-original.html" +$FileCLogOut = "Resources\ChangeLog.html" +$MajMin = Get-Content $FileMajMin +$currentDate = get-date -format yyMM; +$currentTime = get-date -format dHH; +$find = "(.|\n)*?"; +$currRelNum = $MajMin + $currentDate +"." + $currentTime +$replace = "" + $MajMin + $currentDate +"." + $currentTime + ""; +$csproj = Get-Content $ProjectPath +$csprojUpdated = $csproj -replace $find, $replace + +Set-Content -Path $ProjectPath -Value $csprojUpdated +Set-Content -Path $FileVers -Value $currRelNum + +# replace x manifest +$manData = Get-Content $FileManIn +$manData = $manData -replace "1.0.0.0", $currRelNum +$manData = $manData -replace "{{DIRNAME}}", "MP-TAB3" +$manData = $manData -replace "{{BRANCHNAME}}", "stable/LAST" +$manData = $manData -replace "{{PACKNAME}}", "MP-TAB3" +Set-Content -Path $FileManOut -Value $manData + +# replace x ChangeLog +$clogData = Get-Content $FileCLogIn +$clogData = $clogData -replace "{{CURRENT-REL}}", $currRelNum +Set-Content -Path $FileCLogOut -Value $clogData