initial rebuild

This commit is contained in:
allanice001
2025-09-01 13:34:13 +01:00
commit 95bd9615d1
100 changed files with 12440 additions and 0 deletions

6
internal/assets/efs.go Normal file
View File

@@ -0,0 +1,6 @@
package assets
import "embed"
//go:embed "emails"
var EmbeddedFiles embed.FS

View 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}}

View 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}}

View 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 didnt 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 didnt request this, you can safely ignore this email.</p>
<p>Sent at: {{now}}</p>
</body>
</html>
{{end}}

View 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 didnt 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 didnt create an account, you can ignore this message.</p>
<p>Sent at: {{now}}</p>
</body>
</html>
{{end}}