Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #4170 from ONRR/dev
Browse files Browse the repository at this point in the history
dev-->master
  • Loading branch information
jennmalcolm authored Jun 13, 2019
2 parents 4dfe2e6 + 1a379b0 commit 5d08b55
Show file tree
Hide file tree
Showing 115 changed files with 155,226 additions and 51 deletions.
48,816 changes: 48,816 additions & 0 deletions downloads/CY 03-18 Federal Revenues.csv

Large diffs are not rendered by default.

48,546 changes: 48,546 additions & 0 deletions downloads/FY 03-18 Federal Revenues.csv

Large diffs are not rendered by default.

662 changes: 662 additions & 0 deletions downloads/Native American Revs FY03-18.csv

Large diffs are not rendered by default.

698 changes: 698 additions & 0 deletions downloads/Native-American-Revenues-CY03-18.csv

Large diffs are not rendered by default.

Binary file removed downloads/disbursements_2012-2013_2015-11-20.xlsx
Binary file not shown.
Binary file removed downloads/disbursements_FY2003-2017_by_type.xlsx
Binary file not shown.
1,704 changes: 1,704 additions & 0 deletions downloads/disbursements_FY2003-2018_by_type.csv

Large diffs are not rendered by default.

Binary file removed downloads/disbursements_FY2012-2015_2016-03-04.xlsx
Binary file not shown.
Binary file removed downloads/disbursements_FY2012-2016_2017-02-08.xlsx
Binary file not shown.
Binary file removed downloads/disbursements_FY2014-2017.xlsx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
11,916 changes: 11,916 additions & 0 deletions downloads/federal_production_CY03-18.csv

Large diffs are not rendered by default.

Binary file added downloads/federal_production_CY03-18.xlsx
Binary file not shown.
Binary file not shown.
Binary file removed downloads/federal_production_CY07-16.xlsx
Binary file not shown.
Binary file removed downloads/federal_production_CY08-17.xlsx
Binary file not shown.
Binary file removed downloads/federal_production_FY05-14_2016-02-25.xlsx
Binary file not shown.
Binary file not shown.
Binary file removed downloads/federal_production_FY07-16.xlsx
Binary file not shown.
Binary file not shown.
7,511 changes: 7,511 additions & 0 deletions downloads/federal_production_FY2009-2018_2019-03-26.csv

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
14,670 changes: 14,670 additions & 0 deletions downloads/federal_revenue_by_company_CY2013-CY2018.csv

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed downloads/monthly-disbursements_02-2019.xlsx
Binary file not shown.
Binary file removed downloads/monthly-disbursements_03-2019.xlsx
Binary file not shown.
2,866 changes: 2,866 additions & 0 deletions downloads/monthly-disbursements_04-2019.csv

Large diffs are not rendered by default.

Binary file added downloads/monthly-disbursements_04-2019.xlsx
Binary file not shown.
Binary file removed downloads/monthly_production_02-2019.xlsx
Binary file not shown.
Binary file removed downloads/monthly_production_03-2019.xlsx
Binary file not shown.
Binary file removed downloads/monthly_production_04-2019.xlsx
Binary file not shown.
1,065 changes: 1,065 additions & 0 deletions downloads/monthly_production_05-2019.csv

Large diffs are not rendered by default.

1,073 changes: 1,073 additions & 0 deletions downloads/monthly_production_06-2019.csv

Large diffs are not rendered by default.

Binary file added downloads/monthly_production_06-2019.xlsx
Binary file not shown.
Binary file removed downloads/monthly_production_11-2018.xlsx
Binary file not shown.
Binary file removed downloads/monthly_production_12-2018.xlsx
Binary file not shown.
Binary file removed downloads/monthly_revenue_01-2019.xlsx
Binary file not shown.
Binary file removed downloads/monthly_revenue_02-2019.xlsx
Binary file not shown.
Binary file removed downloads/monthly_revenue_03-2019.xlsx
Binary file not shown.
7,748 changes: 7,748 additions & 0 deletions downloads/monthly_revenue_04-2019.csv

Large diffs are not rendered by default.

Binary file modified downloads/monthly_revenue_04-2019.xlsx
Binary file not shown.
7,748 changes: 7,748 additions & 0 deletions downloads/monthly_revenue_05-2019.csv

Large diffs are not rendered by default.

