@page "/profiles" @using CredentialManager.Models @using CredentialManager.Services @using Microsoft.AspNetCore.Components @using Microsoft.AspNetCore.Components.Forms @using Microsoft.AspNetCore.Components.Web @using Microsoft.JSInterop @using System.Text.Json Gestione Profili - Data Coupler

Gestione Profili

Gestisci e monitora tutti i profili di configurazione Data Coupler

@totalProfiles

Profili Totali

@activeProfiles

Profili Attivi

@profilesThisWeek

Creati Questa Settimana

@unusedProfiles

Non Utilizzati

Filtri e Ricerca
@if (!string.IsNullOrEmpty(searchTerm)) { }
Elenco Profili (@GetFilteredProfiles().Count())
@if (isLoading) {
Caricamento...

Caricamento profili in corso...

} else if (!GetFilteredProfiles().Any()) {
Nessun profilo trovato

Non ci sono profili che corrispondono ai criteri di ricerca.

} else {
@foreach (var profile in GetFilteredProfiles()) { }
Nome Descrizione Tipo Sorgente → Destinazione Mappings Creato Ultimo Uso Azioni
@profile.Name @if (profile.LastUsedAt.HasValue && profile.LastUsedAt.Value > DateTime.Now.AddDays(-7)) { Recente } @if (!string.IsNullOrEmpty(profile.Description)) { @(profile.Description.Length > 50 ? profile.Description.Substring(0, 50) + "..." : profile.Description) } else { - } @GetSourceTypeDisplayName(profile.SourceType) @profile.SourceTable → @profile.DestinationEndpoint @GetMappingCount(profile) @profile.CreatedAt.ToString("dd/MM/yyyy") @if (profile.LastUsedAt.HasValue) { @profile.LastUsedAt.Value.ToString("dd/MM/yyyy") } else { Mai }
}
@if (showDetailsModal && selectedProfile != null) { } @if (showDeleteModal && profileToDelete != null) { } @if (!string.IsNullOrEmpty(toastMessage)) {
}