Skip to content

Commit

Permalink
Merge pull request #4 from Gaohaoyang/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Gaohaoyang authored Sep 3, 2024
2 parents 7cd855a + 720ece8 commit c33b794
Show file tree
Hide file tree
Showing 14 changed files with 326 additions and 431 deletions.
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"plugins": ["prettier-plugin-tailwindcss"],
"semi": false,
"singleQuote": true,
"printWidth": 80
}
146 changes: 0 additions & 146 deletions DonationList.html

This file was deleted.

8 changes: 4 additions & 4 deletions manifest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export default defineManifest(async (env) => ({
],
permissions: ['tabs'],
web_accessible_resources: [
{
resources: ['DonationList.html'],
matches: ['<all_urls>'],
},
// {
// resources: ['DonationList.html'],
// matches: ['<all_urls>'],
// },
{
resources: ['injected.js'],
matches: ['https://mypte.pearsonpte.com/*'],
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pte-crx",
"private": true,
"version": "1.1.0",
"version": "1.2.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down Expand Up @@ -30,6 +30,8 @@
"globals": "^15.9.0",
"postcss": "^8.4.41",
"postcss-nested": "^6.2.0",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.6",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.3",
"typescript-eslint": "^8.0.1",
Expand Down
72 changes: 72 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 27 additions & 19 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,44 +1,52 @@
import './App.css';
import './App.css'

function App() {
return (
<div className="p-3 bg-slate-50 text-slate-800 text-sm w-96">
<h1 className="text-lg font-bold text-center">Welcome to use</h1>
<h1 className="text-2xl font-bold text-center">PTE Core Sub-Scores</h1>
<h1 className="text-lg font-bold text-center">Chrome Extension!</h1>
<div className="w-96 bg-slate-50 p-3 text-sm text-slate-800">
<h1 className="text-center text-lg font-bold">Welcome to use</h1>
<h1 className="text-center text-2xl font-bold">PTE Core Sub-Scores</h1>
<h1 className="text-center text-lg font-bold">Chrome Extension!</h1>
<ul className="mt-1">
<li>
1. Visit your{' '}
<a
className="text-blue-600"
href="https://mypte.pearsonpte.com/my-activity"
onClick={() => {
chrome.tabs.create({ url: 'https://mypte.pearsonpte.com/my-activity' });
chrome.tabs.create({
url: 'https://mypte.pearsonpte.com/my-activity',
})
}}
>
PTE score page
</a>
</li>
<li>2. Then you'll see a panel including your sub-scores, CLB levels, etc.</li>
<li>
2. Then you'll see a panel including your sub-scores, CLB levels, etc.
</li>
</ul>
<div className="mt-2">
If you found this helpful, feel free to sponsor me for a cup of coffee! ☕ :)
If you found this helpful, feel free to sponsor me for a cup of coffee!
☕ :)
</div>
<div>
Your name will appear on the{' '}
<a
className="text-blue-500"
href=""
onClick={() => {
chrome.tabs.create({ url: chrome.runtime.getURL('DonationList.html') });
chrome.tabs.create({
url: 'https://gaohaoyang.github.io/pte-crx-page/?scrollTo=donation',
})
}}
>
donation list.
</a>{' '}
</a>
</div>
<div className="mt-2">
You can support me through the following methods.
</div>
<div className="mt-2">You can support me through the following methods.</div>
<table className="mt-1 border border-slate-400 w-full text-center">
<table className="mt-1 w-full border border-slate-400 text-center">
<tbody>
<tr className="border-b border-slate-400">
<td className="border-r border-slate-400 py-4">
Expand All @@ -50,7 +58,7 @@ function App() {
<td className="border-r border-slate-400">PayPal</td>
<td className="flex flex-col items-center">
<img
className="w-20 h-20"
className="h-20 w-20"
src="https://cdn.jsdelivr.net/gh/Gaohaoyang/pics/pte/QR%20Code.png"
alt=""
/>
Expand All @@ -60,7 +68,7 @@ function App() {
onClick={() => {
chrome.tabs.create({
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',
});
})
}}
>
PayPal Donation Link
Expand All @@ -71,7 +79,7 @@ function App() {
<td className="border-r border-slate-400">Wechat Pay</td>
<td className="flex flex-col items-center">
<img
className="w-20 h-20"
className="h-20 w-20"
src="https://cdn.jsdelivr.net/gh/Gaohaoyang/pics/pte/wechatPay.png"
alt=""
/>
Expand All @@ -81,7 +89,7 @@ function App() {
<td className="border-r border-slate-400">AliPay</td>
<td className="flex flex-col items-center">
<img
className="w-20 h-20"
className="h-20 w-20"
src="https://cdn.jsdelivr.net/gh/Gaohaoyang/pics/pte/Alipay.png"
alt=""
/>
Expand All @@ -90,7 +98,7 @@ function App() {
</tbody>
</table>
</div>
);
)
}

export default App;
export default App
Loading

0 comments on commit c33b794

Please sign in to comment.