templates: Add ingredients page

This commit is contained in:
Tom Wiesing 2022-10-21 18:12:23 +02:00
parent d64e6f8ec3
commit 7a53703aaa
No known key found for this signature in database
17 changed files with 109 additions and 43 deletions

View file

@ -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

View file

@ -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],