pis #12

Merged
fred.boniface merged 95 commits from pis into main 2023-05-06 21:54:51 +01:00
3 changed files with 15 additions and 9 deletions
Showing only changes of commit 2606f89e95 - Show all commits

View File

@ -17,7 +17,7 @@
<table style="width:100%;text-align:center;color:azure;font-family:sans-serif;">
<tr>
<td>
<img src="https://owlboard.info/images/logo/wide_logo.svg" style="height: 100px; padding-top: 20px; margin-top: 0px">
<img src="https://owlboard.info/images/logo/wide_logo.svg" style="height:100px;padding-top:0px;margin-top:0px">
</td>
</tr>
<tr>

View File

@ -35,7 +35,8 @@ async function generateConfirmationEmail(eml, uuid) {
try {
let htmlTpl = await fs.readFile('mail-templates/register.html', 'utf-8');
let mini = minify(((htmlTpl).replace(/>>ACCESSCODE<</g, uuid)), { // Add collapse whitespace here
removeComments: true
removeComments: true,
collapseWhitespace: true
});
let txtTpl = fs.readFile('mail-templates/register.txt', 'utf-8');
return msg = {

View File

@ -0,0 +1,5 @@
const htmlShrink = require('html-minifier').minify
module.exports = async function minify(input) { // Do I need to name this function?
// Minify HTML input, including inline styles.
}