Skip to content

Commit 7241a19

Browse files
committed
Merge branch 'vite'
2 parents 5c4d2bf + 5fa23de commit 7241a19

File tree

365 files changed

+22491
-15631
lines changed

Some content is hidden

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

365 files changed

+22491
-15631
lines changed

.eslintrc.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
node: true,
6+
},
7+
extends: [
8+
'eslint:recommended',
9+
'plugin:react/recommended',
10+
'plugin:react-hooks/recommended',
11+
'prettier',
12+
],
13+
parserOptions: {
14+
ecmaFeatures: {
15+
jsx: true,
16+
},
17+
ecmaVersion: 'latest',
18+
sourceType: 'module',
19+
},
20+
plugins: ['react', 'react-hooks'],
21+
rules: {
22+
'react/react-in-jsx-scope': 'off',
23+
'react/prop-types': 'warn',
24+
'no-unused-vars': 'warn',
25+
'no-console': 'warn',
26+
'react-hooks/rules-of-hooks': 'error',
27+
'react-hooks/exhaustive-deps': 'warn',
28+
},
29+
settings: {
30+
react: {
31+
version: 'detect',
32+
},
33+
},
34+
ignorePatterns: ['public/', '.cache/', 'node_modules/', '*.min.js'],
35+
};

.github/workflows/add_paper.yml

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

.github/workflows/ci-cd.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: CI/CD Pipeline
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main]
8+
9+
concurrency:
10+
group: "pages"
11+
cancel-in-progress: false
12+
13+
jobs:
14+
lint-and-test:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: "18"
25+
cache: "npm"
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Run linting
31+
run: npm run lint
32+
33+
- name: Check formatting
34+
run: npm run format:check
35+
36+
- name: Build project
37+
run: npm run build
38+
39+
deploy:
40+
runs-on: ubuntu-latest
41+
needs: lint-and-test
42+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
43+
44+
permissions:
45+
contents: read
46+
pages: write
47+
id-token: write
48+
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
53+
steps:
54+
- name: Checkout code
55+
uses: actions/checkout@v4
56+
57+
- name: Setup Node.js
58+
uses: actions/setup-node@v4
59+
with:
60+
node-version: "18"
61+
cache: "npm"
62+
63+
- name: Install dependencies
64+
run: npm ci
65+
66+
- name: Build project
67+
run: npm run build
68+
69+
- name: Setup Pages
70+
uses: actions/configure-pages@v4
71+
72+
- name: Upload artifact
73+
uses: actions/upload-pages-artifact@v3
74+
with:
75+
path: ./dist
76+
77+
- name: Deploy to GitHub Pages
78+
id: deployment
79+
uses: actions/deploy-pages@v4

.github/workflows/deploy_main_push.yml

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

.gitignore

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,55 @@
1+
# Dependencies
12
node_modules/
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
7+
# Build outputs
28
.cache/
3-
public
4-
papers.json
9+
dist/
10+
build/
11+
12+
# Environment variables
13+
.env
14+
.env.local
15+
.env.development.local
16+
.env.test.local
17+
.env.production.local
18+
19+
# Generated files
20+
papers.json
21+
public/papers.json
22+
*.tsbuildinfo
23+
24+
# Logs
25+
logs
26+
*.log
27+
28+
# Runtime data
29+
pids
30+
*.pid
31+
*.seed
32+
*.pid.lock
33+
34+
# Coverage directory used by tools like istanbul
35+
coverage/
36+
*.lcov
37+
38+
# OS generated files
39+
.DS_Store
40+
.DS_Store?
41+
._*
42+
.Spotlight-V100
43+
.Trashes
44+
ehthumbs.db
45+
Thumbs.db
46+
47+
# IDE files
48+
.vscode/settings.json
49+
.idea/
50+
*.swp
51+
*.swo
52+
53+
# Temporary folders
54+
tmp/
55+
temp/

.prettierignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Build outputs
2+
public/
3+
.cache/
4+
dist/
5+
build/
6+
7+
# Dependencies
8+
node_modules/
9+
10+
# Generated files
11+
*.log
12+
.DS_Store
13+
.env*
14+
coverage/
15+
16+
# Specific files
17+
package-lock.json
18+
yarn.lock
19+
papers.json

.prettierrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "es5",
4+
"singleQuote": true,
5+
"printWidth": 80,
6+
"tabWidth": 2,
7+
"useTabs": false,
8+
"bracketSpacing": true,
9+
"arrowParens": "avoid",
10+
"endOfLine": "lf",
11+
"overrides": [
12+
{
13+
"files": "*.md",
14+
"options": {
15+
"printWidth": 100,
16+
"proseWrap": "always"
17+
}
18+
}
19+
]
20+
}

.vscode/extensions.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"recommendations": [
3+
"esbenp.prettier-vscode",
4+
"dbaeumer.vscode-eslint",
5+
"bradlc.vscode-tailwindcss",
6+
"ms-vscode.vscode-json",
7+
"redhat.vscode-yaml",
8+
"ms-vscode.vscode-typescript-next",
9+
"graphql.vscode-graphql",
10+
"gatsby.gatsby-vscode"
11+
]
12+
}

0 commit comments

Comments
 (0)