mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-07 03:54:19 -07:00
* Fixes #1571 * Split out last updated for all downloads
This commit is contained in:
parent
5c0e6e8096
commit
c07d790b77
9 changed files with 221 additions and 22 deletions
|
@ -74,7 +74,10 @@ export const FORMULA = {
|
|||
// Download Package
|
||||
export const DOWNLOAD_FILE_SIZE = 52;
|
||||
export const DOWNLOAD_SHAPE_FILE_SIZE = 742;
|
||||
export const DOWNLOAD_LAST_UPDATED = 1649287951000;
|
||||
export const DOWNLOAD_TSD_FILE_SIZE = 913; // in KB
|
||||
export const DOWNLOAD_ZIP_LAST_UPDATED = new Date('4/6/2022').getTime();
|
||||
export const DOWNLOAD_SHAPE_LAST_UPDATED = new Date('4/6/2022').getTime();
|
||||
export const DOWNLOAD_TSD_LAST_UPDATED = new Date('4/19/2022').getTime();
|
||||
export const VERSION_NUMBER = 0.1;
|
||||
|
||||
export const DOWNLOAD_ZIP_URL = [
|
||||
|
@ -89,6 +92,13 @@ export const DOWNLOAD_SHAPEFILE_URL = [
|
|||
process.env.GATSBY_SHAPE_FILE_PATH,
|
||||
].join('/');
|
||||
|
||||
// TSD = Tech Support Document
|
||||
export const DOWNLOAD_TSD_URL = [
|
||||
process.env.GATSBY_CDN_TILES_BASE_URL,
|
||||
process.env.GATSBY_DATA_PIPELINE_SCORE_PATH,
|
||||
process.env.GATSBY_TSD_DOWNLOAD_FILE_PATH,
|
||||
].join('/');
|
||||
|
||||
export const DOWNLOAD_PACKAGE = {
|
||||
TITLE: <FormattedMessage
|
||||
id={'methodology.page.downloadPacket.header.text'}
|
||||
|
@ -97,7 +107,7 @@ export const DOWNLOAD_PACKAGE = {
|
|||
/>,
|
||||
DESCRIPTION1: <FormattedMessage
|
||||
id={ 'methodology.page.downloadPacket.info.text1'}
|
||||
defaultMessage= {`Download the data sources used in the CEJST (.csv and .xlsx, {downloadFileSize} unzipped) or the shapefile, along with a codebook (.zip, {shapefileSize} unzipped).`}
|
||||
defaultMessage= {`Download the data sources used in the CEJST (.csv and .xlsx, {downloadFileSize} unzipped), the shapefile, along with a codebook (.zip, {shapefileSize} unzipped) or the technical support document (.pdf, {tsdFileSize}).`}
|
||||
description= {'Navigate to the methodology page. This is the download packet info text'}
|
||||
values= {{
|
||||
downloadFileSize: <FormattedNumber
|
||||
|
@ -112,15 +122,47 @@ export const DOWNLOAD_PACKAGE = {
|
|||
unit="megabyte"
|
||||
unitDisplay="narrow"
|
||||
/>,
|
||||
tsdFileSize: <FormattedNumber
|
||||
value={DOWNLOAD_TSD_FILE_SIZE}
|
||||
style="unit"
|
||||
unit="kilobyte"
|
||||
unitDisplay="narrow"
|
||||
/>,
|
||||
}}
|
||||
/>,
|
||||
LAST_UPDATED: <FormattedMessage
|
||||
id={ 'methodology.page.downloadPacket.info.last.updated'}
|
||||
ZIP_LAST_UPDATED: <FormattedMessage
|
||||
id={ 'methodology.page.downloadPacket.info.zip.last.updated'}
|
||||
defaultMessage= {`Last updated: {downloadLastUpdated} `}
|
||||
description= {'Navigate to the methodology page. This is the download packet info last updated'}
|
||||
values= {{
|
||||
downloadLastUpdated: <FormattedDate
|
||||
value={DOWNLOAD_LAST_UPDATED}
|
||||
value={DOWNLOAD_ZIP_LAST_UPDATED}
|
||||
year="2-digit"
|
||||
month="2-digit"
|
||||
day="2-digit"
|
||||
/>,
|
||||
}}
|
||||
/>,
|
||||
SHAPE_LAST_UPDATED: <FormattedMessage
|
||||
id={ 'methodology.page.downloadPacket.info.shape.last.updated'}
|
||||
defaultMessage= {`Last updated: {shapeLastUpdated} `}
|
||||
description= {'Navigate to the methodology page. This is the download packet info last updated'}
|
||||
values= {{
|
||||
shapeLastUpdated: <FormattedDate
|
||||
value={DOWNLOAD_SHAPE_LAST_UPDATED}
|
||||
year="2-digit"
|
||||
month="2-digit"
|
||||
day="2-digit"
|
||||
/>,
|
||||
}}
|
||||
/>,
|
||||
TSD_LAST_UPDATED: <FormattedMessage
|
||||
id={ 'methodology.page.downloadPacket.info.tsd.last.updated'}
|
||||
defaultMessage= {`Last updated: {tsdLastUpdated} `}
|
||||
description= {'Navigate to the methodology page. This is the download packet info last updated'}
|
||||
values= {{
|
||||
tsdLastUpdated: <FormattedDate
|
||||
value={DOWNLOAD_TSD_LAST_UPDATED}
|
||||
year="2-digit"
|
||||
month="2-digit"
|
||||
day="2-digit"
|
||||
|
@ -137,6 +179,11 @@ export const DOWNLOAD_PACKAGE = {
|
|||
defaultMessage= {'Download shapefile'}
|
||||
description= {'Navigate to the methodology page. This is the download shapefiles text'}
|
||||
/>,
|
||||
BUTTON_TEXT3: <FormattedMessage
|
||||
id={ 'methodology.page.downloadPacket.button3.text'}
|
||||
defaultMessage= {'Download technical support document'}
|
||||
description= {'Navigate to the methodology page. This is the download technical support document spreadsheet'}
|
||||
/>,
|
||||
NEW_TAG: <FormattedMessage
|
||||
id={ 'methodology.page.downloadPacket.new.tag.text'}
|
||||
defaultMessage= {`<boldtag>NEW</boldtag>`}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue