Skip to content

Commit c37a69c

Browse files
committed
✨ Add TypeScript support and refactor components to TypeScript
1 parent b2119a0 commit c37a69c

29 files changed

+3967
-4008
lines changed
File renamed without changes.

.github/workflows/deploy.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4.1.7
15+
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
with:
19+
version: 9.9.0
20+
21+
- name: Install Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: 20
25+
cache: 'pnpm'
26+
27+
- name: Install dependencies
28+
run: pnpm install
29+
30+
- name: Build project
31+
run: pnpm run build
32+
33+
- name: Upload production-ready build files
34+
uses: actions/upload-pages-artifact@v3
35+
with:
36+
name: github-pages
37+
path: ./dist
38+
39+
deploy:
40+
needs: build
41+
runs-on: ubuntu-latest
42+
if: github.ref == 'refs/heads/main'
43+
44+
permissions:
45+
pages: write
46+
contents: write
47+
id-token: write
48+
actions: read
49+
50+
environment:
51+
name: github-pages
52+
url: ${{ steps.deployment.outputs.page_url }}
53+
54+
steps:
55+
- name: Download artifact
56+
uses: actions/download-artifact@v4
57+
with:
58+
name: github-pages
59+
path: ./dist
60+
61+
- name: Deploy to GitHub Pages
62+
id: deployment
63+
uses: actions/deploy-pages@v4
File renamed without changes.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<body
1212
class="flex items-center justify-center min-h-screen p-0 m-0 bg-fixed bg-center bg-cover dark text-foreground bg-zinc-900">
1313
<div id="root"></div>
14-
<script type="module" src="/src/main.jsx"></script>
14+
<script type="module" src="/src/main.tsx"></script>
1515
</body>
1616

1717
</html>

package.json

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,45 @@
22
"name": "pentsec",
33
"private": true,
44
"version": "0.0.0",
5+
"type": "module",
56
"scripts": {
67
"dev": "vite",
78
"build": "vite build",
89
"lint": "eslint .",
910
"preview": "vite preview"
1011
},
1112
"dependencies": {
12-
"@nextui-org/react": "^2.4.8",
13+
"@nextui-org/react": "^2.6.10",
1314
"@tailwindcss/typography": "^0.5.15",
1415
"autoprefixer": "^10.4.20",
15-
"dompurify": "^3.1.7",
16-
"framer-motion": "^11.11.11",
17-
"gh-pages": "^6.2.0",
18-
"github-markdown-css": "^5.7.0",
19-
"html-react-parser": "^5.1.18",
20-
"marked": "^14.1.3",
21-
"postcss": "^8.4.47",
22-
"react": "^18.3.1",
23-
"react-dom": "^18.3.1",
24-
"react-icons": "^5.3.0",
25-
"swapy": "^0.4.2",
26-
"tailwindcss": "^3.4.14"
16+
"dompurify": "^3.2.3",
17+
"framer-motion": "^11.15.0",
18+
"github-markdown-css": "^5.8.1",
19+
"html-react-parser": "^5.2.2",
20+
"marked": "^15.0.5",
21+
"postcss": "^8.4.49",
22+
"react": "^19.0.0",
23+
"react-dom": "^19.0.0",
24+
"react-icons": "^5.4.0",
25+
"swapy": "^1.0.3",
26+
"tailwindcss": "^3.4.17"
2727
},
2828
"devDependencies": {
29-
"@eslint/js": "^9.13.0",
30-
"@types/react": "^18.3.12",
31-
"@types/react-dom": "^18.3.1",
32-
"@vitejs/plugin-react-swc": "^3.7.1",
33-
"eslint": "^9.13.0",
34-
"eslint-plugin-react": "^7.37.2",
35-
"eslint-plugin-react-hooks": "^5.0.0",
36-
"eslint-plugin-react-refresh": "^0.4.14",
37-
"globals": "^15.11.0",
38-
"vite": "^5.4.10"
29+
"@eslint/js": "^9.17.0",
30+
"@types/node": "^22.10.4",
31+
"@types/react": "^19.0.2",
32+
"@types/react-dom": "^19.0.2",
33+
"@vitejs/plugin-react-swc": "^3.7.2",
34+
"autoprefixer": "^10.4.20",
35+
"eslint": "^9.17.0",
36+
"eslint-plugin-react": "^7.37.3",
37+
"eslint-plugin-react-hooks": "^5.1.0",
38+
"eslint-plugin-react-refresh": "^0.4.16",
39+
"globals": "^15.14.0",
40+
"postcss": "^8.4.49",
41+
"tailwindcss": "^3.4.17",
42+
"typescript": "^5.7.2",
43+
"typescript-eslint": "^8.19.0",
44+
"vite": "^6.0.7"
3945
}
4046
}

0 commit comments

Comments
 (0)