From 43d54d660b09e6120a05159c5d9d1625da9b753c Mon Sep 17 00:00:00 2001 From: Haoyang Gao Date: Sat, 28 Sep 2024 10:40:29 -0400 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/ContentUI/index.tsx | 24 +++++++++++++++--------- src/ContentUI/scoreList.ts | 24 +++++++++++++++--------- 3 files changed, 31 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 578a1dc..58f6ac5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "pte-crx", "private": true, - "version": "1.2.1", + "version": "1.2.2", "type": "module", "scripts": { "dev": "vite", diff --git a/src/ContentUI/index.tsx b/src/ContentUI/index.tsx index ad994d9..d22f6ab 100644 --- a/src/ContentUI/index.tsx +++ b/src/ContentUI/index.tsx @@ -33,7 +33,7 @@ const ContentUI = () => { key: string name: string score: number - skills: string[] + skills: string[][] support: Array<'Listening' | 'Reading' | 'Speaking' | 'Writing'> }> >([]) @@ -166,7 +166,7 @@ const ContentUI = () => { key: string name: string score: number - skills: string[] + skills: string[][] support: Array<'Listening' | 'Reading' | 'Speaking' | 'Writing'> }> = [] for (const key in pteData.skillsProfile) { @@ -225,13 +225,13 @@ const ContentUI = () => { setDragging(false) }} > -
+
@@ -269,7 +269,7 @@ const ContentUI = () => {
- +
@@ -361,13 +361,19 @@ const ContentUI = () => {
Sub-Skills Score
-
+
{skillsProfile.map((skill) => (
-
-
{skill.name}
+
+
{skill.name}
-
{skill.skills.join(', ')}
+
+ {skill.skills.map((skillGroup, index) => ( +
+ {skillGroup.join(', ')} +
+ ))} +