|
|
@ -151,8 +151,18 @@ export const EmailBuilder = ({subject, content}) => {
|
|
|
|
return `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="en"><head><title></title><meta http-equiv="Content-Type" content="text/html charset=UTF-8" /><meta content="width=device-width" name="viewport"><meta charset="UTF-8"><meta content="IE=edge" http-equiv="X-UA-Compatible"><meta content="width=device-width" name="viewport"><meta charset="UTF-8"><meta content="IE=edge" http-equiv="X-UA-Compatible"><meta content="telephone=no,address=no,email=no,date=no,url=no" name="format-detection"><meta content="light" name="color-scheme"><meta content="light" name="supported-color-schemes"><style id="font">body#highlights-email{ font-family: Verdana, sans-serif;} table{ border-collapse: collapse; border-spacing: 0;} </style></head><body id="highlights-email" style="margin: 0 auto; padding: 0; width: 900px; background-color: #fcfcfc;">${content}</body></html>`;
|
|
|
|
return `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="en"><head><title></title><meta http-equiv="Content-Type" content="text/html charset=UTF-8" /><meta content="width=device-width" name="viewport"><meta charset="UTF-8"><meta content="IE=edge" http-equiv="X-UA-Compatible"><meta content="width=device-width" name="viewport"><meta charset="UTF-8"><meta content="IE=edge" http-equiv="X-UA-Compatible"><meta content="telephone=no,address=no,email=no,date=no,url=no" name="format-detection"><meta content="light" name="color-scheme"><meta content="light" name="supported-color-schemes"><style id="font">body#highlights-email{ font-family: Verdana, sans-serif;} table{ border-collapse: collapse; border-spacing: 0;} </style></head><body id="highlights-email" style="margin: 0 auto; padding: 0; width: 900px; background-color: #fcfcfc;">${content}</body></html>`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export const openPopup = (url, target,) => {
|
|
|
|
const objectToFeatureString = (obj) =>
|
|
|
|
window.open(url, target, POPUP_FEATURES);
|
|
|
|
obj && typeof obj === 'object'
|
|
|
|
|
|
|
|
? Object.entries(obj)
|
|
|
|
|
|
|
|
.map(([key, value]) => `${key}=${typeof value === 'boolean' ? (value ? 'yes' : 'no') : String(value)}`)
|
|
|
|
|
|
|
|
.join(',')
|
|
|
|
|
|
|
|
: '';
|
|
|
|
|
|
|
|
export const openPopup = (url, target, extraFeatures = {}) => {
|
|
|
|
|
|
|
|
let features2 = objectToFeatureString(extraFeatures)
|
|
|
|
|
|
|
|
let screenWidth = window.screen.availWidth;
|
|
|
|
|
|
|
|
let screenHeight = window.screen.availHeight;
|
|
|
|
|
|
|
|
features2 += extraFeatures?.fullscreen === true ? `,width=${screenWidth},height=${screenHeight}` : ''
|
|
|
|
|
|
|
|
window.open(url, target, POPUP_FEATURES+`,${features2}`);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export const useEmailList = (mailboxDirNode) => {
|
|
|
|
export const useEmailList = (mailboxDirNode) => {
|
|
|
|