系统设置增加「系统更新」Tab:中控本机更新与客户端远程更新,实例页入口移除。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -23,20 +23,12 @@
|
||||
<p class="muted">暂无实例.先在 crypto_okx 配置 HUB_BRIDGE_TOKEN 并公网可访问.</p>
|
||||
{% endif %}
|
||||
{% for inst in instances %}
|
||||
<details class="inst-row" data-id="{{ inst.id }}" data-name="{{ inst.name }}">
|
||||
<details class="inst-row">
|
||||
<summary>
|
||||
<strong>{{ inst.name }}</strong>
|
||||
<span class="muted">{{ inst.base_url }}</span>
|
||||
{% if inst.enabled %}启用{% else %}停用{% endif %}
|
||||
<span class="inst-version muted" data-inst-version>—</span>
|
||||
</summary>
|
||||
<div class="inst-remote-actions">
|
||||
<button type="button" class="btn" data-inst-update {% if not inst.enabled %}disabled title="实例未启用"{% endif %}>远程更新</button>
|
||||
<button type="button" class="btn btn-secondary btn-sm" data-inst-refresh-ver>刷新版本</button>
|
||||
<a class="btn" href="/desk?id={{ inst.id }}">内嵌打开</a>
|
||||
<span class="inst-update-status muted" data-inst-update-status></span>
|
||||
</div>
|
||||
<p class="muted inst-update-hint">远程更新 = 客户端 git pull + pm2 restart;有持仓时慎用。</p>
|
||||
<form method="post" class="form-grid">
|
||||
<input type="hidden" name="action" value="update">
|
||||
<input type="hidden" name="id" value="{{ inst.id }}">
|
||||
@@ -53,10 +45,11 @@
|
||||
<input type="hidden" name="id" value="{{ inst.id }}">
|
||||
<button type="submit" class="btn-danger">删除</button>
|
||||
</form>
|
||||
<p>
|
||||
<a class="btn" href="/desk?id={{ inst.id }}">内嵌打开</a>
|
||||
<a class="btn btn-secondary" href="/settings?tab=update">系统更新</a>
|
||||
</p>
|
||||
</details>
|
||||
{% endfor %}
|
||||
</section>
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<script src="{{ url_for('static', filename='instances.js') }}?v=1"></script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user