系统更新增加客户端「全部更新」,依次远程更新所有启用实例。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-04 10:19:00 +08:00
parent 50963a25fc
commit 6bc69ab371
2 changed files with 403 additions and 340 deletions
+3 -1
View File
@@ -166,7 +166,9 @@
<h3>客户端远程更新</h3>
<p class="muted field-hint">经 Bridge 探测版本并下发更新;客户端需已具备 <code>/api/hub/update</code></p>
<div class="settings-actions">
<button type="button" class="settings-primary" id="client-update-all">全部更新</button>
<button type="button" class="btn-secondary" id="client-update-refresh">刷新列表</button>
<span class="update-status muted" id="client-update-all-status"></span>
</div>
</div>
<div class="table-wrap">
@@ -183,7 +185,7 @@
{% endblock %}
{% block scripts %}
<script src="{{ url_for('static', filename='settings_backup.js') }}?v=2"></script>
<script src="{{ url_for('static', filename='settings_update.js') }}?v=4"></script>
<script src="{{ url_for('static', filename='settings_update.js') }}?v=5"></script>
<script>
HubSettingsBackup.boot();
HubSettingsUpdate.boot();