Documentation
¶
Index ¶
Constants ¶
View Source
const ( UIIndexFilePath string = "build/index.html" UIRootFilePath string = "build" )
Variables ¶
View Source
var Provider wire.ProviderSet = wire.NewSet( NewStaticHandler, NewStaticRoute, )
Functions ¶
This section is empty.
Types ¶
type GetManifestJsonResp ¶
type GetManifestJsonResp struct {
ManifestVersion int `json:"manifest_version"`
Version string `json:"version"`
Revision string `json:"revision"`
ShortName string `json:"short_name"`
Name string `json:"name"`
Icons []ManifestJsonIcon `json:"icons"`
StartUrl string `json:"start_url"`
Display string `json:"display"`
ThemeColor string `json:"theme_color"`
BackgroundColor string `json:"background_color"`
}
type Handler ¶
type Handler interface {
GetFaviconIco(buildFS fs.FS) echo.HandlerFunc
GetManifestJson() echo.HandlerFunc
SPAHandler(buildFS fs.FS) echo.HandlerFunc
}
func NewStaticHandler ¶
func NewStaticHandler() Handler
type ManifestJsonIcon ¶
type ManifestJsonIcon struct {
Src string `json:"src"`
Sizes string `json:"sizes"`
Type string `json:"type"`
}
func CreateManifestJsonIcons ¶
func CreateManifestJsonIcons(icon string) []ManifestJsonIcon
Click to show internal directories.
Click to hide internal directories.