Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
weibaohui committed Jul 9, 2024
1 parent 09186dd commit 70e3abd
Showing 1 changed file with 29 additions and 26 deletions.
55 changes: 29 additions & 26 deletions BlazorApp/Pages/Gateway/Gateway/GatewayIndex.razor
Original file line number Diff line number Diff line change
Expand Up @@ -55,37 +55,40 @@
<AntDesign.Column Title=@L["Listener"] TData="string">
@if (context.Status.Listeners is { Count: > 0 })
{
<GridRow Class="grid-table">
<GridCol Span="4">@L["Name"]</GridCol>
<GridCol Span="4">@L["Attached"]</GridCol>
<GridCol Span="4">@L["Support"]</GridCol>
<GridCol Span="12">@L["Condition"]</GridCol>
</GridRow>
foreach (var listener in context.Status.Listeners)
{
<ColorfulTag>@listener.Name</ColorfulTag>
<ColorfulTag>@listener.AttachedRoutes</ColorfulTag>
<ConditionsTagView
Conditions="@(listener.Conditions.Adapt<IList<V1Condition>>())">
</ConditionsTagView>
<GridRow Class="grid-table">
<GridCol Span="4">
<ColorfulTag>@listener.Name</ColorfulTag>
</GridCol>
<GridCol Span="4">
<ColorfulTag>@listener.AttachedRoutes</ColorfulTag>
</GridCol>
<GridCol Span="4">
@if (listener.SupportedKinds is { Count: > 0 })
{
foreach (var kind in listener.SupportedKinds)
{
<ColorfulTag>@kind.Kind</ColorfulTag>
}
}
</GridCol>
<GridCol Span="12">
<ConditionsTagView
Conditions="@(listener.Conditions.Adapt<IList<V1Condition>>())">
</ConditionsTagView>
</GridCol>
</GridRow>
}
}
</AntDesign.Column>
<AntDesign.Column Title=@L["SupportedKinds"] TData="string">
@if (context.Status.Listeners is { Count: > 0 })
{
foreach (var listener in context.Status.Listeners)
{
<ColorfulTag>@listener.Name</ColorfulTag>
if (listener.SupportedKinds is { Count: > 0 })
{
foreach (var kind in listener.SupportedKinds)
{
<ColorfulTag>@kind.Kind</ColorfulTag>
}
}
}
}
</AntDesign.Column>
<AntDesign.Column Title=@L["Condition"] TData="string" Width="150px">
<ConditionsTagView
Conditions="@(context.Status.Conditions.Adapt<IList<V1Condition>>())">
</ConditionsTagView>
</AntDesign.Column>

<AntDesign.Column Title="@L["Age"]" TData="string" Width="100px">
<AgeView Age="@context.CreationTimestamp()"></AgeView>
</AntDesign.Column>
Expand Down

0 comments on commit 70e3abd

Please sign in to comment.