28 references to OverviewCard
Aspire.Dashboard (28)
Components\Controls\Overview\OverviewCardLayout.cs (21)
36
private readonly Dictionary<
OverviewCard
, int> _spans;
37
private readonly Dictionary<
OverviewCard
, int> _mediumSpans;
39
private OverviewCardLayout(Dictionary<
OverviewCard
, int> spans, Dictionary<
OverviewCard
, int> mediumSpans)
45
public static OverviewCardLayout Create(IReadOnlyList<(
OverviewCard
Card, int Span)> cards)
52
public string Style(
OverviewCard
card)
59
private static int GetHeight(
OverviewCard
card) => card switch
61
OverviewCard
.Status or
OverviewCard
.Endpoints or
OverviewCard
.Metrics => 260,
62
OverviewCard
.Console or
OverviewCard
.Logs => 300,
63
OverviewCard
.Traces or
OverviewCard
.Relationships => 300,
64
OverviewCard
.Properties or
OverviewCard
.Attributes or
OverviewCard
.Environment => 340,
68
private static Dictionary<
OverviewCard
, int> Pack(IReadOnlyList<(
OverviewCard
Card, int Span)> cards)
70
var result = new Dictionary<
OverviewCard
, int>();
71
var row = new List<(
OverviewCard
Card, int Span)>();
Components\Controls\Overview\OverviewEmptyCard.razor.cs (1)
15
public required
OverviewCard
Card { get; set; }
Components\Controls\Overview\TelemetrySourceOverview.razor.cs (6)
83
List<(
OverviewCard
Card, int Span, bool HasContent)> cardSpans =
85
(
OverviewCard
.Status, 3, true),
86
(
OverviewCard
.Metrics, 5, showMetrics),
87
(
OverviewCard
.Logs, 6, showLogs),
88
(
OverviewCard
.Traces, 6, showTraces),
89
(
OverviewCard
.Attributes, 6, true)