Skip to content

Commit df22f00

Browse files
xPawPerryvw
authored andcommitted
Move api spa to vite
1 parent 088fdc9 commit df22f00

36 files changed

Lines changed: 3225 additions & 18952 deletions

api/.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

api/.eslintrc.json

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

api/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
node_modules
2-
/dist

api/.prettierignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

api/eslint.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import js from "@eslint/js";
2+
import reactHooks from "eslint-plugin-react-hooks";
3+
import tseslint from "typescript-eslint";
4+
5+
export default tseslint.config(
6+
{ ignores: ["node_modules"] },
7+
js.configs.recommended,
8+
...tseslint.configs.recommended,
9+
{
10+
plugins: { "react-hooks": reactHooks },
11+
rules: {
12+
...reactHooks.configs.recommended.rules,
13+
"quotes": ["error", "double"],
14+
},
15+
},
16+
);

api/index.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<title>API | ModDota</title>
7+
8+
<link rel="manifest" href="manifest.webmanifest" />
9+
10+
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png" />
11+
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png" />
12+
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png" />
13+
<link rel="mask-icon" href="images/safari-pinned-tab.svg" color="#5bbad5" />
14+
<link rel="shortcut icon" href="images/favicon.ico" />
15+
<link rel="icon" href="images/logo.svg" />
16+
<meta name="theme-color" content="#ffffff" />
17+
</head>
18+
19+
<body>
20+
<div id="root"></div>
21+
<script type="module" src="/src/index.tsx"></script>
22+
</body>
23+
</html>

0 commit comments

Comments
 (0)