env 配置为中控 Bridge Token 增加一键复制。

便于从客户端直接复制到中控登记实例。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-01 11:18:44 +08:00
parent a4a9634ba8
commit ed9fd05a84
3 changed files with 89 additions and 1 deletions
@@ -73,6 +73,7 @@
onfocus="this.removeAttribute('readonly')"
>
{% else %}
<div class="env-field-input-wrap{% if field.key == 'HUB_BRIDGE_TOKEN' %} env-field-input-wrap--copy{% endif %}">
<input
class="env-field-input"
id="env-f-{{ field.key }}"
@@ -88,6 +89,15 @@
data-bwignore="true"
data-form-type="other"
>
{% if field.key == 'HUB_BRIDGE_TOKEN' %}
<button
type="button"
class="btn-secondary btn-sm env-copy-btn"
data-env-copy="HUB_BRIDGE_TOKEN"
title="复制 Token"
>复制</button>
{% endif %}
</div>
{% endif %}
</div>
{% endfor %}