wip
This commit is contained in:
parent
aff8084692
commit
3a06f2fff9
@ -12,10 +12,10 @@
|
||||
"@hono/zod-openapi": "0.18.0",
|
||||
"@hono/zod-validator": "0.4.1",
|
||||
"bullmq": "5.28.1",
|
||||
"handlebars": "^4.7.8",
|
||||
"handlebars": "4.7.8",
|
||||
"hono": "4.6.11",
|
||||
"ioredis": "5.4.1",
|
||||
"nodemailer": "^6.9.16",
|
||||
"nodemailer": "6.9.16",
|
||||
"zod": "3.23.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -1,63 +0,0 @@
|
||||
import { Language } from '../types'
|
||||
|
||||
interface PasswordResetTemplateData {
|
||||
name: string
|
||||
resetLink: string
|
||||
expiresIn: string
|
||||
}
|
||||
|
||||
const en = {
|
||||
html: (data: PasswordResetTemplateData) => `
|
||||
<h1>Password Reset Request</h1>
|
||||
<p>Hello ${data.name},</p>
|
||||
<p>We received a request to reset your password. Click the link below to create a new password:</p>
|
||||
<a href="${data.resetLink}" style="display: inline-block; background: #007bff; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; margin: 15px 0;">Reset Password</a>
|
||||
<p>This link will expire in ${data.expiresIn}.</p>
|
||||
<p>If you didn't request this password reset, please ignore this email or contact support if you have concerns.</p>
|
||||
<p>Best regards,<br>Your Support Team</p>
|
||||
`,
|
||||
text: (data: PasswordResetTemplateData) => `
|
||||
Password Reset Request
|
||||
|
||||
Hello ${data.name},
|
||||
|
||||
We received a request to reset your password. Use the following link to create a new password:
|
||||
${data.resetLink}
|
||||
|
||||
This link will expire in ${data.expiresIn}.
|
||||
|
||||
If you didn't request this password reset, please ignore this email or contact support if you have concerns.
|
||||
|
||||
Best regards,
|
||||
Your Support Team
|
||||
`
|
||||
}
|
||||
|
||||
const de = {
|
||||
html: (data: PasswordResetTemplateData) => `
|
||||
<h1>Anfrage zum Zurücksetzen des Passworts</h1>
|
||||
<p>Hallo ${data.name},</p>
|
||||
<p>Wir haben eine Anfrage zum Zurücksetzen Ihres Passworts erhalten. Klicken Sie auf den untenstehenden Link, um ein neues Passwort zu erstellen:</p>
|
||||
<a href="${data.resetLink}" style="display: inline-block; background: #007bff; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; margin: 15px 0;">Passwort zurücksetzen</a>
|
||||
<p>Dieser Link läuft in ${data.expiresIn} ab.</p>
|
||||
<p>Falls Sie diese Anfrage nicht gestellt haben, ignorieren Sie bitte diese E-Mail oder kontaktieren Sie den Support, wenn Sie Bedenken haben.</p>
|
||||
<p>Mit freundlichen Grüßen,<br>Ihr Support-Team</p>
|
||||
`,
|
||||
text: (data: PasswordResetTemplateData) => `
|
||||
Anfrage zum Zurücksetzen des Passworts
|
||||
|
||||
Hallo ${data.name},
|
||||
|
||||
Wir haben eine Anfrage zum Zurücksetzen Ihres Passworts erhalten. Verwenden Sie den folgenden Link, um ein neues Passwort zu erstellen:
|
||||
${data.resetLink}
|
||||
|
||||
Dieser Link läuft in ${data.expiresIn} ab.
|
||||
|
||||
Falls Sie diese Anfrage nicht gestellt haben, ignorieren Sie bitte diese E-Mail oder kontaktieren Sie den Support, wenn Sie Bedenken haben.
|
||||
|
||||
Mit freundlichen Grüßen,
|
||||
Ihr Support-Team
|
||||
`
|
||||
}
|
||||
|
||||
export const passwordResetTemplate: Record<Language, typeof en> = { en, de }
|
@ -1,36 +0,0 @@
|
||||
import { Language } from '../types'
|
||||
|
||||
interface WelcomeTemplateData {
|
||||
name: string
|
||||
activationLink: string
|
||||
}
|
||||
|
||||
const en = {
|
||||
html: (data: WelcomeTemplateData) => `
|
||||
<h1>Welcome ${data.name}!</h1>
|
||||
<p>Thank you for joining us. Please click the link below to activate your account:</p>
|
||||
<a href="${data.activationLink}">Activate Account</a>
|
||||
`,
|
||||
text: (data: WelcomeTemplateData) => `
|
||||
Welcome ${data.name}!
|
||||
|
||||
Thank you for joining us. Please use the following link to activate your account:
|
||||
${data.activationLink}
|
||||
`
|
||||
}
|
||||
|
||||
const de = {
|
||||
html: (data: WelcomeTemplateData) => `
|
||||
<h1>Willkommen ${data.name}!</h1>
|
||||
<p>Danke, dass Sie sich bei uns registriert haben. Bitte klicken Sie auf den Link unten, um Ihr Konto zu aktivieren:</p>
|
||||
<a href="${data.activationLink}">Konto aktivieren</a>
|
||||
`,
|
||||
text: (data: WelcomeTemplateData) => `
|
||||
Willkommen ${data.name}!
|
||||
|
||||
Danke, dass Sie sich bei uns registriert haben. Bitte verwenden Sie den folgenden Link, um Ihr Konto zu aktivieren:
|
||||
${data.activationLink}
|
||||
`
|
||||
}
|
||||
|
||||
export const welcomeTemplate: Record<Language, typeof en> = { en, de }
|
Loading…
x
Reference in New Issue
Block a user