mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-10-01 15:33:17 -07:00
Attempt to merge Lighthouse Fix branch from Nat (#758)
* Add a11y tests in cypress for methodology page - update cypress to version 8.5 - add HTML lang the <head> element - change process list headings to h4 - add alt tag to download image icon - move <GovBanner> into <Header> - add documentation around a11y testing * Add cypress a11y tests for cejst page - add alt icon for mapIntro page - change legend to be a normal div - add a class that mimics the h4 styles - remove superfluous styles * Add cypress a11y tests for contact and 404 page * Update snapshots * Move static text in footer to copy folder * Add cypress a11y test to About page - add required h1 tag - updates snapshot * Add site_url.xml and modify robots.txt file - adds plugins for robots.txt and sitemap - remove env.local and will add env.production - modifiy all yml files (docker and GHA) to specify new env variables - refactor env variables to either DATA_SOURCE, SITE_URL or PATH_PREFIX - set defaults for env variables in gatsby-config - remove timeline component - will add blank index page - update README on info on env variables * Add plugin to allow custom env vars - allows system env vars, ie, DATA_SOURCE on client-side application * Update displayed URLs in GHA to new CDN (d29) - also updates the blank index.html * Correct spacing * Set SITE_URL to new CDN for robots.txt * Remove SITE_URL as this is set by GHA * Update README around docker and env vars
This commit is contained in:
parent
52aa0e3123
commit
72d80a5803
32 changed files with 999 additions and 748 deletions
12
client/src/data/blankCEJST/index.html
Normal file
12
client/src/data/blankCEJST/index.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<!doctype html>
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- your content here... -->
|
||||
</body>
|
||||
</html>
|
|
@ -1,10 +1,17 @@
|
|||
|
||||
import {LngLatBoundsLike} from 'maplibre-gl';
|
||||
import {isMobile as isMobileReactDeviceDetect} from 'react-device-detect';
|
||||
|
||||
const XYZ_SUFFIX = '{z}/{x}/{y}.pbf';
|
||||
export const featureURLForTilesetName = (tilesetName :string ) : string => {
|
||||
// The feature tile base URL can either point locally or the CDN.
|
||||
// This is selected based on the DATA_SOURCE env variable.
|
||||
const featureTileBaseURL = process.env.DATA_SOURCE === 'local' ?
|
||||
process.env.GATSBY_LOCAL_TILES_BASE_URL :
|
||||
process.env.GATSBY_CDN_TILES_BASE_URL;
|
||||
|
||||
return [
|
||||
process.env.GATSBY_DATA_ROOT_PATH,
|
||||
featureTileBaseURL,
|
||||
process.env.GATSBY_DATA_PIPELINE_SCORE_PATH,
|
||||
process.env.GATSBY_MAP_TILES_PATH,
|
||||
tilesetName,
|
||||
|
|
|
@ -6,6 +6,11 @@ export const PAGE = defineMessages({
|
|||
defaultMessage: 'About',
|
||||
description: 'about page title text',
|
||||
},
|
||||
HEADING: {
|
||||
id: 'index.heading.about.us',
|
||||
defaultMessage: 'About us',
|
||||
description: 'main heading for about page',
|
||||
},
|
||||
HEADING_1: {
|
||||
id: 'index.heading.screentool',
|
||||
defaultMessage: 'The screening tool',
|
||||
|
|
|
@ -104,6 +104,11 @@ export const FOOTER = defineMessages({
|
|||
defaultMessage: 'Find a contact at USA.gov',
|
||||
description: 'Footer find contact link text',
|
||||
},
|
||||
CONTACT: {
|
||||
id: 'footer.contactheader',
|
||||
defaultMessage: 'Contact',
|
||||
description: 'Footer column header',
|
||||
},
|
||||
});
|
||||
|
||||
export const FOOTER_CEQ_ADDRESS = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue