setting up project

This commit is contained in:
II-Paulus-II 2024-03-01 17:20:35 +00:00
commit 431fa31ffe
12 changed files with 4296 additions and 0 deletions

21
.eslintrc.cjs Normal file
View File

@ -0,0 +1,21 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['react-refresh'],
rules: {
'react/jsx-no-target-blank': 'off',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}

8
README.md Normal file
View File

@ -0,0 +1,8 @@
# React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

13
index.html Normal file
View File

@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>

4116
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

26
package.json Normal file
View File

@ -0,0 +1,26 @@
{
"name": "paulus.casa",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.56",
"@types/react-dom": "^18.2.19",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.56.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"vite": "^5.1.4"
}
}

6
src/App.css Normal file
View File

@ -0,0 +1,6 @@
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}

17
src/App.jsx Normal file
View File

@ -0,0 +1,17 @@
import { useState } from 'react'
import './App.css'
function App() {
return (
<>
<div>
<p>
paragraph
</p>
</div>
</>
)
}
export default App

21
src/data/cppdata.js Normal file
View File

@ -0,0 +1,21 @@
const BLANKTEMPLATE = {
Name: "",
Details: "",
Technologies: "",
GitHub: "",
}
export const cppProjects = [
{
Name: "Messi vs Ronaldo TicTacToe",
GitHub: "",
Information: "",
Technologies: "",
},
{
Name: "",
GitHub: "",
Information: "",
Technologies: "",
}
];

28
src/data/modsdata.js Normal file
View File

@ -0,0 +1,28 @@
const BLANKTEMPLATE = {
Name: "",
GitHub: "",
Steam: "",
Workshop_ID: "",
Details: "",
Skills: "",
}
export const modProjects = [
{
Name: "",
GitHub: "",
Steam: "",
Workshop_ID: "",
Details: "",
Skills: "",
},
{
Name: "",
GitHub: "",
Steam: "",
Workshop_ID: "",
Details: "",
Skills: "",
},
];

24
src/data/webdata.js Normal file
View File

@ -0,0 +1,24 @@
const BLANKTEMPLATE = {
Name: "",
Details: "",
Technologies: "",
GitHub: "",
Hosted: "",
}
export const webProjects = [
{
Name: "",
Details: "",
Technologies: "",
GitHub: "",
Hosted: "",
},
{
Name: "",
Details: "",
Technologies: "",
GitHub: "",
Hosted: "",
},
];

9
src/main.jsx Normal file
View File

@ -0,0 +1,9 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.jsx'
ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
<App />
</React.StrictMode>,
)

7
vite.config.js Normal file
View File

@ -0,0 +1,7 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
})