+
{skill.name}
-
+
{skill.skills.join(', ')}
))}
+
>
- );
-};
+ )
+}
-export default ContentUI;
+export default ContentUI
diff --git a/src/ContentUI/scoreList.ts b/src/ContentUI/scoreList.ts
index 1accef7..be80399 100644
--- a/src/ContentUI/scoreList.ts
+++ b/src/ContentUI/scoreList.ts
@@ -76,7 +76,7 @@ export const scoreList = [
ieltsListening: 4.5,
ieltsSpeaking: 4.0,
},
-];
+]
export const clbEEScore = {
clb10: {
@@ -114,45 +114,47 @@ export const clbEEScore = {
withSpouse: 0,
asSpouse: 0,
},
-};
+}
export const getEqualScores = (
scoreValue: string,
type: 'Listening' | 'Speaking' | 'Reading' | 'Writing',
) => {
- const scoreValueNum = Number(scoreValue);
+ const scoreValueNum = Number(scoreValue)
const resultItem = scoreList.find((item) => {
- const pteTypeScore = item[`pte${type}`];
+ const pteTypeScore = item[`pte${type}`]
if (pteTypeScore.length > 1) {
- return scoreValueNum <= pteTypeScore[1] && scoreValueNum >= pteTypeScore[0];
+ return (
+ scoreValueNum <= pteTypeScore[1] && scoreValueNum >= pteTypeScore[0]
+ )
} else {
- return scoreValueNum === pteTypeScore[0];
+ return scoreValueNum === pteTypeScore[0]
}
- });
- return resultItem;
-};
+ })
+ return resultItem
+}
-const RA = 'RA';
-const RS = 'RS';
-const DI = 'DI';
-const RTS = 'RTS';
-const ASQ = 'ASQ';
-const SWT = 'SWT';
-const WE = 'WE';
+const RA = 'RA'
+const RS = 'RS'
+const DI = 'DI'
+const RTS = 'RTS'
+const ASQ = 'ASQ'
+const SWT = 'SWT'
+const WE = 'WE'
-const FIBRW = 'FIB-RW';
-const MCMRW = 'MCM-RW';
-const RO = 'RO';
-const FIBR = 'FIB-R';
-const MCSR = 'MCS-R';
+const FIBRW = 'FIB-RW'
+const MCMRW = 'MCM-RW'
+const RO = 'RO'
+const FIBR = 'FIB-R'
+const MCSR = 'MCS-R'
-const SST = 'SST';
-const MCML = 'MCM-L';
-const FIBL = 'FIB-L';
-const MCSL = 'MCS-L';
-const SMW = 'SMW';
-const HIW = 'HIW';
-const WFD = 'WFD';
+const SST = 'SST'
+const MCML = 'MCM-L'
+const FIBL = 'FIB-L'
+const MCSL = 'MCS-L'
+const SMW = 'SMW'
+const HIW = 'HIW'
+const WFD = 'WFD'
export const skillsAnalysis = {
openResponseSpeakingWriting: [WE, DI, RTS],
@@ -163,4 +165,4 @@ export const skillsAnalysis = {
speakingShort: [RA, RS, ASQ],
multipleSkillsComprehension: [FIBRW, SST, WFD, RA, RS, SWT, HIW],
singleSkillComprehension: [RO, FIBR, MCMRW, MCSR, MCML, MCSL, SMW],
-};
+}
diff --git a/src/content.css b/src/content.css
index e4c19b4..b5c61c9 100644
--- a/src/content.css
+++ b/src/content.css
@@ -1,5 +1,3 @@
-#crx-root {
- @tailwind base;
- @tailwind components;
- @tailwind utilities;
-}
+@tailwind base;
+@tailwind components;
+@tailwind utilities;
diff --git a/src/content.tsx b/src/content.tsx
index 7201055..249d157 100644
--- a/src/content.tsx
+++ b/src/content.tsx
@@ -1,19 +1,15 @@
-// import React from 'react';
-import ReactDOM from 'react-dom/client';
-import './content.css';
-import ContentUI from './ContentUI';
+import ReactDOM from 'react-dom/client'
+import './content.css'
+import ContentUI from './ContentUI'
-const root = document.createElement('div');
-root.id = 'crx-root';
-document.body.appendChild(root);
+const root = document.createElement('div')
+root.id = 'crx-root'
+document.body.appendChild(root)
// const ContentUI = () => {
// return
hi
;
// };
ReactDOM.createRoot(root).render(
- //
,
- // ,
-);
-
+)
diff --git a/src/index.css b/src/index.css
deleted file mode 100644
index 6119ad9..0000000
--- a/src/index.css
+++ /dev/null
@@ -1,68 +0,0 @@
-:root {
- font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
- line-height: 1.5;
- font-weight: 400;
-
- color-scheme: light dark;
- color: rgba(255, 255, 255, 0.87);
- background-color: #242424;
-
- font-synthesis: none;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-a {
- font-weight: 500;
- color: #646cff;
- text-decoration: inherit;
-}
-a:hover {
- color: #535bf2;
-}
-
-body {
- margin: 0;
- display: flex;
- place-items: center;
- min-width: 320px;
- min-height: 100vh;
-}
-
-h1 {
- font-size: 3.2em;
- line-height: 1.1;
-}
-
-button {
- border-radius: 8px;
- border: 1px solid transparent;
- padding: 0.6em 1.2em;
- font-size: 1em;
- font-weight: 500;
- font-family: inherit;
- background-color: #1a1a1a;
- cursor: pointer;
- transition: border-color 0.25s;
-}
-button:hover {
- border-color: #646cff;
-}
-button:focus,
-button:focus-visible {
- outline: 4px auto -webkit-focus-ring-color;
-}
-
-@media (prefers-color-scheme: light) {
- :root {
- color: #213547;
- background-color: #ffffff;
- }
- a:hover {
- color: #747bff;
- }
- button {
- background-color: #f9f9f9;
- }
-}
diff --git a/src/main.tsx b/src/main.tsx
index 969e1c2..710f1f8 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -1,10 +1,6 @@
-import React from 'react';
-import ReactDOM from 'react-dom/client';
-import './index.css';
-import App from './App';
+import ReactDOM from 'react-dom/client'
+import App from './App'
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
-
-
- ,
-);
+
,
+)
diff --git a/src/type/PTEDataType.ts b/src/type/PTEDataType.ts
index 25c9cc2..bad5fcc 100644
--- a/src/type/PTEDataType.ts
+++ b/src/type/PTEDataType.ts
@@ -1,55 +1,55 @@
export interface PTEDataType {
- gender: string;
- testDate: string;
- candidateId: string;
- appointmentId: string;
- middleName: null;
- countryOfResidence: string;
- reportIssueDate: string;
- testCenter: string;
- testCenterId: string;
- testCenterCountry: string;
- hasPhoto: boolean;
- enablingSkills: null;
- countryOfCitizenShip: string;
- institutionCode: null;
- institutionName: null;
- scoreReportNumber: string;
- isRevoked: boolean;
- revokedStatusChangeDate: string;
- examSeriesCode: string;
- ukviNumber: null;
- admissioinId: string;
- idNumber: string;
- countryIssuanceId: string;
- isExpired: boolean;
- isNoShow: boolean;
- isNDARefused: boolean;
- cefrLevel: null;
- photoInfo: string;
- skillsProfile: SkillsProfile;
- firstName: string;
- lastName: string;
- dateOfBirth: string;
- testValidUntil: string;
- gseScore: string;
- communicativeSkills: CommunicativeSkills;
+ gender: string
+ testDate: string
+ candidateId: string
+ appointmentId: string
+ middleName: null
+ countryOfResidence: string
+ reportIssueDate: string
+ testCenter: string
+ testCenterId: string
+ testCenterCountry: string
+ hasPhoto: boolean
+ enablingSkills: null
+ countryOfCitizenShip: string
+ institutionCode: null
+ institutionName: null
+ scoreReportNumber: string
+ isRevoked: boolean
+ revokedStatusChangeDate: string
+ examSeriesCode: string
+ ukviNumber: null
+ admissioinId: string
+ idNumber: string
+ countryIssuanceId: string
+ isExpired: boolean
+ isNoShow: boolean
+ isNDARefused: boolean
+ cefrLevel: null
+ photoInfo: string
+ skillsProfile: SkillsProfile
+ firstName: string
+ lastName: string
+ dateOfBirth: string
+ testValidUntil: string
+ gseScore: string
+ communicativeSkills: CommunicativeSkills
}
export interface SkillsProfile {
- openResponseSpeakingWriting: number;
- reproducingSpokenWrittenLanguage: number;
- writingExtended: number;
- writingShort: number;
- speakingExtended: number;
- speakingShort: number;
- multipleSkillsComprehension: number;
- singleSkillComprehension: number;
+ openResponseSpeakingWriting: number
+ reproducingSpokenWrittenLanguage: number
+ writingExtended: number
+ writingShort: number
+ speakingExtended: number
+ speakingShort: number
+ multipleSkillsComprehension: number
+ singleSkillComprehension: number
}
export interface CommunicativeSkills {
- listening: number;
- speaking: number;
- reading: number;
- writing: number;
+ listening: number
+ speaking: number
+ reading: number
+ writing: number
}