-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: Add Consul API Gateway as an external source (#11371)
- Loading branch information
Showing
18 changed files
with
93 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:feature | ||
ui: Adding support of Consul API Gateway as an external source. | ||
``` |
59 changes: 42 additions & 17 deletions
59
ui/packages/consul-ui/app/components/consul/external-source/index.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,46 @@ | ||
{{#if @item}} | ||
{{#let (service/external-source @item) as |externalSource|}} | ||
{{#if externalSource}} | ||
<span | ||
data-test-external-source={{externalSource}} | ||
class="consul-external-source {{externalSource}}" | ||
...attributes | ||
> | ||
{{#if @label}} | ||
{{@label}} | ||
{{else}} | ||
{{#if (eq externalSource 'aws')}} | ||
Registered via {{uppercase externalSource}} | ||
{{else}} | ||
Registered via {{capitalize externalSource}} | ||
{{/if}} | ||
{{/if}} | ||
</span> | ||
{{/if}} | ||
{{#if (and @withInfo (eq externalSource 'consul-api-gateway'))}} | ||
<dl class="tooltip-panel"> | ||
<dt> | ||
<span | ||
data-test-external-source={{externalSource}} | ||
class="consul-external-source {{externalSource}}" | ||
...attributes | ||
> | ||
Registered via {{t (concat "common.brand." externalSource)}} | ||
</span> | ||
</dt> | ||
<dd> | ||
<MenuPanel @position="left" @menu={{false}}> | ||
<BlockSlot @name="header"> | ||
API Gateways manage north-south traffic from external services to services in the Datacenter. For more information, read our documentation. | ||
</BlockSlot> | ||
<BlockSlot @name="menu"> | ||
<li role="separator"> | ||
About {{t (concat "common.brand." externalSource)}} | ||
</li> | ||
<li role="none" class="learn-link"> | ||
<a tabindex="-1" role="menuitem" href={{concat (env 'CONSUL_DOCS_LEARN_URL')}} rel="noopener noreferrer" target="_blank"> | ||
Learn guides | ||
</a> | ||
</li> | ||
</BlockSlot> | ||
</MenuPanel> | ||
</dd> | ||
</dl> | ||
{{else if externalSource}} | ||
<span | ||
data-test-external-source={{externalSource}} | ||
class="consul-external-source {{externalSource}}" | ||
...attributes | ||
> | ||
{{#if @label}} | ||
{{@label}} | ||
{{else}} | ||
Registered via {{t (concat "common.brand." externalSource)}} | ||
{{/if}} | ||
</span> | ||
{{/if}} | ||
{{/let}} | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
brand: | ||
consul: Consul | ||
consul-api-gateway: Consul API Gateway | ||
terraform: Terraform | ||
nomad: Nomad | ||
vault: Vault | ||
|