Skip to content

Commit

Permalink
feat: v1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
naiba committed Dec 31, 2024
1 parent 3c72d6c commit 7cb04d7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23.1"
go-version: "1.23.x"

- name: generate swagger docs
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: "1.23.1"
go-version: "1.23.x"

- name: generate swagger docs
run: |
Expand Down
4 changes: 2 additions & 2 deletions cmd/dashboard/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func (w *ginCustomWriter) WriteHeader(code int) {
}

func fileWithCustomStatusCode(c *gin.Context, filepath string, customCode int) {
http.ServeFile(newCustomWriter(c, customCode), c.Request, path.Clean(filepath))
http.ServeFile(newCustomWriter(c, customCode), c.Request, filepath)
}

func fallbackToFrontend(frontendDist fs.FS) func(*gin.Context) {
Expand Down Expand Up @@ -344,7 +344,7 @@ func fallbackToFrontend(frontendDist fs.FS) func(*gin.Context) {
}
return
}
localFilePath := path.Join(singleton.Conf.UserTemplate, path.Clean(c.Request.URL.Path))
localFilePath := path.Join(singleton.Conf.UserTemplate, c.Request.URL.Path)
if checkLocalFileOrFs(c, frontendDist, localFilePath, http.StatusOK) {
return
}
Expand Down
4 changes: 2 additions & 2 deletions service/singleton/frontend-templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: "OfficialAdmin"
repository: "https://github.com/nezhahq/admin-frontend"
author: "nezhahq"
version: "v1.5.1"
version: "v1.5.2"
isadmin: true
isofficial: true
- path: "user-dist"
Expand All @@ -15,4 +15,4 @@
name: "Nazhua"
repository: "https://github.com/hi2shark/nazhua"
author: "hi2hi"
version: "v0.4.27"
version: "v0.5.1"

0 comments on commit 7cb04d7

Please sign in to comment.