-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): Switch to MJML for email templates
- Loading branch information
Showing
19 changed files
with
708 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/cli/src/user-management/email/templates/_common.mjml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<mj-head> | ||
<mj-attributes> | ||
<mj-all font-family="Helvetica, Open Sans, system-ui, sans-serif"></mj-all> | ||
<mj-text | ||
font-weight="400" | ||
font-size="16px" | ||
color="#444444" | ||
line-height="24px" | ||
padding="10px 0 0 0" | ||
align="center" | ||
></mj-text> | ||
<mj-button | ||
background-color="#ff6d5a" | ||
color="#ffffff" | ||
font-size="18px" | ||
align="center" | ||
padding-top="20px" | ||
line-height="150%" | ||
border-radius="4px" | ||
></mj-button> | ||
<mj-section padding="20px 0px"></mj-section> | ||
</mj-attributes> | ||
</mj-head> |
4 changes: 0 additions & 4 deletions
4
packages/cli/src/user-management/email/templates/credentialsShared.html
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
packages/cli/src/user-management/email/templates/credentialsShared.mjml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<mjml> | ||
<mj-include path="./_common.mjml" /> | ||
<mj-body> | ||
<mj-section> | ||
<mj-column> | ||
<mj-text font-size="24px" color="#ff6d5a"> A credential has been shared with you </mj-text> | ||
</mj-column> | ||
</mj-section> | ||
<mj-section background-color="#FFFFFF" border="1px solid #ddd"> | ||
<mj-column> | ||
<mj-text><b>"{{ credentialsName }}"</b> credential has been shared with you.</mj-text> | ||
<mj-text>To access it, please click the button below. </mj-text> | ||
<mj-button href="{{credentialsListUrl}}"> Open Credential </mj-button> | ||
</mj-column> | ||
</mj-section> | ||
</mj-body> | ||
</mjml> |
5 changes: 0 additions & 5 deletions
5
packages/cli/src/user-management/email/templates/instanceSetup.html
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
packages/cli/src/user-management/email/templates/invite.mjml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<mjml> | ||
<mj-include path="./_common.mjml" /> | ||
<mj-body> | ||
<mj-section> | ||
<mj-column> | ||
<mj-text font-size="24px" color="#ff6d5a"> Welcome to n8n! 🎉 </mj-text> | ||
</mj-column> | ||
</mj-section> | ||
<mj-section background-color="#FFFFFF" border="1px solid #ddd"> | ||
<mj-column> | ||
<mj-text>You have been invited to join n8n ({{domain}}).</mj-text> | ||
<mj-text>To accept, please click the button below. </mj-text> | ||
<mj-button href="{{inviteAcceptUrl}}"> Set Up Your Account </mj-button> | ||
</mj-column> | ||
</mj-section> | ||
</mj-body> | ||
</mjml> |
5 changes: 0 additions & 5 deletions
5
packages/cli/src/user-management/email/templates/passwordReset.html
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
packages/cli/src/user-management/email/templates/passwordReset.mjml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<mjml> | ||
<mj-include path="./_common.mjml" /> | ||
<mj-body> | ||
<mj-section> | ||
<mj-column> | ||
<mj-text font-size="24px" color="#ff6d5a">Reset your n8n password </mj-text> | ||
</mj-column> | ||
</mj-section> | ||
<mj-section background-color="#FFFFFF" border="1px solid #ddd"> | ||
<mj-column> | ||
<mj-text font-size="20px">Hi {{firstName}},</mj-text> | ||
<mj-text>Somebody asked to reset your password on n8n ({{ domain }}). </mj-text> | ||
<mj-text | ||
>Click the following link to choose a new password. <br />The link is valid for 20 | ||
minutes. | ||
</mj-text> | ||
<mj-button href="{{passwordResetUrl}}"> Set a new password </mj-button> | ||
</mj-column> | ||
</mj-section> | ||
</mj-body> | ||
</mjml> |
4 changes: 0 additions & 4 deletions
4
packages/cli/src/user-management/email/templates/workflowShared.html
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
packages/cli/src/user-management/email/templates/workflowShared.mjml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<mjml> | ||
<mj-include path="./_common.mjml" /> | ||
<mj-body> | ||
<mj-section> | ||
<mj-column> | ||
<mj-text font-size="24px" color="#ff6d5a"> A workflow has been shared with you </mj-text> | ||
</mj-column> | ||
</mj-section> | ||
<mj-section background-color="#FFFFFF" border="1px solid #ddd"> | ||
<mj-column> | ||
<mj-text><b>"{{ workflowName }}"</b> workflow has been shared with you.</mj-text> | ||
<mj-text>To access it, please click the button below. </mj-text> | ||
<mj-button href="{{workflowUrl}}"> Open Workflow </mj-button> | ||
</mj-column> | ||
</mj-section> | ||
</mj-body> | ||
</mjml> |
Oops, something went wrong.