From fd03c16eca085423267c163137b28ccb60de8db0 Mon Sep 17 00:00:00 2001
From: Matthias Nott <mnott@mnsoft.org>
Date: Wed, 25 Feb 2026 00:45:13 +0100
Subject: [PATCH] feat: multi-compose rebuild (Seafile), cancel endpoint, schedule router, project descriptor
---
static/index.html | 73 ++++++++++++++++++++++++++++++++++++
1 files changed, 72 insertions(+), 1 deletions(-)
diff --git a/static/index.html b/static/index.html
index d51b7bf..8ef0b80 100644
--- a/static/index.html
+++ b/static/index.html
@@ -83,6 +83,10 @@
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>
Operations
</a>
+ <a class="sidebar-link" data-page="schedules" onclick="showPage('schedules')">
+ <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
+ Schedules
+ </a>
<a class="sidebar-link" data-page="system" onclick="showPage('system')">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 00.33 1.82l.06.06a2 2 0 010 2.83 2 2 0 01-2.83 0l-.06-.06a1.65 1.65 0 00-1.82-.33 1.65 1.65 0 00-1 1.51V21a2 2 0 01-4 0v-.09A1.65 1.65 0 009 19.4a1.65 1.65 0 00-1.82.33l-.06.06a2 2 0 01-2.83-2.83l.06-.06A1.65 1.65 0 004.68 15a1.65 1.65 0 00-1.51-1H3a2 2 0 010-4h.09A1.65 1.65 0 004.6 9a1.65 1.65 0 00-.33-1.82l-.06-.06a2 2 0 012.83-2.83l.06.06A1.65 1.65 0 009 4.68a1.65 1.65 0 001-1.51V3a2 2 0 014 0v.09a1.65 1.65 0 001 1.51 1.65 1.65 0 001.82-.33l.06-.06a2 2 0 012.83 2.83l-.06.06A1.65 1.65 0 0019.4 9a1.65 1.65 0 001.51 1H21a2 2 0 010 4h-.09a1.65 1.65 0 00-1.51 1z"/></svg>
System
@@ -180,6 +184,7 @@
<!-- SSE output (shown after start) -->
<div id="restore-modal-output" style="display:none;">
+ <div id="restore-progress-bar" class="op-progress hidden"><div class="op-progress-fill"></div></div>
<div style="font-size:0.8125rem;font-weight:500;color:#9ca3af;margin-bottom:0.375rem;">Output</div>
<div id="restore-modal-terminal" class="terminal" style="max-height:300px;"></div>
</div>
@@ -205,6 +210,7 @@
Dry run (preview only)
</label>
<div id="ops-modal-output" style="display:none;">
+ <div id="ops-progress-bar" class="op-progress hidden"><div class="op-progress-fill"></div></div>
<div style="font-size:0.8125rem;font-weight:500;color:#9ca3af;margin-bottom:0.375rem;">Output</div>
<div id="ops-modal-terminal" class="terminal" style="max-height:350px;"></div>
</div>
@@ -216,6 +222,71 @@
</div>
</div>
-<script src="/static/js/app.js?v=12"></script>
+<!-- Schedule Edit Modal -->
+<div id="schedule-modal" class="modal-overlay" style="display:none;" onclick="if(event.target===this)closeScheduleModal()">
+ <div class="modal-box" style="max-width:520px;">
+ <div class="modal-header">
+ <span id="schedule-modal-title" style="font-weight:600;color:#f3f4f6;">Edit Schedule</span>
+ <button onclick="closeScheduleModal()" style="background:none;border:none;color:#9ca3af;font-size:1.25rem;cursor:pointer;">×</button>
+ </div>
+ <div class="modal-body">
+ <input type="hidden" id="sched-project">
+
+ <div style="margin-bottom:1rem;">
+ <label style="display:flex;align-items:center;gap:0.5rem;font-size:0.875rem;color:#d1d5db;cursor:pointer;">
+ <input type="checkbox" id="sched-enabled" style="width:1rem;height:1rem;accent-color:#3b82f6;">
+ Enabled
+ </label>
+ </div>
+
+ <div style="margin-bottom:1rem;">
+ <div style="font-size:0.8125rem;font-weight:500;color:#9ca3af;margin-bottom:0.375rem;">Schedule (HH:MM UTC)</div>
+ <div style="display:flex;align-items:center;gap:0.75rem;">
+ <input type="time" id="sched-time" class="form-input" style="width:120px;">
+ <span id="sched-server-clock" style="font-size:0.75rem;color:#6b7280;font-variant-numeric:tabular-nums;"></span>
+ </div>
+ </div>
+
+ <div style="margin-bottom:1rem;">
+ <div style="font-size:0.8125rem;font-weight:500;color:#9ca3af;margin-bottom:0.375rem;">Environments</div>
+ <div id="sched-envs" style="display:flex;gap:1rem;flex-wrap:wrap;"></div>
+ </div>
+
+ <div style="margin-bottom:1rem;">
+ <div style="font-size:0.8125rem;font-weight:500;color:#9ca3af;margin-bottom:0.375rem;">Custom Command (optional)</div>
+ <input type="text" id="sched-command" class="form-input" placeholder="Leave empty for default ops backup" style="width:100%;font-size:0.8125rem;">
+ </div>
+
+ <div style="margin-bottom:1rem;">
+ <label style="display:flex;align-items:center;gap:0.5rem;font-size:0.875rem;color:#d1d5db;cursor:pointer;">
+ <input type="checkbox" id="sched-offsite" onchange="toggleOffsiteSection()" style="width:1rem;height:1rem;accent-color:#3b82f6;">
+ Offsite Upload
+ </label>
+ </div>
+
+ <div id="sched-offsite-section" style="display:none;margin-bottom:1rem;padding-left:1.5rem;">
+ <div style="font-size:0.8125rem;font-weight:500;color:#9ca3af;margin-bottom:0.375rem;">Offsite Environments</div>
+ <div id="sched-offsite-envs" style="display:flex;gap:1rem;flex-wrap:wrap;"></div>
+ </div>
+
+ <div style="display:flex;gap:1rem;margin-bottom:1rem;">
+ <div>
+ <div style="font-size:0.8125rem;font-weight:500;color:#9ca3af;margin-bottom:0.375rem;">Local Retention (days)</div>
+ <input type="number" id="sched-retention-local" class="form-input" style="width:80px;" min="1" max="365">
+ </div>
+ <div>
+ <div style="font-size:0.8125rem;font-weight:500;color:#9ca3af;margin-bottom:0.375rem;">Offsite Retention (days)</div>
+ <input type="number" id="sched-retention-offsite" class="form-input" style="width:80px;" min="1" max="365">
+ </div>
+ </div>
+ </div>
+ <div class="modal-footer">
+ <button class="btn btn-ghost btn-sm" onclick="closeScheduleModal()">Cancel</button>
+ <button id="sched-save-btn" class="btn btn-primary btn-sm" onclick="saveSchedule()">Save</button>
+ </div>
+ </div>
+</div>
+
+<script src="/static/js/app.js?v=13"></script>
</body>
</html>
--
Gitblit v1.3.1