From be784a4a88d10fe33fef74a21097ad69c9c100c2 Mon Sep 17 00:00:00 2001 From: Weblate Date: Sun, 5 May 2024 01:45:00 +0000 Subject: [PATCH 1/3] Update translation files Updated by "Update LINGUAS file" hook in Weblate. Co-authored-by: Weblate Translate-URL: https://weblate.nginxui.com/projects/nginx-ui/frontend/ Translation: Nginx UI/Frontend --- app/src/language/LINGUAS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/language/LINGUAS b/app/src/language/LINGUAS index 1dc98da2..052f2613 100644 --- a/app/src/language/LINGUAS +++ b/app/src/language/LINGUAS @@ -1 +1 @@ -en zh_CN zh_TW fr_FR es ru_RU vi_VN ko_KR \ No newline at end of file +es fr_FR ko_KR ru_RU vi_VN zh_CN zh_TW From bd0bbe95ef71e102c8cc0052c1eb37fd14ec79a0 Mon Sep 17 00:00:00 2001 From: Jacky Date: Sun, 5 May 2024 12:33:32 +0800 Subject: [PATCH 2/3] fix: build ldflags --- .air.toml | 2 +- .github/workflows/build.yml | 2 +- demo.Dockerfile | 2 +- docs/guide/build.md | 2 +- docs/zh_CN/guide/build.md | 2 +- docs/zh_TW/guide/build.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.air.toml b/.air.toml index f3056317..5b479d2b 100644 --- a/.air.toml +++ b/.air.toml @@ -7,7 +7,7 @@ tmp_dir = "tmp" [build] # Just plain old shell command. You could use `make` as well. -cmd = "CGO_ENABLED=1 go build -tags=jsoniter -ldflags=\"-X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'\" -v -o ./tmp/main ." +cmd = "CGO_ENABLED=1 go build -tags=jsoniter -ldflags=\"-X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'\" -v -o ./tmp/main ." # Binary file yields from `cmd`. bin = "tmp/main" # Customize binary. diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0f97f8e3..952c9db8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -174,7 +174,7 @@ jobs: - name: Build run: | mkdir -p dist - go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -o dist/nginx-ui -v main.go + go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'" -o dist/nginx-ui -v main.go - name: Archive backend artifacts uses: actions/upload-artifact@v4 diff --git a/demo.Dockerfile b/demo.Dockerfile index d839a12e..2c3248f2 100644 --- a/demo.Dockerfile +++ b/demo.Dockerfile @@ -1,4 +1,4 @@ -# CGO_ENABLED=1 GOOS=linux CC=x86_64-unknown-linux-gnu-gcc CXX=x86_64-unknown-linux-gnu-g++ GOARCH=amd64 go build -ldflags "-X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go +# CGO_ENABLED=1 GOOS=linux CC=x86_64-unknown-linux-gnu-gcc CXX=x86_64-unknown-linux-gnu-g++ GOARCH=amd64 go build -ldflags "-X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go FROM --platform=$TARGETPLATFORM uozi/nginx-ui-base:latest ARG TARGETOS ARG TARGETARCH diff --git a/docs/guide/build.md b/docs/guide/build.md index e8272838..f852a277 100644 --- a/docs/guide/build.md +++ b/docs/guide/build.md @@ -32,5 +32,5 @@ Before building the backend, the app should be built first because the backend w Please execute the following command in the project root directory. ```shell -go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go +go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go ``` diff --git a/docs/zh_CN/guide/build.md b/docs/zh_CN/guide/build.md index 8afa662c..c96cf6c0 100644 --- a/docs/zh_CN/guide/build.md +++ b/docs/zh_CN/guide/build.md @@ -31,5 +31,5 @@ pnpm build 请在项目的根目录执行以下命令。 ```shell -go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -o dist/nginx-ui -v main.go +go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'" -o dist/nginx-ui -v main.go ``` diff --git a/docs/zh_TW/guide/build.md b/docs/zh_TW/guide/build.md index 784d1d3b..525b509b 100644 --- a/docs/zh_TW/guide/build.md +++ b/docs/zh_TW/guide/build.md @@ -31,5 +31,5 @@ pnpm build 請在專案的根資料夾執行以下命令。 ```shell -go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -o dist/nginx-ui -v main.go +go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'" -o dist/nginx-ui -v main.go ``` From 8623e1e89b01b9343478478187c7c5cf92624a84 Mon Sep 17 00:00:00 2001 From: Jacky Date: Mon, 6 May 2024 17:35:10 +0800 Subject: [PATCH 3/3] fix: certificate selector can not select #375 --- .../StdDataEntry/components/StdSelector.vue | 176 ++++++++++++------ app/src/version.json | 2 +- app/src/views/dashboard/ServerAnalytic.vue | 3 + app/src/views/domain/cert/ChangeCert.vue | 26 ++- app/version.json | 2 +- 5 files changed, 140 insertions(+), 69 deletions(-) diff --git a/app/src/components/StdDesign/StdDataEntry/components/StdSelector.vue b/app/src/components/StdDesign/StdDataEntry/components/StdSelector.vue index 3bc380af..7dbb8956 100644 --- a/app/src/components/StdDesign/StdDataEntry/components/StdSelector.vue +++ b/app/src/components/StdDesign/StdDataEntry/components/StdSelector.vue @@ -1,85 +1,132 @@