-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add service layer * Add testing and minor configurations * Configure environment variables and update lib version * Update CHANGELOG and fix layout main template for emails * Upgrade lib version and update README
- Loading branch information
1 parent
57a4627
commit d2c0c36
Showing
26 changed files
with
426 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
APP_ENV=development | ||
DATABASE_URL=postgresql://postgres:@127.0.0.1/auction_fun_core_development?pool=10 | ||
[email protected] | ||
SMTP_ADDRESS=localhost | ||
SMTP_PORT=1025 |
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
APP_ENV=test | ||
DATABASE_URL=postgresql://postgres:@127.0.0.1:5432/auction_fun_core_test?pool=10 | ||
[email protected] | ||
SMTP_ADDRESS=localhost | ||
SMTP_PORT=1025 |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
ruby 3.3.0 | ||
postgres 16.1 | ||
golang 1.21.5 | ||
nodejs 20.10.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
database: postgres | ||
mailserver: maildev --hide-extensions STARTTLS |
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
File renamed without changes.
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,11 @@ | ||
en-US: | ||
mail: | ||
general: | ||
hello: "Hi %{name}" | ||
app_name: "AuctionFun" | ||
team: "Team AuctionFun" | ||
user_context: | ||
registration: | ||
subject: "Welcome to AuctionFun" | ||
body: | ||
description: "Welcome to our platform! We are delighted to have you on board. If you have any questions or need assistance, feel free to reach out." |
File renamed without changes.
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,11 @@ | ||
pt-BR: | ||
mail: | ||
general: | ||
hello: "Olá %{name}" | ||
app_name: "AuctionFun" | ||
team: "Time AuctionFun" | ||
user_context: | ||
registration: | ||
subject: "Bem vindo a AuctionFun" | ||
body: | ||
description: "Bem-vindo/a à nossa plataforma! Estamos encantados por tê-lo/a conosco. Se tiver alguma dúvida ou precisar de ajuda, não hesite em entrar em contato." |
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
72 changes: 72 additions & 0 deletions
72
lib/auction_fun_core/services/mail/templates/layout.html.erb
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,72 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> | ||
<head> | ||
<title>AuctionFun</title> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<style type="text/css"> | ||
#outlook a { | ||
padding: 0; | ||
} | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
-webkit-text-size-adjust: 100%; | ||
-ms-text-size-adjust: 100%; | ||
} | ||
table, | ||
td { | ||
border-collapse: collapse; | ||
mso-table-lspace: 0pt; | ||
mso-table-rspace: 0pt; | ||
} | ||
img { | ||
border: 0; | ||
height: auto; | ||
line-height: 100%; | ||
outline: none; | ||
text-decoration: none; | ||
-ms-interpolation-mode: bicubic; | ||
} | ||
p { | ||
display: block; | ||
margin: 13px 0; | ||
} | ||
</style> | ||
<style type="text/css"> | ||
.mj-outlook-group-fix { width:100% !important; } | ||
</style> | ||
<style type="text/css"> | ||
@media only screen and (min-width:480px) { | ||
.mj-column-per-100 { | ||
width: 100% !important; | ||
max-width: 100%; | ||
} | ||
} | ||
</style> | ||
<style type="text/css"> | ||
@media only screen and (max-width:480px) { | ||
table.mj-full-width-mobile { | ||
width: 100% !important; | ||
} | ||
td.mj-full-width-mobile { | ||
width: auto !important; | ||
} | ||
} | ||
</style> | ||
<style type="text/css"> | ||
a, | ||
span, | ||
td, | ||
th { | ||
-webkit-font-smoothing: antialiased !important; | ||
-moz-osx-font-smoothing: grayscale !important; | ||
} | ||
</style> | ||
</head> | ||
<body style="background-color:#ffffff;"> | ||
<%= yield %> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.