Skip to content

Commit

Permalink
feat: 发布v2.3.16
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 30, 2024
1 parent f01afac commit 85bd71a
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ go 1.23
require (
github.com/bddjr/hlfhr v1.1.3
github.com/beevik/ntp v1.4.3
github.com/creack/pty v1.1.23
github.com/expr-lang/expr v1.16.9
github.com/glebarez/sqlite v1.11.0
github.com/go-chi/chi/v5 v5.1.0
Expand Down Expand Up @@ -51,7 +52,6 @@ require (

require (
filippo.io/edwards25519 v1.1.0 // indirect
github.com/creack/pty v1.1.23 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/devhaozi/huaweicloud-sdk-go-v3 v0.0.0-20241018211007-bbebb6de5db7 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
Expand Down
2 changes: 1 addition & 1 deletion internal/bootstrap/conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

// 初始化时区
Expand Down
4 changes: 4 additions & 0 deletions internal/data/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
5 changes: 5 additions & 0 deletions internal/data/container_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"net"
"net/http"
"slices"
"strings"
"time"

Expand Down Expand Up @@ -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
}

Expand Down
5 changes: 5 additions & 0 deletions internal/data/container_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"net"
"net/http"
"slices"
"strings"
"time"

Expand Down Expand Up @@ -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
}

Expand Down
5 changes: 5 additions & 0 deletions internal/data/container_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"net"
"net/http"
"slices"
"strings"
"time"

Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 85bd71a

Please sign in to comment.