A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: replace quetion list sort requent -> hot
shuai2be1807b0fd1
diff --git a/i18n/en_US.yaml b/i18n/en_US.yamlindex 88fd6e7f..9be207f7 100644--- a/i18n/en_US.yaml+++ b/i18n/en_US.yaml@@ -1290,7 +1290,7 @@ ui:answers: Answersnewest: Newestactive: Active- frequent: Frequent+ hot: Hotscore: Scoreunanswered: Unansweredmodified: modifieddiff --git a/i18n/zh_CN.yaml b/i18n/zh_CN.yamlindex 2c438316..5c3dd862 100644--- a/i18n/zh_CN.yaml+++ b/i18n/zh_CN.yaml@@ -1249,7 +1249,7 @@ ui:answers: 回答newest: 最新active: 活跃- frequent: 浏览量+ hot: 热度score: 评分unanswered: 未回答modified: 更新于diff --git a/ui/src/common/interface.ts b/ui/src/common/interface.tsindex 019786f1..0acd2f02 100644--- a/ui/src/common/interface.ts+++ b/ui/src/common/interface.ts@@ -290,7 +290,7 @@ export interface LangsType {export type QuestionOrderBy =| 'newest'| 'active'- | 'frequent'+ | 'hot'| 'score'| 'unanswered';diff --git a/ui/src/components/QuestionList/index.tsx b/ui/src/components/QuestionList/index.tsxindex 2d9c447c..d9b46dd2 100644--- a/ui/src/components/QuestionList/index.tsx+++ b/ui/src/components/QuestionList/index.tsx@@ -40,7 +40,7 @@ import { useSkeletonControl } from '@/hooks';export const QUESTION_ORDER_KEYS: Type.QuestionOrderBy[] = ['newest','active',- 'frequent',+ 'hot','score','unanswered',];diff --git a/ui/src/services/client/question.ts b/ui/src/services/client/question.tsindex d027c83b..0e382c26 100644--- a/ui/src/services/client/question.ts+++ b/ui/src/services/client/question.ts@@ -40,7 +40,7 @@ export const useHotQuestions = (params: Type.QueryQuestionsReq = {page: 1,page_size: 6,- order: 'frequent',+ order: 'hot',in_days: 7,},) => {