-
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 384f97b
Showing
7 changed files
with
910 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
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.