Migrate from react-scripts to vite

This commit is contained in:
Camerin Figueroa 2025-11-17 18:30:57 -05:00
parent 3bd390191c
commit 104b66e47c
78 changed files with 6268 additions and 15715 deletions

22
dist/api/articles.json vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/assets/background-C__p998u.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

1
dist/assets/index-DL13lCrE.css vendored Normal file

File diff suppressed because one or more lines are too long

5016
dist/assets/index-DMCgMsst.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/bai_model/group1-shard10of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard11of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard12of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard13of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard14of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard15of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard16of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard17of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard18of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard19of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard1of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard20of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard21of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard22of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard23of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard24of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard25of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard26of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard27of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard2of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard3of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard4of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard5of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard6of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard7of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard8of27.bin vendored Normal file

Binary file not shown.

BIN
dist/bai_model/group1-shard9of27.bin vendored Normal file

Binary file not shown.

1
dist/bai_model/model.json vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/favicon.ico vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
dist/img/background.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 KiB

BIN
dist/img/github.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
dist/img/hackerrank.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
dist/img/hackthebox.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
dist/img/hvcu.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
dist/img/leetcode_logo.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
dist/img/linkedin.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
dist/img/marist.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
dist/img/profile.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 KiB

BIN
dist/img/react.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
dist/img/social.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 KiB

BIN
dist/img/space.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
dist/img/sunset.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
dist/img/udemy.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

23
dist/index.html vendored Normal file
View File

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<title>Cam's Portfolio</title>
<script type="module" crossorigin src="/assets/index-DMCgMsst.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DL13lCrE.css">
</head>
<body style="background-color: #3F3F4A;">
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<div id="modal"></div>
</body>
</html>

BIN
dist/logo-192.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
dist/logo-512.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

25
dist/manifest.json vendored Normal file
View File

@ -0,0 +1,25 @@
{
"short_name": "Cams Projects",
"name": "Camerin's Projects",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo-192.webp",
"type": "image/webp",
"sizes": "192x192"
},
{
"src": "logo-512.webp",
"type": "image/webp",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#3F3F4A",
"background_color": "#3F3F4A"
}

Binary file not shown.

3
dist/robots.txt vendored Normal file
View File

@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:

View File

@ -17,5 +17,6 @@
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div> <div id="root"></div>
<div id="modal"></div> <div id="modal"></div>
<script type="module" src="/src/index.jsx"></script>
</body> </body>
</html> </html>

16856
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,7 @@
"@reduxjs/toolkit": "^1.9.3", "@reduxjs/toolkit": "^1.9.3",
"@tensorflow/tfjs": "^4.2.0", "@tensorflow/tfjs": "^4.2.0",
"@tensorflow/tfjs-converter": "^4.0.0", "@tensorflow/tfjs-converter": "^4.0.0",
"@vitejs/plugin-react-swc": "^4.2.2",
"axios": "^1.3.4", "axios": "^1.3.4",
"history": "^5.3.0", "history": "^5.3.0",
"memoize": "^0.1.1", "memoize": "^0.1.1",
@ -15,18 +16,17 @@
"react-redux": "^8.0.5", "react-redux": "^8.0.5",
"react-router": "^6.4.3", "react-router": "^6.4.3",
"react-router-dom": "^6.8.2", "react-router-dom": "^6.8.2",
"react-scripts": "^5.0.1",
"redux": "^4.2.1", "redux": "^4.2.1",
"redux-thunk": "^2.4.2", "redux-thunk": "^2.4.2",
"tfjs": "^0.6.0", "tfjs": "^0.6.0",
"vite": "^7.2.2",
"vite-plugin-svgr": "^4.5.0",
"web-vitals": "^3.1.1" "web-vitals": "^3.1.1"
}, },
"scripts": { "scripts": {
"start": "react-scripts start", "start": "vite",
"build": "react-scripts build", "build": "vite build",
"postbuild": "rimraf build/**/*.map", "serve": "vite preview"
"test": "react-scripts test",
"eject": "react-scripts eject"
}, },
"eslintConfig": { "eslintConfig": {
"extends": [ "extends": [

1
src/vite-env.d.js Normal file
View File

@ -0,0 +1 @@
/// <reference types="vite/client" />

8
vite.config.js Normal file
View File

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