Skip to content

Commit 0a92267

Browse files
committed
feat: 🎸 format
1 parent 7cd855a commit 0a92267

File tree

13 files changed

+320
-418
lines changed

13 files changed

+320
-418
lines changed

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"plugins": ["prettier-plugin-tailwindcss"],
3+
"semi": false,
4+
"singleQuote": true,
5+
"printWidth": 80
6+
}

DonationList.html

Lines changed: 0 additions & 146 deletions
This file was deleted.

manifest.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ export default defineManifest(async (env) => ({
3232
],
3333
permissions: ['tabs'],
3434
web_accessible_resources: [
35-
{
36-
resources: ['DonationList.html'],
37-
matches: ['<all_urls>'],
38-
},
35+
// {
36+
// resources: ['DonationList.html'],
37+
// matches: ['<all_urls>'],
38+
// },
3939
{
4040
resources: ['injected.js'],
4141
matches: ['https://mypte.pearsonpte.com/*'],

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
"globals": "^15.9.0",
3131
"postcss": "^8.4.41",
3232
"postcss-nested": "^6.2.0",
33+
"prettier": "^3.3.3",
34+
"prettier-plugin-tailwindcss": "^0.6.6",
3335
"tailwindcss": "^3.4.10",
3436
"typescript": "^5.5.3",
3537
"typescript-eslint": "^8.0.1",

pnpm-lock.yaml

Lines changed: 72 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.tsx

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,52 @@
1-
import './App.css';
1+
import './App.css'
22

33
function App() {
44
return (
5-
<div className="p-3 bg-slate-50 text-slate-800 text-sm w-96">
6-
<h1 className="text-lg font-bold text-center">Welcome to use</h1>
7-
<h1 className="text-2xl font-bold text-center">PTE Core Sub-Scores</h1>
8-
<h1 className="text-lg font-bold text-center">Chrome Extension!</h1>
5+
<div className="w-96 bg-slate-50 p-3 text-sm text-slate-800">
6+
<h1 className="text-center text-lg font-bold">Welcome to use</h1>
7+
<h1 className="text-center text-2xl font-bold">PTE Core Sub-Scores</h1>
8+
<h1 className="text-center text-lg font-bold">Chrome Extension!</h1>
99
<ul className="mt-1">
1010
<li>
1111
1. Visit your{' '}
1212
<a
1313
className="text-blue-600"
1414
href="https://mypte.pearsonpte.com/my-activity"
1515
onClick={() => {
16-
chrome.tabs.create({ url: 'https://mypte.pearsonpte.com/my-activity' });
16+
chrome.tabs.create({
17+
url: 'https://mypte.pearsonpte.com/my-activity',
18+
})
1719
}}
1820
>
1921
PTE score page
2022
</a>
2123
</li>
22-
<li>2. Then you'll see a panel including your sub-scores, CLB levels, etc.</li>
24+
<li>
25+
2. Then you'll see a panel including your sub-scores, CLB levels, etc.
26+
</li>
2327
</ul>
2428
<div className="mt-2">
25-
If you found this helpful, feel free to sponsor me for a cup of coffee! ☕ :)
29+
If you found this helpful, feel free to sponsor me for a cup of coffee!
30+
☕ :)
2631
</div>
2732
<div>
2833
Your name will appear on the{' '}
2934
<a
3035
className="text-blue-500"
3136
href=""
3237
onClick={() => {
33-
chrome.tabs.create({ url: chrome.runtime.getURL('DonationList.html') });
38+
chrome.tabs.create({
39+
url: 'https://gaohaoyang.github.io/pte-crx-page/?scrollTo=donation',
40+
})
3441
}}
3542
>
3643
donation list.
37-
</a>{' '}
38-
44+
</a>
45+
</div>
46+
<div className="mt-2">
47+
You can support me through the following methods.
3948
</div>
40-
<div className="mt-2">You can support me through the following methods.</div>
41-
<table className="mt-1 border border-slate-400 w-full text-center">
49+
<table className="mt-1 w-full border border-slate-400 text-center">
4250
<tbody>
4351
<tr className="border-b border-slate-400">
4452
<td className="border-r border-slate-400 py-4">
@@ -50,7 +58,7 @@ function App() {
5058
<td className="border-r border-slate-400">PayPal</td>
5159
<td className="flex flex-col items-center">
5260
<img
53-
className="w-20 h-20"
61+
className="h-20 w-20"
5462
src="https://cdn.jsdelivr.net/gh/Gaohaoyang/pics/pte/QR%20Code.png"
5563
alt=""
5664
/>
@@ -60,7 +68,7 @@ function App() {
6068
onClick={() => {
6169
chrome.tabs.create({
6270
url: 'https://www.paypal.com/donate/?business=NB2D3UXSQKDKU&no_recurring=0&item_name=Thanks+for+your+support%21+I+really+appreciate+it.+Have+a+great+day%21&currency_code=CAD',
63-
});
71+
})
6472
}}
6573
>
6674
PayPal Donation Link
@@ -71,7 +79,7 @@ function App() {
7179
<td className="border-r border-slate-400">Wechat Pay</td>
7280
<td className="flex flex-col items-center">
7381
<img
74-
className="w-20 h-20"
82+
className="h-20 w-20"
7583
src="https://cdn.jsdelivr.net/gh/Gaohaoyang/pics/pte/wechatPay.png"
7684
alt=""
7785
/>
@@ -81,7 +89,7 @@ function App() {
8189
<td className="border-r border-slate-400">AliPay</td>
8290
<td className="flex flex-col items-center">
8391
<img
84-
className="w-20 h-20"
92+
className="h-20 w-20"
8593
src="https://cdn.jsdelivr.net/gh/Gaohaoyang/pics/pte/Alipay.png"
8694
alt=""
8795
/>
@@ -90,7 +98,7 @@ function App() {
9098
</tbody>
9199
</table>
92100
</div>
93-
);
101+
)
94102
}
95103

96-
export default App;
104+
export default App

0 commit comments

Comments
 (0)