58 references to ControlsStrings
Aspire.Dashboard (54)
Components\Controls\Chart\ChartBase.cs (1)
35
public required IStringLocalizer<
ControlsStrings
> Loc { get; init; }
Components\Controls\Chart\ChartContainer.razor.cs (2)
228
null => Loc[nameof(
ControlsStrings
.LabelValueUnset)],
229
{ Length: 0 } => Loc[nameof(
ControlsStrings
.LabelEmpty)],
Components\Controls\Chart\MetricTable.razor.cs (3)
308
ValueDirectionChange.Up => (new Icons.Filled.Size16.ArrowCircleUp().WithColor(Color.Success), Loc[nameof(
ControlsStrings
.MetricTableValueIncreased)]),
309
ValueDirectionChange.Down => (new Icons.Filled.Size16.ArrowCircleDown().WithColor(Color.Warning), Loc[nameof(
ControlsStrings
.MetricTableValueDecreased)]),
310
ValueDirectionChange.Constant => (new Icons.Filled.Size16.ArrowCircleRight().WithColor(Color.Info), Loc[nameof(
ControlsStrings
.MetricTableValueNoChange)]),
Components\Controls\Chart\PlotlyChart.razor.cs (4)
50
{Loc[nameof(
ControlsStrings
.PlotlyChartValue)]}: {formattedValue}<br />
51
{Loc[nameof(
ControlsStrings
.PlotlyChartTime)]}: {FormatHelpers.FormatTime(TimeProvider, TimeProvider.ToLocal(xValue))}
147
Name = Loc[nameof(
ControlsStrings
.PlotlyChartExemplars)],
158
: $"{Loc[nameof(
ControlsStrings
.PlotlyChartTrace)]}: {OtlpHelpers.ToShortenedId(exemplar.TraceId)}";
Components\Controls\ClearSignalsButton.razor.cs (4)
22
public required IStringLocalizer<
ControlsStrings
> ControlsStringsLoc { get; init; }
41
Text = ControlsStringsLoc[name: nameof(
ControlsStrings
.ClearAllResources)],
51
? ControlsStringsLoc[nameof(
ControlsStrings
.ClearPendingSelectedResource)]
52
: string.Format(CultureInfo.InvariantCulture, ControlsStringsLoc[name: nameof(
ControlsStrings
.ClearSelectedResource)], SelectedResource.Name),
Components\Controls\GridValue.razor.cs (2)
112
PreCopyToolTip = Loc[nameof(
ControlsStrings
.GridValueCopyToClipboard)];
113
PostCopyToolTip = Loc[nameof(
ControlsStrings
.GridValueCopied)];
Components\Controls\ResourceActions.razor.cs (1)
25
public required IStringLocalizer<Resources.
ControlsStrings
> ControlLoc { get; init; }
Components\Controls\SpanActions.razor.cs (3)
22
public required IStringLocalizer<Resources.
ControlsStrings
> ControlsLoc { get; init; }
41
Text = ControlsLoc[nameof(Resources.
ControlsStrings
.ActionViewDetailsText)],
47
Text = ControlsLoc[nameof(Resources.
ControlsStrings
.ActionStructuredLogsText)],
Components\Controls\StructuredLogActions.razor.cs (2)
25
public required IStringLocalizer<Resources.
ControlsStrings
> ControlsLoc { get; init; }
50
Text = ControlsLoc[nameof(Resources.
ControlsStrings
.ActionViewDetailsText)],
Components\Controls\TraceActions.razor.cs (3)
22
public required IStringLocalizer<Resources.
ControlsStrings
> ControlsLoc { get; init; }
38
Text = ControlsLoc[nameof(Resources.
ControlsStrings
.ActionViewDetailsText)],
48
Text = ControlsLoc[nameof(Resources.
ControlsStrings
.ActionStructuredLogsText)],
Components\Layout\AspirePageContentLayout.razor.cs (1)
85
Title = MobileToolbarButtonText ?? ControlsStringsLoc[nameof(
ControlsStrings
.ChartContainerFiltersHeader)],
Components\Pages\ConsoleLogs.razor.cs (2)
72
public required IStringLocalizer<
ControlsStrings
> ControlsStringsLoc { get; init; }
133
_noSelection = new() { Id = null, Name = ControlsStringsLoc[nameof(
ControlsStrings
.LabelNone)] };
Components\Pages\Metrics.razor.cs (1)
98
Name = ControlsStringsLoc[nameof(
ControlsStrings
.LabelNone)]
Components\Pages\StructuredLogs.razor.cs (2)
181
Name = ControlsStringsLoc[nameof(Dashboard.Resources.
ControlsStrings
.LabelAll)]
186
new SelectViewModel<LogLevel?> { Id = null, Name = ControlsStringsLoc[nameof(Dashboard.Resources.
ControlsStrings
.LabelAll)] },
Components\Pages\Traces.razor.cs (1)
163
_allApplication = new SelectViewModel<ResourceTypeDetails> { Id = null, Name = ControlsStringsLoc[name: nameof(
ControlsStrings
.LabelAll)] };
Model\CommonMenuItems.cs (3)
16
IStringLocalizer<
ControlsStrings
> loc,
29
Text = loc[nameof(
ControlsStrings
.ShowHiddenResources)],
38
Text = loc[nameof(
ControlsStrings
.HideHiddenResources)],
Model\DefaultInstrumentUnitResolver.cs (4)
12
public sealed class DefaultInstrumentUnitResolver(IStringLocalizer<
ControlsStrings
> loc) : IInstrumentUnitResolver
38
return UntitleCase(loc[nameof(
ControlsStrings
.PlotlyChartCount)], titleCase);
42
return UntitleCase(loc[nameof(
ControlsStrings
.PlotlyChartLength)], titleCase);
46
return UntitleCase(loc[nameof(
ControlsStrings
.PlotlyChartValue)], titleCase);
Model\ResourceGraph\ResourceGraphMapper.cs (1)
77
return
ControlsStrings
.ResourceGraphNoEndpoints;
Model\ResourceMenuItems.cs (2)
29
IStringLocalizer<
ControlsStrings
> controlLoc,
40
Text = controlLoc[nameof(
ControlsStrings
.ActionViewDetailsText)],
Resources\ControlsStrings.Designer.cs (1)
42
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Dashboard.Resources.ControlsStrings", typeof(
ControlsStrings
).Assembly);
Utils\DashboardUIHelpers.cs (11)
32
public static (ColumnResizeLabels resizeLabels, ColumnSortLabels sortLabels) CreateGridLabels(IStringLocalizer<
ControlsStrings
> loc)
36
ExactLabel = loc[nameof(
ControlsStrings
.FluentDataGridHeaderCellResizeLabel)],
37
ResizeMenu = loc[nameof(
ControlsStrings
.FluentDataGridHeaderCellResizeButtonText)],
38
DiscreteLabel = loc[nameof(
ControlsStrings
.FluentDataGridHeaderCellResizeDiscreteLabel)],
39
GrowAriaLabel = loc[nameof(
ControlsStrings
.FluentDataGridHeaderCellGrowAriaLabelText)],
40
ResetAriaLabel = loc[nameof(
ControlsStrings
.FluentDataGridHeaderCellResetAriaLabelText)],
41
ShrinkAriaLabel = loc[nameof(
ControlsStrings
.FluentDataGridHeaderCellShrinkAriaLabelText)],
42
SubmitAriaLabel = loc[nameof(
ControlsStrings
.FluentDataGridHeaderCellSubmitAriaLabelText)]
46
SortMenu = loc[nameof(
ControlsStrings
.FluentDataGridHeaderCellSortButtonText)],
47
SortMenuAscendingLabel = loc[nameof(
ControlsStrings
.FluentDataGridHeaderCellSortAscendingButtonText)],
48
SortMenuDescendingLabel = loc[nameof(
ControlsStrings
.FluentDataGridHeaderCellSortDescendingButtonText)]
Aspire.Dashboard.Tests (4)
Model\DefaultInstrumentUnitResolverTests.cs (1)
24
var localizer = new TestStringLocalizer<
ControlsStrings
>();
Model\ResourceMenuItemsTests.cs (3)
36
new TestStringLocalizer<Resources.
ControlsStrings
>(),
87
new TestStringLocalizer<Resources.
ControlsStrings
>(),
138
new TestStringLocalizer<Resources.
ControlsStrings
>(),