Skip to content

Commit

Permalink
update: migrate to vite
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Jul 17, 2022
1 parent 8f3c96d commit 3e4b7e1
Show file tree
Hide file tree
Showing 42 changed files with 946 additions and 1,408 deletions.
4 changes: 0 additions & 4 deletions GZCTF/ClientApp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
# testing
/coverage

# next.js
/.next/
/out/

# production
/build

Expand Down
19 changes: 19 additions & 0 deletions GZCTF/ClientApp/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GZ::CTF</title>
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="crossorigin"/>
<link
href="https://fonts.googleapis.com/css2?family=JetBrains+Mono&family=IBM+Plex+Sans:ital,wght@0,400;0,500;1,400&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
5 changes: 0 additions & 5 deletions GZCTF/ClientApp/next-env.d.ts

This file was deleted.

31 changes: 0 additions & 31 deletions GZCTF/ClientApp/next.config.js

This file was deleted.

30 changes: 15 additions & 15 deletions GZCTF/ClientApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build && next export",
"start": "next start",
"lint": "next lint",
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"prettier": "prettier --write src",
"genapi": "swagger-typescript-api -p template/swagger.json -t template -o src --module-name-first-tag"
},
Expand All @@ -18,7 +17,6 @@
"@mantine/form": "^4.2.12",
"@mantine/hooks": "^4.2.12",
"@mantine/modals": "^4.2.12",
"@mantine/next": "^4.2.12",
"@mantine/notifications": "^4.2.12",
"@mantine/prism": "^4.2.12",
"@mantine/rte": "^4.2.12",
Expand All @@ -29,25 +27,27 @@
"dayjs": "^1.11.3",
"echarts": "^5.3.3",
"echarts-for-react": "^3.0.2",
"http-proxy-middleware": "^2.0.6",
"next": "12.1.6",
"react": "^18.2.0",
"react-dom": "^17.0.2",
"react-dom": "^18.2.0",
"react-router": "^6.3.0",
"react-router-dom": "^6.3.0",
"swr": "^1.3.0"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^3.2.0",
"@types/node": "17.0.33",
"@types/react": "^17.0.47",
"@types/react-dom": "^17.0.17",
"@types/node": "18.0.5",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@vitejs/plugin-react": "^2.0.0",
"axios": "^0.27.2",
"eslint": "8.15.0",
"eslint-config-next": "12.1.6",
"eslint": "8.20.0",
"form-data": "~4.0.0",
"lodash": "^4.17.21",
"prettier": "~2.6.2",
"prettier": "~2.7.1",
"swagger-typescript-api": "^9.3.1",
"tslib": "^2.4.0",
"typescript": "4.6.4"
"typescript": "4.7.4",
"vite": "^3.0.0",
"vite-plugin-pages": "^0.25.0"
}
}
Loading

0 comments on commit 3e4b7e1

Please sign in to comment.