2020-08-26 14:24:30 +00:00
|
|
|
<EventSource @src={{items}} @onerror={{action "error"}} />
|
2020-06-17 13:19:50 +00:00
|
|
|
<EventSource @src={{chain}} />
|
|
|
|
<EventSource @src={{intentions}} />
|
2020-07-17 13:42:45 +00:00
|
|
|
<EventSource @src={{proxies}} />
|
2020-10-05 17:07:35 +00:00
|
|
|
<EventSource @src={{gatewayServices}} />
|
|
|
|
<EventSource @src={{topology}} />
|
2020-08-26 14:24:30 +00:00
|
|
|
{{title item.Service.Service}}
|
2020-10-01 08:33:22 +00:00
|
|
|
<AppView>
|
2020-02-19 19:26:38 +00:00
|
|
|
<BlockSlot @name="notification" as |status type|>
|
2020-10-19 16:31:01 +00:00
|
|
|
<Consul::Service::Notifications
|
|
|
|
@type={{type}}
|
|
|
|
@status={{status}}
|
|
|
|
/>
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="breadcrumbs">
|
2020-02-06 12:06:48 +00:00
|
|
|
<ol>
|
|
|
|
<li><a data-test-back href={{href-to 'dc.services'}}>All Services</a></li>
|
|
|
|
</ol>
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="header">
|
2020-04-21 14:21:52 +00:00
|
|
|
<h1>
|
|
|
|
{{item.Service.Service}}
|
|
|
|
</h1>
|
2020-10-14 08:03:39 +00:00
|
|
|
<Consul::ExternalSource @item={{item.Service}} />
|
|
|
|
<Consul::Kind @item={{item.Service}} @withInfo={{true}} />
|
2020-05-07 13:57:15 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="nav">
|
2020-05-13 15:28:11 +00:00
|
|
|
{{#if (not-eq item.Service.Kind 'mesh-gateway')}}
|
2020-04-21 14:21:52 +00:00
|
|
|
<TabNav @items={{
|
|
|
|
compact
|
|
|
|
(array
|
2020-11-02 18:38:43 +00:00
|
|
|
(if (and topology.Datacenter (or (gt proxies.length 0) (eq item.Service.Kind 'ingress-gateway')))
|
2020-10-05 17:07:35 +00:00
|
|
|
(hash label="Topology" href=(href-to "dc.services.show.topology") selected=(is-href "dc.services.show.topology"))
|
|
|
|
'')
|
2020-06-09 10:10:14 +00:00
|
|
|
(if (eq item.Service.Kind 'terminating-gateway')
|
2020-10-05 17:07:35 +00:00
|
|
|
(hash label="Linked Services" href=(href-to "dc.services.show.services") selected=(is-href "dc.services.show.services"))
|
2020-05-12 21:34:47 +00:00
|
|
|
'')
|
2020-06-09 10:10:14 +00:00
|
|
|
(if (eq item.Service.Kind 'ingress-gateway')
|
2020-10-05 17:07:35 +00:00
|
|
|
(hash label="Upstreams" href=(href-to "dc.services.show.upstreams") selected=(is-href "dc.services.show.upstreams"))
|
2020-05-13 15:28:11 +00:00
|
|
|
'')
|
2020-10-05 17:07:35 +00:00
|
|
|
(hash label="Instances" href=(href-to "dc.services.show.instances") selected=(is-href "dc.services.show.instances"))
|
2020-07-09 09:08:47 +00:00
|
|
|
(if (not-eq item.Service.Kind 'terminating-gateway')
|
2020-10-05 17:07:35 +00:00
|
|
|
(hash label="Intentions" href=(href-to "dc.services.show.intentions") selected=(is-href "dc.services.show.intentions"))
|
2020-05-12 21:34:47 +00:00
|
|
|
'')
|
2020-06-10 15:07:06 +00:00
|
|
|
(if chain.Chain
|
2020-10-05 17:07:35 +00:00
|
|
|
(hash label="Routing" href=(href-to "dc.services.show.routing") selected=(is-href "dc.services.show.routing"))
|
2020-05-12 21:34:47 +00:00
|
|
|
'')
|
2020-06-09 10:10:14 +00:00
|
|
|
(if (not item.Service.Kind)
|
2020-10-05 17:07:35 +00:00
|
|
|
(hash label="Tags" href=(href-to "dc.services.show.tags") selected=(is-href "dc.services.show.tags"))
|
2020-05-12 21:34:47 +00:00
|
|
|
'')
|
2020-04-21 14:21:52 +00:00
|
|
|
)
|
|
|
|
}}/>
|
2020-05-06 18:13:36 +00:00
|
|
|
{{/if}}
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="actions">
|
2020-02-06 12:06:48 +00:00
|
|
|
{{#if urls.service}}
|
2020-10-05 13:10:00 +00:00
|
|
|
<a href={{render-template urls.service (hash
|
|
|
|
Datacenter=dc
|
|
|
|
Service=(hash Name=item.Service.Service)
|
|
|
|
)}}
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
data-test-dashboard-anchor>
|
|
|
|
Open Dashboard
|
|
|
|
</a>
|
2020-02-06 12:06:48 +00:00
|
|
|
{{/if}}
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="content">
|
2020-10-01 08:33:22 +00:00
|
|
|
<Outlet
|
|
|
|
@name={{routeName}}
|
|
|
|
as |o|>
|
|
|
|
{{outlet}}
|
|
|
|
</Outlet>
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
2020-05-07 13:57:15 +00:00
|
|
|
</AppView>
|