From 5a64af093dd646ab8f697fa9987759e1a99e75d4 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Mon, 3 Oct 2016 00:29:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B8=D1=81=D1=8C=D0=BC=D0=BE=20=D0=BE?= =?UTF-8?q?=20=D0=B2=D0=BE=D1=81=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B8=20=D0=BF=D0=B0=D1=80=D0=BE=D0=BB=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/emails/forgotPassword/ForgotPassword.jsx | 51 ++++++++++++++++++++ src/emails/forgotPassword/fixtures.js | 7 +++ src/emails/forgotPassword/index.js | 3 ++ src/emails/forgotPassword/messages.intl.json | 5 ++ src/emails/forgotPassword/styles.js | 5 ++ src/i18n/be.json | 3 ++ src/i18n/en.json | 3 ++ src/i18n/ru.json | 3 ++ src/i18n/uk.json | 3 ++ 9 files changed, 83 insertions(+) create mode 100644 src/emails/forgotPassword/ForgotPassword.jsx create mode 100644 src/emails/forgotPassword/fixtures.js create mode 100644 src/emails/forgotPassword/index.js create mode 100644 src/emails/forgotPassword/messages.intl.json create mode 100644 src/emails/forgotPassword/styles.js diff --git a/src/emails/forgotPassword/ForgotPassword.jsx b/src/emails/forgotPassword/ForgotPassword.jsx new file mode 100644 index 0000000..cddec3b --- /dev/null +++ b/src/emails/forgotPassword/ForgotPassword.jsx @@ -0,0 +1,51 @@ +import { PropTypes } from 'react'; + +import { FormattedMessage as Message } from 'react-intl'; + +import { Userbar, Header, Content, Footer } from 'components/layout'; +import { Table } from 'components/table'; +import { Code } from 'components/blocks'; +import { BitmapText } from 'components/text'; +import { lightViolet } from 'components/ui/colors'; + +import styles from './styles'; +import messages from './messages.intl.json'; + +export default function ForgotPassword({username, link, code}) { + return ( +
+ + +
+ } /> + + + + + + + + + +
+
+ +
+
+ + } /> +
+
+ +
+ ); +} + +ForgotPassword.propTypes = { + username: PropTypes.string, + link: PropTypes.string, + code: PropTypes.string +}; diff --git a/src/emails/forgotPassword/fixtures.js b/src/emails/forgotPassword/fixtures.js new file mode 100644 index 0000000..9bb0338 --- /dev/null +++ b/src/emails/forgotPassword/fixtures.js @@ -0,0 +1,7 @@ +export default { + default: { + username: 'ErickSkrauch', + code: 'I7SP06BUTLLM8MA03O', + link: 'https://account.ely.by/activation/I7SP06BUTLLM8MA03O' + }, +}; diff --git a/src/emails/forgotPassword/index.js b/src/emails/forgotPassword/index.js new file mode 100644 index 0000000..e89ea7c --- /dev/null +++ b/src/emails/forgotPassword/index.js @@ -0,0 +1,3 @@ +import ForgotPassword from './ForgotPassword'; + +export default ForgotPassword; diff --git a/src/emails/forgotPassword/messages.intl.json b/src/emails/forgotPassword/messages.intl.json new file mode 100644 index 0000000..2e0c0a2 --- /dev/null +++ b/src/emails/forgotPassword/messages.intl.json @@ -0,0 +1,5 @@ +{ + "forget_the_password_image": "Forget the password?", + "shit_happens": "Oops, this happens. If you wish to continue changing the password, you should enter the following code on the website. If you didn't start this process, just delete this email to be sure – this code may be used to steal your password.", + "continue_image": "Continue" +} diff --git a/src/emails/forgotPassword/styles.js b/src/emails/forgotPassword/styles.js new file mode 100644 index 0000000..b6b42d4 --- /dev/null +++ b/src/emails/forgotPassword/styles.js @@ -0,0 +1,5 @@ +export default { + contentCenterCell: { + textAlign: 'center' + } +}; diff --git a/src/i18n/be.json b/src/i18n/be.json index 258bf22..e7ae5ed 100644 --- a/src/i18n/be.json +++ b/src/i18n/be.json @@ -5,6 +5,9 @@ "components.layout.footer.footer_logo_alt": "Ely.by - Альтэрнатыўныя сэрвісы Minecraft", "components.layout.footer.service_name": "Акаўнты Ely.by", "components.layout.header.hello_username": "Прывітанне, {username}", + "emails.forgotPassword.continue_image": "Працягуць", + "emails.forgotPassword.forget_the_password_image": "Ты забыў пароль?", + "emails.forgotPassword.shit_happens": "Гэтак адбываецца, нічога. Каб працягнуць працэдуру аднаўлення пароля, табе патрэбна ўвесці спецыяльны код у поле на сайце. Калі гэта зрабіў не ты, то, калі ласка, проста нічога не рабі - злачынцы не змогуць скрасці твой акаунт без кода ніжэй.", "emails.register.choose_you_skin_image": "Выберы свой скін", "emails.register.choose_you_skin_text": "У каталогу скіноў Ely.by ты зможаш знайсці мноства разнастайных скіноў, кожны з якіх гатовы да таго, каб быць надзетым.", "emails.register.confirm_email_image": "Пацвердзіць E‑mail", diff --git a/src/i18n/en.json b/src/i18n/en.json index a7286c1..0aba6ff 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -5,6 +5,9 @@ "components.layout.footer.footer_logo_alt": "Ely.by - Alternative Minecraft services", "components.layout.footer.service_name": "Accounts Ely.by", "components.layout.header.hello_username": "Hello, {username}", + "emails.forgotPassword.continue_image": "Continue", + "emails.forgotPassword.forget_the_password_image": "Forget the password?", + "emails.forgotPassword.shit_happens": "Oops, this happens. If you wish to continue changing the password, you should enter the following code on the website. If you didn't start this process, just delete this email to be sure – this code may be used to steal your password.", "emails.register.choose_you_skin_image": "Choose your skin", "emails.register.choose_you_skin_text": "In Ely.by's catalog you can find great diversity of skins, which are ready to be put up.", "emails.register.confirm_email_image": "Confirm E‑mail", diff --git a/src/i18n/ru.json b/src/i18n/ru.json index a72315c..7ff1cd2 100644 --- a/src/i18n/ru.json +++ b/src/i18n/ru.json @@ -5,6 +5,9 @@ "components.layout.footer.footer_logo_alt": "Ely.by - Альтернативные сервисы Minecraft", "components.layout.footer.service_name": "Аккаунты Ely.by", "components.layout.header.hello_username": "Привет, {username}", + "emails.forgotPassword.continue_image": "Продолжить", + "emails.forgotPassword.forget_the_password_image": "Ты забыл пароль?", + "emails.forgotPassword.shit_happens": "Такое случается, это нормально. Чтобы продолжить процедуру восстановления пароля, тебе нужно ввести специальный код в поле на сайте. Если это сделал не ты, то, пожалуйста, просто не реагируй на него - злоумышленники не смогут украсть твой аккаунт без кода ниже.", "emails.register.choose_you_skin_image": "Выбери свой скин", "emails.register.choose_you_skin_text": "В каталоге скинов Ely.by ты сможешь найти множество разнообразных скинов, каждый из которых готов к тому, чтобы быть надетым.", "emails.register.confirm_email_image": "Подтвердить E‑mail", diff --git a/src/i18n/uk.json b/src/i18n/uk.json index a72315c..7ff1cd2 100644 --- a/src/i18n/uk.json +++ b/src/i18n/uk.json @@ -5,6 +5,9 @@ "components.layout.footer.footer_logo_alt": "Ely.by - Альтернативные сервисы Minecraft", "components.layout.footer.service_name": "Аккаунты Ely.by", "components.layout.header.hello_username": "Привет, {username}", + "emails.forgotPassword.continue_image": "Продолжить", + "emails.forgotPassword.forget_the_password_image": "Ты забыл пароль?", + "emails.forgotPassword.shit_happens": "Такое случается, это нормально. Чтобы продолжить процедуру восстановления пароля, тебе нужно ввести специальный код в поле на сайте. Если это сделал не ты, то, пожалуйста, просто не реагируй на него - злоумышленники не смогут украсть твой аккаунт без кода ниже.", "emails.register.choose_you_skin_image": "Выбери свой скин", "emails.register.choose_you_skin_text": "В каталоге скинов Ely.by ты сможешь найти множество разнообразных скинов, каждый из которых готов к тому, чтобы быть надетым.", "emails.register.confirm_email_image": "Подтвердить E‑mail",