v0.0.5
RustBox CI / rustbox (push) Canceled after 0s

This commit is contained in:
Mateusz Gruszczyński committed 2026-10-30 12:06:44 +01:00
1 parent 96a32ea8fb
commit a643e7e3ab
106 files changed
+2223 -4669

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
/* RustBox UI module: 90-sieve.js */
async function loadSieve() {
const status = $("#sieve-status");
status.textContent = "Connecting…";
@@ -960,7 +960,7 @@ async function restoreSieveBackup(file) {
);
if (!confirmed) return;
// Validate the complete backup against the current server before writing any script.
for (const script of scripts) {
const result = await request("/sieve/check", { method: "POST", body: JSON.stringify({ content: script.content }) });
if (!result.valid) throw new Error(`Script “${script.name}” is not valid on this server: ${result.error || "validation failed"}`);