From 3278d229e8db6b96e0f908a766bf0bb1feea7a4a Mon Sep 17 00:00:00 2001 From: Susmitha Girumala Date: Wed, 23 Jun 2021 11:58:48 -0400 Subject: [PATCH 1/5] chore: Update components in connect dialog to latest --- addons/core/translations/resources/en-us.yaml | 5 ++ .../scopes/scope/projects/targets.hbs | 62 +++++++++++++++++-- 2 files changed, 61 insertions(+), 6 deletions(-) diff --git a/addons/core/translations/resources/en-us.yaml b/addons/core/translations/resources/en-us.yaml index 888cb980b..fc4fa2c65 100644 --- a/addons/core/translations/resources/en-us.yaml +++ b/addons/core/translations/resources/en-us.yaml @@ -147,6 +147,11 @@ session: description: No active sessions available to display yet. actions: connect: Connect + credential: + title: Credential + title_plural: Credentials + actions: + detail: Credential library details org: title: Org title_plural: Orgs diff --git a/ui/desktop/app/templates/scopes/scope/projects/targets.hbs b/ui/desktop/app/templates/scopes/scope/projects/targets.hbs index fb0d61f56..f4fb6811a 100644 --- a/ui/desktop/app/templates/scopes/scope/projects/targets.hbs +++ b/ui/desktop/app/templates/scopes/scope/projects/targets.hbs @@ -19,7 +19,8 @@ > <:body>

{{t 'resources.target.messages.proxy_url.title'}} - ({{t 'resources.target.types.tcp'}})

+ {{!-- ({{t 'resources.target.types.tcp'}}) --}} + ({{t 'resources.target.types.tcp'}})

- {{!-- + + + {{!-- TODO: Conditional for when credentials aren't available + older versions of cli --}} +

{{t 'resources.session.credential.title_plural'}}

+ + <:header> + + + <:key>{{t 'form.id.label'}} + <:value>cl_nbv9375hLHs + + + <:key>{{t 'form.name.label'}} + <:value>Key/Value + + + <:key>{{t 'form.description.label'}} + <:value>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Ut nobis, nemo cum omnis saepe reprehenderit eaque non odit iste magni quod voluptatem soluta dolor beatae libero consequatur, perferendis rem molestias. + + + + <:body> + {{!-- TODO: Iterate through all credentials --}} + + + + Key + Value + + + + + foo + Value + + + ttl + Test + + + + + + {{!--

Credentials

@@ -94,13 +144,13 @@
- {{! - - }} + View sessions + --}}
From f0926cba870ef34c040225ef6433675c2287644c Mon Sep 17 00:00:00 2001 From: Carlos Alcaide Date: Wed, 23 Jun 2021 11:37:28 -0700 Subject: [PATCH 2/5] Change flex CSS in card header --- ui/desktop/app/styles/app.scss | 2 +- .../scopes/scope/projects/targets.hbs | 44 +++++++++++-------- 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/ui/desktop/app/styles/app.scss b/ui/desktop/app/styles/app.scss index 00313f9ea..5aa212672 100644 --- a/ui/desktop/app/styles/app.scss +++ b/ui/desktop/app/styles/app.scss @@ -422,7 +422,7 @@ $chevron-down: url("data:image/svg+xml;utf-8,{{t 'resources.session.credential.title_plural'}} <:header> - - - <:key>{{t 'form.id.label'}} - <:value>cl_nbv9375hLHs - - - <:key>{{t 'form.name.label'}} - <:value>Key/Value - - - <:key>{{t 'form.description.label'}} - <:value>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Ut nobis, nemo cum omnis saepe reprehenderit eaque non odit iste magni quod voluptatem soluta dolor beatae libero consequatur, perferendis rem molestias. - + @dropdownRight={{true}} + as |dropdown| + > + + <:key>{{t 'form.id.label'}} + <:value>cl_nbv9375hLHs + + + <:key>{{t 'form.name.label'}} + <:value>Key/Value + + + <:key>{{t 'form.description.label'}} + <:value>Lorem ipsum dolor, sit amet consectetur adipisicing + elit. Ut nobis, nemo cum omnis saepe reprehenderit eaque + non odit iste magni quod voluptatem soluta dolor beatae + libero consequatur, perferendis rem molestias. + <:body> - {{!-- TODO: Iterate through all credentials --}} + {{! TODO: Iterate through all credentials }} @@ -144,13 +150,13 @@
- {{!-- View sessions - --}} + }}
From 1f20e2c40c787bdd345492d8100ff22ead444fe9 Mon Sep 17 00:00:00 2001 From: Carlos Alcaide Date: Wed, 23 Jun 2021 11:55:15 -0700 Subject: [PATCH 3/5] Fix padding proportions --- ui/desktop/app/styles/app.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/desktop/app/styles/app.scss b/ui/desktop/app/styles/app.scss index 5aa212672..7e2357988 100644 --- a/ui/desktop/app/styles/app.scss +++ b/ui/desktop/app/styles/app.scss @@ -423,7 +423,7 @@ $chevron-down: url("data:image/svg+xml;utf-8, - - {{!-- - -

Credentials

- - - <:header> - - - - <:body> - - - - Key - Value - - - - - foo - Value - - - ttl - Test - - - - <:footer>
                     
-  {
-    "auth": null,
-    "lease_duration": 3600,
-    "lease_id": "",
-    "renewable": false
-  }
+                      { "auth": null, "lease_duration": 3600, "lease_id": "",
+                      "renewable": false }
                     
                   
-
--}} - + <:footer>
@@ -149,15 +111,6 @@ {{t 'actions.close'}}
-
- {{! - View sessions - }} -
{{/unless}} From a83e6af6de52e6e87e304a3e96ba69be2d1e87f8 Mon Sep 17 00:00:00 2001 From: Carlos Alcaide Date: Wed, 23 Jun 2021 14:08:01 -0700 Subject: [PATCH 5/5] Comment code with plain strings --- ui/desktop/app/templates/scopes/scope/projects/targets.hbs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ui/desktop/app/templates/scopes/scope/projects/targets.hbs b/ui/desktop/app/templates/scopes/scope/projects/targets.hbs index cf3eddfc4..5da77108f 100644 --- a/ui/desktop/app/templates/scopes/scope/projects/targets.hbs +++ b/ui/desktop/app/templates/scopes/scope/projects/targets.hbs @@ -1,5 +1,3 @@ -{{! template-lint-disable no-bare-strings }} - {{page-title (t 'resources.target.title_plural')}} {{#each @model as |target|}} @@ -38,7 +36,7 @@ {{! TODO: Conditional for when credentials aren't available older versions of cli }}

{{t 'resources.session.credential.title_plural'}}

- @@ -100,7 +98,7 @@ - + --}} <:footer>