This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a change to branch test
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
from 88b52d86 fix: Optimize badge animation effect
add 0db889af fix: fix typo in plugin
add a0f24b3c refactor(pluginKit): update useRender hooks to include
request parameter
add 500c774f fix: Some contents of en_us.yaml have newline errors
add 62d2d2a8 refactor(pluginKit): improve plugin registration process
add 9479f1f8 chore(ui): Dynamically import plugins
add dc61ab7e refactor(pluginKit): update plugin registration process
add 84a49321 chore(ui): update pre-install script in package.json
add 95b9af55 refactor(pluginKit): update addPluginToIndexTs function to
include pluginFolder parameter
add 59080727 refactor(ui): update pre-install script in package.json
add df507a9d refactor(pluginKit): remove unused loadPlugins function
add ad477136 refactor(ui): update pluginKit refresh method
add 057f66cf style: Improve the display of personal page when there is no
information
add 3e91f03b change minimum username length to 2 instead of 4
add 18c802ae change i18n strings
add bd0d9fda docs: regenerate docs
add 3eb9822c feat(question): support linking question
add f575aa9b docs: add Apache License headers to source files
add d0d275a6 style: move questionLink function to common service
add 6f576c29 feat: add title to question linked page
add ab920ac0 perf: skip link addition for same question id
add b328a2b4 style: use ReplaceAll instead of Replace
add 62b9104a fix: support short id
add 74368ec9 perf: optimize question link processing
add fe60e5e5 perf: optimize question linked display processing
add dc41218c refactor(ui): Update linked question UI text
add 9f912b38 refactor(utils): Refactor plugin registration in Plugins class
add 4c9e37fa Add importer plugin type
add 5aad9e95 Add importer service
add 73c7a229 Fix importer
add 2fd6ac37 Fix err
add 1e82b043 Fix line87
add 23729505 refactor(ui): LinkedQuestions component to handle empty data
new 6da9d718 Merge branch 'dev' into test
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:
cmd/wire_gen.go | 4 +-
docs/docs.go | 87 +++++++++-
docs/swagger.json | 87 +++++++++-
docs/swagger.yaml | 52 ++++++
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 | 4 +-
i18n/da_DK.yaml | 4 +-
i18n/de_DE.yaml | 4 +-
i18n/el_GR.yaml | 4 +-
i18n/en_US.yaml | 25 ++-
i18n/es_ES.yaml | 4 +-
i18n/fa_IR.yaml | 4 +-
i18n/fi_FI.yaml | 4 +-
i18n/fr_FR.yaml | 6 +-
i18n/he_IL.yaml | 4 +-
i18n/hi_IN.yaml | 4 +-
i18n/hu_HU.yaml | 4 +-
i18n/hy_AM.yaml | 4 +-
i18n/id_ID.yaml | 4 +-
i18n/it_IT.yaml | 4 +-
i18n/ja_JP.yaml | 4 +-
i18n/ko_KR.yaml | 2 +-
i18n/nl_NL.yaml | 4 +-
i18n/no_NO.yaml | 4 +-
i18n/pl_PL.yaml | 4 +-
i18n/pt_BR.yaml | 2 +-
i18n/pt_PT.yaml | 4 +-
i18n/ro_RO.yaml | 4 +-
i18n/ru_RU.yaml | 4 +-
i18n/sk_SK.yaml | 4 +-
i18n/sq_AL.yaml | 4 +-
i18n/sr_SP.yaml | 4 +-
i18n/sv_SE.yaml | 4 +-
i18n/te_IN.yaml | 4 +-
i18n/tr_TR.yaml | 4 +-
i18n/uk_UA.yaml | 4 +-
i18n/vi_VN.yaml | 4 +-
i18n/zh_CN.yaml | 10 +-
i18n/zh_TW.yaml | 4 +-
internal/controller/question_controller.go | 22 +++
.../{tag_rel_entity.go => question_link_entity.go} | 31 ++--
internal/migrations/init_data.go | 1 +
internal/migrations/migrations.go | 1 +
internal/migrations/{v15.go => v23.go} | 5 +-
internal/repo/answer/answer_repo.go | 18 ++
internal/repo/question/question_repo.go | 167 +++++++++++++++++++
internal/router/answer_api_router.go | 1 +
internal/schema/question_schema.go | 14 ++
internal/schema/user_schema.go | 2 +-
internal/service/answer_common/answer.go | 1 +
internal/service/content/answer_service.go | 36 +++-
internal/service/content/question_service.go | 69 +++++++-
internal/service/importer/importer_service.go | 172 +++++++++++++++++++
.../service/plugin_common/plugin_common_service.go | 8 +
internal/service/question_common/question.go | 113 +++++++++++++
pkg/checker/question_link.go | 132 +++++++++++++++
pkg/checker/question_link_test.go | 184 +++++++++++++++++++++
pkg/checker/username.go | 2 +-
plugin/embed.go | 2 +-
plugin/{cache.go => importer.go} | 106 +++++++-----
plugin/plugin.go | 4 +
plugin/render.go | 2 +-
plugin/search.go | 2 +-
ui/package.json | 2 +-
ui/scripts/importPlugins.js | 68 ++++++++
ui/scripts/{plugin.js => loadPlugins.js} | 47 ++----
ui/scripts/preinstall.js | 2 +-
ui/src/components/QuestionList/index.tsx | 2 +-
ui/src/pages/Admin/Plugins/Installed/index.tsx | 2 +-
.../index.tsx | 40 +++--
ui/src/pages/Questions/Detail/components/index.tsx | 2 +
ui/src/pages/Questions/Detail/index.tsx | 3 +
ui/src/pages/Questions/{ => Linked}/index.tsx | 67 ++++----
.../Users/Personal/components/Overview/index.tsx | 45 ++---
.../Users/Register/components/SignUpForm/index.tsx | 4 +-
ui/src/router/routes.ts | 4 +
ui/src/services/common.ts | 17 ++
ui/src/utils/pluginKit/index.ts | 38 +++--
86 files changed, 1582 insertions(+), 283 deletions(-)
copy internal/entity/{tag_rel_entity.go => question_link_entity.go} (52%)
copy internal/migrations/{v15.go => v23.go} (87%)
create mode 100644 internal/service/importer/importer_service.go
create mode 100644 pkg/checker/question_link.go
create mode 100644 pkg/checker/question_link_test.go
copy plugin/{cache.go => importer.go} (50%)
create mode 100644 ui/scripts/importPlugins.js
rename ui/scripts/{plugin.js => loadPlugins.js} (67%)
copy ui/src/pages/Questions/Detail/components/{RelatedQuestions =>
LinkedQuestions}/index.tsx (71%)
copy ui/src/pages/Questions/{ => Linked}/index.tsx (76%)