custom: Add new footer template and context
This commit is contained in:
parent
009d649ea6
commit
bda763725e
18 changed files with 197 additions and 33 deletions
|
|
@ -16,6 +16,7 @@ import (
|
|||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/control/home"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/control/legal"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/control/static"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/control/static/custom"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/exporter"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/exporter/logger"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/instances"
|
||||
|
|
@ -108,6 +109,9 @@ func (dis *Distillery) Info() *admin.Admin {
|
|||
func (dis *Distillery) Policy() *policy.Policy {
|
||||
return export[*policy.Policy](dis)
|
||||
}
|
||||
func (dis *Distillery) Custom() *custom.Custom {
|
||||
return export[*custom.Custom](dis)
|
||||
}
|
||||
|
||||
//
|
||||
// All components
|
||||
|
|
@ -154,7 +158,7 @@ func (dis *Distillery) allComponents() []initFunc {
|
|||
|
||||
// Control server
|
||||
auto[*control.Control],
|
||||
auto[*static.Static],
|
||||
|
||||
auto[*home.Home],
|
||||
manual(func(resolver *resolver.Resolver) {
|
||||
resolver.RefreshInterval = time.Minute
|
||||
|
|
@ -164,6 +168,9 @@ func (dis *Distillery) allComponents() []initFunc {
|
|||
}),
|
||||
auto[*legal.Legal],
|
||||
|
||||
auto[*static.Static],
|
||||
auto[*custom.Custom],
|
||||
|
||||
// Cron
|
||||
auto[*cron.Cron],
|
||||
auto[*home.UpdateHome],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue