Update con nuovo nuget: ok pagina 2 di test

This commit is contained in:
Samuele Locatelli
2025-07-23 08:56:03 +02:00
parent 2b0ee5ffcb
commit 1260028cb2
5 changed files with 33 additions and 5 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="TestComponent">
<span class="bi bi-plus-square-fill-nav-menu" aria-hidden="true"></span> Test Component
<span class="bi bi-plus-square-fill-nav-menu" aria-hidden="true"></span> Test Compo + Serv
</NavLink>
</div>
<div class="nav-item px-3">
@@ -43,6 +43,9 @@ namespace Test.UI.Components.Pages
[Inject]
protected IConfiguration Config { get; set; } = null!;
[Inject]
protected ImageCacheService ImgService { get; set; } = null!;
private string imgBasePath = "";
private string imgTag = "";
private void ConfInit()
@@ -69,7 +72,8 @@ namespace Test.UI.Components.Pages
// calcolo URL immagini... DTO da rivedere...
foreach (var item in rawList)
{
item.ImageUrl = $"{imgBasePath}{imgTag}/{item.SVGFileName}";
item.ImageUrl = ImgService.ImageUrl(imgBasePath, false, item.SVGFileName);
//item.ImageUrl = $"{imgBasePath}{imgTag}/{item.SVGFileName}";
AvailTemplateList.Add(item);
}
}
+20
View File
@@ -1,13 +1,33 @@
using EgwCoreLib.Lux.Data.Services;
using Microsoft.Extensions.Configuration;
using StackExchange.Redis;
using System.Reflection;
using Test.UI.Client.Pages;
using Test.UI.Components;
var builder = WebApplication.CreateBuilder(args);
var assemblyVersion = Assembly.GetExecutingAssembly().GetName().Version?.ToString();
ConfigurationManager configuration = builder.Configuration;
// Add services to the container.
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents()
.AddInteractiveWebAssemblyComponents();
// costruzione connectionMultiplexer redis...
string connStr = configuration.GetConnectionString("Redis") ?? "localhost";
ConnectionMultiplexer redisConn = ConnectionMultiplexer.Connect(connStr);
// registro connMultiplexer REDIS
builder.Services.AddSingleton<IConnectionMultiplexer>(redisConn);
// registro wrapper servizi REDIS
builder.Services.AddSingleton<IRedisService, RedisService>();
builder.Services.AddSingleton<RedisSubscriptionManager>();
builder.Services.AddSingleton<ImageCacheService>();
var app = builder.Build();
// Configure the HTTP request pipeline.
+2 -2
View File
@@ -25,8 +25,8 @@
<ItemGroup>
<ProjectReference Include="..\Test.UI.Client\Test.UI.Client.csproj" />
<ProjectReference Include="..\WebWindowConfigurator\WebWindowConfigurator.csproj" />
<PackageReference Include="EgwCoreLib.Lux.Core" Version="0.9.2507.2307" />
<PackageReference Include="EgwCoreLib.Lux.Data" Version="0.9.2507.2307" />
<PackageReference Include="EgwCoreLib.Lux.Core" Version="0.9.2507.2308" />
<PackageReference Include="EgwCoreLib.Lux.Data" Version="0.9.2507.2308" />
<PackageReference Include="EgwCoreLib.Razor" Version="1.5.2507.1815" />
<PackageReference Include="EgwCoreLib.Utils" Version="1.5.2507.1815" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.17" />
+5 -1
View File
@@ -6,10 +6,14 @@
}
},
"AllowedHosts": "*",
"ConnectionStrings": {
"Redis": "redis.ufficio:26379, serviceName=devel, DefaultDatabase=6, keepAlive=180, connectTimeout=15000, syncTimeout=15000, asyncTimeout=15000, abortConnect=false, ssl=false, allowAdmin=true"
},
"ServerConf": {
"PubChannel": "EgwEngineInput",
"SubChannel": "EgwEngineOutput",
"ImageBaseUrl": "https://iis01.egalware.com/lux/srv/api/window/",
"SvgChannel": "svg:img",
"ImageBaseUrl": "https://iis01.egalware.com/lux/srv/api/window",
"ImageLiveTag": "svg",
"ImageFileTag": "svgfile"
}