Files
Cohee 8d2b9d2dab Secrets manager (#4131)
* Secret manager (now for real)

* Refactor secret manager dialog

* Add error handling to secrets migration

* Adjust default value

* Add secret-id slash command

* Add secret management slash commands

* Improve type definitions

* Improve compatibility of UUID generator

* Add copy buttons to manager view

* Improve compatibility with Vertex AI service account
- Changed to input since textarea can't be used with datalist
- Unblock regular key placeholder
- Save email as a key label
- Interrupt validation if the input is a UUID (autocompleted)

* Add optional label input for secret values in key manager dialog

* Update masking rules

* /secret-id: make the arg "required" (it's not)
2025-06-11 21:26:19 +03:00

28 lines
1023 B
HTML

<div class="secretKeyManager">
<div class="secretKeyManagerHeader">
<div class="secretKeyManagerSubtitle">
<div class="secretKeyManagerInfo">
<div class="flex-container">
<div data-i18n="API:">API:</div>
<span>{{name}}</span>
</div>
<div class="flex-container">
<div data-i18n="Key:">Key:</div>
<code>{{key}}</code>
</div>
</div>
<div class="secretKeyManagerActions">
<button class="menu_button menu_button_icon" data-action="add-secret">
<i class="fa-solid fa-plus"></i>
<span data-i18n="Add Secret">Add Secret</span>
</button>
</div>
</div>
</div>
<hr>
<div class="secretKeyManagerList"></div>
<div class="secretKeyManagerListEmpty">
<span data-i18n="No secrets saved.">No secrets saved.</span>
</div>
</div>