env 配置为中控 Bridge Token 增加一键复制。
便于从客户端直接复制到中控登记实例。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user