// Package credits renders dependency notices without JavaScript. Applications // supply the page title in their active locale and the original notice text. package credits import "embed" //go:embed templates/*.html var templateFS embed.FS //go:embed credits.css var stylesheet []byte func Templates() embed.FS { return templateFS } func CSS() []byte { return append([]byte(nil), stylesheet...) } type Notice struct{ Name, Text string } type Component struct { Name, Version, SourceURL string Notices []Notice } type PageData struct { Title string MissingNoticeLabel string Components []Component }