@bobfrankston/rmfmail 1.1.112 → 1.1.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/app.bundle.js +47 -35
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +1 -0
- package/client/app.js.map +1 -1
- package/client/app.ts +1 -0
- package/client/components/message-viewer.js +8 -6
- package/client/components/message-viewer.js.map +1 -1
- package/client/components/message-viewer.ts +4 -3
- package/client/index.html +1 -0
- package/package.json +1 -1
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-32128 → node_modules.npmglobalize-stash-57492}/.package-lock.json +0 -0
package/client/app.bundle.js
CHANGED
|
@@ -892,44 +892,55 @@ function showPreviewBodyMenu(absX, absY, selectedText, sourceWindow, linkUrl, li
|
|
|
892
892
|
if (senderAddr) {
|
|
893
893
|
items.push({ label: `Search messages from ${senderAddr}`, action: () => runSearch(`from:${senderAddr}`) });
|
|
894
894
|
}
|
|
895
|
-
items.push(
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
for (const f of Array.from(document.querySelectorAll("iframe"))) {
|
|
909
|
-
const d = f.contentDocument;
|
|
910
|
-
if (d) {
|
|
911
|
-
setZoom(previewZoom + ZOOM_STEP, d);
|
|
912
|
-
break;
|
|
895
|
+
items.push(
|
|
896
|
+
{ label: "", action: () => {
|
|
897
|
+
}, separator: true },
|
|
898
|
+
{
|
|
899
|
+
label: selectedText ? "Translate selection (AI)" : "Translate message (AI)",
|
|
900
|
+
action: () => translateAndShow(selectedText || fullBody())
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
label: selectedText ? "Translate selection (Google Translate)" : "Translate message (Google Translate)",
|
|
904
|
+
action: () => {
|
|
905
|
+
const text = (selectedText || fullBody()).slice(0, 4500);
|
|
906
|
+
const url = `https://translate.google.com/?sl=auto&tl=en&op=translate&text=${encodeURIComponent(text)}`;
|
|
907
|
+
window.open(url, "_blank", "noopener,noreferrer");
|
|
913
908
|
}
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
909
|
+
},
|
|
910
|
+
{ label: "", action: () => {
|
|
911
|
+
}, separator: true },
|
|
912
|
+
// Zoom group — current level (resets on click) first, then in / out.
|
|
913
|
+
{ label: `Zoom: ${pct}% \u2014 reset`, action: () => {
|
|
914
|
+
for (const f of Array.from(document.querySelectorAll("iframe"))) {
|
|
915
|
+
const d = f.contentDocument;
|
|
916
|
+
if (d) {
|
|
917
|
+
setZoom(1, d);
|
|
918
|
+
break;
|
|
919
|
+
}
|
|
921
920
|
}
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
921
|
+
} },
|
|
922
|
+
{ label: "Zoom in (+)", action: () => {
|
|
923
|
+
for (const f of Array.from(document.querySelectorAll("iframe"))) {
|
|
924
|
+
const d = f.contentDocument;
|
|
925
|
+
if (d) {
|
|
926
|
+
setZoom(previewZoom + ZOOM_STEP, d);
|
|
927
|
+
break;
|
|
928
|
+
}
|
|
929
929
|
}
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
|
|
930
|
+
} },
|
|
931
|
+
{ label: "Zoom out (\u2212)", action: () => {
|
|
932
|
+
for (const f of Array.from(document.querySelectorAll("iframe"))) {
|
|
933
|
+
const d = f.contentDocument;
|
|
934
|
+
if (d) {
|
|
935
|
+
setZoom(previewZoom - ZOOM_STEP, d);
|
|
936
|
+
break;
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
} },
|
|
940
|
+
{ label: "", action: () => {
|
|
941
|
+
}, separator: true },
|
|
942
|
+
{ label: "Print\u2026 (Ctrl+P)", action: () => printCurrentMessage() }
|
|
943
|
+
);
|
|
933
944
|
showContextMenu(absX, absY, items);
|
|
934
945
|
}
|
|
935
946
|
function toggleFullscreenPreview() {
|
|
@@ -7014,6 +7025,7 @@ var backToList = (e) => {
|
|
|
7014
7025
|
document.getElementById("btn-back")?.addEventListener("click", backToList);
|
|
7015
7026
|
document.getElementById("btn-back")?.addEventListener("touchend", backToList);
|
|
7016
7027
|
document.getElementById("mv-popout")?.addEventListener("click", () => popOutCurrentMessage());
|
|
7028
|
+
document.getElementById("btn-print")?.addEventListener("click", () => printCurrentMessage());
|
|
7017
7029
|
document.getElementById("folder-tree")?.addEventListener("click", (e) => {
|
|
7018
7030
|
if (window.innerWidth <= 768 && e.target.closest(".ft-folder")) {
|
|
7019
7031
|
document.querySelector(".folder-panel")?.classList.remove("open");
|