6 references to ViewModel
Aspire.Dashboard (3)
Components\Controls\TextVisualizer.razor.cs (3)
44
private bool IsUnformatted => DisplayUnformatted ||
ViewModel
.FormatKind is DashboardUIHelpers.PlaintextFormat;
63
if (
ViewModel
.FormatKind is not DashboardUIHelpers.PlaintextFormat)
107
return $"log-content highlight-line language-{
ViewModel
.FormatKind} theme-a11y-{ThemeManager.EffectiveTheme.ToLowerInvariant()}-min";
Aspire.Dashboard.Components.Tests (3)
Controls\TextVisualizerDialogTests.cs (3)
149
.Add(p => p.
ViewModel
, new TextVisualizerViewModel("""{"value":1}""", indentText: false))
367
Assert.Equal(mermaid, cut.FindComponent<TextVisualizer>().Instance.
ViewModel
.FormattedText);
476
.Add(p => p.
ViewModel
, new TextVisualizerViewModel("SELECT '<script>'", indentText: true, knownFormat: DashboardUIHelpers.SqlFormat))