Skip to content

Commit

Permalink
Merge pull request #122 from USEPA/feature/build-app-for-production
Browse files Browse the repository at this point in the history
Feature/build app for production
  • Loading branch information
courtneymyers authored Apr 17, 2023
2 parents 1a00bcd + 5f9a535 commit 7af6d5c
Show file tree
Hide file tree
Showing 68 changed files with 245 additions and 97 deletions.
66 changes: 57 additions & 9 deletions server/app/public/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,64 @@
{
"files": {
"main.css": "./static/css/main.63375a58.css",
"main.js": "./static/js/main.df7bd9a1.js",
"static/js/787.4c6c9848.chunk.js": "./static/js/787.4c6c9848.chunk.js",
"main.css": "./static/css/main.463e0540.css",
"main.js": "./static/js/main.6e02ed13.js",
"static/js/496.372339b6.chunk.js": "./static/js/496.372339b6.chunk.js",
"static/media/hero.jpg": "./static/media/hero.fdfa1c365bb151847b2c.jpg",
"static/media/Latin-Merriweather-Regular.woff2": "./static/media/Latin-Merriweather-Regular.a30c1b8fcb759e9fe728.woff2",
"static/media/Latin-Merriweather-Bold.woff2": "./static/media/Latin-Merriweather-Bold.9caa42f21e4ae090b755.woff2",
"static/media/Latin-Merriweather-Light.woff2": "./static/media/Latin-Merriweather-Light.f347d9834a5feacbcefb.woff2",
"static/media/sourcesanspro-regular-webfont.woff2": "./static/media/sourcesanspro-regular-webfont.e7bccfa631a0017f31da.woff2",
"static/media/sourcesanspro-light-webfont.woff2": "./static/media/sourcesanspro-light-webfont.e5f1a42e1c2b97e25876.woff2",
"static/media/sourcesanspro-bold-webfont.woff2": "./static/media/sourcesanspro-bold-webfont.4a1efbe82eaa84ff89ed.woff2",
"static/media/Latin-Merriweather-BoldItalic.woff2": "./static/media/Latin-Merriweather-BoldItalic.dc8b76b44a8a6e5fad1c.woff2",
"static/media/Latin-Merriweather-Italic.woff2": "./static/media/Latin-Merriweather-Italic.c63d4066b0f133fc519f.woff2",
"static/media/Latin-Merriweather-LightItalic.woff2": "./static/media/Latin-Merriweather-LightItalic.506121dad559538d44ed.woff2",
"static/media/roboto-mono-v5-latin-300italic.woff2": "./static/media/roboto-mono-v5-latin-300italic.09cc62a8fbd32c8b2812.woff2",
"static/media/roboto-mono-v5-latin-700italic.woff2": "./static/media/roboto-mono-v5-latin-700italic.5a8f743549cc6cef9a00.woff2",
"static/media/roboto-mono-v5-latin-italic.woff2": "./static/media/roboto-mono-v5-latin-italic.087069a9f454e2581ed6.woff2",
"static/media/sourcesanspro-bolditalic-webfont.woff2": "./static/media/sourcesanspro-bolditalic-webfont.ef69f0d737406260319a.woff2",
"static/media/roboto-mono-v5-latin-300.woff2": "./static/media/roboto-mono-v5-latin-300.316b1352cc4ab2054de6.woff2",
"static/media/sourcesanspro-italic-webfont.woff2": "./static/media/sourcesanspro-italic-webfont.c6c9fd228e87eefaf1d4.woff2",
"static/media/sourcesanspro-lightitalic-webfont.woff2": "./static/media/sourcesanspro-lightitalic-webfont.9c5bf2190b2471c2f22b.woff2",
"static/media/roboto-mono-v5-latin-regular.woff2": "./static/media/roboto-mono-v5-latin-regular.f1dc10a756c2c544588b.woff2",
"static/media/roboto-mono-v5-latin-700.woff2": "./static/media/roboto-mono-v5-latin-700.936869ba46988c238748.woff2",
"static/media/loader.svg": "./static/media/loader.10d2d7c0a681e4e825da.svg",
"index.html": "./index.html",
"static/media/icons.svg": "./static/media/icons.03891d3779feaec1951ee19d969dbb54.svg",
"main.63375a58.css.map": "./static/css/main.63375a58.css.map",
"main.df7bd9a1.js.map": "./static/js/main.df7bd9a1.js.map",
"787.4c6c9848.chunk.js.map": "./static/js/787.4c6c9848.chunk.js.map"
"static/media/icons.svg": "./static/media/icons.6a36abfbd6d490a98c1ef7af8a362449.svg",
"static/media/file-pdf.svg": "./static/media/file-pdf.51bdb15e1e5b831bcf29.svg",
"static/media/file-word.svg": "./static/media/file-word.277ffb94e7a09f8a2d1a.svg",
"static/media/file-excel.svg": "./static/media/file-excel.d002b7e57fe318badf49.svg",
"static/media/correct8-alt.svg": "./static/media/correct8-alt.30d16a7a68f9063d3141.svg",
"static/media/correct8.svg": "./static/media/correct8.eac85396da602db01ea3.svg",
"static/media/file-video.svg": "./static/media/file-video.15490fa6d64ebfb4f314.svg",
"static/media/search.svg": "./static/media/search.9eb64800a329d1571f77.svg",
"static/media/file.svg": "./static/media/file.7e80f971a49227f49f7e.svg",
"static/media/launch--white.svg": "./static/media/launch--white.3dbeb02a26b146b9e918.svg",
"static/media/error--white.svg": "./static/media/error--white.7f8e755b649a0ca72ce5.svg",
"static/media/launch.svg": "./static/media/launch.152ec273c24f4fa5e63d.svg",
"static/media/unfold_more.svg": "./static/media/unfold_more.07df1f54ba8982f64bff.svg",
"static/media/check_circle.svg": "./static/media/check_circle.923b3f2b329f1d5dafd1.svg",
"static/media/calendar_today.svg": "./static/media/calendar_today.a1af7eb3d190d96bab4f.svg",
"static/media/check--blue-60v.svg": "./static/media/check--blue-60v.0cd5697e7b293b7a2666.svg",
"static/media/close.svg": "./static/media/close.e950e71a69cf4464f585.svg",
"static/media/error.svg": "./static/media/error.3bb67f155055c78cdcc3.svg",
"static/media/info.svg": "./static/media/info.dc35b14c3402e2a12132.svg",
"static/media/navigate_far_next.svg": "./static/media/navigate_far_next.d2401ba1e153d4c7c1be.svg",
"static/media/navigate_far_before.svg": "./static/media/navigate_far_before.ea432f12420078162964.svg",
"static/media/arrow_back.svg": "./static/media/arrow_back.6c6d6aeb972d1ae6f7f0.svg",
"static/media/warning.svg": "./static/media/warning.0b3db3c7e58c768cfa8f.svg",
"static/media/navigate_next.svg": "./static/media/navigate_next.84649ddddcc0da925ace.svg",
"static/media/expand_less.svg": "./static/media/expand_less.09995e9efaaa445c37a4.svg",
"static/media/navigate_before.svg": "./static/media/navigate_before.d6380d65052ca18f617a.svg",
"static/media/expand_more.svg": "./static/media/expand_more.31d5b0683ccce72c008f.svg",
"static/media/add.svg": "./static/media/add.15fb83c243810d04ccca.svg",
"static/media/remove.svg": "./static/media/remove.4f51f2cc5b62b5d02abe.svg",
"main.463e0540.css.map": "./static/css/main.463e0540.css.map",
"main.6e02ed13.js.map": "./static/js/main.6e02ed13.js.map",
"496.372339b6.chunk.js.map": "./static/js/496.372339b6.chunk.js.map"
},
"entrypoints": [
"static/css/main.63375a58.css",
"static/js/main.df7bd9a1.js"
"static/css/main.463e0540.css",
"static/js/main.6e02ed13.js"
]
}
5 changes: 0 additions & 5 deletions server/app/public/details-pollyfill.js

