- aggiunta orologio grande in alto
- review pagina in generale
This commit is contained in:
Samuele Locatelli
2025-03-17 10:17:03 +01:00
parent 86c5657d51
commit 69c010a9af
14 changed files with 79 additions and 60 deletions
+9 -6
View File
@@ -1,14 +1,17 @@
<div class="d-flex justify-content-between text-light">
<div class="d-flex justify-content-between text-light fs-4">
<div class="px-1">
<b>Mapo MON .net 8 @(DateTime.Today.Year)</b> | <span class="small">v.@version</span>
<b>Mapo MON @(DateTime.Today.Year)</b> | <span class="small">v.@version</span>
</div>
<div class="px-2">
@if (Width > 0)
{
<small class="small align-items-center"> | @Width x @Height | </small>
<small class="small align-items-center">@Width x @Height | </small>
}
<small class="ps-1 small align-items-center">@(OperatingSystem.IsBrowser() ? "WASM" : "Server")</small>
</div>
<div class="px-2">
<span class="small">@($"{DateTime.Now:HH:mm:ss}")</span> | <a class="text-light" href="https://www.egalware.com/" target="_blank"><img class="img-fluid" width="16" src="images/LogoEgw.png" /> Egalware </a>
@* <span class="">
@($"{DateTime.Now:HH:mm:ss}")
</span> *@
| <a class="text-light" href="https://www.egalware.com/" target="_blank"><img class="img-fluid" width="16" src="images/LogoEgw.png" /> Egalware </a>
</div>
</div>
+1 -2
View File
@@ -17,7 +17,6 @@ namespace MP.MON.Client.Components
public void Dispose()
{
//aTimer.Elapsed -= ElapsedTimer;
aTimer.Stop();
aTimer.Dispose();
}
@@ -88,7 +87,7 @@ namespace MP.MON.Client.Components
protected override void OnInitialized()
{
StartTimer();
Console.WriteLine($"OnInitialized completato");
Console.WriteLine($"OnInitialized Footer completato");
}
#endregion Protected Methods
+11 -42
View File
@@ -1,51 +1,20 @@
<div class="px-2">
<img class="logoImg img-fluid" src="images/LogoMapo.png" height="24" />
<img class="logoImg img-fluid" src="images/LogoMapo.png" height="20" />
<span class="px-5 mx-5">&nbsp;</span>
</div>
<div class="px-2">
<NavLink class="mainHead p-3 align-middle" href="force-reload" style="text-decoration:none;">
<span><b><span style="color: #DEDEDE;">MP MON</span>itor</b></span>
<span class="fs-2"><span style="color: #DEDEDE;">Mapo MON</span>itor</span>
</NavLink>
</div>
<div class="px-2">
<span id="text-white text-right">
@($"{DateTime.Now:dddd dd MMMM yyyy}")
@($"{DateTime.Now:dddd yyyy.MM.dd}")
</span>
<img class="logoImg img-fluid" src="images/logoCliente.png" height="24" />
EgalWare
<span class="text-white fw-bold fs-2">
@($"{DateTime.Now:HH:mm:ss}")
</span>
@* <img class="logoImg img-fluid" src="images/logoCliente.png" height="24" />
<span class=" text-white">EgalWare</span> *@
</div>
@code {
//protected override async Task OnInitializedAsync()
//{
// StartTimer();
//}
//public void Dispose()
//{
// aTimer.Stop();
// aTimer.Dispose();
//}
//private static System.Timers.Timer aTimer;
//public void StartTimer()
//{
// int tOutPeriod = 60000;
// //int.TryParse(Configuration["ReloadStatusTimer"], out tOutPeriod);
// aTimer = new System.Timers.Timer(tOutPeriod);
// aTimer.Elapsed += ElapsedTimer;
// aTimer.Enabled = true;
// aTimer.Start();
//}
//public void ElapsedTimer(Object source, System.Timers.ElapsedEventArgs e)
//{
// var pUpd = Task.Run(async () =>
// {
// //await ReloadData();
// await Task.Delay(1);
// await InvokeAsync(StateHasChanged);
// });
// pUpd.Wait();
//}
}
@@ -0,0 +1,44 @@
using Microsoft.AspNetCore.Components;
namespace MP.MON.Client.Components
{
public partial class CmpHeader: ComponentBase, IDisposable
{
protected override void OnInitialized()
{
StartTimer();
Console.WriteLine($"OnInitialized Header completato");
}
public void Dispose()
{
aTimer.Stop();
aTimer.Dispose();
}
private static System.Timers.Timer aTimer;
public void StartTimer()
{
int tOutPeriod = 1000;
aTimer = new System.Timers.Timer(tOutPeriod);
aTimer.Elapsed += ElapsedTimer;
aTimer.Enabled = true;
aTimer.Start();
}
public void ElapsedTimer(Object source, System.Timers.ElapsedEventArgs e)
{
var pUpd = Task.Run(async () =>
{
await Task.Delay(1);
//Console.WriteLine($"{DateTime.Now} | Elapsed Timer Footer");
await InvokeAsync(() => StateHasChanged());
});
pUpd.Wait();
}
}
}
+2 -2
View File
@@ -61,7 +61,7 @@ else
PODL:
</div>
<div class="px-1">
@(CurrRecord.IdxPOdl > 0 ? $"{CurrRecord.IdxPOdl:00000000}" : "-")
@(CurrRecord.IdxPOdl > 0 ? $"{CurrRecord.IdxPOdl:000000}" : "-")
</div>
</div>
<div class="card-text d-flex justify-content-between small lh-sm">
@@ -69,7 +69,7 @@ else
ODL:
</div>
<div class="px-1">
@(CurrRecord.IdxOdl > 0 ? $"{CurrRecord.IdxOdl:00000000}" : "-")
@(CurrRecord.IdxOdl > 0 ? $"{CurrRecord.IdxOdl:000000}" : "-")
</div>
</div>
}
+4
View File
@@ -1,5 +1,9 @@
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using System.Globalization;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("it-IT");
CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo("it-IT");
await builder.Build().RunAsync();
+1 -1
View File
@@ -5,7 +5,7 @@
<div class="page">
<main>
<div class="top-row px-4 justify-content-between">
<CmpHeader></CmpHeader>
<CmpHeader @rendermode="InteractiveWebAssembly"></CmpHeader>
</div>
<article class="content px-4">
@@ -31,7 +31,7 @@ main {
.bottom-row {
color: #dedede;
background-color: #000000;
height: 1.5rem;
height: 2rem;
align-items: center;
}
@media (max-width: 640.98px) {
@@ -37,7 +37,7 @@ main {
.bottom-row {
color: #dedede;
background-color: #000000;
height: 1.5rem;
height: 2.0rem;
align-items: center;
}
+1 -1
View File
@@ -1 +1 @@
.page{position:relative;display:flex;flex-direction:column;}main{flex:1;}.top-row{background-color:#000;color:#696969;font-size:1.4em;height:2.6rem;display:flex;align-items:center;justify-content:space-evenly;}.mainHead{font-size:1.6rem;}.top-row ::deep a,.top-row .btn-link{white-space:nowrap;margin-left:1.5rem;}.top-row a:first-child{overflow:hidden;text-overflow:ellipsis;}.bottom-row{color:#dedede;background-color:#000;height:1.5rem;align-items:center;}@media(max-width:640.98px){.top-row:not(.auth){display:none;}.top-row.auth{justify-content:space-between;}.top-row a,.top-row .btn-link{margin-left:0;}}@media(min-width:641px){.page{flex-direction:row;}.sidebar{width:15rem;height:100vh;position:sticky;top:0;}.sidebarSmall{width:80px;height:100vh;position:sticky;top:0;}.top-row{position:sticky;top:0;z-index:1;}.top-row,article{padding-left:.5rem!important;padding-right:.5rem!important;}.bottom-row{position:fixed;bottom:0;z-index:1;}.main>div{padding-left:.5rem!important;padding-right:.5rem!important;}}
.page{position:relative;display:flex;flex-direction:column;}main{flex:1;}.top-row{background-color:#000;color:#696969;font-size:1.4em;height:2.6rem;display:flex;align-items:center;justify-content:space-evenly;}.mainHead{font-size:1.6rem;}.top-row ::deep a,.top-row .btn-link{white-space:nowrap;margin-left:1.5rem;}.top-row a:first-child{overflow:hidden;text-overflow:ellipsis;}.bottom-row{color:#dedede;background-color:#000;height:2rem;align-items:center;}@media(max-width:640.98px){.top-row:not(.auth){display:none;}.top-row.auth{justify-content:space-between;}.top-row a,.top-row .btn-link{margin-left:0;}}@media(min-width:641px){.page{flex-direction:row;}.sidebar{width:15rem;height:100vh;position:sticky;top:0;}.sidebarSmall{width:80px;height:100vh;position:sticky;top:0;}.top-row{position:sticky;top:0;z-index:1;}.top-row,article{padding-left:.5rem!important;padding-right:.5rem!important;}.bottom-row{position:fixed;bottom:0;z-index:1;}.main>div{padding-left:.5rem!important;padding-right:.5rem!important;}}
+1 -1
View File
@@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP.MON</RootNamespace>
<AssemblyName>$(AssemblyName.Replace(' ', '_'))</AssemblyName>
<Version>6.16.2503.1707</Version>
<Version>6.16.2503.1710</Version>
</PropertyGroup>
<ItemGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOSPEC </i>
<h4>Versione: 6.16.2503.1707</h4>
<h4>Versione: 6.16.2503.1710</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2503.1707
6.16.2503.1710
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2503.1707</version>
<version>6.16.2503.1710</version>
<url>https://nexus.steamware.net/repository/SWS/MP-MON/stable/LAST/MP-MON.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-MON/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>