Skip to content

Commit 1706ce9

Browse files
author
CI Fix
committed
add default-templates/emails .mjs
1 parent f8ff940 commit 1706ce9

File tree

4 files changed

+112
-0
lines changed

4 files changed

+112
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
export function render (data) {
2+
return {
3+
subject: 'Delete Solid-account request',
4+
5+
/**
6+
* Text version
7+
*/
8+
text: `Hi,
9+
10+
We received a request to delete your Solid account, ${data.webId}
11+
12+
To delete your account, click on the following link:
13+
14+
${data.deleteUrl}
15+
16+
If you did not mean to delete your account, ignore this email.`,
17+
18+
/**
19+
* HTML version
20+
*/
21+
html: `<p>Hi,</p>
22+
23+
<p>We received a request to delete your Solid account, ${data.webId}</p>
24+
25+
<p>To delete your account, click on the following link:</p>
26+
27+
<p><a href="${data.deleteUrl}">${data.deleteUrl}</a></p>
28+
29+
<p>If you did not mean to delete your account, ignore this email.</p>`
30+
}
31+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
export function render (data) {
2+
return {
3+
subject: `Invalid username for account ${data.accountUri}`,
4+
5+
/**
6+
* Text version
7+
*/
8+
text: `Hi,
9+
10+
We're sorry to inform you that the username for account ${data.accountUri} is not allowed after changes to username policy.
11+
12+
This account has been set to be deleted at ${data.dateOfRemoval}.
13+
14+
${data.supportEmail ? `Please contact ${data.supportEmail} if you want to move your account.` : ''}`,
15+
16+
/**
17+
* HTML version
18+
*/
19+
html: `<p>Hi,</p>
20+
21+
<p>We're sorry to inform you that the username for account ${data.accountUri} is not allowed after changes to username policy.</p>
22+
23+
<p>This account has been set to be deleted at ${data.dateOfRemoval}.</p>
24+
25+
${data.supportEmail ? `<p>Please contact ${data.supportEmail} if you want to move your account.</p>` : ''}`
26+
}
27+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
export function render (data) {
2+
return {
3+
subject: 'Account password reset',
4+
5+
/**
6+
* Text version
7+
*/
8+
text: `Hi,
9+
10+
We received a request to reset your password for your Solid account, ${data.webId}
11+
12+
To reset your password, click on the following link:
13+
14+
${data.resetUrl}
15+
16+
If you did not mean to reset your password, ignore this email, your password will not change.`,
17+
18+
/**
19+
* HTML version
20+
*/
21+
html: `<p>Hi,</p>
22+
23+
<p>We received a request to reset your password for your Solid account, ${data.webId}</p>
24+
25+
<p>To reset your password, click on the following link:</p>
26+
27+
<p><a href="${data.resetUrl}">${data.resetUrl}</a></p>
28+
29+
<p>If you did not mean to reset your password, ignore this email, your password will not change.</p>`
30+
}
31+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
export function render (data) {
2+
return {
3+
subject: 'Welcome to Solid',
4+
5+
/**
6+
* Text version of the Welcome email
7+
*/
8+
text: `Welcome to Solid!
9+
10+
Your account has been created.
11+
12+
Your Web Id: ${data.webid}`,
13+
14+
/**
15+
* HTML version of the Welcome email
16+
*/
17+
html: `<p>Welcome to Solid!</p>
18+
19+
<p>Your account has been created.</p>
20+
21+
<p>Your Web Id: ${data.webid}</p>`
22+
}
23+
}

0 commit comments

Comments
 (0)