mirror of
https://github.com/yusing/godoxy.git
synced 2025-07-22 12:24:02 +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
|
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{
|
||||||
|
|
Loading…
Add table
Reference in a new issue