Merge branch 'production'
This commit is contained in:
@ -8,7 +8,7 @@ NEXT_PUBLIC_PUBLIC_URL=https://localhost:3003
|
||||
DATABASE=mysql://cart:cartpw@localhost:3306/cart
|
||||
|
||||
|
||||
EMAIL_SENDER='"ССС [ТЕСТ] " <mwitnessing@gmail.com>'
|
||||
EMAIL_SENDER='"ССОМ [ТЕСТ] " <mwitnessing@gmail.com>'
|
||||
# MAILTRAP_HOST_BULK=bulk.smtp.mailtrap.io
|
||||
# MAILTRAP_HOST=sandbox.smtp.mailtrap.io
|
||||
# MAILTRAP_USER=8ec69527ff2104
|
||||
|
@ -20,7 +20,7 @@
|
||||
"dir": "auto",
|
||||
"lang": "en-US",
|
||||
"name": "Специално Свидетелстване София",
|
||||
"short_name": "ССС",
|
||||
"short_name": "ССОМ",
|
||||
"start_url": "/",
|
||||
"scope": "/cart"
|
||||
}
|
@ -751,3 +751,18 @@ exports.getInitials = function (names) {
|
||||
const parts = names.split(' ');
|
||||
return parts.map(part => part[0] + ".").join('');
|
||||
}
|
||||
// exports.getInitials = function (names) {
|
||||
// const parts = names.split(' '); // Split the full name into parts
|
||||
// if (parts.length === 0) {
|
||||
// return '';
|
||||
// }
|
||||
// // Extract the first two letters of the first name
|
||||
// let initials = parts[0].substring(0, 2) + ".";
|
||||
|
||||
// // If there is a last name, add the first letter of the last name
|
||||
// if (parts.length > 1) {
|
||||
// initials += parts[parts.length - 1][0] + ".";
|
||||
// }
|
||||
|
||||
// return initials;
|
||||
// }
|
@ -114,7 +114,7 @@ exports.SendEmailHandlebars = async function (to, templateName, model, attachmen
|
||||
const subjectMatch = templateSource.match(/{{!--\s*Subject:\s*(.*?)\s*--}}/);
|
||||
const textMatch = templateSource.match(/{{!--\s*Text:\s*([\s\S]*?)\s*--}}/);
|
||||
|
||||
let subject = subjectMatch ? subjectMatch[1].trim() : 'ССС: Известие';
|
||||
let subject = subjectMatch ? subjectMatch[1].trim() : 'ССОМ: Известие';
|
||||
let textVersion = textMatch ? textMatch[1].trim() : null;
|
||||
|
||||
// Remove the subject and text annotations from the template source
|
||||
|
@ -1,4 +1,4 @@
|
||||
{{!--Subject: ССС: Нужен е заместник --}}
|
||||
{{!--Subject: ССОМ: Нужен е заместник --}}
|
||||
|
||||
<section>
|
||||
<h3>Търси се зместник:
|
||||
|
@ -1,4 +1,4 @@
|
||||
{{!-- Subject: ССС: Нужен е заместник--}}
|
||||
{{!-- Subject: ССОМ: Нужен е заместник--}}
|
||||
{{!-- Text: Plain text version of your email. If not provided, HTML tags will be stripped from the HTML version for the
|
||||
text version. --}}
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1.0">
|
||||
<title>ССС известия</title>
|
||||
<title>ССОМ известия</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@ -18,7 +18,7 @@
|
||||
</main>
|
||||
|
||||
<footer style="background-color: #f3f3f3; padding: 20px; text-align: center;">
|
||||
© 2024 ССС. Openly licensed.
|
||||
© 2024 ССОМ. Openly licensed.
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{{!-- Subject: ССС: Нови назначени смени--}}
|
||||
{{!-- Subject: ССОМ: Нови назначени смени--}}
|
||||
|
||||
<section>
|
||||
<h2>Здравей {{publisherFirstName}} {{publisherLastName}}!</h2>
|
||||
|
Reference in New Issue
Block a user