mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 13:47:15 +08:00
feat: 发布v2.3.16
This commit is contained in:
@@ -26,7 +26,7 @@ func initConf() {
|
||||
|
||||
func initGlobal() {
|
||||
app.Root = app.Conf.MustString("app.root")
|
||||
app.Version = "2.3.15"
|
||||
app.Version = "2.3.16"
|
||||
app.Locale = app.Conf.MustString("app.locale")
|
||||
|
||||
// 初始化时区
|
||||
|
||||
@@ -79,6 +79,10 @@ func (r *containerRepo) ListAll() ([]types.Container, error) {
|
||||
})
|
||||
}
|
||||
|
||||
slices.SortFunc(containers, func(a types.Container, b types.Container) int {
|
||||
return strings.Compare(a.Name, b.Name)
|
||||
})
|
||||
|
||||
return containers, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"net"
|
||||
"net/http"
|
||||
"slices"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -62,6 +63,10 @@ func (r *containerImageRepo) List() ([]types.ContainerImage, error) {
|
||||
})
|
||||
}
|
||||
|
||||
slices.SortFunc(images, func(a types.ContainerImage, b types.ContainerImage) int {
|
||||
return strings.Compare(a.ID, b.ID)
|
||||
})
|
||||
|
||||
return images, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"net"
|
||||
"net/http"
|
||||
"slices"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -79,6 +80,10 @@ func (r *containerNetworkRepo) List() ([]types.ContainerNetwork, error) {
|
||||
})
|
||||
}
|
||||
|
||||
slices.SortFunc(networks, func(a types.ContainerNetwork, b types.ContainerNetwork) int {
|
||||
return strings.Compare(a.Name, b.Name)
|
||||
})
|
||||
|
||||
return networks, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"net"
|
||||
"net/http"
|
||||
"slices"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -64,6 +65,10 @@ func (r *containerVolumeRepo) List() ([]types.ContainerVolume, error) {
|
||||
})
|
||||
}
|
||||
|
||||
slices.SortFunc(volumes, func(a types.ContainerVolume, b types.ContainerVolume) int {
|
||||
return strings.Compare(a.Name, b.Name)
|
||||
})
|
||||
|
||||
return volumes, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user