split services / delete dish / mail init

This commit is contained in:
2020-08-28 18:54:30 +02:00
parent 3674e4ce3c
commit f304463b46
17 changed files with 507 additions and 204 deletions

138
config/mailTemplateReset.js Normal file
View File

@@ -0,0 +1,138 @@
export default function makeResetPassMessage(newPass) {
return;
`<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap"
rel="stylesheet"
/>
<title>Menui - Resetowanie hasła</title>
<style type="text/css">
body {
font-family: "Montserrat", sans-serif;
margin: 0;
padding: 0;
min-width: 100% !important;
}
.table {
margin-top: 26px;
max-width: 600px;
}
.titlebar {
text-align: center;
}
.content {
padding-bottom: 20px;
color: #ffffff;
text-align: center;
font-size: 13px;
}
.content p {
margin: 12px;
padding-right: 24px;
padding-left: 24px;
line-height: 1.6;
}
.logo {
margin: 24px;
}
.footer {
font-size: 13px;
}
hr {
border: none;
border-top: solid 1px #262626;
}
.title {
font-size: 20px;
margin-bottom: 26px;
color: #d68000;
}
.span {
color: #262626;
padding-top: 10px;
padding-bottom: 10px;
font-size: 16px;
font-weight: 700;
background-color: #d68000;
}
</style>
</head>
<body bgcolor="#262626">
<table
width="100%"
class="table"
bgcolor="#454545"
border="0"
cellpadding="0"
cellspacing="0"
align="center"
>
<tr>
<td>
<table align="center">
<tr>
<td>
<img
class="logo"
src="../images/logo.svg"
width="100"
alt="logo"
/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" class="titlebar" bgcolor="#666666">
<tr>
<td>
<h3 class="title">Resetowanie hasła</h3>
<hr />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" class="content" bgcolor="#666666">
<tr>
<td>
<p>
Drogi użytkowniku, dostałeś tę wiadomość, ponieważ użyłeś
opcji "Nie pamiętam hasła" w aplikacji Menui.
</p>
<p>
Twoje tymczasowe hasło to:
<span><h5 class="span">${newPass}</h5></span>
</p>
<p>
Zaloguj się za jego pomocą i ustaw nowe bezpieczne hasło.
Jeżeli nie wysyłałeś prośby o zmianę hasła, prosimy zignoruj
tę wiadomość.
</p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table align="center">
<tr>
<td>
<p class="footer">Pozdrawiamy!</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>`;
}