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

+15 -3
View File
@@ -1,4 +1,4 @@
/* RustBox UI module: 00-bootstrap.js */
(() => {
"use strict";
@@ -50,13 +50,23 @@
markReadTimer: null,
ws: null,
wsRetryTimer: null,
wsRetryAttempt: 0,
wsWatchdogTimer: null,
wsLastHeartbeatAt: 0,
wsShouldConnect: false,
wsConnectedOnce: false,
realtimeRefreshTimer: null,
realtimeRefreshEvents: [],
realtimePollTimer: null,
realtimeSyncPromise: null,
realtimeSeenEvents: new Map(),
calendarReminderTimer: null,
composeDraftId: null,
composeAttachments: [],
composeDirty: false,
composeNeedsRemoteSync: false,
composeUploading: false,
composeUploadController: null,
composeReplyMeta: null,
composeInsertRange: null,
composeSelectedImage: null,
@@ -79,6 +89,8 @@
quotaWarningLevel: null,
networkOnline: navigator.onLine,
listStateTimer: null,
readerFullscreenHistory: false,
readerScrollTopBeforeFullscreen: 0,
};
const $ = (selector, parent = document) => parent.querySelector(selector);
@@ -105,8 +117,8 @@
function stripRustBoxUiLeak(value) {
let text = String(value ?? "");
// Strip only RustBox's own embedded SVG sprite fragments if malformed MIME
// content captured adjacent UI markup. Legitimate SVG/code in mail remains.
text = text.replace(/<svg\b[^>]*>\s*<use\b[^>]*(?:\/assets\/icons\.svg|assets\/icons\.svg)[^>]*><\/use>\s*<\/svg>/gi, "");
text = text.replace(/&lt;svg\b[\s\S]*?(?:\/assets\/icons\.svg|assets\/icons\.svg)[\s\S]*?&lt;\/svg&gt;/gi, "");
return text;