pis #12
@ -1,32 +1,32 @@
|
|||||||
<html lang="en" style="background-color: grey; width: 100%;">
|
<html lang="en" style="background-color:grey;width:100%;">
|
||||||
<head>
|
<head>
|
||||||
<title>OwlBoard - Register</title>
|
<title>OwlBoard - Register</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
background-color: #404c55;
|
background-color:#404c55;
|
||||||
background-image: radial-gradient(#2b343c,#404c55);
|
background-image:radial-gradient(#2b343c,#404c55);
|
||||||
}
|
}
|
||||||
a {
|
a {
|
||||||
color: white;
|
color:white;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<br><br>
|
<br><br>
|
||||||
<table style="width: 100%; text-align: center; color: azure; font-family: sans-serif;">
|
<table style="width:100%;text-align:center;color:azure;font-family:sans-serif;">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<h1 style="color: #00b7b7">Register for OwlBoard</h1>
|
<h1 style="color:#00b7b7">Register for OwlBoard</h1>
|
||||||
<br>
|
<br>
|
||||||
<p>Use the link below to register for OwlBoard (Staff Version)</p>
|
<p>Use the link below to register for OwlBoard (Staff Version)</p>
|
||||||
<br>
|
<br>
|
||||||
<a href="https://owlboard.info/auth.html?key=>>ACCESSCODE<<" style="color: azure; font-size: larger; background-color: #007979; padding: 8px; padding-left: 12px; padding-right: 12px; text-decoration: none; border-radius: 14px;">Register</a>
|
<a href="https://owlboard.info/auth.html?key=>>ACCESSCODE<<" style="color:azure;font-size:larger;background-color:#007979;padding:8px;padding-left:12px;padding-right:12px;text-decoration:none;border-radius:14px;">Register</a>
|
||||||
<br><br><br>
|
<br><br><br>
|
||||||
<p>Alternatively copy and paste the link "https://owlboard.info/auth.html?key=>>ACCESSCODE<<</p>
|
<p>Alternatively copy and paste the link "https://owlboard.info/auth.html?key=>>ACCESSCODE<<</p>
|
||||||
<p>This registration is for one device only, you can register again using the
|
<p>This registration is for one device only, you can register again using the
|
||||||
|
@ -35,7 +35,8 @@ async function generateConfirmationEmail(eml, uuid) {
|
|||||||
try {
|
try {
|
||||||
let htmlTpl = await fs.readFile('mail-templates/register.html', 'utf-8');
|
let htmlTpl = await fs.readFile('mail-templates/register.html', 'utf-8');
|
||||||
let mini = minify(((htmlTpl).replace(/>>ACCESSCODE<</g, uuid)), { // Add collapse whitespace here
|
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');
|
let txtTpl = fs.readFile('mail-templates/register.txt', 'utf-8');
|
||||||
return msg = {
|
return msg = {
|
||||||
|
5
src/utils/minify.utils.js
Normal file
5
src/utils/minify.utils.js
Normal 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.
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user