diff --git a/ui-v2/app/components/consul-exposed-path-list/index.hbs b/ui-v2/app/components/consul-exposed-path-list/index.hbs deleted file mode 100644 index 19c102e879..0000000000 --- a/ui-v2/app/components/consul-exposed-path-list/index.hbs +++ /dev/null @@ -1,69 +0,0 @@ - diff --git a/ui-v2/app/components/consul-instance-checks/index.hbs b/ui-v2/app/components/consul-instance-checks/index.hbs deleted file mode 100644 index 937b2942db..0000000000 --- a/ui-v2/app/components/consul-instance-checks/index.hbs +++ /dev/null @@ -1,32 +0,0 @@ -{{#if (gt items.length 0)}} - {{#if (eq healthCheck.check 'empty') }} -
-
- - {{capitalize type}} Checks - -
-
No {{type}} checks
-
- {{else}} - {{#if (eq healthCheck.count items.length)}} -
-
- - {{capitalize type}} Checks - -
-
All {{type}} checks {{healthCheck.status}}
-
- {{else}} -
-
- - {{capitalize type}} Checks - -
-
{{healthCheck.count}}/{{items.length}} {{type}} checks {{healthCheck.status}}
-
- {{/if}} - {{/if}} -{{/if}} \ No newline at end of file diff --git a/ui-v2/app/components/consul-upstream-instance-list/index.js b/ui-v2/app/components/consul-upstream-instance-list/index.js deleted file mode 100644 index 4798652642..0000000000 --- a/ui-v2/app/components/consul-upstream-instance-list/index.js +++ /dev/null @@ -1,5 +0,0 @@ -import Component from '@ember/component'; - -export default Component.extend({ - tagName: '', -}); diff --git a/ui-v2/app/components/consul-upstream-search-bar/index.js b/ui-v2/app/components/consul-upstream-search-bar/index.js deleted file mode 100644 index 4798652642..0000000000 --- a/ui-v2/app/components/consul-upstream-search-bar/index.js +++ /dev/null @@ -1,5 +0,0 @@ -import Component from '@ember/component'; - -export default Component.extend({ - tagName: '', -}); diff --git a/ui-v2/app/components/consul/exposed-path/list/index.hbs b/ui-v2/app/components/consul/exposed-path/list/index.hbs new file mode 100644 index 0000000000..14fdf352b1 --- /dev/null +++ b/ui-v2/app/components/consul/exposed-path/list/index.hbs @@ -0,0 +1,76 @@ +
+ +
diff --git a/ui-v2/app/components/consul-exposed-path-list/index.js b/ui-v2/app/components/consul/exposed-path/list/index.js similarity index 100% rename from ui-v2/app/components/consul-exposed-path-list/index.js rename to ui-v2/app/components/consul/exposed-path/list/index.js diff --git a/ui-v2/app/components/consul/exposed-path/list/index.scss b/ui-v2/app/components/consul/exposed-path/list/index.scss new file mode 100644 index 0000000000..23cae5bcaa --- /dev/null +++ b/ui-v2/app/components/consul/exposed-path/list/index.scss @@ -0,0 +1,8 @@ +.consul-exposed-path-list { + > ul { + border-top: 1px solid $gray-200; + } + > ul > li { + @extend %composite-row; + } +} diff --git a/ui-v2/app/components/consul-external-source/index.hbs b/ui-v2/app/components/consul/external-source/index.hbs similarity index 52% rename from ui-v2/app/components/consul-external-source/index.hbs rename to ui-v2/app/components/consul/external-source/index.hbs index bb1a46f180..38f4463866 100644 --- a/ui-v2/app/components/consul-external-source/index.hbs +++ b/ui-v2/app/components/consul/external-source/index.hbs @@ -1,9 +1,13 @@ -{{#if item}} - {{#let (service/external-source item) as |externalSource|}} +{{#if @item}} + {{#let (service/external-source @item) as |externalSource|}} {{#if externalSource}} - - {{#if label}} - {{label}} + + {{#if @label}} + {{@label}} {{else}} {{#if (eq externalSource 'aws')}} Registered via {{uppercase externalSource}} diff --git a/ui-v2/app/components/consul/external-source/index.scss b/ui-v2/app/components/consul/external-source/index.scss new file mode 100644 index 0000000000..c74f871a92 --- /dev/null +++ b/ui-v2/app/components/consul/external-source/index.scss @@ -0,0 +1,3 @@ +.consul-external-source { + @extend %pill-200, %frame-gray-600; +} diff --git a/ui-v2/app/components/consul/instance-checks/index.hbs b/ui-v2/app/components/consul/instance-checks/index.hbs new file mode 100644 index 0000000000..d6b06eb21d --- /dev/null +++ b/ui-v2/app/components/consul/instance-checks/index.hbs @@ -0,0 +1,32 @@ +{{#if (gt @items.length 0)}} + {{#if (eq this.healthCheck.check 'empty') }} +
+
+ + {{capitalize @type}} Checks + +
+
No {{@type}} checks
+
+ {{else}} + {{#if (eq this.healthCheck.count @items.length)}} +
+
+ + {{capitalize @type}} Checks + +
+
All {{@type}} checks {{this.healthCheck.status}}
+
+ {{else}} +
+
+ + {{capitalize @type}} Checks + +
+
{{this.healthCheck.count}}/{{@items.length}} {{@type}} checks {{this.healthCheck.status}}
+
+ {{/if}} + {{/if}} +{{/if}} \ No newline at end of file diff --git a/ui-v2/app/components/consul-instance-checks/index.js b/ui-v2/app/components/consul/instance-checks/index.js similarity index 80% rename from ui-v2/app/components/consul-instance-checks/index.js rename to ui-v2/app/components/consul/instance-checks/index.js index da5c60aa00..2c78a553f0 100644 --- a/ui-v2/app/components/consul-instance-checks/index.js +++ b/ui-v2/app/components/consul/instance-checks/index.js @@ -1,14 +1,12 @@ -import Component from '@ember/component'; -import { computed } from '@ember/object'; +import Component from '@glimmer/component'; -export default Component.extend({ - tagName: '', - healthCheck: computed('items.[]', function() { +export default class ConsulInstanceChecks extends Component { + get healthCheck() { let ChecksCritical = 0; let ChecksWarning = 0; let ChecksPassing = 0; - this.items.forEach(item => { + this.args.items.forEach(item => { switch (item.Status) { case 'critical': ChecksCritical += 1; @@ -48,5 +46,5 @@ export default Component.extend({ check: 'empty', }; } - }), -}); + } +} diff --git a/ui-v2/app/components/consul-intention-form/fieldsets/index.hbs b/ui-v2/app/components/consul/intention/form/fieldsets/index.hbs similarity index 98% rename from ui-v2/app/components/consul-intention-form/fieldsets/index.hbs rename to ui-v2/app/components/consul/intention/form/fieldsets/index.hbs index 89f3f64145..be1570673d 100644 --- a/ui-v2/app/components/consul-intention-form/fieldsets/index.hbs +++ b/ui-v2/app/components/consul/intention/form/fieldsets/index.hbs @@ -155,7 +155,7 @@ documentation

- Edit Permission - - +