From 6e65615cb80933dcbfaf803ccf5babfde79a2089 Mon Sep 17 00:00:00 2001 From: Cody Jackson Date: Thu, 5 Nov 2020 14:28:17 -0700 Subject: [PATCH] Switching Ingress over to using the ArrayListGroup component Made a few changes to improve the performance of the page. I experienced noticeable lag while editing the paths. Updated KeyValue to address spacing and protip change requests. --- assets/styles/base/_mixins.scss | 37 +++++++ assets/styles/global/_form.scss | 35 +----- assets/translations/en-us.yaml | 2 +- components/form/ArrayList.vue | 4 +- components/form/ArrayListGrouped.vue | 2 +- components/form/KeyValue.vue | 6 +- components/form/Select.vue | 25 ++++- .../networking.k8s.io.ingress/Certificate.vue | 102 ++++++++---------- .../Certificates.vue | 35 +++--- edit/networking.k8s.io.ingress/Rule.vue | 12 --- edit/networking.k8s.io.ingress/RulePath.vue | 35 ++++-- edit/networking.k8s.io.ingress/Rules.vue | 36 ++----- 12 files changed, 167 insertions(+), 164 deletions(-) diff --git a/assets/styles/base/_mixins.scss b/assets/styles/base/_mixins.scss index bd12c836f6..7525b76364 100755 --- a/assets/styles/base/_mixins.scss +++ b/assets/styles/base/_mixins.scss @@ -119,3 +119,40 @@ -ms-transform: scale($horiz, $vert); transform: scale($horiz, $vert); } + +@mixin input-status-color { + &:not(.focused) { + &.success { + border: solid 1px var(--success); + input, .selected { + color: var(--success); + } + + .vs__actions:after { + color: var(--success); + } + } + + &.warning { + border: solid 1px var(--warning); + input, .selected { + color: var(--warning); + } + + .vs__actions:after { + color: var(--warning); + } + } + + &.error { + border: solid 1px var(--error); + input, .selected { + color: var(--error); + } + + .vs__actions:after { + color: var(--error); + } + } + } +} \ No newline at end of file diff --git a/assets/styles/global/_form.scss b/assets/styles/global/_form.scss index 7605bf2fc7..bab88c991a 100644 --- a/assets/styles/global/_form.scss +++ b/assets/styles/global/_form.scss @@ -24,40 +24,7 @@ TEXTAREA, border: solid var(--outline-width) var(--input-border); color: var(--input-text); - &:not(.focused) { - &.success { - border: solid 1px var(--success); - input, .selected { - color: var(--success); - } - - .vs__actions:after { - color: var(--success); - } - } - - &.warning { - border: solid 1px var(--warning); - input, .selected { - color: var(--warning); - } - - .vs__actions:after { - color: var(--warning); - } - } - - &.error { - border: solid 1px var(--error); - input, .selected { - color: var(--error); - } - - .vs__actions:after { - color: var(--error); - } - } - } + @include input-status-color; &:not(.view) { &:hover { diff --git a/assets/translations/en-us.yaml b/assets/translations/en-us.yaml index 6c085e5742..3ae2a28660 100644 --- a/assets/translations/en-us.yaml +++ b/assets/translations/en-us.yaml @@ -668,7 +668,7 @@ labels: addLabel: Add Label addSetLabel: Add/Set Label addAnnotation: Add Annotation - label: + labels: title: Labels annotations: title: Annotations diff --git a/components/form/ArrayList.vue b/components/form/ArrayList.vue index ecd39c0373..465a4aabae 100644 --- a/components/form/ArrayList.vue +++ b/components/form/ArrayList.vue @@ -13,7 +13,7 @@ import { clone } from '@/utils/object'; - Concealed value */ -const DEFAULT_PROTIP = 'ProTip: Paste lines into any list field for easy bulk entry'; +const DEFAULT_PROTIP = 'Paste lines into any list field for easy bulk entry'; export default { components: { TextAreaAutoGrow }, @@ -337,7 +337,7 @@ export default { .value { flex: 1; INPUT { - height: 50px; + height: $input-height; } } } diff --git a/components/form/ArrayListGrouped.vue b/components/form/ArrayListGrouped.vue index 6747f649ab..8febea34a2 100644 --- a/components/form/ArrayListGrouped.vue +++ b/components/form/ArrayListGrouped.vue @@ -7,7 +7,7 @@ export default { components: { ArrayList, InfoBox } }; -