mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-18 21:21:06 +02:00
* adds ember-flight-icons dependecy * adds inline-json-import babel plugin * adds flight icon styling * updates Icon component to support flight icons * updates Icon component usages to new api and updates name values to flight icon set when available * fixes tests * updates icon story with flight mappings and fixes issue with flight icons not rendering in storybook * adds changelog * fixes typo in sign action glyph name in transit-key model * adds comments to icon-map * updates Icon component to use only supported flight icon sizes * adds icon transform codemod * updates icon transform formatting to handle edge case * runs icon transform on templates * updates Icon usage in toolbar-filter md and story * updates tests
50 lines
2.6 KiB
Handlebars
50 lines
2.6 KiB
Handlebars
<div class="box is-fullwidth is-sideless is-paddingless is-marginless">
|
|
{{#each model.transformFieldAttrs as |attr|}}
|
|
{{#if (eq attr.type "object")}}
|
|
<InfoTableRow @label={{capitalize (or attr.options.label (humanize (dasherize attr.name)))}} @value={{stringify (get model attr.name)}} />
|
|
{{else if (eq attr.type "array")}}
|
|
<InfoTableRow @label={{capitalize (or attr.options.label (humanize (dasherize attr.name)))}} @value={{get model attr.name}} @type={{attr.type}} @isLink={{eq attr.name "allowed_roles"}} @queryParam="role" @modelType="transform/role" @wildcardLabel={{attr.options.wildcardLabel}} @viewAll="roles" @backend={{model.backend}} />
|
|
{{else}}
|
|
<InfoTableRow @label={{capitalize (or attr.options.label (humanize (dasherize attr.name)))}} @value={{get model attr.name}} @type={{attr.type}} />
|
|
{{/if}}
|
|
{{/each}}
|
|
</div>
|
|
|
|
<div class="has-top-margin-xl has-bottom-margin-s">
|
|
<label class="title has-border-bottom-light page-header">CLI Commands</label>
|
|
<div class="has-bottom-margin-s">
|
|
<h2 class="title is-6">Encode</h2>
|
|
<div class="has-bottom-margin-s">
|
|
<span class="helper-text has-text-grey">
|
|
To test the encoding capability of your transformation, use the following command. It will output an encoded_value.
|
|
</span>
|
|
</div>
|
|
<div class="copy-text level">
|
|
{{#let (concat "vault write " model.backend "/encode/" cliCommand) as |copyEncodeCommand|}}
|
|
<code>vault write {{model.backend}}/encode/{{cliCommand}}</code>
|
|
<CopyButton class="button is-transparent level-right" @clipboardText={{copyEncodeCommand}}
|
|
@buttonType="button" @success={{action (set-flash-message 'Command copied!')}}>
|
|
<Icon @name="clipboard-copy" aria-label="Copy" />
|
|
</CopyButton>
|
|
{{/let}}
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<h2 class="title is-6">Decode</h2>
|
|
<div class="has-bottom-margin-s">
|
|
<span class="helper-text has-text-grey">
|
|
To test decoding capability of your transformation, use the encoded_value in the following command. It should return your original input.
|
|
</span>
|
|
</div>
|
|
<div class="copy-text level">
|
|
{{#let (concat "vault write " model.backend "/decode/" cliCommand) as |copyDecodeCommand|}}
|
|
<code>vault write {{model.backend}}/decode/{{cliCommand}}</code>
|
|
<CopyButton class="button is-transparent level-right" @clipboardText={{copyDecodeCommand}}
|
|
@buttonType="button" @success={{action (set-flash-message 'Command copied!')}}>
|
|
<Icon @name="clipboard-copy" aria-label="Copy" />
|
|
</CopyButton>
|
|
{{/let}}
|
|
</div>
|
|
</div>
|
|
</div>
|