From a42579b214989b5d6cee776e589096581b889f3d Mon Sep 17 00:00:00 2001 From: unknown <2391580279@qq.com> Date: Sun, 27 Oct 2024 15:56:26 +0800 Subject: [PATCH 1/3] feat: rating modal --- src/assets/locales/en-US/rate.json | 3 +++ src/assets/locales/zh-CN/rate.json | 3 +++ src/views/Rating/modal.js | 20 ++++++++++++++++++++ 3 files changed, 26 insertions(+) diff --git a/src/assets/locales/en-US/rate.json b/src/assets/locales/en-US/rate.json index 14833538..57c77cad 100644 --- a/src/assets/locales/en-US/rate.json +++ b/src/assets/locales/en-US/rate.json @@ -27,6 +27,9 @@ "action": "Actions", "last-submit-time": "Lastest Submission Time", "last-rate-time": "Last Grading Time", + "last-rate": "Last Grading", + "submit-num": "Submitted times", + "num-submit": "{{num}}th submission", "reset": "Reset", "ok": "Confirm", diff --git a/src/assets/locales/zh-CN/rate.json b/src/assets/locales/zh-CN/rate.json index a011bc72..028f9cc0 100644 --- a/src/assets/locales/zh-CN/rate.json +++ b/src/assets/locales/zh-CN/rate.json @@ -27,6 +27,9 @@ "action": "操作", "last-submit-time": "最新提交时间", "last-rate-time": "上次评分时间", + "last-rate": "上次评分", + "submit-num": "提交次数", + "num-submit": "第 {{num}} 次提交", "reset": "重置", "ok": "确认", diff --git a/src/views/Rating/modal.js b/src/views/Rating/modal.js index a0de42e4..73925974 100644 --- a/src/views/Rating/modal.js +++ b/src/views/Rating/modal.js @@ -185,6 +185,18 @@ function RatingModal({ data, isMobile, onFinish }, ref) {

{selectOpenQs?.challenge_title}

+ +
+

{t("num-submit", {num: selectOpenQs?.submit_count})}

+
+ +
+

{t("challenger")}:

+
+ {selectOpenQs?.nickname} +
+
+

{t("challenger")}:

@@ -275,6 +287,14 @@ function RatingModal({ data, isMobile, onFinish }, ref) { />
+ +
+

{t("last-rate")}:

+
+

{selectOpenQs?.last_score}

+
+
+
Date: Tue, 29 Oct 2024 10:18:35 +0800 Subject: [PATCH 2/3] Update modal.js --- src/views/Rating/modal.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/views/Rating/modal.js b/src/views/Rating/modal.js index 73925974..764caf9e 100644 --- a/src/views/Rating/modal.js +++ b/src/views/Rating/modal.js @@ -197,13 +197,6 @@ function RatingModal({ data, isMobile, onFinish }, ref) {
-
-

{t("challenger")}:

-
- {selectOpenQs?.nickname} -
-
-

{t("submit-time")}:

From 244466668918f051b2fef206d428e427220b7175 Mon Sep 17 00:00:00 2001 From: 0xdwong <0xdwong@gmail.com> Date: Tue, 29 Oct 2024 10:36:36 +0800 Subject: [PATCH 3/3] chore: modify words --- src/assets/locales/en-US/rate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/locales/en-US/rate.json b/src/assets/locales/en-US/rate.json index 57c77cad..c6722bde 100644 --- a/src/assets/locales/en-US/rate.json +++ b/src/assets/locales/en-US/rate.json @@ -27,7 +27,7 @@ "action": "Actions", "last-submit-time": "Lastest Submission Time", "last-rate-time": "Last Grading Time", - "last-rate": "Last Grading", + "last-rate": "Last score", "submit-num": "Submitted times", "num-submit": "{{num}}th submission",