mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 12:50:05 +01:00
initial rebuild
This commit is contained in:
6
internal/assets/efs.go
Normal file
6
internal/assets/efs.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package assets
|
||||
|
||||
import "embed"
|
||||
|
||||
//go:embed "emails"
|
||||
var EmbeddedFiles embed.FS
|
||||
12
internal/assets/emails/error-notification.tmpl
Normal file
12
internal/assets/emails/error-notification.tmpl
Normal file
@@ -0,0 +1,12 @@
|
||||
{{define "subject"}}Runtime error for {{.BaseURL}}{{end}}
|
||||
|
||||
{{define "plainBody"}}
|
||||
Error message: {{.Message}}
|
||||
|
||||
Request method: {{.RequestMethod}}
|
||||
Request URL: {{.RequestURL}}
|
||||
|
||||
Stack trace:
|
||||
|
||||
{{.Trace}}
|
||||
{{end}}
|
||||
24
internal/assets/emails/example.tmpl
Normal file
24
internal/assets/emails/example.tmpl
Normal file
@@ -0,0 +1,24 @@
|
||||
{{define "subject"}}Example subject{{end}}
|
||||
|
||||
{{define "plainBody"}}
|
||||
Hi {{.Name}},
|
||||
|
||||
This is an example body
|
||||
|
||||
Sent at: {{now}}
|
||||
{{end}}
|
||||
|
||||
{{define "htmlBody"}}
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
</head>
|
||||
<body>
|
||||
<p>Hi {{.Name}},</p>
|
||||
<p>This is an example body</p>
|
||||
<p>Sent at: {{now}}</p>
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
||||
45
internal/assets/emails/password_reset.tmpl
Normal file
45
internal/assets/emails/password_reset.tmpl
Normal file
@@ -0,0 +1,45 @@
|
||||
{{define "subject"}}Reset your Dragon password{{end}}
|
||||
|
||||
{{define "plainBody"}}
|
||||
Hi {{.Name}},
|
||||
|
||||
We received a request to reset your password. Use the token below to continue:
|
||||
|
||||
Reset token:
|
||||
{{.Token}}
|
||||
|
||||
{{if .ResetURL}}Or open this link:
|
||||
{{.ResetURL}}{{end}}
|
||||
|
||||
If you didn’t request this, you can safely ignore this email.
|
||||
|
||||
Sent at: {{now}}
|
||||
{{end}}
|
||||
|
||||
{{define "htmlBody"}}
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Reset your Dragon password</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Hi {{.Name}},</p>
|
||||
<p>We received a request to reset your password. Use the token below to continue:</p>
|
||||
|
||||
<p><strong>Reset token:</strong><br/>
|
||||
<code style="font-family: monospace; font-size: 14px;">{{.Token}}</code></p>
|
||||
|
||||
{{if .ResetURL}}
|
||||
<p>
|
||||
Or click here:
|
||||
<a href="{{.ResetURL}}">Reset my password</a>
|
||||
</p>
|
||||
{{end}}
|
||||
|
||||
<p>If you didn’t request this, you can safely ignore this email.</p>
|
||||
<p>Sent at: {{now}}</p>
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
||||
45
internal/assets/emails/verify_account.tmpl
Normal file
45
internal/assets/emails/verify_account.tmpl
Normal file
@@ -0,0 +1,45 @@
|
||||
{{define "subject"}}Verify your Dragon account{{end}}
|
||||
|
||||
{{define "plainBody"}}
|
||||
Hi {{.Name}},
|
||||
|
||||
Welcome to Dragon! Please verify your email to activate your account.
|
||||
|
||||
Verification token:
|
||||
{{.Token}}
|
||||
|
||||
{{if .VerificationURL}}You can also click this link:
|
||||
{{.VerificationURL}}{{end}}
|
||||
|
||||
If you didn’t create an account, you can ignore this message.
|
||||
|
||||
Sent at: {{now}}
|
||||
{{end}}
|
||||
|
||||
{{define "htmlBody"}}
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Verify your Dragon account</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Hi {{.Name}},</p>
|
||||
<p>Welcome to Dragon! Please verify your email to activate your account.</p>
|
||||
|
||||
<p><strong>Verification token:</strong><br/>
|
||||
<code style="font-family: monospace; font-size: 14px;">{{.Token}}</code></p>
|
||||
|
||||
{{if .VerificationURL}}
|
||||
<p>
|
||||
Or click here:
|
||||
<a href="{{.VerificationURL}}">Verify my email</a>
|
||||
</p>
|
||||
{{end}}
|
||||
|
||||
<p>If you didn’t create an account, you can ignore this message.</p>
|
||||
<p>Sent at: {{now}}</p>
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user