This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a change to branch dev
in repository https://gitbox.apache.org/repos/asf/answer.git
from 230e42ec fix: change "Twitter" to "X" in share dropdown (#1286)
add bbb2e662 docs(disclaimer): remove disclaimer
add 5886c1ec build(release): remove DISCLAIMER file from release assets
add 0fd7e81a build(ci): update action upload-artifact to v4
add febcdce8 chore: update issue template (#1248)
add bd13ef3f Update config.yml
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 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 1aed48a0 Merge branch 'dev' into test
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 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 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 8a335483 Merge branch 'dev' into test
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 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 849ad8df Merge remote-tracking branch 'origin/dev' into test
add 3972d488 Merge branch 'test' of github.com:apache/answer into test
add ef982ee3 Merge remote-tracking branch 'origin/dev' into test
add fe12e11b fix: Adjustment of the toast component's position from the top
add 01683095 fix: resolve conflict
add e61e7f16 fix: adjustmet toast sotres style
add b56c1d26 Merge remote-tracking branch 'origin/dev' into test
add 9d6b42da docs(ui): add Apache license header to setup-eslint.js script
add fbc4a079 Merge remote-tracking branch 'origin/dev' into test
add 0985e4f5 docs(Makefile): upgrade version to 1.4.5
add 89f0ca5a Merge branch 'release/1.4.5'
add 66e88a2e I18n (#1293)
No new revisions were added by this update.
Summary of changes:
.github/workflows/build-binary-for-release.yml | 2 +-
.gitignore | 3 +
Dockerfile | 2 +-
Makefile | 4 +-
README.md | 4 +-
cmd/wire_gen.go | 12 +-
configs/config.yaml | 3 +
go.mod | 2 +-
i18n/cs_CZ.yaml | 58 +-
i18n/cy_GB.yaml | 56 +-
i18n/da_DK.yaml | 62 +-
i18n/de_DE.yaml | 478 +-
i18n/en_US.yaml | 16 +
i18n/es_ES.yaml | 510 +-
i18n/fa_IR.yaml | 60 +-
i18n/fr_FR.yaml | 644 +-
i18n/hi_IN.yaml | 56 +-
i18n/i18n.yaml | 12 +-
i18n/id_ID.yaml | 112 +-
i18n/it_IT.yaml | 328 +-
i18n/ja_JP.yaml | 132 +-
i18n/ko_KR.yaml | 62 +-
i18n/ml_IN.yaml | 70 +-
i18n/pl_PL.yaml | 60 +-
i18n/pt_PT.yaml | 142 +-
i18n/ro_RO.yaml | 60 +-
i18n/ru_RU.yaml | 174 +-
i18n/sk_SK.yaml | 56 +-
i18n/sv_SE.yaml | 60 +-
i18n/te_IN.yaml | 56 +-
i18n/tr_TR.yaml | 56 +-
i18n/uk_UA.yaml | 132 +-
i18n/vi_VN.yaml | 150 +-
i18n/zh_CN.yaml | 50 +-
i18n/zh_TW.yaml | 58 +-
internal/base/constant/upload.go | 1 +
internal/base/cron/cron.go | 43 +-
internal/base/middleware/visit_img_auth.go | 10 +-
internal/base/server/config.go | 3 +-
internal/base/server/http.go | 12 +-
internal/controller/siteinfo_controller.go | 15 +-
internal/controller/template_controller.go | 11 +-
internal/controller/upload_controller.go | 9 +-
internal/controller/user_controller.go | 2 +-
.../{meta_entity.go => file_record_entity.go} | 24 +-
internal/install/install_req.go | 17 +-
internal/install/install_server.go | 12 +-
internal/migrations/init.go | 32 +-
internal/migrations/migrations.go | 1 +
internal/migrations/v25.go | 65 +
internal/repo/answer/answer_repo.go | 19 +-
internal/repo/file_record/file_record_repo.go | 84 +
internal/repo/provider.go | 2 +
internal/repo/question/question_repo.go | 17 +
internal/repo/revision/revision_repo.go | 12 +-
internal/router/static_router.go | 12 +-
internal/schema/question_schema.go | 1 +
internal/schema/siteinfo_schema.go | 66 +-
internal/service/content/question_service.go | 2 +
.../service/file_record/file_record_service.go | 172 +
internal/service/object_info/object_info.go | 3 +-
internal/service/provider.go | 2 +
internal/service/question_common/question.go | 1 +
internal/service/revision/revision.go | 1 +
internal/service/service_config/service_config.go | 5 +-
internal/service/tag_common/tag_common.go | 9 +-
internal/service/uploader/upload.go | 52 +-
internal/service/user_admin/user_backyard.go | 9 +-
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 | 4 +-
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/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 | 5 +-
ui/src/pages/Admin/Legal/index.tsx | 29 +
ui/src/pages/Admin/Questions/index.tsx | 5 +-
ui/src/pages/Admin/Users/index.tsx | 5 +-
.../pages/Install/components/FourthStep/index.tsx | 32 +-
ui/src/pages/Install/index.tsx | 7 +
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/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 +-
137 files changed, 14796 insertions(+), 9631 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%)