15 references to PlaintextFormat
Aspire.Dashboard (8)
Components\Controls\TextVisualizer.razor.cs (1)
62if (ViewModel.FormatKind is not DashboardUIHelpers.PlaintextFormat)
Components\Dialogs\TextVisualizerDialog.razor.cs (3)
50EnabledOptions.Add(DashboardUIHelpers.PlaintextFormat); 53new SelectViewModel<string> { Id = DashboardUIHelpers.PlaintextFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogPlaintextFormat)] }, 88TextVisualizerViewModel.UpdateFormat(newFormat ?? DashboardUIHelpers.PlaintextFormat);
Model\GenAI\GenAIVisualizerDialogViewModel.cs (1)
264return new TextVisualizerViewModel(string.Empty, indentText: false, knownFormat: DashboardUIHelpers.PlaintextFormat);
Model\TextVisualizerViewModel.cs (3)
26Lines = GetLines(Text, DashboardUIHelpers.PlaintextFormat); 42ChangeFormattedText(fallbackFormat ?? DashboardUIHelpers.PlaintextFormat, Text); 275ChangeFormattedText(DashboardUIHelpers.PlaintextFormat, Text);
Aspire.Dashboard.Components.Tests (7)
Controls\TextVisualizerDialogTests.cs (7)
52Assert.Equal([DashboardUIHelpers.JsonFormat, DashboardUIHelpers.PlaintextFormat], instance.EnabledOptions.ToImmutableSortedSet()); 74Assert.Equal([DashboardUIHelpers.PlaintextFormat, DashboardUIHelpers.XmlFormat], instance.EnabledOptions.ToImmutableSortedSet()); 77instance.ChangeFormat(DashboardUIHelpers.PlaintextFormat, rawXml); 79Assert.Equal(DashboardUIHelpers.PlaintextFormat, instance.TextVisualizerViewModel.FormatKind); 101Assert.Equal([DashboardUIHelpers.PlaintextFormat, DashboardUIHelpers.XmlFormat], instance.EnabledOptions.ToImmutableSortedSet()); 115Assert.Equal(DashboardUIHelpers.PlaintextFormat, instance.TextVisualizerViewModel.FormatKind); 117Assert.Equal([DashboardUIHelpers.PlaintextFormat], instance.EnabledOptions.ToImmutableSortedSet());