From 08c2fc78ecfad6c59a712051c8b94c33879537be Mon Sep 17 00:00:00 2001 From: LinkinStars Date: Tue, 22 Oct 2024 15:06:58 +0800 Subject: [PATCH 1/5] docs(ui): add Apache license header to InitialLoadingPlaceholder components --- .../InitialLoadingPlaceholder/index.scss | 19 +++++++++++++++++++ .../InitialLoadingPlaceholder/index.tsx | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/ui/src/components/InitialLoadingPlaceholder/index.scss b/ui/src/components/InitialLoadingPlaceholder/index.scss index 2b73f1636..a1cad1a5a 100644 --- a/ui/src/components/InitialLoadingPlaceholder/index.scss +++ b/ui/src/components/InitialLoadingPlaceholder/index.scss @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Same as spin in `public/index.html` @keyframes _initial-loading-spin { diff --git a/ui/src/components/InitialLoadingPlaceholder/index.tsx b/ui/src/components/InitialLoadingPlaceholder/index.tsx index 41e81d1a4..1650aede8 100644 --- a/ui/src/components/InitialLoadingPlaceholder/index.tsx +++ b/ui/src/components/InitialLoadingPlaceholder/index.tsx @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + // Same as spin in `public/index.html` import './index.scss'; From 1a21cd0756a740e05e798995b30af4d0b3e2bdc3 Mon Sep 17 00:00:00 2001 From: LinkinStars Date: Tue, 22 Oct 2024 15:39:32 +0800 Subject: [PATCH 2/5] docs(i18n): update translation progress --- i18n/i18n.yaml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/i18n/i18n.yaml b/i18n/i18n.yaml index 190ac0bf8..ae7650e50 100644 --- a/i18n/i18n.yaml +++ b/i18n/i18n.yaml @@ -22,43 +22,43 @@ language_options: progress: 100 - label: "Español" value: "es_ES" - progress: 64 + progress: 83 - label: "Português(BR)" value: "pt_BR" - progress: 12 + progress: 96 - label: "Português" value: "pt_PT" - progress: 12 + progress: 96 - label: "Deutsch" value: "de_DE" - progress: 69 + progress: 83 - label: "Français" value: "fr_FR" - progress: 70 + progress: 78 - label: "日本語" value: "ja_JP" - progress: 12 + progress: 11 - label: "Italiano" value: "it_IT" - progress: 9 + progress: 89 - label: "Русский" value: "ru_RU" - progress: 20 + progress: 80 - label: "简体中文" value: "zh_CN" progress: 100 - label: "繁體中文" value: "zh_TW" - progress: 64 + progress: 47 - label: "한국어" value: "ko_KR" - progress: 0 + progress: 84 - label: "Tiếng Việt" value: "vi_VN" - progress: 0 + progress: 96 - label: "Slovak" value: "sk_SK" - progress: 62 + progress: 45 - label: "فارسی" value: "fa_IR" - progress: 85 + progress: 69 From e6cafaaa5c2330896f49f0bad3b94a47412aa5c8 Mon Sep 17 00:00:00 2001 From: LinkinStars Date: Tue, 22 Oct 2024 15:44:07 +0800 Subject: [PATCH 3/5] docs(i18n): update translation --- i18n/pt_PT.yaml | 1 - i18n/sv_SE.yaml | 1 - i18n/vi_VN.yaml | 1 - 3 files changed, 3 deletions(-) diff --git a/i18n/pt_PT.yaml b/i18n/pt_PT.yaml index 5c21779ed..670fc83f9 100644 --- a/i18n/pt_PT.yaml +++ b/i18n/pt_PT.yaml @@ -2121,7 +2121,6 @@ ui: action: Ação active: Ativo activate: Ativado - activate: Activate all: Todos awards: Prêmios deactivate: Desativar diff --git a/i18n/sv_SE.yaml b/i18n/sv_SE.yaml index b6c5e90eb..93dbb9621 100644 --- a/i18n/sv_SE.yaml +++ b/i18n/sv_SE.yaml @@ -2121,7 +2121,6 @@ ui: action: Action active: Aktiv activate: Aktivera - activate: Activate all: Alla awards: Awards deactivate: Inaktivera diff --git a/i18n/vi_VN.yaml b/i18n/vi_VN.yaml index 044817fad..495d9333a 100644 --- a/i18n/vi_VN.yaml +++ b/i18n/vi_VN.yaml @@ -2121,7 +2121,6 @@ ui: action: Hành động active: Hoạt động activate: Kích hoạt - activate: Activate all: Tất cả awards: Giải Thưởng deactivate: Ngừng kích hoạt From b9402e6283bd49a2f5ba955f35ef6b49b0e184f2 Mon Sep 17 00:00:00 2001 From: LinkinStars Date: Tue, 22 Oct 2024 18:46:58 +0800 Subject: [PATCH 4/5] ci(gorelease): Upgrade Goreleaser version to 2 and update snapshot version template --- .github/workflows/build-binary-for-release.yml | 2 +- .goreleaser.yaml | 4 +++- script/plugin_list | 5 ++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-binary-for-release.yml b/.github/workflows/build-binary-for-release.yml index 7075db8fa..0356f97fc 100644 --- a/.github/workflows/build-binary-for-release.yml +++ b/.github/workflows/build-binary-for-release.yml @@ -44,7 +44,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.22 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v4 with: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 457674e9a..d2869147d 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -15,6 +15,8 @@ # specific language governing permissions and limitations # under the License. +version: 2 + env: - GO11MODULE=on - GO111MODULE=on @@ -69,7 +71,7 @@ archives: checksum: name_template: 'checksums.txt' snapshot: - name_template: "{{ incpatch .Version }}" + version_template: "{{ incpatch .Version }}" changelog: sort: asc filters: diff --git a/script/plugin_list b/script/plugin_list index 67ba306f7..9ebe8fd81 100644 --- a/script/plugin_list +++ b/script/plugin_list @@ -1,3 +1,6 @@ github.com/apache/incubator-answer-plugins/connector-basic@latest github.com/apache/incubator-answer-plugins/reviewer-basic@latest -github.com/apache/incubator-answer-plugins/captcha-basic@latest \ No newline at end of file +github.com/apache/incubator-answer-plugins/captcha-basic@latest +github.com/apache/incubator-answer-plugins/render-markdown-codehighlight@latest +github.com/apache/incubator-answer-plugins/embed-basic@latest +github.com/apache/incubator-answer-plugins/search-algolia@latest \ No newline at end of file From 8affa9fabef0de8470e7cc39606bd94c143f4e73 Mon Sep 17 00:00:00 2001 From: LinkinStars Date: Wed, 23 Oct 2024 10:40:29 +0800 Subject: [PATCH 5/5] ci(plugin): make default plugin list --- script/plugin_list | 3 --- 1 file changed, 3 deletions(-) diff --git a/script/plugin_list b/script/plugin_list index 9ebe8fd81..88c23994e 100644 --- a/script/plugin_list +++ b/script/plugin_list @@ -1,6 +1,3 @@ github.com/apache/incubator-answer-plugins/connector-basic@latest github.com/apache/incubator-answer-plugins/reviewer-basic@latest github.com/apache/incubator-answer-plugins/captcha-basic@latest -github.com/apache/incubator-answer-plugins/render-markdown-codehighlight@latest -github.com/apache/incubator-answer-plugins/embed-basic@latest -github.com/apache/incubator-answer-plugins/search-algolia@latest \ No newline at end of file