Binary file added downloads/monthly_revenue_05-2019.xlsx
Binary file not shown.
Binary file removed downloads/monthly_revenue_10-2018.xlsx
Binary file not shown.
Binary file removed downloads/monthly_revenue_11-2018.xlsx
Binary file not shown.
Binary file removed downloads/native_american_revenue_CY06-18.xlsx
Binary file not shown.
Binary file removed downloads/native_american_revenue_FY06-18.xlsx
Binary file not shown.
Binary file not shown.
Binary file modified downloads/revenues/monthly_revenue.xlsx
Binary file not shown.
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let config = {
siteMetadata: {
title: 'Natural Resources Revenue Data',
description: 'This site provides open data about natural resource management on federal lands and waters in the United States, including oil, gas, coal, and other extractive industries.',
version: 'v5.2.2',
version: 'v5.2.3',
googleAnalyticsId: GOOGLE_ANALYTICS_ID,
},
plugins: [
Expand Down
2 changes: 2 additions & 0 deletions humans.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
[Book](https://thenounproject.com/term/book/8372/) by Danilo Gusmão Silveira from The Noun Project
[Buildings](https://thenounproject.com/search/?q=Buildings&creator=31590&i=47227) by Stefan Parnarov from The Noun Project
[Coal Trolley](https://thenounproject.com/term/coal-trolley/13384/) by David Chapman from The Noun Project
[CSV File](https://thenounproject.com/term/csv-file/305198/) by Milinda Courey from the Noun Project
[Dam](https://thenounproject.com/term/dam/69333/) by iconsmind from The Noun Project
[Gas](https://thenounproject.com/term/flame/57314/) by the2ne from The Noun Project
Geothermal by Michelle Hertzfeld
Expand All @@ -61,6 +62,7 @@
[Swings](https://thenounproject.com/search/?q=swings&creator=16899&i=37924) by Rafael Farias Leão from The Noun Project
[Wheat](https://thenounproject.com/search/?q=wheat&creator=40467&i=17766) by Andrea Caldarelli from The Noun Project
[Wind Turbine](https://thenounproject.com/search/?q=turbine&creator=438738&i=68926) by iconsmind from The Noun Project
[XLS File](https://thenounproject.com/term/xls-file/305171/) by Milinda Courey from the Noun Project
[Gold Bullion](https://thenounproject.com/search/?q=gold+bars&i=229933) by niedzwiedz from The Noun Project
[Excavator](https://thenounproject.com/search/?q=excavation&i=60617) by Bruno Gatjens Gonzalez from The Noun Project
[Fish](https://thenounproject.com/search/?q=fish&i=153358) by Mario Bieh from The Noun Project
Expand Down
1 change: 1 addition & 0 deletions src/components/layouts/DefaultLayout/DefaultLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const DefaultLayout = ({ children }) => {
return (
<div>
<Helmet
htmlAttributes={{ lang: 'en' }}
meta={[
{ name: 'google-site-verification', content: 'OxyG3U-Vtui-uK6wHUeOw83OgdfcfxvsWWZcb5x7aZ0' },
// Mobile Specific Metas
Expand Down
3 changes: 1 addition & 2 deletions src/components/layouts/Footer/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ const Footer = ({ version }) => (
<p className="footer-para_callout footer-para_callout-bigger">Built in the open</p>
<p className="footer-para">This site (<a href={'https://github.com/onrr/doi-extractives-data/releases/' + version } className="link-active-beta">{ version }</a>)
is powered by <a className="link-active-beta" href="/downloads">open data</a> and <a className="link-active-beta" href="https://github.com/ONRR/doi-extractives-data/">source code</a>.
We welcome contributions and comments on <a className="link-active-beta" href="https://github.com/ONRR/doi-extractives-data/issues/new">GitHub</a>. We write about how we work on this site on <Link to="/blog" className="link-active-beta">our team's blog</Link>.<br/>
<a className={styles.helpWanted} href="https://docs.google.com/forms/d/e/1FAIpQLSe5fTZq_SCrid9N48Bh2DJ-WzHfYvo75-En6g7f9iaIK6EGiQ/viewform">Help make this site better.<span style={{ paddingLeft: '15px', verticalAlign: 'middle' }}><BullhornIcon viewBox="0 -15 100 100" width="25px" height="25px"/></span></a></p>
We welcome contributions and comments on <a className="link-active-beta" href="https://github.com/ONRR/doi-extractives-data/issues/new">GitHub</a>. We write about how we work on this site on <Link to="/blog" className="link-active-beta">our team's blog</Link>.</p>

<p className="footer-para-small footer-para_last"><a href="https://www.doi.gov/" className="link-beta">Department of the Interior</a> | <a href="https://www.doi.gov/privacy" className="link-beta">Privacy Policy</a> | <a href="https://www.doi.gov/foia" className="link-beta">FOIA</a> | <a href="https://www.usa.gov/" className="link-beta">USA.gov</a></p>

Expand Down
1 change: 0 additions & 1 deletion src/components/layouts/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ const Header = props => {
<li className="header-nav_item_top">
<a href="#" onClick={() => props.glossaryTermSelected('', true)} className="header-nav_item_link_top js-glossary-toggle" alt="this is the glossary drawer">Glossary</a>
</li>
<span className="header-nav_item_link_spacer"> | </span>
<li className="header-nav_item_top">
<Link {...downloadClassNames} to="/downloads/">Download data </Link>
</li> <li className="header-nav_item_top">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Download CSV Link
componentName: DownloadCsvLink
patternCategory: Layouts
---

```
<DownloadCsvLink to="/explore/#production" >Download production data</DownloadCsvLink>
```

## How to use
The Download CSV Link component includes a custom icon and produces a link style for downloading `csv` versions of our data files.

In markdown files, use the `<csv-link>` variant.

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React from 'react';
import PropTypes from 'prop-types';
import Link from '../../../utils/temp-link';

import styles from "./DownloadCsvLink.module.scss"

import DownloadCsvIcon from '-!svg-react-loader!../../../../img/svg/icon-download-csv.svg';

const DownloadCsvLink = (props) => (
<Link to={props.to} className={styles.root}>
<DownloadCsvIcon />
<span>
{props.children === undefined ?
'Download' :
props.children}
</span>
</Link>
);

DownloadCsvLink.propTypes = {
/** The url for the link */
to: PropTypes.string,
}

export default DownloadCsvLink;
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@value colors: "../../../../css-global/colors.scss";
@value blue as _blue from colors;

.root svg{
fill: currentColor;
vertical-align: middle;
margin-right: 8px;
}

.root span{
vertical-align: baseline;
}
1 change: 1 addition & 0 deletions src/components/layouts/icon-links/DownloadCsvLink/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default from './DownloadCsvLink';
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Download Excel Link
componentName: DownloadExcelLink
patternCategory: Layouts
---

```
<DownloadExcelLink to="/explore/#production" >Download production data</DownloadExcelLink>
```

## How to use
The Download Excel Link component includes a custom icon and produces a link style for downloading `xlsx` versions of our data files.

In markdown files, use the `<excel-link>` variant.

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React from 'react';
import PropTypes from 'prop-types';
import Link from '../../../utils/temp-link';

import styles from "./DownloadExcelLink.module.scss"

import DownloadExcelIcon from '-!svg-react-loader!../../../../img/svg/icon-download-xls.svg';

const DownloadExcelLink = (props) => (
<Link to={props.to} className={styles.root}>
<DownloadExcelIcon />
<span>
{props.children === undefined ?
'Download' :
props.children}
</span>
</Link>
);

DownloadExcelLink.propTypes = {
/** The url for the link */
to: PropTypes.string,
}

export default DownloadExcelLink;
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@value colors: "../../../../css-global/colors.scss";
@value blue as _blue from colors;

.root svg{
fill: currentColor;
vertical-align: middle;
margin-right: 8px;
}

.root span{
vertical-align: baseline;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default from './DownloadExcelLink';
10 changes: 5 additions & 5 deletions src/components/locations/RevenueProcessTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const RevenueTypeTableRow = props => {
<tr>
<th scope="row" data-value={props.commodityData.All[props.year]} name={'#revenue-' + utils.formatToSlug(props.commodityName)} className="table-arrow_box-subheader">
<strong>{ props.commodityName }</strong><br/>
<strong className="table-arrow_box-subheader-value">{ utils.formatToDollarInt(props.commodityData.All[props.year]) }</strong>
<strong className="table-arrow_box-subheader-value"> { utils.formatToDollarInt(props.commodityData.All[props.year]) }</strong>
</th>
{
revenueTypeNames.map((revenueTypeName, index) => {
Expand Down Expand Up @@ -183,25 +183,25 @@ const RevenueProcessTable = props => {
}
{ valuesRoyalties.Oil > 0 &&
<span className="text table-arrow_box-subheader-value">
<strong className="text-header text-header-first">Oil</strong>
<strong className="text-header text-header-first">Oil </strong>
{ utils.formatToDollarInt(valuesRoyalties.Oil)}
</span>
}
{ valuesRoyalties.Gas > 0 &&
<span className="text table-arrow_box-subheader-value">
<strong className="text-header text-header-first">Gas</strong>
<strong className="text-header text-header-first">Gas </strong>
{ utils.formatToDollarInt(valuesRoyalties.Gas)}
</span>
}
{ valuesRoyalties.NGL > 0 &&
<span className="text table-arrow_box-subheader-value">
<strong className="text-header text-header-first">NGL</strong>
<strong className="text-header text-header-first">NGL </strong>
{ utils.formatToDollarInt(valuesRoyalties.NGL)}
</span>
}
{ valuesRoyalties.OilShale > 0 &&
<span className="text table-arrow_box-subheader-value">
<strong className="text-header text-header-first">OilShale</strong>
<strong className="text-header text-header-first">OilShale </strong>
{ Ututilsils.formatToDollarInt(valuesRoyalties.OilShale)}
</span>
}
Expand Down
14 changes: 7 additions & 7 deletions src/components/locations/RevenueTypeTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const RevenueTypeTableRow = props => {
<tr>
<th scope="row" data-value={props.commodityData.All[props.year]} name={'#revenue-' + utils.formatToSlug(props.commodityName)} className="table-arrow_box-subheader">
<strong>{ props.commodityName }</strong><br/>
<strong className="table-arrow_box-subheader-value">{ utils.formatToDollarInt(props.commodityData.All[props.year]) }</strong>
<strong className="table-arrow_box-subheader-value"> { utils.formatToDollarInt(props.commodityData.All[props.year]) }</strong>
</th>
{
revenueTypeNames.map((revenueTypeName, index) => {
Expand All @@ -56,8 +56,8 @@ const RevenueTypeTableRow = props => {
<br/>
<span className="table-arrow_box-asterisk">
* Includes revenues not tied to specific commo&shy;dities
({ utils.formatToDollarInt(NATIONAL_REVENUES_INSPECTION_FEES[props.year]) } in inspection fees,
{ utils.formatToDollarInt(NATIONAL_REVENUES_CIVIL_PENALTIES[props.year]) } in civil penalties,
({ utils.formatToDollarInt(NATIONAL_REVENUES_INSPECTION_FEES[props.year]) } in inspection fees,
{' ' + utils.formatToDollarInt(NATIONAL_REVENUES_CIVIL_PENALTIES[props.year]) } in civil penalties,
and { utils.formatToDollarInt(NATIONAL_REVENUES_OTHER_REVENUES[props.year]) } in other revenue).
</span>
</div>
Expand Down Expand Up @@ -182,25 +182,25 @@ const RevenueTypeTable = props => {
}
{ valuesRoyalties.Oil > 0 &&
<span className="text table-arrow_box-subheader-value">
<strong className="text-header text-header-first">Oil</strong>
<strong className="text-header text-header-first">Oil </strong>
{ utils.formatToDollarInt(valuesRoyalties.Oil)}
</span>
}
{ valuesRoyalties.Gas > 0 &&
<span className="text table-arrow_box-subheader-value">
<strong className="text-header text-header-first">Gas</strong>
<strong className="text-header text-header-first">Gas </strong>
{ utils.formatToDollarInt(valuesRoyalties.Gas)}
</span>
}
{ valuesRoyalties.NGL > 0 &&
<span className="text table-arrow_box-subheader-value">
<strong className="text-header text-header-first">NGL</strong>
<strong className="text-header text-header-first">NGL </strong>
{ utils.formatToDollarInt(valuesRoyalties.NGL)}
</span>
}
{ valuesRoyalties.OilShale > 0 &&
<span className="text table-arrow_box-subheader-value">
<strong className="text-header text-header-first">OilShale</strong>
<strong className="text-header text-header-first">OilShale </strong>
{ utils.formatToDollarInt(valuesRoyalties.OilShale)}
</span>
}
Expand Down
4 changes: 3 additions & 1 deletion src/components/sections/RevenueTrends/RevenueTrends.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ const PercentDifference = ({currentAmount, previousAmount}) => {
:
<TriangleDownIcon viewBox="-20 -10 50 40"/>
}
{utils.round(percentIncrease, 0)+'%'}
<span>
{utils.round(percentIncrease, 0)+'%'}
</span>
</span>
);
}
8 changes: 5 additions & 3 deletions src/components/sections/WhatsNew/WhatsNew.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ const WhatsNew = props => (
<section className={styles.root + ' slab-delta'}>
<div className="container-page-wrapper">
<h2>What's new</h2>
<p>In our latest release on May 28, 2019, we made the following changes:</p>
<p>In our latest release on June 13, 2019, we made the following changes:</p>
<ul className="list-bullet ribbon-card-top-list">
<li>Updated <Link to="downloads/federal-revenue-by-location/">revenue data downloads to include 2003-2018 data</Link></li>
<li>Updated revenue trends section styling and changed to a 10-year rolling trend line </li>
<li>Added csv option for all <Link to="downloads/">downloads</Link></li>
<li>Updated <Link to="downloads/federal-production/">calendar year production file to include 2003-2018 data</Link></li>
<li>Updated homepage graphs with monthly revenue through May 2019 and production through February 2019 </li>
<li>Updated <Link to="downloads/federal-disbursements-by-month/"> monthly disbursements file through April 2019</Link></li>
</ul>

<p>Review our <a href="https://github.com/ONRR/doi-extractives-data/releases">full release details</a>.</p>
Expand Down
Binary file modified src/data-graphql/production_volumes.xlsx
Binary file not shown.
2 changes: 1 addition & 1 deletion src/img/svg/arrow-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/img/svg/icon-download-csv.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/img/svg/icon-download-xls.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion src/js/hast-react-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ import RenewablesIcon from '-!svg-react-loader!../img/svg/icon-renewables.svg';
import GeothermalIcon from '-!svg-react-loader!../img/svg/icon-geothermal.svg';
import ChevronIcon from '-!svg-react-loader!../img/svg/chevron-lt.svg';
import DownloadLink from '../components/layouts/icon-links/DownloadLink';
import DownloadCsvLink from '../components/layouts/icon-links/DownloadCsvLink';
import DownloadExcelLink from '../components/layouts/icon-links/DownloadExcelLink';

const SelectWrapper = (props) => {
let { onchange, ...mutableProps } = props;
Expand Down Expand Up @@ -123,10 +125,11 @@ const hastReactRenderer = new rehypeReact({
'geothermal-icon': GeothermalIcon,
'chevron-icon': ChevronIcon,
'select': SelectWrapper,
'download-link': DownloadLink,
'use': UseWrapper,
'svg': SvgWrapper,
'download-link': DownloadLink,
'excel-link': DownloadExcelLink,
'csv-link': DownloadCsvLink,
},

}).Compiler;
Expand Down
4 changes: 2 additions & 2 deletions src/markdown/downloads/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ tag:
<download-data-link to="/downloads/federal-production-by-month/">Downloads and documentation</download-data-link>
</li>
<li class="downloads-download_links">
<h3 id="federal-lands-and-waters">Production from federal land and waters by year</h3>
<h3 id="federal-lands-and-waters">Production by year</h3>
<p>These datasets include commodity volumes of natural resources extracted from federal lands and waters. Production volumes are available by state, county, and offshore area. We offer production data for calendar and fiscal years.</p>
<download-data-link to="/downloads/federal-production/">Downloads and documentation</download-data-link>
</li>
Expand All @@ -40,7 +40,7 @@ tag:
</li>
<!--Federal revenue by location-->
<li class="downloads-download_links">
<h3 id="all-revenue">Federal revenue by year and location</h3>
<h3 id="all-revenue">Revenue by year</h3>
<p>These datasets include natural resource revenues for U.S. federal lands and offshore areas by calendar and fiscal years. It does not include Native American lands, privately owned lands, or U.S. state lands.</p>
<download-data-link to="/downloads/federal-revenue-by-location/">Downloads and documentation</download-data-link>
</li>
Expand Down
Loading

0 comments on commit 5d08b55

Please sign in to comment.