From dcfe2a667c18bf53d22305071196406ffb886ad2 Mon Sep 17 00:00:00 2001 From: Brad Arant Date: Mon, 7 Sep 2026 04:09:12 +0000 Subject: [PATCH] Restyle htmleditor.page to match site theme, remove email disconnect button htmleditor.page previously used hardcoded blue/gray Windows-95-era inline styles (#678, #abc, #808080, #def) totally disconnected from the site current dark/gold Bond theme (main.css --bond-* variables) - this is what showed up as "the old page with the blue stylesheet" when opening a file to edit. Restyled the window chrome, toolbar, title bar, and buttons to use the same custom properties/.button class the rest of the site uses; left the #mainpage content-preview canvas white since it renders the actual page being edited. email.js: removed the Disconnect button/handler and its unused icon from the email toolbar per request. Bumped its cache-buster in admin-email.subpage. --- jetc/barant-site/assets/images/email.js | 24 ---------- jetc/barant-site/src/admin-email.subpage | 2 +- jetc/barant-site/src/htmleditor.page | 58 ++++++++++++------------ 3 files changed, 30 insertions(+), 54 deletions(-) diff --git a/jetc/barant-site/assets/images/email.js b/jetc/barant-site/assets/images/email.js index 8350cc3..9313894 100644 --- a/jetc/barant-site/assets/images/email.js +++ b/jetc/barant-site/assets/images/email.js @@ -24,12 +24,6 @@ '' + '' + '', - disconnect: - '' + - '' + - '' + - '' + - '', flag: '' + '' + @@ -142,7 +136,6 @@ '' + '' + '' + - '' + '' + '' + '
' + @@ -202,23 +195,6 @@ document.getElementById('email-refresh-btn').addEventListener('click', function() { loadMessageList(); }); - document.getElementById('email-disconnect-btn').addEventListener('click', function() { - // Disconnecting only ever drops the ACTIVE account now (see - // /email/disconnect's own doc comment in email.jet) - if another - // already-connected account remains, res.active names it and the - // view just switches there instead of falling back to the - // connect form. - post('/email/disconnect', {}).then(function(res) { - if (res.active) { - resetViewForActiveAccount(res.active); - } else { - currentFolder = 'Inbox'; - currentUid = null; - syncActiveFolder(); - showConnectForm(); - } - }); - }); // Matches sender, subject, or body content in whatever folder is // currently open (see __imap.cpp's searchMessages()) - an empty diff --git a/jetc/barant-site/src/admin-email.subpage b/jetc/barant-site/src/admin-email.subpage index 2e32e50..ffa4ee5 100644 --- a/jetc/barant-site/src/admin-email.subpage +++ b/jetc/barant-site/src/admin-email.subpage @@ -135,4 +135,4 @@
- + diff --git a/jetc/barant-site/src/htmleditor.page b/jetc/barant-site/src/htmleditor.page index 4923ed5..70f6c56 100644 --- a/jetc/barant-site/src/htmleditor.page +++ b/jetc/barant-site/src/htmleditor.page @@ -49,22 +49,22 @@ $[filelist]
-
-
-
$[letter_dir]/$[letter_file]
-
-
-
+
+
$[letter_dir]/$[letter_file]
+
+
+
-
-
-
+
+
+
 
- @@ -72,13 +72,13 @@ onmouseup="window_mouseup(this, event); return true;">
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ border: 1px solid var(--bond-line); display: inline-block; padding: 2px; background: var(--bond-panel); color: var(--bond-text);"> - Options + Options -
+
Show Grid
Snap To Grid
- Grid Size:
+ Grid Size:
@@ -116,27 +116,27 @@ onmouseup="window_mouseup(this, event); return true;"> -
- Toolbar -
+
+ Toolbar +
+ border: 1px solid var(--bond-line); display: inline-block; padding: 2px; background: var(--bond-panel); color: var(--bond-text);"> - Images + Images -
+
-
+
drinkwise_logo.png
-
+
dwbackground.png