mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 21:35:52 +00:00
f2accb0bd1
* Add uri identifiers to all data source things and make them the same 1. Add uri identitifer to data-source service 2. Make <EventSource /> and <DataSource /> as close as possible 3. Add extra `.closed` method to get a list of inactive/closed/closing data-sources from elsewhere * Make the connections cleanup the least worst connection when required * Pass the uri/request id through all the things * Better user erroring * Make event sources close on error * Allow <DataLoader /> data slot to be configurable * Allow the <DataWriter /> removed state to be configurable * Don't error if meta is undefined * Stitch together all the repositories into the data-source/sink * Use data.source over repositories * Add missing <EventSource /> components * Fix up the views/templates * Disable all the old route based blocking query things * We still need the repo for the mixin for the moment * Don't default to default, default != ''
55 lines
2.1 KiB
Handlebars
55 lines
2.1 KiB
Handlebars
{{title item.ID}}
|
|
<EventSource @src={{item}} @onerror={{action "error"}} />
|
|
<EventSource @src={{proxy}} />
|
|
<EventSource @src={{proxyMeta}} />
|
|
<AppView @class="instance show">
|
|
<BlockSlot @name="notification" as |status type|>
|
|
{{partial 'dc/services/notifications'}}
|
|
</BlockSlot>
|
|
<BlockSlot @name="breadcrumbs">
|
|
<ol>
|
|
<li><a data-test-back href={{href-to 'dc.services'}}>All Services</a></li>
|
|
<li><a data-test-back href={{href-to 'dc.services.show'}}>Service ({{item.Service}})</a></li>
|
|
</ol>
|
|
</BlockSlot>
|
|
<BlockSlot @name="header">
|
|
<h1>
|
|
{{ item.ID }}
|
|
</h1>
|
|
<ConsulExternalSource @item={{item}} />
|
|
<ConsulKind @item={{item}} @withInfo={{true}} />
|
|
</BlockSlot>
|
|
<BlockSlot @name="nav">
|
|
<dl>
|
|
<dt>Service Name</dt>
|
|
<dd><a href="{{href-to 'dc.services.show' item.Service}}">{{item.Service}}</a></dd>
|
|
</dl>
|
|
<dl>
|
|
<dt>Node Name</dt>
|
|
<dd><a href="{{href-to 'dc.nodes.show' item.Node.Node}}">{{item.Node.Node}}</a></dd>
|
|
</dl>
|
|
</BlockSlot>
|
|
<BlockSlot @name="actions">
|
|
{{#let (or item.Address item.Node.Address) as |address|}}
|
|
<CopyButton @value={{address}} @name="Address">{{address}}</CopyButton>
|
|
{{/let}}
|
|
</BlockSlot>
|
|
<BlockSlot @name="content">
|
|
<TabNav @items={{
|
|
compact
|
|
(array
|
|
(hash label="Health Checks" href=(href-to "dc.services.instance.healthchecks") selected=(is-href "dc.services.instance.healthchecks"))
|
|
(if
|
|
(eq item.Kind 'mesh-gateway')
|
|
(hash label="Addresses" href=(href-to "dc.services.instance.addresses") selected=(is-href "dc.services.instance.addresses")) ""
|
|
)
|
|
(if proxy
|
|
(hash label="Proxy Info" href=(href-to "dc.services.instance.proxy") selected=(is-href "dc.services.instance.proxy"))
|
|
|
|
)
|
|
(hash label="Tags & Meta" href=(href-to "dc.services.instance.metadata") selected=(is-href "dc.services.instance.metadata"))
|
|
)
|
|
}}/>
|
|
{{outlet}}
|
|
</BlockSlot>
|
|
</AppView> |