Commit Graph

4035 Commits

Author SHA1 Message Date
LinkinStars a8e06213eb Merge branch 'dev' into feat/1.2.5/notification 2024-01-02 15:28:22 +08:00
LinkinStars a5d2a06935 refactor(asf): add asf header 2024-01-02 15:26:45 +08:00
LinkinStars 9f434ef751 feat(notification): add notification type for plugin 2024-01-02 14:53:13 +08:00
LinkinStars f2656ec749 feat(notification): add notification for plugin 2023-12-28 17:01:43 +08:00
LinkinStars a005f004aa feat(notification): update notification config 2023-12-27 11:10:44 +08:00
LinkinStars 269882071d fix(plugin): remove disabled plugin form user plugin list 2023-12-26 17:27:22 +08:00
LinkinStars 645df7f2a6 feat(notification): add user config plugin API 2023-12-26 15:27:04 +08:00
Han Gao ec11a126c4 fix: tags will not be synced to search plugin when adding new question (#697)
fix #696 .

changes,
1. change `qr.updateSearch` to `qr.UpdateSearch` to make it accessible
outside.
2. update search (search plugin) after updating or adding records in the
`TagRel` table.

---------

Signed-off-by: Adam Vollrath <adam.d.vollrath@gmail.com>
Co-authored-by: sy-records <52o@qq52o.cn>
Co-authored-by: Adam Vollrath <adam.d.vollrath@gmail.com>
Co-authored-by: kumfo <kumfo@sifou.com>
2023-12-26 14:26:12 +08:00
Lu Fei ab2be1479b feat(build): add timezone arg for dockerfile (#581)
close #528

---------

Signed-off-by: Adam Vollrath <adam.d.vollrath@gmail.com>
Co-authored-by: Adam Vollrath <adam.d.vollrath@gmail.com>
2023-12-22 13:59:20 +08:00
hgaol 67d1af366d update 2023-12-18 17:52:51 +08:00
hgaol e362ca8073 replace builder.Eq with In 2023-12-18 17:52:51 +08:00
hgaol fd75d2f50d update search question and answer 2023-12-18 17:52:51 +08:00
hgaol c0a231ede3 update for synonym tag logic 2023-12-18 17:52:51 +08:00
hgaol 4aa42891ce fix: questions with synonym tags do not show under the origin tag 2023-12-18 17:52:51 +08:00
YL1028K 68f5af01d9 fix: log prints incorrect method(#684) 2023-12-15 17:07:35 +08:00
Fen 2df8d5657e New Crowdin updates (#14)
* New translations en_us.yaml (German)

* New translations en_us.yaml (French)

* New translations en_us.yaml (Spanish)

* New translations en_us.yaml (Czech)

* New translations en_us.yaml (Danish)

* New translations en_us.yaml (Italian)

* New translations en_us.yaml (Japanese)

* New translations en_us.yaml (Korean)

* New translations en_us.yaml (Polish)

* New translations en_us.yaml (Portuguese)

* New translations en_us.yaml (Russian)

* New translations en_us.yaml (Slovak)

* New translations en_us.yaml (Turkish)

* New translations en_us.yaml (Ukrainian)

* New translations en_us.yaml (Chinese Simplified)

* New translations en_us.yaml (Chinese Traditional)

* New translations en_us.yaml (Vietnamese)

* New translations en_us.yaml (Indonesian)

* New translations en_us.yaml (Persian)

* New translations en_us.yaml (Welsh)
2023-12-14 18:13:33 +08:00
Fen 7e4fe9a0f8 New Crowdin updates (#3)
* New translations en_us.yaml (French)

* New translations en_us.yaml (Spanish)

* New translations en_us.yaml (Czech)

* New translations en_us.yaml (Danish)

* New translations en_us.yaml (German)

* New translations en_us.yaml (Italian)

* New translations en_us.yaml (Japanese)

* New translations en_us.yaml (Korean)

* New translations en_us.yaml (Polish)

* New translations en_us.yaml (Portuguese)

* New translations en_us.yaml (Russian)

* New translations en_us.yaml (Slovak)

* New translations en_us.yaml (Turkish)

* New translations en_us.yaml (Ukrainian)

* New translations en_us.yaml (Chinese Simplified)

* New translations en_us.yaml (Chinese Traditional)

* New translations en_us.yaml (Vietnamese)

* New translations en_us.yaml (Indonesian)

* New translations en_us.yaml (Persian)

* New translations en_us.yaml (Welsh)

* New translations en_us.yaml (French)

* New translations en_us.yaml (Spanish)

* New translations en_us.yaml (Czech)

* New translations en_us.yaml (Danish)

* New translations en_us.yaml (German)

* New translations en_us.yaml (Italian)

* New translations en_us.yaml (Japanese)

* New translations en_us.yaml (Korean)

* New translations en_us.yaml (Polish)

* New translations en_us.yaml (Portuguese)

* New translations en_us.yaml (Russian)

* New translations en_us.yaml (Slovak)

* New translations en_us.yaml (Turkish)

* New translations en_us.yaml (Ukrainian)

* New translations en_us.yaml (Chinese Simplified)

* New translations en_us.yaml (Chinese Traditional)

* New translations en_us.yaml (Vietnamese)

* New translations en_us.yaml (Indonesian)

* New translations en_us.yaml (Persian)

* New translations en_us.yaml (Welsh)

* New translations en_us.yaml (French)

* New translations en_us.yaml (Spanish)

* New translations en_us.yaml (Czech)

* New translations en_us.yaml (Danish)

* New translations en_us.yaml (German)

* New translations en_us.yaml (Italian)

* New translations en_us.yaml (Japanese)

* New translations en_us.yaml (Korean)

* New translations en_us.yaml (Polish)

* New translations en_us.yaml (Portuguese)

* New translations en_us.yaml (Russian)

* New translations en_us.yaml (Slovak)

* New translations en_us.yaml (Turkish)

* New translations en_us.yaml (Ukrainian)

* New translations en_us.yaml (Chinese Simplified)

* New translations en_us.yaml (Chinese Traditional)

* New translations en_us.yaml (Vietnamese)

* New translations en_us.yaml (Indonesian)

* New translations en_us.yaml (Persian)

* New translations en_us.yaml (Welsh)

* New translations en_us.yaml (German)

* New translations en_us.yaml (French)

* New translations en_us.yaml (Spanish)

* New translations en_us.yaml (Czech)

* New translations en_us.yaml (Danish)

* New translations en_us.yaml (German)

* New translations en_us.yaml (Italian)

* New translations en_us.yaml (Japanese)

* New translations en_us.yaml (Korean)

* New translations en_us.yaml (Polish)

* New translations en_us.yaml (Portuguese)

* New translations en_us.yaml (Russian)

* New translations en_us.yaml (Slovak)

* New translations en_us.yaml (Turkish)

* New translations en_us.yaml (Ukrainian)

* New translations en_us.yaml (Chinese Simplified)

* New translations en_us.yaml (Chinese Traditional)

* New translations en_us.yaml (Vietnamese)

* New translations en_us.yaml (Indonesian)

* New translations en_us.yaml (Persian)

* New translations en_us.yaml (Welsh)

* New translations en_us.yaml (French)

* New translations en_us.yaml (Spanish)

* New translations en_us.yaml (Czech)

* New translations en_us.yaml (Danish)

* New translations en_us.yaml (German)

* New translations en_us.yaml (Italian)

* New translations en_us.yaml (Japanese)

* New translations en_us.yaml (Korean)

* New translations en_us.yaml (Polish)

* New translations en_us.yaml (Portuguese)

* New translations en_us.yaml (Russian)

* New translations en_us.yaml (Slovak)

* New translations en_us.yaml (Turkish)

* New translations en_us.yaml (Ukrainian)

* New translations en_us.yaml (Chinese Simplified)

* New translations en_us.yaml (Chinese Traditional)

* New translations en_us.yaml (Vietnamese)

* New translations en_us.yaml (Indonesian)

* New translations en_us.yaml (Persian)

* New translations en_us.yaml (Welsh)

* New translations en_us.yaml (French)

* New translations en_us.yaml (Spanish)

* New translations en_us.yaml (Czech)

* New translations en_us.yaml (Danish)

* New translations en_us.yaml (German)

* New translations en_us.yaml (Italian)

* New translations en_us.yaml (Japanese)

* New translations en_us.yaml (Korean)

* New translations en_us.yaml (Polish)

* New translations en_us.yaml (Portuguese)

* New translations en_us.yaml (Russian)

* New translations en_us.yaml (Slovak)

* New translations en_us.yaml (Turkish)

* New translations en_us.yaml (Ukrainian)

* New translations en_us.yaml (Chinese Simplified)

* New translations en_us.yaml (Chinese Traditional)

* New translations en_us.yaml (Vietnamese)

* New translations en_us.yaml (Indonesian)

* New translations en_us.yaml (Persian)

* New translations en_us.yaml (Welsh)

* New translations en_us.yaml (German)

* New translations en_us.yaml (German)

* New translations en_us.yaml (French)

* New translations en_us.yaml (Spanish)

* New translations en_us.yaml (Czech)

* New translations en_us.yaml (Danish)

* New translations en_us.yaml (Italian)

* New translations en_us.yaml (Japanese)

* New translations en_us.yaml (Korean)

* New translations en_us.yaml (Polish)

* New translations en_us.yaml (Portuguese)

* New translations en_us.yaml (Russian)

* New translations en_us.yaml (Slovak)

* New translations en_us.yaml (Turkish)

* New translations en_us.yaml (Ukrainian)

* New translations en_us.yaml (Chinese Simplified)

* New translations en_us.yaml (Chinese Traditional)

* New translations en_us.yaml (Vietnamese)

* New translations en_us.yaml (Indonesian)

* New translations en_us.yaml (Persian)

* New translations en_us.yaml (Welsh)
2023-12-14 17:43:36 +08:00
LinkinStars 3f696b63d6 docs(README): upgrade 1.2.1 2023-12-14 15:10:19 +08:00
LinkinStars 82fdfc7763 Release/1.2.1 (#678)
Build Binary For Release / build-goreleaser (push) Has been cancelled
Build Docker Image For Release / build (push) Has been cancelled
Co-authored-by: shuai <lishuailing@sifou.com>
Co-authored-by: kelvinkuo <kelvinkuo224@gmail.com>
Co-authored-by: hgaol <dhangao@hotmail.com>
Co-authored-by: sy-records <52o@qq52o.cn>
v1.2.1-RC1 v1.2.1
2023-12-14 15:07:58 +08:00
Han Gao a00f660411 fix: can't show tag description in tag edit page (#664)
fix #637 .
2023-11-30 14:42:09 +08:00
LinkinStars 03b5950d71 docs(image): rename all docker image name to apache/answer 2023-11-29 17:21:19 +08:00
lufei 7aa16f245b optimize code 2023-11-29 16:44:08 +08:00
sy-records 9dc0d566cc fix by code review 2023-11-29 16:44:08 +08:00
sy-records 3e76a0368f fix: permalink error on some pages 2023-11-29 16:44:08 +08:00
LinkinStars 1a76d0aa67 ci(github): add docker image github action 2023-11-29 15:14:18 +08:00
Fen b01717c49e docs: update link 2023-11-28 15:42:04 +08:00
shuai 3eeb289aa0 fix: google snapshots error #649 2023-11-27 15:24:05 +08:00
sy-records 0267f4bd69 fix: canonical link error 2023-11-22 16:26:44 +08:00
Lu Fei 2cf77adbb5 fix: license header breaks helm chart (#591)
This fixes #590.
2023-11-22 15:44:23 +08:00
Lu Fei 13b6fa2157 fix(sitemap): move asf header after xmlheader (#633)
This fixes #631.
2023-11-22 15:14:20 +08:00
LinkinStars c1cd2bbadd ci(github): remove GOPROXY for github action 2023-11-17 20:02:11 +08:00
LinkinStars e11aa93c14 ci(github): rename the secret name 2023-11-17 18:53:55 +08:00
LinkinStars 58dadefc99 ci(github): update docker login action version and config username 2023-11-17 16:42:59 +08:00
LinkinStars 84ef7d0e55 ci(asf): change the check-asf-header script to docker command via hawkeye-native 2023-11-17 15:54:27 +08:00
LinkinStars 274eaf29cf ci(github): update docker user and token secrets 2023-11-17 15:54:27 +08:00
LinkinStars fd6808b7ea ci(lic): add excludes for some files 2023-11-17 15:54:27 +08:00
LinkinStars 47b1366b13 docs(README): add build from source description 2023-11-17 10:58:44 +08:00
LinkinStars ff82298416 docs(README): update the call of this project Apache Answer instead of Answer #630 2023-11-17 10:58:44 +08:00
LinkinStars 8a3b19fd32 docs(SECURITY): remove SECURITY.md to fix #627
Build Binary For Release / build-goreleaser (push) Has been cancelled
Build Docker Image For Release / build (push) Has been cancelled
v1.2.0 v1.2.0-RC1
2023-11-15 17:35:52 +08:00
LinkinStars a72ebc5262 Add dependencies license for release binary (#610)
The files that in the `docs/release` will be pack into binary release
zip.

- [x] put all the dependency licenses into `docs/release/licenses`.
- [x] add LICENSE for release binary. (We need to check this format
whether meet the requirements or not.)
- [x] add NOTICE for release binary.

---------

Co-authored-by: tison <wander4096@gmail.com>
Co-authored-by: shuai <lishuailing@sifou.com>
2023-11-15 15:17:11 +08:00
Xia Lei fa3255ad20 fix(i18n): fix time format in de-DE (#622)
Fix time format problem in **de-DE**
2023-11-14 18:32:15 +08:00
Yvan Zhu d83d92c11f fix: 🐛 link (#604)
use `Link` instead of `<a>` tag to prevent wrong link in this situation

www.xxx.com/answer/
2023-11-10 12:18:44 +08:00
kelvinkuo 57e93f2dec fix: issue-609 (#614)
fix #609
2023-11-10 12:16:38 +08:00
sy-records 44a724cde2 chore: use actions/checkout@v4 2023-11-09 11:52:06 +08:00
Saurabh Chatterjee aa65f7c8b5 test(repo): Change to fix repo tests for Admin and Cache
Change to fix repo tests for Admin and Cache which were broken after a recent change to  how userCacheInfo handles response for non-existent keys
2023-11-09 11:46:40 +08:00
kelvinkuo cf992eb3d9 fix:rename controller to conform convention 2023-11-09 11:39:14 +08:00
Eng Zer Jun b6f0c70874 refactor: remove redundant len and nil check
From the Go specification [1]:

  "1. For a nil slice, the number of iterations is 0."

`len` returns 0 if the slice [2]. Therefore, checking `len(v) > 0`
around a loop is unnecessary.

[1]: https://go.dev/ref/spec#For_range
[2]: https://pkg.go.dev/builtin#len

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-11-09 11:37:40 +08:00
Fen e6a9dc91d6 disable GitHub discussion feature (#606) 2023-11-02 14:28:22 +08:00
Fen 42a98b0865 fix: typo (#605) 2023-11-02 10:46:03 +08:00
Lu Fei bf556fb73d fix: typo (#577)
close #576
2023-11-01 15:01:04 +08:00