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 530812f8 Merge branch 'main' of github.com:apache/answer add b6a23d69 feat: add loading state for counts display in search results add ef8c1ebb fix(notification): handle potential nil pointer dereference #1356 add ee6e6724 test(internal): add mock for IsBrandingFileUsed method add a62c975c chore(deps): update Go version and dependencies to v1.23.0 and latest compatible versions add dc98f61d refactor(api): update API documentation and method names for clarity add d02d09bb refactor(api): improve API documentation for Answer endpoints add 03ec0ddf chore(deps): update Go version to 1.23 in configuration files add d82c75d7 refactor(api): rename methods and update documentation for clarity add 67b9c0b4 refactor(api): update API documentation for Accept Answer endpoint add 246f3079 feat: update .asf.yaml content add 157291c2 fix: screenshot add b863ad6b chore(configs/config.yaml): Change `api_url` to `api_base_url` add e6f94c92 chore: Keep the `api_url` in configs/config.yaml add 550a9268 feat(migrations): move user config to interface add 6d02706d feat(user): add user suspension functionality add 3b8b5871 feat(user): add user status messages and support localization add b78be61e refactor(user): simplify suspended until logic add 736d07a3 fix: optimization hr's style add 60f87fd2 fix: optimization hr's style add d2768b1f fix: hr tag's margin use 1.5rem add 8560c89e fix: move the settings -> users section in admin to Interface #1360 add 05fab1c9 feat: Blocked users can choose the duration of the block #1361 add d04d18df fix: Navigation dropdown menu theme color should follow the theme color of the application #1355 add 3ce9dfb1 fix: optimization hr's style add 07217e25 fix: optimization hr's style add a963f5a8 fix: hr tag's margin use 1.5rem add 19eca49d fix: move the settings -> users section in admin to Interface #1360 add 17e1b301 feat: Blocked users can choose the duration of the block #1361 add 2bc3167d fix: Navigation dropdown menu theme color should follow the theme color of the application #1355 add e90be519 fix: list time to remove verb modification add 1ef67972 Merge branch 'feat/1.6.1/md' into test add 9897d92e fix: adjustment of the position of plug-in inserting the editor toolbar add 1871e2e5 fix: optimize the copy add fda869f1 docs: remove description for suspended_until field add fa7ff6a9 docs(Makefile): upgrade version to 1.6.0 new 23d2a915 Merge remote-tracking branch 'origin/release/1.6.0' 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 +- Dockerfile | 2 +- Makefile | 2 +- README.md | 4 +- cmd/main.go | 2 +- cmd/wire_gen.go | 2 +- configs/config.yaml | 1 + docs/docs.go | 319 +++++++++++++++++++-- docs/swagger.json | 319 +++++++++++++++++++-- docs/swagger.yaml | 230 +++++++++++++-- go.mod | 10 +- go.sum | 20 +- i18n/en_US.yaml | 40 ++- i18n/zh_CN.yaml | 40 ++- internal/base/cron/cron.go | 17 ++ internal/base/reason/reason.go | 4 + internal/cli/build.go | 2 +- internal/controller/answer_controller.go | 86 +++--- internal/entity/user_entity.go | 4 + internal/migrations/init.go | 6 +- internal/migrations/migrations.go | 1 + internal/migrations/v27.go | 83 ++++++ internal/repo/user/user_backyard_repo.go | 25 +- internal/router/answer_api_router.go | 8 +- internal/schema/answer_schema.go | 5 + internal/schema/backyard_user_schema.go | 43 ++- internal/schema/siteinfo_schema.go | 6 +- internal/schema/user_schema.go | 78 +++-- internal/service/content/user_service.go | 32 +-- internal/service/mock/siteinfo_repo_mock.go | 29 ++ .../service/notification_common/notification.go | 4 + .../service/siteinfo_common/siteinfo_service.go | 2 +- internal/service/user_admin/user_backyard.go | 41 ++- internal/service/user_common/user.go | 3 + ui/src/common/constants.ts | 54 +++- ui/src/common/interface.ts | 4 +- .../Header/components/NavItems/index.tsx | 4 +- ui/src/components/Header/index.tsx | 1 - ui/src/components/PluginRender/index.tsx | 9 +- ui/src/components/QuestionList/index.tsx | 9 +- ui/src/index.scss | 34 +++ ui/src/pages/Admin/Interface/index.tsx | 51 +++- ui/src/pages/Admin/SettingsUsers/index.tsx | 218 -------------- .../pages/Admin/Users/components/Action/index.tsx | 16 +- .../Users/components/SuspenseUserModal/index.tsx | 90 ++++++ ui/src/pages/Admin/Users/index.tsx | 54 +++- .../pages/Search/components/SearchHead/index.tsx | 6 +- .../pages/Search/components/SearchItem/index.tsx | 6 +- ui/src/pages/Search/index.tsx | 2 +- .../Users/Personal/components/Answers/index.tsx | 8 +- .../Personal/components/DefaultList/index.tsx | 1 - ui/src/pages/Users/Settings/Profile/index.tsx | 24 +- ui/src/router/routes.ts | 4 - ui/src/services/admin/settings.ts | 2 - ui/src/stores/interface.ts | 1 + ui/src/stores/siteInfo.ts | 2 - 56 files changed, 1569 insertions(+), 503 deletions(-) create mode 100644 internal/migrations/v27.go delete mode 100644 ui/src/pages/Admin/SettingsUsers/index.tsx create mode 100644 ui/src/pages/Admin/Users/components/SuspenseUserModal/index.tsx