mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-03 03:58:01 +00:00
LinkTo remove tagName lint warning (#14344)
* removal stage 1 * remove unused roles file * more changes and glimmerize toggle * clean up * fix * fixes * remove layout
This commit is contained in:
@@ -8,6 +8,17 @@
|
|||||||
ul {
|
ul {
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
min-height: 3rem;
|
min-height: 3rem;
|
||||||
|
|
||||||
|
> a {
|
||||||
|
&:focus {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
&.is-active,
|
||||||
|
&.is-active .tab {
|
||||||
|
border-color: $blue;
|
||||||
|
color: $blue;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
|
|||||||
@@ -1,38 +1,22 @@
|
|||||||
<div class="tabs-container box is-sideless is-fullwidth is-paddingless is-marginless">
|
<div class="tabs-container box is-sideless is-fullwidth is-paddingless is-marginless">
|
||||||
<nav class="tabs">
|
<nav class="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
|
||||||
<LinkTo
|
<LinkTo
|
||||||
@route="vault.cluster.settings.configure-secret-backend"
|
@route="vault.cluster.settings.configure-secret-backend"
|
||||||
@model={{@model.id}}
|
@model={{@model.id}}
|
||||||
@query={{hash tab=""}}
|
@query={{hash tab=""}}
|
||||||
@tagName="li"
|
data-test-aws-link="root-creds"
|
||||||
>
|
>
|
||||||
<LinkTo
|
Dynamic IAM root credentials
|
||||||
@route="vault.cluster.settings.configure-secret-backend"
|
|
||||||
@model={{@model.id}}
|
|
||||||
@query={{hash tab=""}}
|
|
||||||
data-test-aws-link="root-creds"
|
|
||||||
>
|
|
||||||
Dynamic IAM root credentials
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
<LinkTo
|
<LinkTo
|
||||||
@route="vault.cluster.settings.configure-secret-backend"
|
@route="vault.cluster.settings.configure-secret-backend"
|
||||||
@model={{@model.id}}
|
@model={{@model.id}}
|
||||||
@query={{hash tab="leases"}}
|
@query={{hash tab="leases"}}
|
||||||
@tagName="li"
|
data-test-aws-link="leases"
|
||||||
>
|
>
|
||||||
<LinkTo
|
Leases
|
||||||
@route="vault.cluster.settings.configure-secret-backend"
|
|
||||||
@model={{@model.id}}
|
|
||||||
@query={{hash tab="leases"}}
|
|
||||||
data-test-aws-link="leases"
|
|
||||||
>
|
|
||||||
Leases
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
@@ -61,6 +45,7 @@
|
|||||||
(hash access_key=@accessKey iam_endpoint=@iamEndpoint sts_endpoint=@stsEndpoint secret_key=@secretKey region=@region)
|
(hash access_key=@accessKey iam_endpoint=@iamEndpoint sts_endpoint=@stsEndpoint secret_key=@secretKey region=@region)
|
||||||
}}
|
}}
|
||||||
data-test-aws-root-creds-form="true"
|
data-test-aws-root-creds-form="true"
|
||||||
|
aria-label="save root creds form"
|
||||||
>
|
>
|
||||||
<div class="box is-fullwidth is-shadowless is-marginless">
|
<div class="box is-fullwidth is-shadowless is-marginless">
|
||||||
<NamespaceReminder @mode="save" @noun="configuration" />
|
<NamespaceReminder @mode="save" @noun="configuration" />
|
||||||
|
|||||||
@@ -1,28 +1,19 @@
|
|||||||
<div class="tabs-container box is-bottomless is-fullwidth is-paddingless">
|
<div class="tabs-container box is-bottomless is-fullwidth is-paddingless">
|
||||||
<nav class="tabs">
|
<nav class="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
|
||||||
{{#each (array "cert" "urls" "crl" "tidy") as |section|}}
|
{{#each (array "cert" "urls" "crl" "tidy") as |section|}}
|
||||||
<LinkTo
|
<LinkTo @route="vault.cluster.settings.configure-secret-backend.section" @model={{section}} @activeClass="is-active">
|
||||||
@route="vault.cluster.settings.configure-secret-backend.section"
|
{{#if (eq section "cert")}}
|
||||||
@model={{section}}
|
CA certificate
|
||||||
@tagName="li"
|
{{else if (eq section "urls")}}
|
||||||
@activeClass="is-active"
|
URLs
|
||||||
>
|
{{else if (eq section "crl")}}
|
||||||
<LinkTo @route="vault.cluster.settings.configure-secret-backend.section" @model={{section}}>
|
CRL
|
||||||
{{#if (eq section "cert")}}
|
{{else if (eq section "tidy")}}
|
||||||
CA certificate
|
Tidy
|
||||||
{{else if (eq section "urls")}}
|
{{/if}}
|
||||||
URLs
|
|
||||||
{{else if (eq section "crl")}}
|
|
||||||
CRL
|
|
||||||
{{else if (eq section "tidy")}}
|
|
||||||
Tidy
|
|
||||||
{{/if}}
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
@@ -8,18 +8,12 @@
|
|||||||
<div class="tabs-container box is-sideless is-fullwidth is-paddingless is-marginless">
|
<div class="tabs-container box is-sideless is-fullwidth is-paddingless is-marginless">
|
||||||
<nav class="tabs">
|
<nav class="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
<LinkTo @route="vault.cluster.access.identity.index" @model={{pluralize this.identityType}}>
|
||||||
<LinkTo @route="vault.cluster.access.identity.index" @model={{pluralize this.identityType}} @tagName="li">
|
{{capitalize (pluralize this.identityType)}}
|
||||||
<LinkTo @route="vault.cluster.access.identity.index" @model={{pluralize this.identityType}}>
|
|
||||||
{{capitalize (pluralize this.identityType)}}
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
<LinkTo @route="vault.cluster.access.identity.aliases.index" @model={{pluralize this.identityType}} @tagName="li">
|
<LinkTo @route="vault.cluster.access.identity.aliases.index" @model={{pluralize this.identityType}}>
|
||||||
<LinkTo @route="vault.cluster.access.identity.aliases.index" @model={{pluralize this.identityType}}>
|
Aliases
|
||||||
Aliases
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -23,12 +23,10 @@
|
|||||||
(humanize @model.identityType)
|
(humanize @model.identityType)
|
||||||
}}. Edit this {{lowercase (humanize @model.identityType)}} to get started."
|
}}. Edit this {{lowercase (humanize @model.identityType)}} to get started."
|
||||||
>
|
>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
<LinkTo @route="vault.cluster.access.identity.edit" @model={{@model.id}} class="link">
|
||||||
<LinkTo @route="vault.cluster.access.identity.edit" @model={{@model.id}} @tagName="button" class="link">
|
|
||||||
Edit
|
Edit
|
||||||
{{lowercase (humanize @model.identityType)}}
|
{{lowercase (humanize @model.identityType)}}
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
<LearnLink @path="/vault/identity-access-management/iam-identity">
|
<LearnLink @path="/vault/identity-access-management/iam-identity">
|
||||||
Learn more
|
Learn more
|
||||||
</LearnLink>
|
</LearnLink>
|
||||||
|
|||||||
@@ -27,33 +27,25 @@
|
|||||||
<div class="tabs-container box is-bottomless is-marginless is-fullwidth is-paddingless">
|
<div class="tabs-container box is-bottomless is-marginless is-fullwidth is-paddingless">
|
||||||
<nav class="tabs">
|
<nav class="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
|
||||||
<LinkTo
|
<LinkTo
|
||||||
@route="vault.cluster.secrets.backend.show"
|
@route="vault.cluster.secrets.backend.show"
|
||||||
@model={{this.key.id}}
|
@model={{this.key.id}}
|
||||||
@tagName="li"
|
|
||||||
@activeClass="is-active"
|
@activeClass="is-active"
|
||||||
data-test-secret-tab
|
data-test-secret-tab
|
||||||
>
|
>
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.show">
|
Secret
|
||||||
Secret
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{! must have read access to /metadata see tab or update to update metadata}}
|
{{! must have read access to /metadata see tab or update to update metadata}}
|
||||||
{{#if (or this.canReadSecretMetadata this.canUpdateSecretMetadata)}}
|
{{#if (or this.canReadSecretMetadata this.canUpdateSecretMetadata)}}
|
||||||
<LinkTo
|
<LinkTo
|
||||||
@route="vault.cluster.secrets.backend.metadata"
|
@route="vault.cluster.secrets.backend.metadata"
|
||||||
@model={{this.key.id}}
|
@model={{this.key.id}}
|
||||||
@tagName="li"
|
|
||||||
@activeClass="is-active"
|
@activeClass="is-active"
|
||||||
data-test-secret-metadata-tab
|
data-test-secret-metadata-tab
|
||||||
>
|
>
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.metadata">
|
Metadata
|
||||||
Metadata
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,14 +1,10 @@
|
|||||||
{{#unless this.dontShowTab}}
|
{{#unless this.dontShowTab}}
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
|
||||||
<LinkTo
|
<LinkTo
|
||||||
@route="vault.cluster.secrets.backend.list-root"
|
@route="vault.cluster.secrets.backend.list-root"
|
||||||
@query={{hash tab=@tab}}
|
@query={{hash tab=@tab}}
|
||||||
@tagName="li"
|
|
||||||
@activeClass="is-active"
|
@activeClass="is-active"
|
||||||
data-test-secret-list-tab={{@label}}
|
data-test-secret-list-tab={{@label}}
|
||||||
>
|
>
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.list-root" @query={{hash tab=@tab}}>
|
{{@label}}
|
||||||
{{@label}}
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
@@ -27,19 +27,11 @@
|
|||||||
</PageHeader>
|
</PageHeader>
|
||||||
{{#if options.tabs}}
|
{{#if options.tabs}}
|
||||||
<div class="tabs-container box is-bottomless is-marginless is-fullwidth is-paddingless">
|
<div class="tabs-container box is-bottomless is-marginless is-fullwidth is-paddingless">
|
||||||
<nav class="tabs">
|
<nav class="tabs" aria-label="secret tabs">
|
||||||
<ul>
|
<ul>
|
||||||
{{#if options.hasOverview}}
|
{{#if options.hasOverview}}
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
<LinkTo @route="vault.cluster.secrets.backend.overview" @activeClass="is-active" data-test-tab="overview">
|
||||||
<LinkTo
|
Overview
|
||||||
@route="vault.cluster.secrets.backend.overview"
|
|
||||||
@tagName="li"
|
|
||||||
@activeClass="is-active"
|
|
||||||
data-test-tab="overview"
|
|
||||||
>
|
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.overview">
|
|
||||||
Overview
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#each options.tabs as |oTab|}}
|
{{#each options.tabs as |oTab|}}
|
||||||
@@ -61,10 +53,12 @@
|
|||||||
/>
|
/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.configuration" @tagName="li" @activeClass="is-active">
|
<LinkTo
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.configuration" data-test-configuration-tab={{true}}>
|
@route="vault.cluster.secrets.backend.configuration"
|
||||||
Configuration
|
@activeClass="is-active"
|
||||||
</LinkTo>
|
data-test-configuration-tab={{true}}
|
||||||
|
>
|
||||||
|
Configuration
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
@@ -72,24 +66,23 @@
|
|||||||
{{else}}
|
{{else}}
|
||||||
{{! if there are no tabs in the options, we'll hardcode them here }}
|
{{! if there are no tabs in the options, we'll hardcode them here }}
|
||||||
<div class="tabs-container box is-bottomless is-marginless is-fullwidth is-paddingless">
|
<div class="tabs-container box is-bottomless is-marginless is-fullwidth is-paddingless">
|
||||||
<nav class="tabs">
|
<nav class="tabs" aria-label="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
{{#if (contains @model.engineType (supported-secret-backends))}}
|
{{#if (contains @model.engineType (supported-secret-backends))}}
|
||||||
<LinkTo
|
<LinkTo
|
||||||
@route="vault.cluster.secrets.backend.list-root"
|
@route="vault.cluster.secrets.backend.list-root"
|
||||||
@tagName="li"
|
|
||||||
@activeClass="is-active"
|
@activeClass="is-active"
|
||||||
@current-when="vault.cluster.secrets.backend.list-root vault.cluster.secrets.backend.list"
|
@current-when="vault.cluster.secrets.backend.list-root vault.cluster.secrets.backend.list"
|
||||||
>
|
>
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.list-root">
|
{{capitalize (pluralize options.item)}}
|
||||||
{{capitalize (pluralize options.item)}}
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.configuration" @tagName="li" @activeClass="is-active">
|
<LinkTo
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.configuration" data-test-configuration-tab={{true}}>
|
@route="vault.cluster.secrets.backend.configuration"
|
||||||
Configuration
|
data-test-configuration-tab={{true}}
|
||||||
</LinkTo>
|
@activeClass="is-active"
|
||||||
|
>
|
||||||
|
Configuration
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@@ -105,17 +105,14 @@
|
|||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
<footer class="modal-card-foot modal-card-foot-outlined">
|
<footer class="modal-card-foot modal-card-foot-outlined">
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
|
||||||
<LinkTo
|
<LinkTo
|
||||||
@route="vault.cluster.secrets.backend.edit"
|
@route="vault.cluster.secrets.backend.edit"
|
||||||
@model={{this.model.id}}
|
@model={{this.model.id}}
|
||||||
@tagName="button"
|
|
||||||
class="button is-primary"
|
class="button is-primary"
|
||||||
data-test-edit-confirm-button={{true}}
|
data-test-edit-confirm-button={{true}}
|
||||||
>
|
>
|
||||||
Confirm
|
Confirm
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
<button type="button" class="button is-secondary" onclick={{action (mut this.isEditModalActive) false}}>
|
<button type="button" class="button is-secondary" onclick={{action (mut this.isEditModalActive) false}}>
|
||||||
Cancel
|
Cancel
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -47,17 +47,10 @@
|
|||||||
this.identityType
|
this.identityType
|
||||||
}} and click "Create Alias" to get started."
|
}} and click "Create Alias" to get started."
|
||||||
>
|
>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
<LinkTo @route="vault.cluster.access.identity.create" @model={{pluralize this.identityType}} class="link">
|
||||||
<LinkTo
|
|
||||||
@route="vault.cluster.access.identity.create"
|
|
||||||
@model={{pluralize this.identityType}}
|
|
||||||
@tagName="button"
|
|
||||||
class="link"
|
|
||||||
>
|
|
||||||
Create
|
Create
|
||||||
{{this.identityType}}
|
{{this.identityType}}
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
<LearnLink @path="/vault/identity-access-management/iam-identity">
|
<LearnLink @path="/vault/identity-access-management/iam-identity">
|
||||||
Learn more
|
Learn more
|
||||||
</LearnLink>
|
</LearnLink>
|
||||||
|
|||||||
@@ -21,13 +21,9 @@
|
|||||||
<nav class="tabs sub-nav">
|
<nav class="tabs sub-nav">
|
||||||
<ul>
|
<ul>
|
||||||
{{#each (tabs-for-identity-show this.model.identityType) as |tab|}}
|
{{#each (tabs-for-identity-show this.model.identityType) as |tab|}}
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
<LinkTo @route="vault.cluster.access.identity.aliases.show" @models={{array this.model.id tab}}>
|
||||||
<LinkTo @route="vault.cluster.access.identity.aliases.show" @models={{array this.model.id tab}} @tagName="li">
|
{{capitalize tab}}
|
||||||
<LinkTo @route="vault.cluster.access.identity.aliases.show" @models={{array this.model.id tab}}>
|
|
||||||
{{capitalize tab}}
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@@ -107,17 +107,10 @@
|
|||||||
this.identityType
|
this.identityType
|
||||||
}} in this namespace will be listed here. Create your first {{this.identityType}} to get started."
|
}} in this namespace will be listed here. Create your first {{this.identityType}} to get started."
|
||||||
>
|
>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
<LinkTo @route="vault.cluster.access.identity.create" @model={{pluralize this.identityType}} class="link">
|
||||||
<LinkTo
|
|
||||||
@route="vault.cluster.access.identity.create"
|
|
||||||
@model={{pluralize this.identityType}}
|
|
||||||
@tagName="button"
|
|
||||||
class="link"
|
|
||||||
>
|
|
||||||
Create
|
Create
|
||||||
{{this.identityType}}
|
{{this.identityType}}
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
<LearnLink @path="/vault/identity-access-management/iam-identity">
|
<LearnLink @path="/vault/identity-access-management/iam-identity">
|
||||||
Learn more
|
Learn more
|
||||||
</LearnLink>
|
</LearnLink>
|
||||||
|
|||||||
@@ -21,21 +21,13 @@
|
|||||||
<nav class="tabs sub-nav">
|
<nav class="tabs sub-nav">
|
||||||
<ul>
|
<ul>
|
||||||
{{#each (tabs-for-identity-show this.model.identityType this.model.type) as |tab|}}
|
{{#each (tabs-for-identity-show this.model.identityType this.model.type) as |tab|}}
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
|
||||||
<LinkTo
|
<LinkTo
|
||||||
@route="vault.cluster.access.identity.show"
|
@route="vault.cluster.access.identity.show"
|
||||||
@models={{array (pluralize this.model.identityType) this.model.id tab}}
|
@models={{array (pluralize this.model.identityType) this.model.id tab}}
|
||||||
@tagName="li"
|
|
||||||
data-test-tab-subnav={{tab}}
|
data-test-tab-subnav={{tab}}
|
||||||
>
|
>
|
||||||
<LinkTo
|
{{capitalize (humanize tab)}}
|
||||||
@route="vault.cluster.access.identity.show"
|
|
||||||
@models={{array (pluralize this.model.identityType) this.model.id tab}}
|
|
||||||
>
|
|
||||||
{{capitalize (humanize tab)}}
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@@ -12,11 +12,9 @@
|
|||||||
@title="You do not have permissions to edit metadata"
|
@title="You do not have permissions to edit metadata"
|
||||||
@message="Ask your administrator if you think you should have access."
|
@message="Ask your administrator if you think you should have access."
|
||||||
>
|
>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
<LinkTo @route="vault.cluster.secrets.backend.metadata" @model={{this.model.id}} class="link">
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.metadata" @model={{this.model.id}} @tagName="button" class="link">
|
|
||||||
View Metadata
|
View Metadata
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
<DocLink @path="/api/secret/kv/kv-v2#create-update-metadata">More here</DocLink>
|
<DocLink @path="/api/secret/kv/kv-v2#create-update-metadata">More here</DocLink>
|
||||||
</EmptyState>
|
</EmptyState>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
@@ -18,18 +18,12 @@
|
|||||||
<div class="tabs-container box is-bottomless is-marginless is-fullwidth is-paddingless">
|
<div class="tabs-container box is-bottomless is-marginless is-fullwidth is-paddingless">
|
||||||
<nav class="tabs">
|
<nav class="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
<LinkTo @route="vault.cluster.secrets.backend.show" @model={{this.id}} data-test-secret-tab @activeClass="is-active">
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.show" @tagName="li" @activeClass="is-active">
|
Secret
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.show" @model={{this.id}} data-test-secret-tab>
|
|
||||||
Secret
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.metadata" @model={{this.id}} @tagName="li" @activeClass="is-active">
|
<LinkTo @route="vault.cluster.secrets.backend.metadata" @model={{this.id}} @activeClass="is-active">
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.metadata">
|
Metadata
|
||||||
Metadata
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,143 +0,0 @@
|
|||||||
<PageHeader as |p|>
|
|
||||||
<p.top>
|
|
||||||
<KeyValueHeader
|
|
||||||
@baseKey={{this.baseKey}}
|
|
||||||
@path="vault.cluster.secrets.backend.list"
|
|
||||||
@mode="show"
|
|
||||||
@root={{this.root}}
|
|
||||||
@showCurrent={{true}}
|
|
||||||
/>
|
|
||||||
</p.top>
|
|
||||||
<p.levelLeft>
|
|
||||||
<h1 class="title is-3" data-test-secret-header="true">
|
|
||||||
{{@model.secret}}
|
|
||||||
</h1>
|
|
||||||
</p.levelLeft>
|
|
||||||
</PageHeader>
|
|
||||||
|
|
||||||
<div class="tabs-container box is-sideless is-fullwidth is-paddingless is-marginless">
|
|
||||||
<nav class="tabs sub-nav">
|
|
||||||
<ul>
|
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.roles" @models={{array this.backend @model.secret}} @tagName="li">
|
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.roles" @models={{array this.backend @model.secret}}>
|
|
||||||
Roles
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.show" @models={{array this.backend @model.secret}} @tagName="li">
|
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.show" @models={{array this.backend @model.secret}}>
|
|
||||||
Configuration
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{#with (options-for-backend this.backendType this.tab) as |options|}}
|
|
||||||
{{#if (or this.model.meta.total (not this.isConfigurableTab))}}
|
|
||||||
<Toolbar>
|
|
||||||
{{#if this.model.meta.total}}
|
|
||||||
<ToolbarFilters>
|
|
||||||
<NavigateInput
|
|
||||||
@enterpriseProduct="vault"
|
|
||||||
@filterFocusDidChange={{action "setFilterFocus"}}
|
|
||||||
@filterDidChange={{action "setFilter"}}
|
|
||||||
@filter={{this.filter}}
|
|
||||||
@filterMatchesKey={{this.filterMatchesKey}}
|
|
||||||
@firstPartialMatch={{this.firstPartialMatch}}
|
|
||||||
@baseKey={{get this.baseKey "id"}}
|
|
||||||
@shouldNavigateTree={{options.navigateTree}}
|
|
||||||
@placeholder={{options.searchPlaceholder}}
|
|
||||||
@mode={{if (eq this.tab "certs") "secrets-cert" "secrets"}}
|
|
||||||
@data-test-nav-input={{true}}
|
|
||||||
/>
|
|
||||||
{{#if this.filterFocused}}
|
|
||||||
{{#if this.filterMatchesKey}}
|
|
||||||
{{#unless this.filterIsFolder}}
|
|
||||||
<p class="input-hint">
|
|
||||||
<kbd>Enter</kbd>
|
|
||||||
to view
|
|
||||||
{{this.filter}}
|
|
||||||
</p>
|
|
||||||
{{/unless}}
|
|
||||||
{{/if}}
|
|
||||||
{{#if this.firstPartialMatch}}
|
|
||||||
<p class="input-hint">
|
|
||||||
<kbd>Tab</kbd>
|
|
||||||
to autocomplete
|
|
||||||
</p>
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
</ToolbarFilters>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<ToolbarActions>
|
|
||||||
<ToolbarSecretLink
|
|
||||||
@secret=""
|
|
||||||
@mode="create"
|
|
||||||
@type="add"
|
|
||||||
@queryParams={{query-params initialKey=(or this.filter this.baseKey.id) itemType=this.tab}}
|
|
||||||
@data-test-secret-create={{true}}
|
|
||||||
>
|
|
||||||
{{options.create}}
|
|
||||||
</ToolbarSecretLink>
|
|
||||||
</ToolbarActions>
|
|
||||||
</Toolbar>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if this.model.meta.total}}
|
|
||||||
{{! template-lint-configure no-partial "warn" }}
|
|
||||||
{{#each this.model as |item|}}
|
|
||||||
{{partial options.listItemPartial}}
|
|
||||||
{{else}}
|
|
||||||
<div class="box is-sideless">
|
|
||||||
{{#if this.filterFocused}}
|
|
||||||
There are no
|
|
||||||
{{pluralize options.item}}
|
|
||||||
matching
|
|
||||||
<code>{{this.filter}}</code>, press
|
|
||||||
<kbd>ENTER</kbd>
|
|
||||||
to add one.
|
|
||||||
{{else}}
|
|
||||||
There are no
|
|
||||||
{{pluralize options.item}}
|
|
||||||
matching
|
|
||||||
<code>{{this.filter}}</code>.
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
{{/each}}
|
|
||||||
{{#if (gt this.model.meta.lastPage 1)}}
|
|
||||||
<ListPagination
|
|
||||||
@page={{this.model.meta.currentPage}}
|
|
||||||
@lastPage={{this.model.meta.lastPage}}
|
|
||||||
@link={{concat "vault.cluster.secrets.backend.list" (unless this.baseKey.id "-root")}}
|
|
||||||
@model={{compact (array this.backend (if this.baseKey.id this.baseKey.id))}}
|
|
||||||
/>
|
|
||||||
{{/if}}
|
|
||||||
{{else}}
|
|
||||||
{{#if (eq this.baseKey.id "")}}
|
|
||||||
<EmptyState
|
|
||||||
@title="No {{pluralize options.item}} in this backend"
|
|
||||||
@message="Secrets in this backend will be listed here. Add a secret to get started."
|
|
||||||
>
|
|
||||||
<SecretLink
|
|
||||||
@mode="create"
|
|
||||||
@secret=""
|
|
||||||
@queryParams={{query-params initialKey=(or this.filter this.baseKey.id) itemType=this.tab}}
|
|
||||||
@class="link"
|
|
||||||
>
|
|
||||||
{{options.create}}
|
|
||||||
</SecretLink>
|
|
||||||
</EmptyState>
|
|
||||||
{{else}}
|
|
||||||
<EmptyState
|
|
||||||
@title={{if
|
|
||||||
(eq this.filter this.baseKey.id)
|
|
||||||
(concat "No " (pluralize options.item) " under “" this.filter "”")
|
|
||||||
(concat "No folders matching “" this.filter "”")
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
{{/with}}
|
|
||||||
@@ -3,17 +3,14 @@
|
|||||||
{{#each (tools-actions) as |supportedAction|}}
|
{{#each (tools-actions) as |supportedAction|}}
|
||||||
{{#if (has-permission "tools" routeParams=supportedAction)}}
|
{{#if (has-permission "tools" routeParams=supportedAction)}}
|
||||||
<li>
|
<li>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
|
||||||
<LinkTo
|
<LinkTo
|
||||||
@route="vault.cluster.tools.tool"
|
@route="vault.cluster.tools.tool"
|
||||||
@model={{supportedAction}}
|
@model={{supportedAction}}
|
||||||
@refreshModel={{true}}
|
|
||||||
class="(if (eq supportedAction selectedAction) 'is-active')"
|
class="(if (eq supportedAction selectedAction) 'is-active')"
|
||||||
data-test-tools-action-link={{supportedAction}}
|
data-test-tools-action-link={{supportedAction}}
|
||||||
>
|
>
|
||||||
{{capitalize supportedAction}}
|
{{capitalize supportedAction}}
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
</li>
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|||||||
@@ -1,15 +1,13 @@
|
|||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
|
||||||
<Input
|
<Input
|
||||||
id={{this.safeId}}
|
id={{this.safeId}}
|
||||||
name={{this.name}}
|
name={{this.name}}
|
||||||
@type="checkbox"
|
@type="checkbox"
|
||||||
@checked={{this.checked}}
|
@checked={{this.checked}}
|
||||||
@change={{action "handleChange" value="target.checked"}}
|
{{on "change" this.handleChange}}
|
||||||
class={{this.inputClasses}}
|
class={{this.inputClasses}}
|
||||||
disabled={{this.disabled}}
|
disabled={{this.disabled}}
|
||||||
data-test-toggle-input={{this.name}}
|
data-test-toggle-input={{this.name}}
|
||||||
/>
|
/>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
<label data-test-toggle-label={{this.name}} for={{this.safeId}} class="toggle-label">
|
<label data-test-toggle-label={{this.name}} for={{this.safeId}} class="toggle-label">
|
||||||
{{#if (has-block)}}
|
{{#if (has-block)}}
|
||||||
{{yield}}
|
{{yield}}
|
||||||
@@ -15,29 +15,36 @@
|
|||||||
* @param {string} [status='normal'] - Status can be normal or success, which makes the switch have a blue background when checked=true
|
* @param {string} [status='normal'] - Status can be normal or success, which makes the switch have a blue background when checked=true
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Component from '@ember/component';
|
import Component from '@glimmer/component';
|
||||||
import { computed } from '@ember/object';
|
import { action } from '@ember/object';
|
||||||
import layout from '../templates/components/toggle';
|
import { tracked } from '@glimmer/tracking';
|
||||||
|
|
||||||
export default Component.extend({
|
export default class ToggleComponent extends Component {
|
||||||
layout,
|
// tracked because the Input mutates the property and therefor cannot be a getter
|
||||||
tagName: '',
|
@tracked
|
||||||
checked: false,
|
checked = this.args.checked || false;
|
||||||
disabled: false,
|
|
||||||
name: '',
|
get disabled() {
|
||||||
size: 'normal',
|
return this.args.disabled || false;
|
||||||
status: 'normal',
|
}
|
||||||
safeId: computed('name', function () {
|
|
||||||
|
get name() {
|
||||||
|
return this.args.name || '';
|
||||||
|
}
|
||||||
|
|
||||||
|
get safeId() {
|
||||||
return `toggle-${this.name.replace(/\W/g, '')}`;
|
return `toggle-${this.name.replace(/\W/g, '')}`;
|
||||||
}),
|
}
|
||||||
inputClasses: computed('size', 'status', function () {
|
get inputClasses() {
|
||||||
const sizeClass = `is-${this.size}`;
|
let size = this.args.size || 'normal';
|
||||||
const statusClass = `is-${this.status}`;
|
let status = this.args.status || 'normal';
|
||||||
|
const sizeClass = `is-${size}`;
|
||||||
|
const statusClass = `is-${status}`;
|
||||||
return `toggle ${statusClass} ${sizeClass}`;
|
return `toggle ${statusClass} ${sizeClass}`;
|
||||||
}),
|
}
|
||||||
actions: {
|
|
||||||
handleChange(value) {
|
@action
|
||||||
this.onChange(value);
|
handleChange(e) {
|
||||||
},
|
this.args.onChange(e.target.checked);
|
||||||
},
|
}
|
||||||
});
|
}
|
||||||
|
|||||||
@@ -47,33 +47,26 @@
|
|||||||
{{#if this.showTabs}}
|
{{#if this.showTabs}}
|
||||||
<div class="tabs-container box is-bottomless is-fullwidth is-paddingless" data-test-tabs>
|
<div class="tabs-container box is-bottomless is-fullwidth is-paddingless" data-test-tabs>
|
||||||
<nav class="tabs">
|
<nav class="tabs">
|
||||||
{{#unless this.isSummaryDashboard}}
|
{{#if this.isSummaryDashboard}}
|
||||||
<ul>
|
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
|
||||||
<LinkTo @route="vault.cluster.replication-dr-promote.details" @tagName="li" @activeClass="is-active">
|
|
||||||
<LinkTo @route="vault.cluster.replication-dr-promote.details">
|
|
||||||
Details
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
|
||||||
<LinkTo
|
|
||||||
@route="vault.cluster.replication-dr-promote"
|
|
||||||
@tagName="li"
|
|
||||||
@activeClass="is-active"
|
|
||||||
@current-when="vault.cluster.replication-dr-promote.index"
|
|
||||||
>
|
|
||||||
<LinkTo @route="vault.cluster.replication-dr-promote">
|
|
||||||
Manage
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
</ul>
|
|
||||||
{{else}}
|
|
||||||
<ul>
|
<ul>
|
||||||
<li class="is-active">
|
<li class="is-active">
|
||||||
{{link-to-external "Summary" "replication"}}
|
{{link-to-external "Summary" "replication"}}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{{/unless}}
|
{{else}}
|
||||||
|
<ul>
|
||||||
|
<LinkTo @route="vault.cluster.replication-dr-promote.details" @activeClass="is-active">
|
||||||
|
Details
|
||||||
|
</LinkTo>
|
||||||
|
<LinkTo
|
||||||
|
@route="vault.cluster.replication-dr-promote"
|
||||||
|
@activeClass="is-active"
|
||||||
|
@current-when="vault.cluster.replication-dr-promote.index"
|
||||||
|
>
|
||||||
|
Manage
|
||||||
|
</LinkTo>
|
||||||
|
</ul>
|
||||||
|
{{/if}}
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
@@ -11,18 +11,12 @@
|
|||||||
<div class="tabs-container box is-sideless is-fullwidth is-paddingless is-marginless">
|
<div class="tabs-container box is-sideless is-fullwidth is-paddingless is-marginless">
|
||||||
<nav class="tabs">
|
<nav class="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
<LinkTo @route="credentials.index" @models={{array @scope @role}} data-test-kmip-link-credentials="true">
|
||||||
<LinkTo @route="credentials.index" @models={{array @scope @role}} @tagName="li">
|
Credentials
|
||||||
<LinkTo @route="credentials.index" @models={{array @scope @role}} data-test-kmip-link-credentials="true">
|
|
||||||
Credentials
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
<LinkTo @route="role" @models={{array @scope @role}} @tagName="li">
|
<LinkTo @route="role" @models={{array @scope @role}} data-test-kmip-link-role-details="true">
|
||||||
<LinkTo @route="role" @models={{array @scope @role}} data-test-kmip-link-role-details="true">
|
Details
|
||||||
Details
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
@@ -12,18 +12,12 @@
|
|||||||
<div class="tabs-container box is-sideless is-fullwidth is-paddingless is-marginless">
|
<div class="tabs-container box is-sideless is-fullwidth is-paddingless is-marginless">
|
||||||
<nav class="tabs">
|
<nav class="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "warn" }}
|
<LinkTo @route="scopes.index" data-test-kmip-link-scopes="true">
|
||||||
<LinkTo @route="scopes.index" @tagName="li">
|
Scopes
|
||||||
<LinkTo @route="scopes.index" data-test-kmip-link-scopes="true">
|
|
||||||
Scopes
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
<LinkTo @route="configuration" @tagName="li">
|
<LinkTo @route="configuration" data-test-kmip-link-config="true">
|
||||||
<LinkTo @route="configuration" data-test-kmip-link-config="true">
|
Configuration
|
||||||
Configuration
|
|
||||||
</LinkTo>
|
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{! template-lint-configure no-unknown-arguments-for-builtin-components "on" }}
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user