Download this file
| 1 | // Package homeconnect presents the suite's Home connection and OAuth screens. |
| 2 | // Callers supply translated strings and already validated destinations. |
| 3 | package homeconnect |
| 4 | |
| 5 | import "embed" |
| 6 | |
| 7 | //go:embed templates/*.html |
| 8 | var templateFS embed.FS |
| 9 | |
| 10 | func Templates() embed.FS { return templateFS } |
| 11 | |
| 12 | type PageData struct { |
| 13 | Title, Body, Address, Action, ActionLabel, CancelLabel string |
| 14 | PostAction bool |
| 15 | } |
| 16 | |
| 17 | type OAuthData struct{ URL, Title, ActionLabel string } |
| 18 | |