Skip to content

Commit

Permalink
Built for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
SpiderPigzz committed Oct 21, 2024
1 parent 8ea1f4f commit 8afd0b7
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 34 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PUBLIC_URL="https://earthobservatory.github.io/REACT-EOS-PRODUCTS/"
BUILD_PATH="docs"
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/node_modules
/node_modules
.env
.DS_Store
1 change: 0 additions & 1 deletion docs/CNAME

This file was deleted.

32 changes: 16 additions & 16 deletions docs/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"files": {
"main.css": "/static/css/main.12d852b1.css",
"main.js": "/static/js/main.3f03dc72.js",
"static/media/Map-version-selection.gif": "/static/media/Map-version-selection.548c7b3c2723606a3879.gif",
"static/media/Sent1-ESA-ModifiedEOSRS.png": "/static/media/Sent1-ESA-ModifiedEOSRS.5e95c0d943318c056e73.png",
"static/media/EOS_PRODUCT.png": "/static/media/EOS_PRODUCT.e68685849e59894b23fc.png",
"static/media/NTU-Logo.png": "/static/media/NTU-Logo.0a65716aa80c0feb8180.png",
"static/media/MYRIADPRO-BOLD.woff": "/static/media/MYRIADPRO-BOLD.1c6432261fa438517e63.woff",
"static/media/MYRIADPRO-REGULAR.woff": "/static/media/MYRIADPRO-REGULAR.d30b05461519da431d12.woff",
"static/media/inSAR_diagram.png": "/static/media/inSAR_diagram.dee63d5adcf80edea628.png",
"static/media/EOS-Logo-White.png": "/static/media/EOS-Logo-White.84c24673c25483eb18f9.png",
"index.html": "/index.html",
"static/media/noise.svg": "/static/media/noise.46169fe3bf16f4e975f2d782397cb535.svg",
"main.12d852b1.css.map": "/static/css/main.12d852b1.css.map",
"main.3f03dc72.js.map": "/static/js/main.3f03dc72.js.map"
"main.css": "https://earthobservatory.github.io/REACT-EOS-PRODUCTS/static/css/main.477177ac.css",
"main.js": "https://earthobservatory.github.io/REACT-EOS-PRODUCTS/static/js/main.da2de389.js",
"static/media/Map-version-selection.gif": "https://earthobservatory.github.io/REACT-EOS-PRODUCTS/static/media/Map-version-selection.548c7b3c2723606a3879.gif",
"static/media/Sent1-ESA-ModifiedEOSRS.png": "https://earthobservatory.github.io/REACT-EOS-PRODUCTS/static/media/Sent1-ESA-ModifiedEOSRS.5e95c0d943318c056e73.png",
"static/media/EOS_PRODUCT.png": "https://earthobservatory.github.io/REACT-EOS-PRODUCTS/static/media/EOS_PRODUCT.e68685849e59894b23fc.png",
"static/media/NTU-Logo.png": "https://earthobservatory.github.io/REACT-EOS-PRODUCTS/static/media/NTU-Logo.0a65716aa80c0feb8180.png",
"static/media/MYRIADPRO-BOLD.woff": "https://earthobservatory.github.io/REACT-EOS-PRODUCTS/static/media/MYRIADPRO-BOLD.1c6432261fa438517e63.woff",
"static/media/MYRIADPRO-REGULAR.woff": "https://earthobservatory.github.io/REACT-EOS-PRODUCTS/static/media/MYRIADPRO-REGULAR.d30b05461519da431d12.woff",
"static/media/inSAR_diagram.png": "https://earthobservatory.github.io/REACT-EOS-PRODUCTS/static/media/inSAR_diagram.dee63d5adcf80edea628.png",
"static/media/EOS-Logo-White.png": "https://earthobservatory.github.io/REACT-EOS-PRODUCTS/static/media/EOS-Logo-White.84c24673c25483eb18f9.png",
"index.html": "https://earthobservatory.github.io/REACT-EOS-PRODUCTS/index.html",
"static/media/noise.svg": "https://earthobservatory.github.io/REACT-EOS-PRODUCTS/static/media/noise.46169fe3bf16f4e975f2d782397cb535.svg",
"main.477177ac.css.map": "https://earthobservatory.github.io/REACT-EOS-PRODUCTS/static/css/main.477177ac.css.map",
"main.da2de389.js.map": "https://earthobservatory.github.io/REACT-EOS-PRODUCTS/static/js/main.da2de389.js.map"
},
"entrypoints": [
"static/css/main.12d852b1.css",
"static/js/main.3f03dc72.js"
"static/css/main.477177ac.css",
"static/js/main.da2de389.js"
]
}
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/static/EOS-Logo.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="EOS-RS Products"/><link rel="apple-touch-icon" href="/static/EOS-RS-Logo.png"/><link rel="manifest" href="/manifest.json"/><title>EOS-RS Products</title><script defer="defer" src="/static/js/main.3f03dc72.js"></script><link href="/static/css/main.12d852b1.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="https://earthobservatory.github.io/REACT-EOS-PRODUCTS/static/EOS-Logo.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="EOS-RS Products"/><link rel="apple-touch-icon" href="https://earthobservatory.github.io/REACT-EOS-PRODUCTS/static/EOS-RS-Logo.png"/><link rel="manifest" href="https://earthobservatory.github.io/REACT-EOS-PRODUCTS/manifest.json"/><title>EOS-RS Products</title><script defer="defer" src="https://earthobservatory.github.io/REACT-EOS-PRODUCTS/static/js/main.da2de389.js"></script><link href="https://earthobservatory.github.io/REACT-EOS-PRODUCTS/static/css/main.477177ac.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
2 changes: 0 additions & 2 deletions docs/static/css/main.12d852b1.css

This file was deleted.

2 changes: 2 additions & 0 deletions docs/static/css/main.477177ac.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions docs/static/js/main.3f03dc72.js

This file was deleted.

3 changes: 3 additions & 0 deletions docs/static/js/main.da2de389.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @preserve
* Leaflet 1.9.3, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/

/**
Expand Down Expand Up @@ -54,7 +54,7 @@
*/

/**
* @remix-run/router v1.3.2
* @remix-run/router v1.15.3
*
* Copyright (c) Remix Software Inc.
*
Expand All @@ -65,7 +65,7 @@
*/

/**
* React Router v6.8.1
* React Router v6.22.3
*
* Copyright (c) Remix Software Inc.
*
Expand Down

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions src/pages/Leaflet/Leaflet.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,13 @@ function LeafletPage(props) {

setProducts(finalList);

setOpenLayers(true);
setMainProduct(finalList);
}
}, [state]);

const setMainProduct = async (finalList) => {
setTimeout(() => {
const newChecked = [...checked];
newChecked.push(
finalList.filter((item) => {
Expand All @@ -410,9 +417,8 @@ function LeafletPage(props) {
})[0]
);
setChecked(newChecked);
setOpenLayers(true);
}
}, [state]);
}, 500); // 1000 milliseconds delay
};

const handleDrawerOpen = () => {
setOpen(true);
Expand Down Expand Up @@ -621,7 +627,7 @@ function LeafletPage(props) {
Product Description
</CustomTypo>
<CustomTypo variant="h6" sx={{ lineBreak: "anywhere" }}>
{decodeURIComponent(escape(sidebarDescription?.title))}
{sidebarDescription?.title}
</CustomTypo>
<CustomTypo sx={{ whiteSpace: "pre-wrap" }}>
{sidebarDescription?.description}
Expand Down

0 comments on commit 8afd0b7

Please sign in to comment.