feat: v1.5.2
Some checks are pending
CodeQL / Analyze (go) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
Contributors / contributors (push) Waiting to run
Sync / sync-to-jihulab (push) Waiting to run
Run Tests / tests (macos) (push) Waiting to run
Run Tests / tests (ubuntu) (push) Waiting to run
Run Tests / tests (windows) (push) Waiting to run

This commit is contained in:
naiba 2025-01-01 01:02:02 +08:00
parent 3c72d6ce64
commit 7cb04d79ee
4 changed files with 6 additions and 6 deletions

View File

@ -48,7 +48,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: "1.23.1" go-version: "1.23.x"
- name: generate swagger docs - name: generate swagger docs
run: | run: |

View File

@ -27,7 +27,7 @@ jobs:
- uses: actions/setup-go@v5 - uses: actions/setup-go@v5
with: with:
go-version: "1.23.1" go-version: "1.23.x"
- name: generate swagger docs - name: generate swagger docs
run: | run: |

View File

@ -303,7 +303,7 @@ func (w *ginCustomWriter) WriteHeader(code int) {
} }
func fileWithCustomStatusCode(c *gin.Context, filepath string, customCode 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) { func fallbackToFrontend(frontendDist fs.FS) func(*gin.Context) {
@ -344,7 +344,7 @@ func fallbackToFrontend(frontendDist fs.FS) func(*gin.Context) {
} }
return 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) { if checkLocalFileOrFs(c, frontendDist, localFilePath, http.StatusOK) {
return return
} }

View File

@ -2,7 +2,7 @@
name: "OfficialAdmin" name: "OfficialAdmin"
repository: "https://github.com/nezhahq/admin-frontend" repository: "https://github.com/nezhahq/admin-frontend"
author: "nezhahq" author: "nezhahq"
version: "v1.5.1" version: "v1.5.2"
isadmin: true isadmin: true
isofficial: true isofficial: true
- path: "user-dist" - path: "user-dist"
@ -15,4 +15,4 @@
name: "Nazhua" name: "Nazhua"
repository: "https://github.com/hi2shark/nazhua" repository: "https://github.com/hi2shark/nazhua"
author: "hi2hi" author: "hi2hi"
version: "v0.4.27" version: "v0.5.1"