improved homepage labels

This commit is contained in:
yusing
2024-10-03 04:00:02 +08:00
parent 90130411f9
commit 90bababd38
5 changed files with 52 additions and 19 deletions

View File

@@ -8,7 +8,6 @@ import (
. "github.com/yusing/go-proxy/internal/common"
D "github.com/yusing/go-proxy/internal/docker"
H "github.com/yusing/go-proxy/internal/homepage"
U "github.com/yusing/go-proxy/internal/utils"
F "github.com/yusing/go-proxy/internal/utils/functional"
)
@@ -40,11 +39,6 @@ func (e *RawEntry) FillMissingFields() {
e.ProxyProperties = &D.ProxyProperties{}
}
if e.Homepage == nil {
e.Homepage = H.HomePageItemDefault()
e.Homepage.Name = U.Title(e.Alias)
}
lp, pp, extra := e.splitPorts()
if port, ok := ServiceNamePortMapTCP[e.ImageName]; ok {