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/answer.git
from bd13ef3f Update config.yml
add 5af69352 perf: optimize tag has new tag check
add 2e6eafbb fix: add status filter when update tag rel
add 7c677f31 fix: wrong status when enable tag rel
add 84e08c56 fix: resolve 404 error on Tags static page
add bf4de722 feat: update template files
add 2bff049d fix: display timezone on Dashboard when set to UTC
add 795f56f5 Merge branch 'main' into dev
add 8283c01c fix: update useRenderHtmlPlugin to target specific HTML
element
add 5a2b2a52 fix: Tag summary display is not as expected on tag detail page
add d40820fd refactor(gomock): update gomock dependence and docs
add c8336de7 feat(file): update the max image size
add 8005ec88 fix(review): reject the review when delete question
add d23ac6e9 fix: Markdown parsing without incrementing ordered list
numbers
add f165d3dd perf: add note to email body
add 6049b5e8 feat: Add key metrics to the dashboard
add c6b45f79 Merge branch 'dev' into feat/1.4.2/tag
add c39fd896 fix(search): fix the wrong offset when searching
add 5cbd1906 feat(question): add linked count feature to question
add 5866197c feat(question): sort questions by update time for frequent tab
add dfa22f94 feat: actions add toast tips
add ab36105c feat: The editor has added support for uploading attachments,
and the management background has added file upload configuration information.
add 3a795b24 Merge branch 'feat/1.4.2/ui' into test
add ab30cdfb fix: Add file upload error handling
add 85f792ff Merge branch 'feat/1.4.2/ui' into test
add 932a3366 feat(upload): add support for file attachments and enhance
image upload
add 8616862f feat(upload): add support for file attachments and enhance
image upload
add d99bfcc3 Merge branch 'feat/1.4.2/file' into test
add 0569ea9e fix: length error
add 7fefc674 Merge branch 'feat/1.4.2/ui' into test
add a26aae63 fix: Optimize the mobile style of QueryGroup component
add 3fd3e6ba fix: Optimize the mobile style of QueryGroup component
dropdown btns
add 86a3da69 fix: The pre tag sets the maximum height #1168
add e97796e4 feat(storage): add upload file condition to plugin upload
add ce0ec4b8 feat(user): add top questions and answers to user homepage
add a63078e8 Merge branch 'feat/1.4.2/seo' into test
add 2770ffa9 fix: Attachment accept type adjustment, editor plug-in
insertion position added conditional restrictions
add 7147b4a3 refactor: remove unused heading options and clean up icon
styles
add 3e929454 refactor(i18n): update formatting instructions to mention
post IDs
add c5321149 feat(file): implement file download functionality
add 0d41ee90 refactor(uploader): improve file upload and download
functionality subpath constants - Adjust file download
add 21655f68 feat(upload): add support for attachment uploads and improve
image handling
add 57b0d0e8 test: fix TestGetAvatarURL
add e7672c10 fix: administrator add user failure
add 2cc7b333 feat: Add delete external user login info by user ID
add 1aed48a0 Merge branch 'dev' into test
add 0e9d36f6 Merge branch 'main' into dev
add dcb7266d Merge branch 'dev' into test
add 7c86a458 chore: Upgrade pnpm to 9.7, update pnpm-lock file #1198
add 6cf124b6 chore: Upgrade pnpm to 9.7
add 6f87e4aa fix: the list title of link issues, host issues and related
issues shows three lines on the left
add afff5cb0 fix: view icon replacement
add e2c8d365 style: question list style optimization
add 58f2191d fix: Top list UI optimization
add 0d4b1780 fix: upgeade dependences
add f4de9842 fix: add preivew model to question list page
add 1baa52c6 Merge branch 'feat/1.4.3/ui' into test
add cc3d0712 fix: add apache licence header
add acecda7f Merge branch 'feat/1.4.3/ui' into test
add c32f99b3 fix: translate list view model
add 86cf384b Merge branch 'feat/1.4.3/ui' into test
add b31d644b fix: Fix render comments with line breaks
add 6203b5b4 fix: use TrimSpace
add 30534ad0 feat: Check HTML comments in question, answer or comments
add 4a74eed4 feat: Add permanently delete
add 15cbfa87 fix: Optimize user delete
add d91e3c20 fix: get user info error
add 81832913 fix: Apply code from review
add 57b153c9 feat(user): add FilterEmptyString function and apply to user
ID filtering
add 0df7bec0 fix: parse user Accept-Language
add be8098a4 Merge branch 'dev' into test
add 1dd7a8d7 Merge branch 'dev' into feat/1.4.3/ui
add 7a15e24f feat: add a copy button to the code block #1211
add 9d829ff6 fix: conflict
add 31f7cfc3 fix: i18n files
add db7e0808 fix: typo
add 7ced6400 feat: Add "Privacy Policy" and "Terms of Service" link in
footer (#1217)
add d9bd3a26 feat: remove user config
add ac8d0278 fix: rename DeleteUserBadge to DeleteUserBadgeAward
add 79454f34 fix: typo
add 96efad2c feat: Add "Privacy Policy" and "Terms of Service" link in
footer (#1217)
add 0f694673 feat: remove user config
add d328ea41 fix: rename DeleteUserBadge to DeleteUserBadgeAward
add 61fef3b8 fix: add log var as format and adjust sum to sum int
add 8a2a8791 fix: complete missing tags in translation files
add 9f9527d2 fix: fixed some chinese translations
add f22ab858 fix: Add Disallow /swagger/* in robots.txt by default
add 208a1f85 fix: typo
add 47c66620 Merge remote-tracking branch 'origin/main' into dev
add c450e7cd Merge branch 'dev' into test
add 16da18d3 refactor(user_admin): reorganize import statements for better
readability
add 5cffab86 feat(service): implement file cleanup and deletion
functionality
add dd4b3e86 Merge branch 'feat/1.4.5/file' into test
add a5d826c6 feat(file): add ENV for skip the file access verification
add dae16c67 Merge remote-tracking branch 'origin/feat/1.4.5/file' into
test
add 0285a47a fix: missing ApiKeyAuth configuration in Swagger
add 211f16e1 fix: Searching for tags after paging brings up 404
add 6d847204 pass pointer instead of slice to Find(...) method
add 8a335483 Merge branch 'dev' into test
add 3c878dee docs(disclaimer): remove disclaimer
add 36faad18 build(release): remove DISCLAIMER file from release assets
add 774f4b39 chore: remove excess judgment code
add 581f73c8 chore: instance rand.Seed to rand.Source (#1233)
add 3811b43f Merge branch 'dev' into test
add 1dfa03ba fix: the list page introduction adopts the way of rendering
rich text to support the display of some special symbols
add fb152cb3 fix: optimize copy button style
add 013df362 feat: add password hide show logic for init server
add f8bef82a refactor: refactor show password logic in init answer app
add 4af744e7 Remove fixed width Share Popup
add ea4ce728 Answer-1237: Add dependent command 'install-ui-packages' to
'make ui' command
add b10a6498 Answer-1237: Add missing old_pass object message to i18n
add e9412a44 Answer-1237: Remove dependent command 'install-ui-packages'
to 'make ui' command
add e0957c0a Revert "perf: optimize tag has new tag check"
add f1c65815 Revert "refactor: refactor show password logic in init answer
app"
add 4232c464 Revert "feat: add password hide show logic for init server"
add f6fdc5f5 Merge branch 'dev' into test
add 2a62dd21 fix: preview mode icon toggle
add adab0963 fix: avatar use rounded-circle class
add ef5cd6ef fix: TagSelector component event handling optimization
add 607f1d76 feat(question): add avatar field to question operator
add 15a9be6e feat(question): add avatar field to question operator
add b2eb7689 feat(migrations): update site info initialization
add 2d132112 Merge branch 'feat/1.4.5/file' into test
add d088d37c fix: pinned styles adjusted, hover effect added to list,
footer spacing optimized
add 36105fb7 fix: adjust the label nested structure of the problem list
add 5e5f2b38 build(ci): update action upload-artifact to v4
add aed17ac5 chore: update issue template (#1248)
add 0f47283e fix: i18n key of ready_desc
add 0d4d99e3 feat: Add confirm password field in the install form
add 39e0f2e1 fix initSiteInfo
add 4be3a684 fix: click area for pinned questions
add d1141471 fix: pinned qeustions style optimization
add 4da158cf fix: quesiotn list add pointer class
add e470b63f feat(server): add API base URL configuration and update routes
add d1eac6ee Merge remote-tracking branch 'origin/feat/1.4.5/file' into
test
add de58e527 fix(siteinfo): fix Manifest: property 'icons' ignored, type
array expected.
add 3acc19c8 Merge remote-tracking branch 'origin/feat/1.4.5/file' into
test
add 54269334 feat(siteinfo): add external content display configuration
add 55869408 Merge remote-tracking branch 'origin/feat/1.4.5/file' into
test
add 85903cf2 feat: Ask whether to show external resources before loading
them
add 6982a88e Merge branch 'external-img' into test
add 597f617c fix: Optimize external resource image blocking
add 82a230e0 Merge branch 'external-img' into test
add 9578aba5 fix: add setup-lint command for ui contents #1219
add 9869c0b3 fix: delete unused commands for ui
add 3a1a39c9 fix: delete pre-commit comamnds for ui
add de27cad4 fix: gitignore add husky files
add c40fe02b Merge branch 'setup-eslint' into test
add 354c8e53 fix: Optimize external resource image blocking
add 82b1211f fix: delete log
add 204ee1ed build(ci): update action upload-artifact to v4
add 48d3770f chore: update issue template (#1248)
add ae13d687 fix: i18n key of ready_desc
add 85fae04d feat: Add confirm password field in the install form
add aabce873 fix initSiteInfo
add c239d873 fix: fail to switch language
add d8582ec5 fix(install): use loggedUserInfoStore directly
add 01238d55 feat(build): add plugin vendor directory management function
add 12275b62 fix: Fix missing QuestionOrderCondFrequent
add 0f7deb6c fix: Limit unanswered question query to available questions
add ba9f2336 fix: Adjust question status filtering based on order condition
add 4b9fd397 refactor: simplify operation type assignment logic in
question handling
add ed2a5ba8 feat: add footnote extension to markdown converter
add d24027f3 Support PostgreSQL connection with SSL #1243 (#1244)
add 849ad8df Merge remote-tracking branch 'origin/dev' into test
add 3972d488 Merge branch 'test' of github.com:apache/answer into test
add c7576398 refactor(install): simplify SSL configuration for PostgreSQL
add ef982ee3 Merge remote-tracking branch 'origin/dev' into test
add fe12e11b fix: Adjustment of the toast component's position from the top
add 18aef3aa fix: update admin name validation
add cd24c91f fix: update admin name validation and username regex
add b1034ce0 fix: update i18n files msg
add 01683095 fix: resolve conflict
add e61e7f16 fix: adjustmet toast sotres style
add 46795896 Use DeShortID on questionID for UpdateQuestionLink() (#1288)
add b56c1d26 Merge remote-tracking branch 'origin/dev' into test
add 9d6b42da docs(ui): add Apache license header to setup-eslint.js script
add 230e42ec fix: change "Twitter" to "X" in share dropdown (#1286)
add fbc4a079 Merge remote-tracking branch 'origin/dev' into test
add 0985e4f5 docs(Makefile): upgrade version to 1.4.5
new 89f0ca5a Merge branch 'release/1.4.5'
The 1 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:
.github/workflows/build-binary-for-release.yml | 2 +-
.gitignore | 3 +
Dockerfile | 2 +-
Makefile | 4 +-
README.md | 4 +-
cmd/command.go | 2 +-
cmd/wire_gen.go | 16 +-
configs/config.yaml | 3 +
docs/docs.go | 200 +-
docs/swagger.json | 200 +-
docs/swagger.yaml | 103 +-
go.mod | 2 +-
i18n/af_ZA.yaml | 4 +-
i18n/ar_SA.yaml | 4 +-
i18n/az_AZ.yaml | 4 +-
i18n/bal_BA.yaml | 4 +-
i18n/ban_ID.yaml | 4 +-
i18n/bn_BD.yaml | 4 +-
i18n/bs_BA.yaml | 4 +-
i18n/ca_ES.yaml | 4 +-
i18n/cs_CZ.yaml | 4 +-
i18n/cy_GB.yaml | 6 +-
i18n/da_DK.yaml | 4 +-
i18n/de_DE.yaml | 4 +-
i18n/el_GR.yaml | 4 +-
i18n/en_US.yaml | 58 +-
i18n/es_ES.yaml | 4 +-
i18n/fa_IR.yaml | 4 +-
i18n/fi_FI.yaml | 4 +-
i18n/fr_FR.yaml | 4 +-
i18n/he_IL.yaml | 4 +-
i18n/hi_IN.yaml | 6 +-
i18n/hu_HU.yaml | 4 +-
i18n/hy_AM.yaml | 4 +-
i18n/id_ID.yaml | 6 +-
i18n/it_IT.yaml | 6 +-
i18n/ja_JP.yaml | 4 +-
i18n/ko_KR.yaml | 4 +-
i18n/ml_IN.yaml | 6 +-
i18n/nl_NL.yaml | 4 +-
i18n/no_NO.yaml | 4 +-
i18n/pt_BR.yaml | 4 +-
i18n/pt_PT.yaml | 4 +-
i18n/ro_RO.yaml | 4 +-
i18n/ru_RU.yaml | 4 +-
i18n/sk_SK.yaml | 2 +
i18n/sq_AL.yaml | 4 +-
i18n/sr_SP.yaml | 4 +-
i18n/sv_SE.yaml | 4 +-
i18n/te_IN.yaml | 6 +-
i18n/tr_TR.yaml | 6 +-
i18n/uk_UA.yaml | 4 +-
i18n/vi_VN.yaml | 4 +-
i18n/zh_CN.yaml | 77 +-
i18n/zh_TW.yaml | 6 +-
internal/base/constant/upload.go | 1 +
internal/base/constant/user.go | 6 +
internal/base/cron/cron.go | 43 +-
internal/base/middleware/accept_language.go | 34 +-
internal/base/middleware/visit_img_auth.go | 10 +-
internal/base/reason/reason.go | 3 +
internal/base/server/config.go | 3 +-
internal/base/server/http.go | 12 +-
internal/cli/build.go | 19 +
internal/controller/answer_controller.go | 5 -
internal/controller/badge_controller.go | 5 -
internal/controller/lang_controller.go | 1 +
internal/controller/meta_controller.go | 1 -
internal/controller/question_controller.go | 3 -
internal/controller/siteinfo_controller.go | 15 +-
internal/controller/tag_controller.go | 5 +
internal/controller/template_controller.go | 11 +-
internal/controller/upload_controller.go | 9 +-
internal/controller/user_controller.go | 10 +-
internal/controller_admin/plugin_controller.go | 1 -
internal/controller_admin/role_controller.go | 1 +
.../controller_admin/user_backyard_controller.go | 20 +
.../{meta_entity.go => file_record_entity.go} | 24 +-
internal/install/install_req.go | 57 +-
internal/install/install_server.go | 12 +-
internal/migrations/init.go | 49 +-
internal/migrations/init_data.go | 1 +
internal/migrations/migrations.go | 1 +
internal/migrations/v25.go | 65 +
internal/repo/activity/vote_repo.go | 3 +
internal/repo/activity_common/activity_repo.go | 2 +-
internal/repo/answer/answer_repo.go | 29 +-
internal/repo/auth/auth.go | 2 +-
internal/repo/badge_award/badge_award_repo.go | 9 +
internal/repo/collection/collection_repo.go | 2 +-
internal/repo/file_record/file_record_repo.go | 84 +
internal/repo/notification/notification_repo.go | 16 +
.../repo/plugin_config/plugin_user_config_repo.go | 8 +
internal/repo/provider.go | 2 +
internal/repo/question/question_repo.go | 32 +-
internal/repo/rank/user_rank_repo.go | 2 +-
internal/repo/revision/revision_repo.go | 12 +-
internal/repo/role/power_repo.go | 2 +-
internal/repo/user/user_backyard_repo.go | 9 +
internal/router/answer_api_router.go | 2 +
internal/router/static_router.go | 12 +-
internal/schema/answer_schema.go | 14 +
internal/schema/backyard_user_schema.go | 5 +
internal/schema/comment_schema.go | 14 +
internal/schema/question_schema.go | 32 +
internal/schema/siteinfo_schema.go | 66 +-
internal/service/activity_common/activity.go | 2 +-
internal/service/answer_common/answer.go | 1 +
internal/service/badge/badge_award_service.go | 2 +
internal/service/content/question_service.go | 6 +-
.../service/file_record/file_record_service.go | 172 +
.../service/notification_common/notification.go | 2 +
internal/service/object_info/object_info.go | 3 +-
.../service/plugin_common/plugin_common_service.go | 1 +
internal/service/provider.go | 2 +
internal/service/question_common/question.go | 25 +-
internal/service/revision/revision.go | 1 +
internal/service/service_config/service_config.go | 5 +-
internal/service/tag_common/tag_common.go | 21 +-
internal/service/uploader/upload.go | 52 +-
internal/service/user_admin/user_backyard.go | 63 +-
internal/service/user_common/user.go | 10 +
pkg/checker/username.go | 2 +-
pkg/checker/zero_string.go | 11 +
pkg/converter/markdown.go | 9 +-
pkg/uid/id.go | 6 +-
pkg/writer/writer.go | 5 +
ui/.lintstagedrc.json | 12 +-
ui/.prettierrc.json | 3 +-
ui/package.json | 23 +-
ui/pnpm-lock.yaml | 18905 +++++++++++--------
ui/scripts/setup-eslint.js | 170 +
ui/src/common/color.scss | 14 +-
ui/src/common/constants.ts | 2 +
ui/src/common/interface.ts | 2 +
ui/src/components/AccordionNav/index.tsx | 1 +
ui/src/components/Avatar/index.tsx | 19 +-
ui/src/components/BaseUserCard/index.tsx | 3 +
ui/src/components/Counts/index.tsx | 34 +-
ui/src/components/Editor/Viewer.tsx | 7 +-
ui/src/components/Editor/utils/index.ts | 57 +-
ui/src/components/Footer/index.tsx | 22 +-
ui/src/components/HotQuestions/index.tsx | 2 +-
ui/src/components/PinList/index.tsx | 80 +
ui/src/components/QueryGroup/index.tsx | 2 +-
ui/src/components/QuestionList/index.tsx | 174 +-
ui/src/components/QuestionListLoader/index.tsx | 22 +-
ui/src/components/Share/index.tsx | 2 +-
ui/src/components/SideNav/index.tsx | 4 +-
ui/src/components/Tag/index.tsx | 3 +
ui/src/components/TagSelector/index.tsx | 7 +-
ui/src/components/Toast/index.tsx | 2 +-
ui/src/components/index.ts | 2 +
ui/src/hooks/index.ts | 2 +
.../hooks/{useToast => useExternalToast}/index.tsx | 79 +-
ui/src/hooks/useToast/index.tsx | 4 +-
ui/src/index.scss | 31 +
ui/src/pages/Admin/Answers/index.tsx | 47 +-
ui/src/pages/Admin/Legal/index.tsx | 29 +
ui/src/pages/Admin/Questions/index.tsx | 47 +-
ui/src/pages/Admin/Users/index.tsx | 29 +
ui/src/pages/Admin/Write/index.tsx | 8 +-
.../pages/Install/components/FifthStep/index.tsx | 2 +-
.../pages/Install/components/FourthStep/index.tsx | 85 +-
.../pages/Install/components/SecondStep/index.tsx | 156 +-
ui/src/pages/Install/index.tsx | 56 +
ui/src/pages/Layout/index.tsx | 70 +-
ui/src/pages/Legal/Privacy/index.tsx | 5 +-
ui/src/pages/Legal/Tos/index.tsx | 5 +-
.../Questions/Detail/components/Answer/index.tsx | 9 +-
.../Detail/components/LinkedQuestions/index.tsx | 2 +-
.../Questions/Detail/components/Question/index.tsx | 22 +-
.../Detail/components/RelatedQuestions/index.tsx | 2 +-
ui/src/pages/Questions/EditAnswer/index.tsx | 5 +-
.../pages/Review/components/FlagContent/index.tsx | 5 +-
.../Review/components/QueuedContent/index.tsx | 5 +-
ui/src/pages/Tags/Info/index.tsx | 5 +-
ui/src/pages/Tags/index.tsx | 6 +-
ui/src/services/common.ts | 4 +
ui/src/stores/branding.ts | 2 +-
ui/src/stores/commentReply.ts | 2 +-
ui/src/stores/customize.ts | 2 +-
ui/src/stores/errorCode.ts | 2 +-
ui/src/stores/index.ts | 2 +
ui/src/stores/interface.ts | 2 +-
ui/src/stores/loggedUserInfo.ts | 2 +-
ui/src/stores/loginSetting.ts | 2 +-
ui/src/stores/loginToContinue.ts | 2 +-
ui/src/stores/pageTags.ts | 2 +-
ui/src/stores/seoSetting.ts | 2 +-
ui/src/stores/sideNav.ts | 2 +-
ui/src/stores/siteInfo.ts | 2 +-
ui/src/stores/{toast.ts => siteLegal.ts} | 21 +-
ui/src/stores/themeSetting.ts | 2 +-
ui/src/stores/toast.ts | 2 +-
ui/src/stores/userCenter.ts | 2 +-
ui/src/stores/writeSetting.ts | 2 +-
ui/src/utils/guard.ts | 4 +
ui/template/question.html | 2 +-
ui/template/tag-detail.html | 2 +-
ui/tsconfig.json | 3 +-
201 files changed, 13520 insertions(+), 8881 deletions(-)
copy internal/entity/{meta_entity.go => file_record_entity.go} (69%)
create mode 100644 internal/migrations/v25.go
create mode 100644 internal/repo/file_record/file_record_repo.go
create mode 100644 internal/service/file_record/file_record_service.go
create mode 100644 ui/scripts/setup-eslint.js
create mode 100644 ui/src/components/PinList/index.tsx
copy ui/src/hooks/{useToast => useExternalToast}/index.tsx (58%)
copy ui/src/stores/{toast.ts => siteLegal.ts} (70%)