Documentation
¶
Overview ¶
Package informer provides a dismissible notification bar at the top of the page.
templ: version: v0.3.1001
Index ¶
- func InformerPage(pc *adminviews.PageContext, data InformerViewData) templ.Component
- type InformerViewData
- type Module
- func (m *Module) AdminURL() string
- func (m *Module) Init(ctx *module.Context) error
- func (m *Module) Migrations() []module.Migration
- func (m *Module) RegisterAdminRoutes(r chi.Router)
- func (m *Module) RegisterRoutes(_ chi.Router)
- func (m *Module) ReloadSettings() error
- func (m *Module) Shutdown() error
- func (m *Module) SidebarLabel() string
- func (m *Module) TemplateFuncs() template.FuncMap
- func (m *Module) TranslationsFS() embed.FS
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InformerPage ¶ added in v0.9.0
func InformerPage(pc *adminviews.PageContext, data InformerViewData) templ.Component
Types ¶
type InformerViewData ¶ added in v0.9.0
type Module ¶
type Module struct {
module.BaseModule
// contains filtered or unexported fields
}
Module implements the module.Module interface for the informer module.
func (*Module) Migrations ¶
Migrations returns database migrations for the module.
func (*Module) RegisterAdminRoutes ¶
RegisterAdminRoutes registers admin routes for the module.
func (*Module) RegisterRoutes ¶
RegisterRoutes registers public routes for the module.
func (*Module) ReloadSettings ¶
ReloadSettings reloads settings from the database. Used after demo seeding updates the informer_settings table.
func (*Module) SidebarLabel ¶
SidebarLabel returns the display label for the admin sidebar.
func (*Module) TemplateFuncs ¶
TemplateFuncs returns template functions provided by the module.
func (*Module) TranslationsFS ¶
TranslationsFS returns the embedded filesystem containing module translations.