forked from hashicorp/vault
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport of UI: fix browser console formatting into release/1.13.x (h…
…ashicorp#20088) * backport of commit 7e09f99 * UI/add prettier ignore for ui console file (hashicorp#20094) * fix template-lintrc file * add prettier ignore --------- Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
- Loading branch information
1 parent
4c89e21
commit ac3b4e4
Showing
5 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:bug | ||
ui: fixes browser console formatting for help command output | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
{{! using Icon here instead of Chevron because two nested tagless components results in a rendered line break between the tags breaking the layout in the <pre> }} | ||
<pre class="console-ui-command"><Icon @name="chevron-right" />{{@content}}</pre> | ||
<p class="console-ui-command is-font-mono"><Icon @name="chevron-right" />{{@content}}</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
{{! template-lint-disable no-whitespace-for-layout }} | ||
{{! prettier-ignore }} | ||
<div class="console-ui-alert has-text-grey"> | ||
<Icon @name="info" /> | ||
<pre>Usage: vault <command> [args] Commands: read Read data and retrieves secrets write Write data, configuration, | ||
and secrets delete Delete secrets and configuration list List data or secrets Web CLI Commands: api Navigate to the Vault | ||
API explorer. Use 'api [filter]' to prefilter the list. clear Clear output from the log clearall Clear output and command | ||
history fullscreen Toggle fullscreen display refresh Refresh the data on the current screen under the CLI window | ||
</pre> | ||
<Icon @name="info" /> | ||
<pre>Usage: vault <command> [args] | ||
|
||
Commands: | ||
read Read data and retrieves secrets | ||
write Write data, configuration, and secrets | ||
delete Delete secrets and configuration | ||
list List data or secrets | ||
|
||
Web CLI Commands: | ||
api Navigate to the Vault API explorer. Use 'api [filter]' to prefilter the list. | ||
clear Clear output from the log | ||
clearall Clear output and command history | ||
fullscreen Toggle fullscreen display | ||
refresh Refresh the data on the current screen under the CLI window | ||
</pre> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<div class="console-ui-output has-copy-button"> | ||
<pre>Keys | ||
<pre> | ||
Keys | ||
{{#each this.list as |item|}} | ||
{{item}} | ||
|
||
{{/each}}</pre> | ||
{{/each}} | ||
</pre> | ||
<HoverCopyButton @copyValue={{multi-line-join this.list}} /> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters