mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 01:10:22 +03:00
[PR #27] [MERGED] Improve email templating #963
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/27
Author: @oidq
Created: 9/13/2024
Status: ✅ Merged
Merged: 9/17/2024
Merged by: @stonith404
Base:
main← Head:templating📝 Commits (4)
dcca6b2feat: use html/template and text/template for templating193d036feat: support UTF-8 headersc4b8ad6fix: fix tests and move templates to fs.FS9b23e2ffix: remove nested container & clear leftovers📊 Changes
14 files changed (+711 additions, -167 deletions)
View changed files
➕
backend/email-templates/components/email_html.tmpl(+14 -0)➕
backend/email-templates/components/email_text.tmpl(+7 -0)➕
backend/email-templates/components/style_html.tmpl(+80 -0)➖
backend/email-templates/login-with-new-device.html(+0 -119)➕
backend/email-templates/login-with-new-device_html.tmpl(+30 -0)➕
backend/email-templates/login-with-new-device_text.tmpl(+12 -0)📝
backend/internal/bootstrap/router_bootstrap.go(+7 -1)📝
backend/internal/common/env_config.go(+14 -12)📝
backend/internal/service/audit_log_service.go(+9 -6)📝
backend/internal/service/email_service.go(+99 -29)➕
backend/internal/service/email_service_templates.go(+37 -0)➕
backend/internal/utils/email/composer.go(+213 -0)➕
backend/internal/utils/email/composer_test.go(+92 -0)➕
backend/internal/utils/email/email_service_templates.go(+97 -0)📄 Description
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.