Skip to content

Commit

Permalink
[Server.ClientApp] Switched to vite
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Feb 13, 2024
1 parent 15ca1fc commit 6addbb3
Show file tree
Hide file tree
Showing 8 changed files with 3,080 additions and 11,114 deletions.
23 changes: 23 additions & 0 deletions CastIt.Server/ClientApp/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<link rel="apple-touch-icon" href="/logo192.png" />
<link rel="manifest" href="/manifest.json" />
<title>CastIt</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<meta name="viewport" content="minimum-scale=1, initial-scale=1, width=device-width" />
</head>

<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>

</html>
14,099 changes: 3,039 additions & 11,060 deletions CastIt.Server/ClientApp/package-lock.json

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions CastIt.Server/ClientApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,14 @@
"react-dom": "^18.1.0",
"react-localization": "^1.0.19",
"react-router-dom": "^6.3.0",
"react-scripts": "5.0.1",
"rxjs": "^7.5.5",
"typescript": "^4.6.4",
"typescript-string-operations": "^1.4.1",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"start": "vite",
"build": "tsc && vite build"
},
"eslintConfig": {
"extends": [
Expand All @@ -55,6 +52,8 @@
"@types/react-beautiful-dnd": "^13.1.2",
"@types/react-dom": "^18.0.3",
"@types/react-router-dom": "^5.3.3",
"@types/react-window": "^1.8.5"
"@types/react-window": "^1.8.5",
"@vitejs/plugin-react": "^4.2.1",
"vite": "^5.1.1"
}
}
46 changes: 0 additions & 46 deletions CastIt.Server/ClientApp/public/index.html

This file was deleted.

1 change: 0 additions & 1 deletion CastIt.Server/ClientApp/src/react-app-env.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion CastIt.Server/ClientApp/src/utils/app_constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const defaultImg = `${process.env.PUBLIC_URL}/no_img.png`;
export const defaultImg = '/no_img.png';
export const thumbnailImgWidth = 350;
export const thumbnailImgHeight = 200;
1 change: 1 addition & 0 deletions CastIt.Server/ClientApp/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
11 changes: 11 additions & 0 deletions CastIt.Server/ClientApp/vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

export default () => {
return defineConfig({
plugins: [react()],
server: {
port: 3000
}
})
}

0 comments on commit 6addbb3

Please sign in to comment.