This file was deleted.

Binary file removed server/app/public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion server/app/public/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>AVERT</title><script>!function(e,t,a,n,g){e[n]=e[n]||[],e[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var m=t.getElementsByTagName(a)[0],r=t.createElement(a);r.async=!0,r.src="//www.googletagmanager.com/gtm.js?id=GTM-KNF7GND",m.parentNode.insertBefore(r,m)}(window,document,"script","dataLayer")</script><script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.26.0/polyfill.min.js"></script><script defer="defer" src="./static/js/main.df7bd9a1.js"></script><link href="./static/css/main.63375a58.css" rel="stylesheet"></head><body><noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-KNF7GND" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><noscript>You need to enable JavaScript to use the AVERT app.</noscript><div id="root"></div><script src="./post-message.js"></script><script src="./details-pollyfill.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" type="image/x-icon" href="https://www.epa.gov/themes/epa_theme/images/favicon.ico"/><link rel="preload" href="https://www.epa.gov/themes/epa_theme/fonts/source-sans-pro/sourcesanspro-regular-webfont.woff2" as="font" crossorigin="anonymous"/><link rel="preload" href="https://www.epa.gov/themes/epa_theme/fonts/source-sans-pro/sourcesanspro-bold-webfont.woff2" as="font" crossorigin="anonymous"/><link rel="preload" href="https://www.epa.gov/themes/epa_theme/fonts/merriweather/Latin-Merriweather-Bold.woff2" as="font" crossorigin="anonymous"/><link rel="preload" href="https://www.epa.gov/themes/epa_theme/fonts/roboto-mono/roboto-mono-v5-latin-regular.woff2" as="font" crossorigin="anonymous"/><link rel="stylesheet" media="all" href="https://www.epa.gov/themes/epa_theme/css/styles.css"/><title>AVoided Emissions and geneRation Tool (AVERT) | US EPA</title><script>!function(e,t,a,n,g){e[n]=e[n]||[],e[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var m=t.getElementsByTagName(a)[0],r=t.createElement(a);r.async=!0,r.src="//www.googletagmanager.com/gtm.js?id=GTM-KNF7GND",m.parentNode.insertBefore(r,m)}(window,document,"script","dataLayer")</script><script defer="defer" src="./static/js/main.6e02ed13.js"></script><link href="./static/css/main.463e0540.css" rel="stylesheet"></head><body><main><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></main><script src="./post-message.js"></script></body></html>
22 changes: 10 additions & 12 deletions server/app/public/post-message.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
/* prettier-ignore */
(function () {
// get height of current document, and send to parent window
// get height of the current document, and send to the parent window
function sendHeight() {
var height = document.querySelector('html').offsetHeight;
const height = document.querySelector('body').offsetHeight;
window.parent.postMessage(['setHeight', height], '*');
}

// delay sending height, so height is calculated after all elements load
document.addEventListener('DOMContentLoaded', function(ev) {
document.addEventListener('DOMContentLoaded', (_ev) => {
window.setTimeout(sendHeight, 1000);
}, false);
});

// delay sending height, so height is calculated after click
document.addEventListener('click', function(ev) {
document.addEventListener('click', (_ev) => {
window.setTimeout(sendHeight, 0);
}, false);
});

// delegate delayed sending of height to only 'Enter' keypress
document.addEventListener('keypress', function(ev) {
if ((ev.key && ev.key === 'Enter') || (ev.keyCode && ev.keyCode === 13)) {
window.setTimeout(sendHeight, 0);
}
}, false);
document.addEventListener('keydown', (ev) => {
if (ev.key !== 'Enter') return;
window.setTimeout(sendHeight, 0);
});
})();
4 changes: 4 additions & 0 deletions server/app/public/static/css/main.463e0540.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions server/app/public/static/css/main.463e0540.css.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions server/app/public/static/css/main.63375a58.css

This file was deleted.

Loading

0 comments on commit 7af6d5c

Please sign in to comment.