Files
SillyTavern/public/scripts/templates/secretKeyManagerListItem.html
T
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

31 lines
1.6 KiB
HTML

<div class="secretKeyManagerItem {{#if active}}active{{/if}}">
<div class="secretKeyManagerItemInfo">
<div class="secretKeyManagerItemHeader">
<strong>{{label}}</strong>
<small>{{value}}</small>
</div>
<div class="secretKeyManagerItemSubtitle">
<strong>ID:</strong>
<span class="secretKeyManagerItemId" data-action="copy-id" title="Copy ID" data-i18n="[title]Copy ID">{{id}}</span>
</div>
</div>
<div class="secretKeyManagerItemActions">
<div class="secretKeyManagerItemActionsRow">
<button class="menu_button menu_button_icon {{#if active}}disabled{{/if}}" data-action="rotate-secret" data-id="{{id}}" title="Select" data-i18n="[title]Select">
<i class="fa-fw fa-solid fa-check"></i>
</button>
<button class="menu_button menu_button_icon" data-action="copy-secret" data-id="{{id}}" title="Copy" data-i18n="[title]Copy">
<i class="fa-fw fa-solid fa-copy"></i>
</button>
</div>
<div class="secretKeyManagerItemActionsRow">
<button class="menu_button menu_button_icon" data-action="rename-secret" data-id="{{id}}" title="Rename" data-i18n="[title]Rename">
<i class="fa-fw fa-solid fa-pen-to-square"></i>
</button>
<button class="menu_button menu_button_icon" data-action="delete-secret" data-id="{{id}}" title="Delete" data-i18n="[title]Delete">
<i class="fa-fw fa-solid fa-trash"></i>
</button>
</div>
</div>
</div>