mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
fixed dashboard not showing all apps
This commit is contained in:
parent
2c43f1412e
commit
3a4dc3f876
1 changed files with 10 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
package homepage
|
||||
|
||||
import "github.com/yusing/go-proxy/internal/utils"
|
||||
|
||||
type (
|
||||
//nolint:recvcheck
|
||||
Config map[string]Category
|
||||
|
@ -28,6 +30,14 @@ type (
|
|||
}
|
||||
)
|
||||
|
||||
func init() {
|
||||
utils.RegisterDefaultValueFactory(func() *ItemConfig {
|
||||
return &ItemConfig{
|
||||
Show: true,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func NewItem(alias string) *Item {
|
||||
return &Item{
|
||||
ItemConfig: &ItemConfig{
|
||||
|
|
Loading…
Add table
Reference in a new issue