96bea1d478
Restyles the Blazor dashboard onto a portable token-based theme so it reads like an instrument panel: warm-paper background, hairline-ruled panels, IBM Plex type, monospace tabular numerics, and status carried by colour chips. Vendors theme.css + IBM Plex fonts, rewrites dashboard.css as a thin token-driven view layer, and swaps the Bootstrap navbar and status badges for the design-system app bar and chips. Also includes pending API-key management, Galaxy hierarchy projection, and constraint-enforcement work with their tests. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
29 lines
849 B
C#
29 lines
849 B
C#
using Microsoft.Data.SqlClient;
|
|
|
|
namespace MxGateway.Server.Dashboard;
|
|
|
|
public static class DashboardConnectionStringDisplay
|
|
{
|
|
public static string GalaxyRepositoryConnectionString(string connectionString)
|
|
{
|
|
try
|
|
{
|
|
SqlConnectionStringBuilder builder = new(connectionString);
|
|
SqlConnectionStringBuilder display = new()
|
|
{
|
|
DataSource = builder.DataSource,
|
|
InitialCatalog = builder.InitialCatalog,
|
|
IntegratedSecurity = builder.IntegratedSecurity,
|
|
Encrypt = builder.Encrypt,
|
|
TrustServerCertificate = builder.TrustServerCertificate,
|
|
};
|
|
|
|
return display.ConnectionString;
|
|
}
|
|
catch (ArgumentException)
|
|
{
|
|
return "[invalid connection string]";
|
|
}
|
|
}
|
|
}
|