Skip to content

Commit ff945f4

Browse files
Merge pull request #71 from Meetesh-Saini/master
new frontend
2 parents 045dc49 + 2991c21 commit ff945f4

File tree

291 files changed

+13665
-13905
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

291 files changed

+13665
-13905
lines changed

.eslintrc.cjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:react/recommended',
7+
'plugin:react/jsx-runtime',
8+
'plugin:react-hooks/recommended',
9+
],
10+
ignorePatterns: ['dist', '.eslintrc.cjs'],
11+
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
12+
settings: { react: { version: '18.2' } },
13+
plugins: ['react-refresh'],
14+
rules: {
15+
'react-refresh/only-export-components': [
16+
'warn',
17+
{ allowConstantExport: true },
18+
],
19+
},
20+
}

.github/workflows/deploy.yml

Lines changed: 43 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,48 @@
1-
name: React CD
1+
name: Deployment
22

33
on:
4-
push:
5-
branches: [master]
6-
workflow_dispatch:
4+
push:
5+
branches: ['deployment']
76

8-
jobs:
9-
deploy:
10-
runs-on: ubuntu-latest
11-
12-
permissions:
13-
contents: write
14-
15-
steps:
16-
- name: Check out repo
17-
uses: actions/checkout@v2
7+
workflow_dispatch:
188

19-
- name: Setup Node
20-
uses: actions/setup-node@v2
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: 'page'
16+
cancel-in-progress: true
2117

22-
- name: Install dependencies
23-
run: npm ci
24-
25-
- name: Build React
26-
run: CI=false && npm run build
27-
28-
- name: Deploy to GitHub Pages
29-
uses: peaceiris/actions-gh-pages@v3
30-
with:
31-
github_token: ${{ secrets.GITHUB_TOKEN }}
32-
publish_dir: ./build
18+
jobs:
19+
deploy:
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v3
27+
- name: Set up pnpm
28+
uses: pnpm/action-setup@v2
29+
with:
30+
version: 8.10.2
31+
- name: Set up Node
32+
uses: actions/setup-node@v3
33+
with:
34+
node-version: 18
35+
cache: 'pnpm'
36+
- name: Install dependencies
37+
run: pnpm install
38+
- name: Build
39+
run: pnpm run build
40+
- name: Setup Pages
41+
uses: actions/configure-pages@v3
42+
- name: Upload artifact
43+
uses: actions/upload-pages-artifact@v1
44+
with:
45+
path: './dist'
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v1

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
125
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
226

327
# dependencies

.vscode/settings.json

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

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>lugvitc</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.jsx"></script>
12+
</body>
13+
</html>

package.json

Lines changed: 35 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,44 @@
11
{
22
"name": "lugwebsite",
3-
"homepage": "https://lugvitc.github.io/",
4-
"version": "0.1.0",
53
"private": true,
6-
"dependencies": {
7-
"@fortawesome/fontawesome-svg-core": "^6.1.1",
8-
"@fortawesome/free-solid-svg-icons": "^6.1.1",
9-
"@fortawesome/react-fontawesome": "^0.1.18",
10-
"@testing-library/jest-dom": "^5.16.5",
11-
"@testing-library/react": "^12.1.3",
12-
"@testing-library/user-event": "^13.5.0",
13-
"ajv": "6.12.6",
14-
"axios": "^1.5.1",
15-
"dompurify": "^3.0.5",
16-
"formik": "^2.4.5",
17-
"framer-motion": "^6.5.1",
18-
"isomorphic-dompurify": "^1.8.0",
19-
"nord": "^0.2.1",
20-
"react": "^17.0.2",
21-
"react-dom": "^17.0.2",
22-
"react-hot-toast": "^2.4.1",
23-
"react-markdown": "^8.0.3",
24-
"react-scripts": "^5.0.0",
25-
"typescript": "^3.9.10",
26-
"web-vitals": "^2.1.4",
27-
"zustand": "^4.0.0-rc.1"
28-
},
4+
"version": "0.0.0",
5+
"type": "module",
296
"scripts": {
30-
"predeploy": "npm run build",
31-
"deploy": "gh-pages -d build",
32-
"start": "react-scripts start",
33-
"build": "react-scripts build",
34-
"test": "react-scripts test",
35-
"eject": "react-scripts eject"
7+
"dev": "vite",
8+
"build": "vite build",
9+
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
10+
"preview": "vite preview"
3611
},
37-
"eslintConfig": {
38-
"extends": [
39-
"react-app",
40-
"react-app/jest"
41-
]
42-
},
43-
"browserslist": {
44-
"production": [
45-
">0.2%",
46-
"not dead",
47-
"not op_mini all"
48-
],
49-
"development": [
50-
"last 1 chrome version",
51-
"last 1 firefox version",
52-
"last 1 safari version"
53-
]
12+
"dependencies": {
13+
"@heroicons/react": "^2.1.1",
14+
"@material-tailwind/react": "^2.1.8",
15+
"axios": "^1.6.5",
16+
"prettier": "^3.2.4",
17+
"primereact": "^10.3.0",
18+
"react": "^18.2.0",
19+
"react-code-blocks": "^0.1.5",
20+
"react-countup": "^6.5.0",
21+
"react-dom": "^18.2.0",
22+
"react-photo-album": "^2.3.0",
23+
"react-router-dom": "^6.21.1",
24+
"react-simple-typewriter": "^5.0.1",
25+
"react-tsparticles": "^2.12.2",
26+
"swiper": "^11.0.5",
27+
"tsparticles-slim": "^2.12.0",
28+
"typewriter-effect": "^2.21.0",
29+
"zustand": "^4.4.7"
5430
},
5531
"devDependencies": {
56-
"gh-pages": "^3.2.3",
57-
"react-router-dom": "^6.2.2",
58-
"tailwindcss": "^3.3.3"
32+
"@types/react": "^18.2.43",
33+
"@types/react-dom": "^18.2.17",
34+
"@vitejs/plugin-react-swc": "^3.5.0",
35+
"autoprefixer": "^10.4.16",
36+
"eslint": "^8.55.0",
37+
"eslint-plugin-react": "^7.33.2",
38+
"eslint-plugin-react-hooks": "^4.6.0",
39+
"eslint-plugin-react-refresh": "^0.4.5",
40+
"postcss": "^8.4.32",
41+
"tailwindcss": "^3.4.0",
42+
"vite": "^5.0.8"
5943
}
6044
}

0 commit comments

Comments
 (0)