diff --git a/backend/package.json b/backend/package.json index 8d9dab0ddb..c5510791c1 100644 --- a/backend/package.json +++ b/backend/package.json @@ -4,7 +4,7 @@ "description": "The Open-Source prototyping tool", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "build-emails": "npx mjml" + "build-emails": "./scripts/build-email-templates.sh" }, "repository": { "type": "git", diff --git a/backend/resources/emails-mjml/change-email/en.mjml b/backend/resources/emails-mjml/change-email/en.mjml new file mode 100644 index 0000000000..58e4d72404 --- /dev/null +++ b/backend/resources/emails-mjml/change-email/en.mjml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + Hello {{name}}! + We received a request to change your current email to {{ pending-email }}. + Click to the link below to confirm the change: + + Confirm email change + + + If you received this email by mistake, please consider changing your password + for security reasons. + + Enjoy! + The UXBOX team. + + + + + + + UXBOX is the first Open Source prototyping platform that will be embraced by multidisciplinary teams. + + + + + + + + + + + + + + + + + + + + UXBOX © 2020 | Made with <3 and Open Source + + + + + + diff --git a/backend/resources/emails-mjml/register/en.mjml b/backend/resources/emails-mjml/register/en.mjml new file mode 100644 index 0000000000..ec7dbbdd41 --- /dev/null +++ b/backend/resources/emails-mjml/register/en.mjml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + Hello {{name}}! + + Thanks for signing up for your UXBOX account! Please verify your + email using the link below adn get started building mockups and + prototypes today! + + + Verify token + + Enjoy! + The UXBOX team. + + + + + + + UXBOX is the first Open Source prototyping platform that will be embraced by multidisciplinary teams. + + + + + + + + + + + + + + + + + + + + UXBOX © 2020 | Made with <3 and Open Source + + + + + + diff --git a/backend/resources/emails/base.html b/backend/resources/emails/base.html deleted file mode 100644 index d699ffc322..0000000000 --- a/backend/resources/emails/base.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - {% block head %} - UXBOX Email - {% endblock %} - {% include "emails/partials/inline_style.html" %} - - - - - - - - - - - -
- - - -
- - - - -
- {% block content %} - {% endblock %} -
-
- - -
- - - - - - - - - - - - - - diff --git a/backend/resources/emails/change-email/en.html b/backend/resources/emails/change-email/en.html index da7652f584..0a1222e370 100644 --- a/backend/resources/emails/change-email/en.html +++ b/backend/resources/emails/change-email/en.html @@ -1,19 +1,478 @@ -{% extends "emails/base.html" %} + + -{% block content %} -

Hello {{name}}!

+ + + + + + + + + + + + + + + + + + -{% endblock %} + +
+ +
+ + + + + + +
+ +
+ + + + +
+ + + + + + +
+ +
+
+
+ +
+
+ +
+ + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + +
+
Hello {{name}}!
+
+
We received a request to change your current email to {{ pending-email }}.
+
+
Click to the link below to confirm the change:
+
+ + + + +
+ Confirm email change +
+
+
If you received this email by mistake, please consider changing your password for security reasons.
+
+
Enjoy!
+
+
The UXBOX team.
+
+
+ +
+
+ +
+ + + + + + +
+ +
+ + + + +
+
UXBOX is the first Open Source prototyping platform that will be embraced by multidisciplinary teams.
+
+
+ +
+
+ +
+ + + + + + +
+ +
+ + + + +
+ + + + + +
+ + + + +
+ + + +
+
+ + + + + +
+ + + + +
+ + + +
+
+ + + + + +
+ + + + +
+ + + +
+
+ + + + + +
+ + + + +
+ + + +
+
+ + + + + +
+ + + + +
+ + + +
+
+ +
+
+ +
+
+ +
+ + + + + + +
+ +
+ + + + +
+
UXBOX © 2020 | Made with <3 and Open Source
+
+
+ +
+
+ +
+ + + \ No newline at end of file diff --git a/backend/resources/emails/partials/inline_style.html b/backend/resources/emails/partials/inline_style.html deleted file mode 100644 index c40ccfd43a..0000000000 --- a/backend/resources/emails/partials/inline_style.html +++ /dev/null @@ -1,173 +0,0 @@ - diff --git a/backend/resources/emails/register/en.html b/backend/resources/emails/register/en.html index a7dd1d9acb..0128fc1f0c 100644 --- a/backend/resources/emails/register/en.html +++ b/backend/resources/emails/register/en.html @@ -1,20 +1,468 @@ -{% extends "emails/base.html" %} + + -{% block content %} -

Hello {{name}}!

+ + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+ +
+ + + + +
+ + + + + + +
+ +
+
+
+ +
+
+ +
+ + + + + + +
+ +
+ + + + + + + + + + + + + + + + +
+
Hello {{name}}!
+
+
Thanks for signing up for your UXBOX account! Please verify your email using the link below adn get started building mockups and prototypes today!
+
+ + + + +
+ Verify token +
+
+
Enjoy!
+
+
The UXBOX team.
+
+
+ +
+
+ +
+ + + + + + +
+ +
+ + + + +
+
UXBOX is the first Open Source prototyping platform that will be embraced by multidisciplinary teams.
+
+
+ +
+
+ +
+ + + + + + +
+ +
+ + + + +
+ + + + + +
+ + + + +
+ + + +
+
+ + + + + +
+ + + + +
+ + + +
+
+ + + + + +
+ + + + +
+ + + +
+
+ + + + + +
+ + + + +
+ + + +
+
+ + + + + +
+ + + + +
+ + + +
+
+ +
+
+ +
+
+ +
+ + + + + + +
+ +
+ + + + +
+
UXBOX © 2020 | Made with <3 and Open Source
+
+
+ +
+
+ +
+ + + \ No newline at end of file diff --git a/backend/scripts/build-email-templates.sh b/backend/scripts/build-email-templates.sh index 0c10a7a699..027b7ab21c 100755 --- a/backend/scripts/build-email-templates.sh +++ b/backend/scripts/build-email-templates.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash -npx mjml resources/emails-mjml/password-recovery/en.mjml -o resources/emails/password-recovery/en.html +for f in resources/emails-mjml/*/*.mjml +do + npx mjml $f -o `echo $f | sed -e "s/-mjml//" | sed -e "s/mjml/html/"` +done