-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply changes from OG vite and update vite and vitest #1379
- Loading branch information
1 parent
06d1c95
commit 5b0f17d
Showing
7 changed files
with
911 additions
and
436 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="shortcut icon" href="/favicon.ico?v=2" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<!-- | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="shortcut icon" href="/favicon.ico?v=2" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<!-- | ||
manifest.json provides metadata used when your web app is installed on a | ||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ | ||
--> | ||
<link rel="manifest" href="/manifest.json" /> | ||
<title>SciGateway</title> | ||
</head> | ||
<link rel="manifest" href="/manifest.json" /> | ||
<title>SciGateway</title> | ||
</head> | ||
|
||
<body> | ||
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script> | ||
<script> | ||
window.React || | ||
document.write('<script src="/react.production.min.js">\x3C/script>'); | ||
</script> | ||
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script> | ||
<script> | ||
window.ReactDOM || | ||
document.write( | ||
'<script src="/react-dom.production.min.js">\x3C/script>' | ||
); | ||
</script> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="scigateway"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
|
||
<body> | ||
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script> | ||
<script>window.React || document.write('<script src="/react.production.min.js">\x3C/script>')</script> | ||
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script> | ||
<script>window.ReactDOM || document.write('<script src="/react-dom.production.min.js">\x3C/script>')</script> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="scigateway"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,7 @@ | |
"single-spa": "5.9.4", | ||
"typeface-roboto": "1.1.13", | ||
"typescript": "5.3.3", | ||
"vite": "^5.1.6" | ||
"vite": "^5.3.5" | ||
}, | ||
"scripts": { | ||
"dev": "cross-env concurrently \"yarn serve:plugins\" \"node server/auth-server.js\" \"vite --open\"", | ||
|
@@ -102,22 +102,22 @@ | |
"@types/redux-mock-store": "1.0.2", | ||
"@typescript-eslint/eslint-plugin": "7.0.2", | ||
"@typescript-eslint/parser": "7.0.2", | ||
"@vitest/coverage-v8": "^1.3.1", | ||
"@vitest/coverage-v8": "2.0.5", | ||
"axios-mock-adapter": "1.22.0", | ||
"concurrently": "8.2.0", | ||
"cors": "2.8.5", | ||
"cross-env": "7.0.3", | ||
"cypress": "13.6.4", | ||
"eslint": "8.56.0", | ||
"eslint-plugin-react": "^7.34.0", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-testing-library": "^6.2.0", | ||
"eslint-plugin-react-hooks": "4.6.0", | ||
"eslint-plugin-testing-library": "6.2.0", | ||
"jsdom": "^24.0.0", | ||
"lint-staged": "15.2.0", | ||
"redux-mock-store": "1.5.4", | ||
"serve": "14.2.0", | ||
"start-server-and-test": "2.0.0", | ||
"vitest": "^1.3.1", | ||
"vitest": "2.0.5", | ||
"wait-on": "7.2.0" | ||
}, | ||
"packageManager": "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
.App { | ||
text-align: center; | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
background-color: #212121; | ||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', | ||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', | ||
sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
.App-logo { | ||
animation: App-logo-spin infinite 20s linear; | ||
height: 40vmin; | ||
pointer-events: none; | ||
code { | ||
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', | ||
monospace; | ||
} | ||
|
||
.App-header { | ||
background-color: #282c34; | ||
min-height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: calc(10px + 2vmin); | ||
color: white; | ||
.top-center { | ||
top: 70px !important; | ||
} | ||
|
||
.App-link { | ||
color: #61dafb; | ||
/* Need to modify to black as the default white isn't good enough contrast */ | ||
.redux-toastr :is(.toastr.rrt-warning, .toastr.rrt-error, .toastr.rrt-info, .toastr.rrt-success) { | ||
color: #000000; | ||
} | ||
|
||
@keyframes App-logo-spin { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
.redux-toastr .toastr .rrt-left-container .toastr-icon { | ||
fill: #000000; | ||
} | ||
|
||
@keyframes rotate { | ||
to { | ||
transform: rotate(360deg); | ||
transform: rotateZ(360deg); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.