fixed dashboard not showing all apps

This commit is contained in:
yusing 2025-01-21 12:56:21 +08:00
parent 2c43f1412e
commit 3a4dc3f876

View file

@ -1,5 +1,7 @@
package homepage package homepage
import "github.com/yusing/go-proxy/internal/utils"
type ( type (
//nolint:recvcheck //nolint:recvcheck
Config map[string]Category Config map[string]Category
@ -28,6 +30,14 @@ type (
} }
) )
func init() {
utils.RegisterDefaultValueFactory(func() *ItemConfig {
return &ItemConfig{
Show: true,
}
})
}
func NewItem(alias string) *Item { func NewItem(alias string) *Item {
return &Item{ return &Item{
ItemConfig: &ItemConfig{ ItemConfig: &ItemConfig{