This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
from c2ad8c64 fix: delete unused log
new 5f468c6f perf: optimize tag has new tag check
new ad638712 fix: add status filter when update tag rel
new 5546bb55 fix: wrong status when enable tag rel
new 68570d72 fix: resolve 404 error on Tags static page
new bb739414 feat: update template files
new 6fc8a6e9 fix: display timezone on Dashboard when set to UTC
new fcecc07f fix: update useRenderHtmlPlugin to target specific HTML
element
new fdd3b4db fix: Tag summary display is not as expected on tag detail page
new 1fe3b7d8 refactor(gomock): update gomock dependence and docs
new f29b43b9 feat(file): update the max image size
new e7ee4ea9 fix(review): reject the review when delete question
new ad956d68 fix: Markdown parsing without incrementing ordered list
numbers
new 241d6f4c feat: actions add toast tips
new 9df9f7a1 perf: add note to email body
new 98eceff5 feat: Add key metrics to the dashboard
new 5060e087 fix(search): fix the wrong offset when searching
new 655a7e48 feat(question): add linked count feature to question
new b9fb7589 feat(question): sort questions by update time for frequent tab
new a955ba06 feat(upload): add support for file attachments and enhance
image upload
new bc20a71a feat: The editor has added support for uploading attachments,
and the management background has added file upload configuration information.
new 4831f6ef fix: Add file upload error handling
new aac2370f feat(upload): add support for file attachments and enhance
image upload
new 4e792ea4 fix: length error
new 7b4044c1 fix: Optimize the mobile style of QueryGroup component
new 4f01ccd5 fix: Optimize the mobile style of QueryGroup component
dropdown btns
new 1ea05660 fix: The pre tag sets the maximum height #1168
new 73eb2a11 test: fix TestGetAvatarURL
new 43a474b4 feat(storage): add upload file condition to plugin upload
new b558de8a feat(user): add top questions and answers to user homepage
new e41a8522 fix: administrator add user failure
new 565ee3cc fix: Attachment accept type adjustment, editor plug-in
insertion position added conditional restrictions
new 9fcf1836 refactor: remove unused heading options and clean up icon
styles
new 7f776470 refactor(i18n): update formatting instructions to mention
post IDs
new 0ad4defb feat(file): implement file download functionality
new 7a8cc6a5 refactor(uploader): improve file upload and download
functionality subpath constants - Adjust file download
new 9c266c5f feat(upload): add support for attachment uploads and improve
image handling
new a4752957 feat: Add delete external user login info by user ID
new f6d517b9 docs(Makefile): upgrade version to 1.4.2
The 38 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
Makefile | 13 +-
README.md | 14 +-
cmd/main.go | 2 +-
cmd/wire_gen.go | 4 +-
docs/docs.go | 51 ++++++-
...SE-golang-mock.txt => LICENSE-uber-go-mock.txt} | 0
docs/swagger.json | 51 ++++++-
docs/swagger.yaml | 33 ++++-
go.mod | 2 +-
go.sum | 11 +-
i18n/en_US.yaml | 58 ++++++--
i18n/zh_CN.yaml | 3 +
internal/base/constant/site_info.go | 6 +
internal/base/constant/{constant.go => upload.go} | 13 +-
internal/cli/build.go | 2 +-
internal/controller/template_controller.go | 20 ++-
internal/controller/upload_controller.go | 11 +-
internal/entity/question_entity.go | 1 +
internal/migrations/init.go | 6 +-
internal/migrations/migrations.go | 1 +
internal/migrations/{v18.go => v24.go} | 50 +++----
internal/repo/question/question_repo.go | 63 ++++++++
internal/repo/repo_test/tag_rel_repo_test.go | 2 +-
internal/repo/review/review_repo.go | 10 ++
internal/repo/search_common/search_repo.go | 15 +-
internal/repo/tag/tag_rel_repo.go | 26 +++-
.../user_external_login_repo.go | 10 ++
internal/router/static_router.go | 19 ++-
internal/schema/backyard_user_schema.go | 2 +-
internal/schema/dashboard_schema.go | 4 +
internal/schema/question_schema.go | 4 +-
internal/schema/siteinfo_schema.go | 36 ++++-
internal/service/content/question_service.go | 12 ++
internal/service/dashboard/dashboard_service.go | 29 +++-
internal/service/mock/siteinfo_repo_mock.go | 41 +++---
internal/service/question_common/question.go | 25 ++++
internal/service/review/review_service.go | 1 +
.../siteinfo_common/siteinfo_service_test.go | 2 +-
internal/service/tag_common/tag_common.go | 35 +++--
internal/service/uploader/upload.go | 142 ++++++++++++++----
internal/service/user_admin/user_backyard.go | 11 ++
.../user_external_login_service.go | 1 +
pkg/checker/file_type.go | 53 +++----
pkg/converter/markdown.go | 1 +
pkg/gravatar/gravatar_test.go | 2 +-
plugin/storage.go | 24 ++-
ui/src/common/interface.ts | 14 +-
ui/src/components/Editor/ToolBars/file.tsx | 135 +++++++++++++++++
ui/src/components/Editor/ToolBars/heading.tsx | 7 +-
ui/src/components/Editor/ToolBars/image.tsx | 118 +++++++++++----
ui/src/components/Editor/ToolBars/index.ts | 2 +
ui/src/components/Editor/index.scss | 75 ----------
ui/src/components/Editor/index.tsx | 2 +
ui/src/components/Editor/toolItem.tsx | 1 +
ui/src/components/PluginRender/index.tsx | 8 +-
.../Timeline => components/QueryGroup}/index.scss | 21 ++-
ui/src/components/QueryGroup/index.tsx | 152 ++++++++++---------
ui/src/components/QuestionList/index.tsx | 5 +-
ui/src/index.scss | 1 +
.../Admin/Answers/components/Action/index.tsx | 9 ++
ui/src/pages/Admin/Badges/index.tsx | 9 ++
.../Dashboard/components/HealthStatus/index.tsx | 5 +-
.../Dashboard/components/Statistics/index.tsx | 22 +++
.../Admin/Questions/components/Action/index.tsx | 20 ++-
.../pages/Admin/Users/components/Action/index.tsx | 13 +-
ui/src/pages/Admin/Users/index.tsx | 6 +-
ui/src/pages/Admin/Write/index.tsx | 161 ++++++++++++++++++++-
.../Questions/Detail/components/Answer/index.tsx | 2 +-
ui/src/pages/Tags/Detail/index.tsx | 36 +++--
ui/src/stores/writeSetting.ts | 5 +
ui/src/utils/guard.ts | 7 +-
ui/template/header.html | 10 +-
ui/template/homepage.html | 125 ++++++++++------
ui/template/question-detail.html | 40 ++---
ui/template/question.html | 46 +++---
ui/template/sort-btns.html | 39 +++++
ui/template/tag-detail.html | 87 +++++------
ui/template/tags.html | 86 ++++++-----
78 files changed, 1583 insertions(+), 608 deletions(-)
rename docs/release/licenses/{LICENSE-golang-mock.txt =>
LICENSE-uber-go-mock.txt} (100%)
copy internal/base/constant/{constant.go => upload.go} (83%)
copy internal/migrations/{v18.go => v24.go} (55%)
create mode 100644 ui/src/components/Editor/ToolBars/file.tsx
copy ui/src/{pages/Timeline => components/QueryGroup}/index.scss (85%)
create mode 100644 ui/template/sort-btns.html