Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
179 commits
Select commit Hold shift + click to select a range
5af6935
perf: optimize tag has new tag check
sosyz Oct 26, 2024
2e6eafb
fix: add status filter when update tag rel
sosyz Oct 27, 2024
7c677f3
fix: wrong status when enable tag rel
sosyz Oct 27, 2024
84e08c5
fix: resolve 404 error on Tags static page
sy-records Oct 28, 2024
bf4de72
feat: update template files
shuashuai Oct 29, 2024
2bff049
fix: display timezone on Dashboard when set to UTC
sy-records Oct 28, 2024
795f56f
Merge branch 'main' into dev
shuashuai Nov 6, 2024
8283c01
fix: update useRenderHtmlPlugin to target specific HTML element
robinv8 Nov 13, 2024
5a2b2a5
fix: Tag summary display is not as expected on tag detail page
sy-records Nov 11, 2024
d40820f
refactor(gomock): update gomock dependence and docs
LinkinStars Nov 14, 2024
c8336de
feat(file): update the max image size
LinkinStars Nov 14, 2024
8005ec8
fix(review): reject the review when delete question
LinkinStars Nov 14, 2024
d23ac6e
fix: Markdown parsing without incrementing ordered list numbers
sy-records Nov 14, 2024
dfa22f9
feat: actions add toast tips
shuashuai Nov 14, 2024
f165d3d
perf: add note to email body
sosyz Nov 14, 2024
6049b5e
feat: Add key metrics to the dashboard
sy-records Nov 14, 2024
c6b45f7
Merge branch 'dev' into feat/1.4.2/tag
LinkinStars Nov 15, 2024
c39fd89
fix(search): fix the wrong offset when searching
LinkinStars Nov 18, 2024
5cbd190
feat(question): add linked count feature to question
LinkinStars Nov 19, 2024
5866197
feat(question): sort questions by update time for frequent tab
LinkinStars Nov 19, 2024
932a336
feat(upload): add support for file attachments and enhance image upload
LinkinStars Nov 21, 2024
ab36105
feat: The editor has added support for uploading attachments, and the…
shuashuai Nov 22, 2024
3a795b2
Merge branch 'feat/1.4.2/ui' into test
shuashuai Nov 22, 2024
ab30cdf
fix: Add file upload error handling
shuashuai Nov 22, 2024
85f792f
Merge branch 'feat/1.4.2/ui' into test
shuashuai Nov 22, 2024
8616862
feat(upload): add support for file attachments and enhance image upload
LinkinStars Nov 21, 2024
d99bfcc
Merge branch 'feat/1.4.2/file' into test
LinkinStars Nov 22, 2024
0569ea9
fix: length error
shuashuai Nov 22, 2024
7fefc67
Merge branch 'feat/1.4.2/ui' into test
shuashuai Nov 22, 2024
a26aae6
fix: Optimize the mobile style of QueryGroup component
shuashuai Nov 25, 2024
3fd3e6b
fix: Optimize the mobile style of QueryGroup component dropdown btns
shuashuai Nov 25, 2024
86a3da6
fix: The pre tag sets the maximum height #1168
shuashuai Nov 25, 2024
57b0d0e
test: fix TestGetAvatarURL
Bot-wxt1221 Nov 25, 2024
e97796e
feat(storage): add upload file condition to plugin upload
LinkinStars Nov 26, 2024
ce0ec4b
feat(user): add top questions and answers to user homepage
LinkinStars Nov 29, 2024
a63078e
Merge branch 'feat/1.4.2/seo' into test
LinkinStars Nov 29, 2024
e7672c1
fix: administrator add user failure
sy-records Nov 29, 2024
2770ffa
fix: Attachment accept type adjustment, editor plug-in insertion posi…
shuashuai Dec 3, 2024
7147b4a
refactor: remove unused heading options and clean up icon styles
robinv8 Dec 3, 2024
3e92945
refactor(i18n): update formatting instructions to mention post IDs
robinv8 Dec 3, 2024
c532114
feat(file): implement file download functionality
LinkinStars Dec 3, 2024
0d41ee9
refactor(uploader): improve file upload and download functionality su…
LinkinStars Dec 4, 2024
21655f6
feat(upload): add support for attachment uploads and improve image ha…
LinkinStars Dec 4, 2024
2cc7b33
feat: Add delete external user login info by user ID
sy-records Dec 6, 2024
1aed48a
Merge branch 'dev' into test
LinkinStars Dec 9, 2024
0e9d36f
Merge branch 'main' into dev
LinkinStars Dec 9, 2024
dcb7266
Merge branch 'dev' into test
LinkinStars Dec 9, 2024
7c86a45
chore: Upgrade pnpm to 9.7, update pnpm-lock file #1198
shuashuai Dec 11, 2024
6cf124b
chore: Upgrade pnpm to 9.7
shuashuai Dec 11, 2024
6f87e4a
fix: the list title of link issues, host issues and related issues sh…
shuashuai Dec 11, 2024
b31d644
fix: Fix render comments with line breaks
sy-records Dec 10, 2024
6203b5b
fix: use TrimSpace
sy-records Dec 11, 2024
afff5cb
fix: view icon replacement
shuashuai Dec 12, 2024
30534ad
feat: Check HTML comments in question, answer or comments
sy-records Dec 10, 2024
e2c8d36
style: question list style optimization
shuashuai Dec 12, 2024
58f2191
fix: Top list UI optimization
shuashuai Dec 16, 2024
0d4b178
fix: upgeade dependences
shuashuai Dec 20, 2024
f4de984
fix: add preivew model to question list page
shuashuai Dec 23, 2024
1baa52c
Merge branch 'feat/1.4.3/ui' into test
shuashuai Dec 23, 2024
cc3d071
fix: add apache licence header
shuashuai Dec 23, 2024
acecda7
Merge branch 'feat/1.4.3/ui' into test
shuashuai Dec 23, 2024
c32f99b
fix: translate list view model
shuashuai Dec 23, 2024
86cf384
Merge branch 'feat/1.4.3/ui' into test
shuashuai Dec 23, 2024
1dd7a8d
Merge branch 'dev' into feat/1.4.3/ui
shuashuai Dec 25, 2024
4a74eed
feat: Add permanently delete
sy-records Dec 18, 2024
15cbfa8
fix: Optimize user delete
sy-records Dec 19, 2024
d91e3c2
fix: get user info error
sy-records Dec 20, 2024
8183291
fix: Apply code from review
sy-records Dec 24, 2024
57b153c
feat(user): add FilterEmptyString function and apply to user ID filte…
LinkinStars Dec 25, 2024
0df7bec
fix: parse user Accept-Language
sy-records Dec 24, 2024
be8098a
Merge branch 'dev' into test
LinkinStars Dec 25, 2024
7a15e24
feat: add a copy button to the code block #1211
shuashuai Dec 27, 2024
9d829ff
fix: conflict
shuashuai Dec 27, 2024
31f7cfc
fix: i18n files
shuashuai Dec 30, 2024
79454f3
fix: typo
sy-records Dec 30, 2024
96efad2
feat: Add "Privacy Policy" and "Terms of Service" link in footer (#1217)
Mindslayer001 Dec 31, 2024
0f69467
feat: remove user config
sy-records Dec 30, 2024
d328ea4
fix: rename DeleteUserBadge to DeleteUserBadgeAward
sy-records Jan 2, 2025
db7e080
fix: typo
sy-records Dec 30, 2024
7ced640
feat: Add "Privacy Policy" and "Terms of Service" link in footer (#1217)
Mindslayer001 Dec 31, 2024
d9bd3a2
feat: remove user config
sy-records Dec 30, 2024
ac8d027
fix: rename DeleteUserBadge to DeleteUserBadgeAward
sy-records Jan 2, 2025
61fef3b
fix: add log var as format and adjust sum to sum int
lhui Jan 4, 2025
8a2a879
fix: complete missing tags in translation files
shuashuai Jan 6, 2025
9f9527d
fix: fixed some chinese translations
shuashuai Jan 6, 2025
f22ab85
fix: Add Disallow /swagger/* in robots.txt by default
sy-records Jan 7, 2025
208a1f8
fix: typo
sy-records Jan 7, 2025
47c6662
Merge remote-tracking branch 'origin/main' into dev
LinkinStars Jan 7, 2025
c450e7c
Merge branch 'dev' into test
LinkinStars Jan 7, 2025
16da18d
refactor(user_admin): reorganize import statements for better readabi…
LinkinStars Jan 7, 2025
0285a47
fix: missing ApiKeyAuth configuration in Swagger
sy-records Jan 9, 2025
211f16e
fix: Searching for tags after paging brings up 404
sy-records Jan 9, 2025
5cffab8
feat(service): implement file cleanup and deletion functionality
LinkinStars Jan 10, 2025
dd4b3e8
Merge branch 'feat/1.4.5/file' into test
LinkinStars Jan 10, 2025
6d84720
pass pointer instead of slice to Find(...) method
sivukhin Jan 12, 2025
a5d826c
feat(file): add ENV for skip the file access verification
LinkinStars Jan 13, 2025
dae16c6
Merge remote-tracking branch 'origin/feat/1.4.5/file' into test
LinkinStars Jan 13, 2025
8a33548
Merge branch 'dev' into test
LinkinStars Jan 13, 2025
3c878de
docs(disclaimer): remove disclaimer
LinkinStars Jan 13, 2025
36faad1
build(release): remove DISCLAIMER file from release assets
LinkinStars Jan 13, 2025
774f4b3
chore: remove excess judgment code
xuthus5 Jan 13, 2025
581f73c
chore: instance rand.Seed to rand.Source (#1233)
xuthus5 Jan 16, 2025
3811b43
Merge branch 'dev' into test
LinkinStars Jan 16, 2025
013df36
feat: add password hide show logic for init server
lhui Jan 15, 2025
f8bef82
refactor: refactor show password logic in init answer app
lhui Jan 20, 2025
4af744e
Remove fixed width Share Popup
Jan 27, 2025
ea4ce72
Answer-1237: Add dependent command 'install-ui-packages' to 'make ui'…
sahinakyol Jan 29, 2025
b10a649
Answer-1237: Add missing old_pass object message to i18n
sahinakyol Jan 29, 2025
e9412a4
Answer-1237: Remove dependent command 'install-ui-packages' to 'make …
sahinakyol Feb 10, 2025
e0957c0
Revert "perf: optimize tag has new tag check"
sosyz Feb 11, 2025
f1c6581
Revert "refactor: refactor show password logic in init answer app"
shuashuai Feb 13, 2025
4232c46
Revert "feat: add password hide show logic for init server"
shuashuai Feb 13, 2025
1dfa03b
fix: the list page introduction adopts the way of rendering rich text…
shuashuai Feb 13, 2025
fb152cb
fix: optimize copy button style
shuashuai Feb 13, 2025
f6fdc5f
Merge branch 'dev' into test
LinkinStars Feb 14, 2025
2a62dd2
fix: preview mode icon toggle
shuashuai Feb 14, 2025
adab096
fix: avatar use rounded-circle class
shuashuai Feb 14, 2025
204ee1e
build(ci): update action upload-artifact to v4
LinkinStars Feb 6, 2025
48d3770
chore: update issue template (#1248)
fenbox Feb 14, 2025
ae13d68
fix: i18n key of ready_desc
gaoxiao6331 Feb 16, 2025
ef5cd6e
fix: TagSelector component event handling optimization
shuashuai Feb 18, 2025
85fae04
feat: Add confirm password field in the install form
Feb 17, 2025
15a9be6
feat(question): add avatar field to question operator
LinkinStars Feb 19, 2025
607f1d7
feat(question): add avatar field to question operator
LinkinStars Feb 19, 2025
b2eb768
feat(migrations): update site info initialization
LinkinStars Feb 19, 2025
2d13211
Merge branch 'feat/1.4.5/file' into test
LinkinStars Feb 19, 2025
d088d37
fix: pinned styles adjusted, hover effect added to list, footer spac…
shuashuai Feb 24, 2025
36105fb
fix: adjust the label nested structure of the problem list
shuashuai Feb 24, 2025
aabce87
fix initSiteInfo
Feb 24, 2025
5e5f2b3
build(ci): update action upload-artifact to v4
LinkinStars Feb 6, 2025
aed17ac
chore: update issue template (#1248)
fenbox Feb 14, 2025
0f47283
fix: i18n key of ready_desc
gaoxiao6331 Feb 16, 2025
0d4d99e
feat: Add confirm password field in the install form
Feb 17, 2025
39e0f2e
fix initSiteInfo
Feb 24, 2025
c239d87
fix: fail to switch language
gaoxiao6331 Feb 23, 2025
d8582ec
fix(install): use loggedUserInfoStore directly
gaoxiao6331 Feb 24, 2025
01238d5
feat(build): add plugin vendor directory management function
mylukin Feb 20, 2025
4be3a68
fix: click area for pinned questions
shuashuai Feb 26, 2025
d114147
fix: pinned qeustions style optimization
shuashuai Feb 26, 2025
4da158c
fix: quesiotn list add pointer class
shuashuai Feb 27, 2025
e470b63
feat(server): add API base URL configuration and update routes
LinkinStars Feb 28, 2025
d1eac6e
Merge remote-tracking branch 'origin/feat/1.4.5/file' into test
LinkinStars Feb 28, 2025
12275b6
fix: Fix missing QuestionOrderCondFrequent
sy-records Mar 3, 2025
de58e52
fix(siteinfo): fix Manifest: property 'icons' ignored, type array exp…
LinkinStars Mar 4, 2025
3acc19c
Merge remote-tracking branch 'origin/feat/1.4.5/file' into test
LinkinStars Mar 4, 2025
0f7deb6
fix: Limit unanswered question query to available questions
sy-records Mar 3, 2025
ba9f233
fix: Adjust question status filtering based on order condition
sy-records Mar 4, 2025
9578aba
fix: add setup-lint command for ui contents #1219
shuashuai Mar 7, 2025
4b9fd39
refactor: simplify operation type assignment logic in question handling
sy-records Mar 4, 2025
9869c0b
fix: delete unused commands for ui
shuashuai Mar 7, 2025
3a1a39c
fix: delete pre-commit comamnds for ui
shuashuai Mar 7, 2025
de27cad
fix: gitignore add husky files
shuashuai Mar 7, 2025
5426933
feat(siteinfo): add external content display configuration
LinkinStars Mar 11, 2025
5586940
Merge remote-tracking branch 'origin/feat/1.4.5/file' into test
LinkinStars Mar 11, 2025
85903cf
feat: Ask whether to show external resources before loading them
shuashuai Mar 13, 2025
6982a88
Merge branch 'external-img' into test
shuashuai Mar 13, 2025
ed2a5ba
feat: add footnote extension to markdown converter
sy-records Mar 13, 2025
597f617
fix: Optimize external resource image blocking
shuashuai Mar 14, 2025
82a230e
Merge branch 'external-img' into test
shuashuai Mar 14, 2025
c40fe02
Merge branch 'setup-eslint' into test
shuashuai Mar 14, 2025
354c8e5
fix: Optimize external resource image blocking
shuashuai Mar 14, 2025
d24027f
Support PostgreSQL connection with SSL #1243 (#1244)
sapienza88 Mar 14, 2025
849ad8d
Merge remote-tracking branch 'origin/dev' into test
LinkinStars Mar 14, 2025
82b1211
fix: delete log
shuashuai Mar 14, 2025
3972d48
Merge branch 'test' of github.com:apache/answer into test
shuashuai Mar 14, 2025
c757639
refactor(install): simplify SSL configuration for PostgreSQL
LinkinStars Mar 14, 2025
ef982ee
Merge remote-tracking branch 'origin/dev' into test
LinkinStars Mar 14, 2025
fe12e11
fix: Adjustment of the toast component's position from the top
shuashuai Mar 17, 2025
18aef3a
fix: update admin name validation
sy-records Mar 14, 2025
cd24c91
fix: update admin name validation and username regex
sy-records Mar 14, 2025
b1034ce
fix: update i18n files msg
shuashuai Mar 17, 2025
0168309
fix: resolve conflict
shuashuai Mar 17, 2025
e61e7f1
fix: adjustmet toast sotres style
shuashuai Mar 17, 2025
4679589
Use DeShortID on questionID for UpdateQuestionLink() (#1288)
davispuh Mar 17, 2025
b56c1d2
Merge remote-tracking branch 'origin/dev' into test
LinkinStars Mar 17, 2025
9d6b42d
docs(ui): add Apache license header to setup-eslint.js script
LinkinStars Mar 17, 2025
230e42e
fix: change "Twitter" to "X" in share dropdown (#1286)
miicchelle Mar 17, 2025
fbc4a07
Merge remote-tracking branch 'origin/dev' into test
LinkinStars Mar 17, 2025
0985e4f
docs(Makefile): upgrade version to 1.4.5
LinkinStars Mar 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Bug report
about: Report an issue to help the project improve.
title: ''
labels: bug
type: 'Bug'
assignees: ''

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@

blank_issues_enabled: true
contact_links:
- name: Support
url: https://answer.apache.org/community
about: Contact us if you have any questions while using.
- name: Questions & Discussions
url: https://meta.answer.dev
about: If you have any questions while using.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/enhancement_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Enhancement request
about: Suggest an enhancement for this project. Improve an existing feature.
title: ''
labels: enhancement
type: 'Feature'
assignees: ''

---
Expand Down
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
name: Feature request
about: Suggest an idea or possible new feature for this project.
title: ''
labels: feature
labels: new-feature
type: 'Feature'
assignees: ''

---
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-binary-for-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20.18.1

- name: Node Build
run: make install-ui-packages ui
Expand All @@ -53,7 +53,7 @@ jobs:
args: release --clean --skip=validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: answer
path: ./dist/*
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ vendor/
/new_answer

dist/

# Lint setup generated file
.husky/
2 changes: 0 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ archives:
dst: NOTICE
- src: "docs/release/licenses/*"
dst: licenses/
- src: "DISCLAIMER"
dst: DISCLAIMER
wrap_in_directory: true
checksum:
name_template: 'checksums.txt'
Expand Down
10 changes: 0 additions & 10 deletions DISCLAIMER

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ARG CGO_EXTRA_CFLAGS

COPY . ${BUILD_DIR}
WORKDIR ${BUILD_DIR}
RUN apk --no-cache add build-base git bash nodejs npm && npm install -g pnpm@8.9.2 \
RUN apk --no-cache add build-base git bash nodejs npm && npm install -g pnpm@9.7.0 \
&& make clean build

RUN chmod 755 answer
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: build clean ui

VERSION=1.4.2
VERSION=1.4.5
BIN=answer
DIR_SRC=./cmd/answer
DOCKER_CMD=docker
Expand Down Expand Up @@ -45,7 +45,7 @@ clean:

install-ui-packages:
@corepack enable
@corepack prepare pnpm@8.9.2 --activate
@corepack prepare pnpm@9.7.0 --activate

ui:
@cd ui && pnpm pre-install && pnpm build && cd -
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ You can also check out the [plugins here](https://answer.apache.org/plugins).
### Prerequisites

- Golang >= 1.22
- Node.js >= 16.17
- pnpm >= 8
- Node.js >= 20
- pnpm >= 9
- [mockgen](https://github.com/uber-go/mock?tab=readme-ov-file#installation) >= 1.6.0
- [wire](https://github.com/google/wire/) >= 0.5.0

Expand Down
2 changes: 1 addition & 1 deletion cmd/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func init() {

configCmd.Flags().StringSliceVarP(&configFields, "with", "w", []string{}, "the fields that need to be set to the default value, eg: -w allow_password_login")

i18nCmd.Flags().StringVarP(&i18nSourcePath, "source", "s", "", "i18n source path, eg: -f ./i18n/source")
i18nCmd.Flags().StringVarP(&i18nSourcePath, "source", "s", "", "i18n source path, eg: -s ./i18n/source")

i18nCmd.Flags().StringVarP(&i18nTargetPath, "target", "t", "", "i18n target path, eg: -t ./i18n/target")

Expand Down
16 changes: 10 additions & 6 deletions cmd/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions configs/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ swaggerui:
address: ':80'
service_config:
upload_path: "/data/uploads"
clean_up_uploads: true
clean_orphan_uploads_period_hours: 48
purge_deleted_files_period_days: 30
ui:
public_url: '/'
api_url: '/'
Expand Down
Loading