templates: Add ingredients page
This commit is contained in:
parent
d64e6f8ec3
commit
7a53703aaa
17 changed files with 109 additions and 43 deletions
|
|
@ -4,11 +4,8 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient/barrel"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient/barrel/drush"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient/locker"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient/php"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient/php/extras"
|
||||
"github.com/FAU-CDI/wisski-distillery/pkg/lazy"
|
||||
"golang.org/x/sync/errgroup"
|
||||
)
|
||||
|
||||
|
|
@ -18,11 +15,7 @@ type Info struct {
|
|||
PHP *php.PHP
|
||||
Fetchers []ingredient.Fetcher
|
||||
|
||||
Barrel *barrel.Barrel
|
||||
Locker *locker.Locker
|
||||
Drush *drush.Drush
|
||||
Prefixes *extras.Prefixes
|
||||
Pathbuilder *extras.Pathbuilder
|
||||
Analytics *lazy.PoolAnalytics
|
||||
}
|
||||
|
||||
// TODO: Use the information struct globally
|
||||
|
|
|
|||
|
|
@ -96,7 +96,9 @@ func (wisski *WissKI) allIngredients() []initFunc {
|
|||
auto[*extras.Pathbuilder],
|
||||
|
||||
// info
|
||||
auto[*info.Info],
|
||||
manual(func(info *info.Info) {
|
||||
info.Analytics = &wisski.pool.Analytics
|
||||
}),
|
||||
auto[*barrel.LastRebuildFetcher],
|
||||
auto[*barrel.RunningFetcher],
|
||||
auto[*drush.LastUpdateFetcher],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue