update layer spento x MON

This commit is contained in:
Samuele Locatelli
2024-02-26 15:14:56 +01:00
parent d8d3078f2f
commit cb3ad67aaa
7 changed files with 20 additions and 12 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
<div class="col machBlock">
<div class="col machBlock ">
@if (CurrRecord == null || !dataLoaded)
{
<LoadingDataSmall></LoadingDataSmall>
+7 -1
View File
@@ -139,7 +139,7 @@ namespace MP.Mon.Components
string answ = "";
if (CurrRecord != null)
{
answ = CurrRecord.Semaforo == "sGr" ? "bg-light opacity-25" : "";
answ = CurrRecord.Semaforo == "sGr" ? cssOverlayOff : "";
}
return answ;
}
@@ -183,15 +183,21 @@ namespace MP.Mon.Components
return answ;
}
[Inject]
protected IConfiguration config { get; set; } = null!;
protected override async Task OnInitializedAsync()
{
//StartTimer();
Random rnd = new Random();
await Task.Delay(rnd.Next(5));
cssOverlayOff = config.GetValue<string>("ServerConf:cssOverlayOff");
setupConf();
dataLoaded = true;
}
private string cssOverlayOff = "bg-dark text-light opacity-100";
/// <summary>
/// Restituisce (se presenti) valori di override per la riga indicata
/// </summary>
+5 -6
View File
@@ -4,11 +4,14 @@
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Version>6.16.2402.2613</Version>
<Version>6.16.2402.2615</Version>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Data\MpDataService.cs" />
<Compile Remove="Data\**" />
<Content Remove="Data\**" />
<EmbeddedResource Remove="Data\**" />
<None Remove="Data\**" />
</ItemGroup>
<ItemGroup>
@@ -58,10 +61,6 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<Folder Include="Data\" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="powershell.exe -ExecutionPolicy Unrestricted -NoProfile -NonInteractive -File $(ProjectDir)\post-build.ps1 -ProjectDir $(ProjectDir) -ProjectPath $(ProjectPath)" />
</Target>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MON MAPO</i>
<h4>Versione: 6.16.2402.2613</h4>
<h4>Versione: 6.16.2402.2615</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2402.2613
6.16.2402.2615
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2402.2613</version>
<version>6.16.2402.2615</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>
+4 -1
View File
@@ -13,6 +13,9 @@
"Redis": "localhost:6379,DefaultDatabase=1,connectTimeout=5000,syncTimeout=5000,asyncTimeout=5000,abortConnect=false,ssl=false"
},
"ServerConf": {
"maxAge": "2000"
"maxAge": "2000",
//"cssOverlayOff": "bg-secondary bg-opacity-75"
//"cssOverlayOff": "bg-dark text-light bg-opacity-50"
"cssOverlayOff": "bg-dark text-light opacity-50"
}
}